325 lines
28 KiB
HTML
325 lines
28 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
|
|
<title>XQilla XQC API Documentation</title>
|
|
<link href="doxygen.css" rel="stylesheet" type="text/css">
|
|
<link href="tabs.css" rel="stylesheet" type="text/css">
|
|
</head><body>
|
|
<a style="float:right;" href="http://sourceforge.net/projects/xqilla"><img src="http://sflogo.sourceforge.net/sflogo.php?group_id=152021&type=2" border="0" alt="SourceForge.net Logo" /></a>
|
|
<!-- Generated by Doxygen 1.6.1 -->
|
|
<div class="navigation" id="top">
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="index.html"><span>Main Page</span></a></li>
|
|
<li><a href="pages.html"><span>Related Pages</span></a></li>
|
|
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
|
|
<li><a href="files.html"><span>Files</span></a></li>
|
|
<li><a href="examples.html"><span>Examples</span></a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="tabs">
|
|
<ul>
|
|
<li><a href="annotated.html"><span>Class List</span></a></li>
|
|
<li><a href="functions.html"><span>Class Members</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
<div class="contents">
|
|
<h1>XQC_Sequence_s Struct Reference</h1><!-- doxytag: class="XQC_Sequence_s" -->
|
|
<p><code>#include <<a class="el" href="xqc_8h_source.html">xqc.h</a>></code></p>
|
|
|
|
<p><a href="structXQC__Sequence__s-members.html">List of all members.</a></p>
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><td colspan="2"><h2>Public Attributes</h2></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6">next</a> )(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Moves the XQC_Sequence so that the current item is positioned at the next item in the sequence. <a href="#ab84594b06f7e69fd870c41f55ae5c6c6"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void *(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#a280dfbbc70dade39905f4b91ed22aa19">get_interface</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char *name)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to retrieve an implementation specific interface. <a href="#a280dfbbc70dade39905f4b91ed22aa19"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top">void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#a13ab651edb4e0754cb8a032e2bce50b0">free</a> )(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Called to free the resources associated with the XQC_Sequence. <a href="#a13ab651edb4e0754cb8a032e2bce50b0"></a><br/></td></tr>
|
|
<tr><td colspan="2"><div class="groupHeader">Functions on the current item</div></td></tr>
|
|
<tr><td colspan="2"><div class="groupText"><p><a class="anchor" id="amgrp9f9d9639f8a76b7219a72f08d1301203"></a> </p>
|
|
<br/><br/></div></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#a09c64cc1a094a915541b0d4864f8ecf9">item_type</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, <a class="el" href="xqc_8h.html#a72a7afe388d8dbc3578d5d1eb4e76cde">XQC_ItemType</a> *type)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns an item type enumeration for the type of the current item. <a href="#a09c64cc1a094a915541b0d4864f8ecf9"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#a0ced435e02516a489e3a892abd1c2764">type_name</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the type name for the current item as a (URI, localname) pair. <a href="#a0ced435e02516a489e3a892abd1c2764"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#a3bd3b6dab0c68652af816438407dd037">string_value</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the string value of the current item in the sequence - this is equivalent to calling <code>fn:string()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-string">http://www.w3.org/TR/xpath-functions/#func-string</a>) on the current item. <a href="#a3bd3b6dab0c68652af816438407dd037"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#ac6f7f32f3d54ba30c043bea37e3b5fef">integer_value</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, int *value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the value of the current item in the sequence as an integer - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item, and casting the result to an int. <a href="#ac6f7f32f3d54ba30c043bea37e3b5fef"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#ab131f251ca020ce202e31b3bf9ff9369">double_value</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, double *value)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the value of the current item in the sequence as a double - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item. <a href="#ab131f251ca020ce202e31b3bf9ff9369"></a><br/></td></tr>
|
|
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* </td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__Sequence__s.html#a755d353442dd2cc25906bb0152ef8fe1">node_name</a> )(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name)</td></tr>
|
|
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the name for the current node as a (URI, localname) pair. <a href="#a755d353442dd2cc25906bb0152ef8fe1"></a><br/></td></tr>
|
|
</table>
|
|
<hr/><a name="_details"></a><h2>Detailed Description</h2>
|
|
<dl><dt><b>Examples: </b></dt><dd>
|
|
<p><a class="el" href="xqc-basic_8c-example.html#_a2">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#_a3">xqc-context-item.c</a>.</p>
|
|
</dd>
|
|
</dl><hr/><h2>Member Data Documentation</h2>
|
|
<a class="anchor" id="ab131f251ca020ce202e31b3bf9ff9369"></a><!-- doxytag: member="XQC_Sequence_s::double_value" ref="ab131f251ca020ce202e31b3bf9ff9369" args=")(const XQC_Sequence *sequence, double *value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#ab131f251ca020ce202e31b3bf9ff9369">XQC_Sequence_s::double_value</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, double *value)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value of the current item in the sequence as a double - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item. </p>
|
|
<p>This is available for all item types.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>value</em> </td><td>The value of the current item as a double.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em> </td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a13ab651edb4e0754cb8a032e2bce50b0"></a><!-- doxytag: member="XQC_Sequence_s::free" ref="a13ab651edb4e0754cb8a032e2bce50b0" args=")(XQC_Sequence *sequence)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void(* <a class="el" href="structXQC__Sequence__s.html#a13ab651edb4e0754cb8a032e2bce50b0">XQC_Sequence_s::free</a>)(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Called to free the resources associated with the XQC_Sequence. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="xqc-basic_8c-example.html#a11">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#a15">xqc-context-item.c</a>.</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a280dfbbc70dade39905f4b91ed22aa19"></a><!-- doxytag: member="XQC_Sequence_s::get_interface" ref="a280dfbbc70dade39905f4b91ed22aa19" args=")(const XQC_Sequence *sequence, const char *name)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname">void*(* <a class="el" href="structXQC__Sequence__s.html#a280dfbbc70dade39905f4b91ed22aa19">XQC_Sequence_s::get_interface</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char *name)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Called to retrieve an implementation specific interface. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em>name</em> </td><td>The name that identifies the interface to return</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl class="return"><dt><b>Returns:</b></dt><dd>A pointer to the interface, or 0 if the name is not recognized by this implementation of XQC. </dd></dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ac6f7f32f3d54ba30c043bea37e3b5fef"></a><!-- doxytag: member="XQC_Sequence_s::integer_value" ref="ac6f7f32f3d54ba30c043bea37e3b5fef" args=")(const XQC_Sequence *sequence, int *value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#ac6f7f32f3d54ba30c043bea37e3b5fef">XQC_Sequence_s::integer_value</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, int *value)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the value of the current item in the sequence as an integer - this is equivalent to calling <code>fn:number()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-number">http://www.w3.org/TR/xpath-functions/#func-number</a>) on the current item, and casting the result to an int. </p>
|
|
<p>This is available for all item types.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>value</em> </td><td>The value of the current item as an int.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em> </td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a09c64cc1a094a915541b0d4864f8ecf9"></a><!-- doxytag: member="XQC_Sequence_s::item_type" ref="a09c64cc1a094a915541b0d4864f8ecf9" args=")(const XQC_Sequence *sequence, XQC_ItemType *type)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#a09c64cc1a094a915541b0d4864f8ecf9">XQC_Sequence_s::item_type</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, <a class="el" href="xqc_8h.html#a72a7afe388d8dbc3578d5d1eb4e76cde">XQC_ItemType</a> *type)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns an item type enumeration for the type of the current item. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>type</em> </td><td>the XQC_ItemType of the current item</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em> </td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="ab84594b06f7e69fd870c41f55ae5c6c6"></a><!-- doxytag: member="XQC_Sequence_s::next" ref="ab84594b06f7e69fd870c41f55ae5c6c6" args=")(XQC_Sequence *sequence)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6">XQC_Sequence_s::next</a>)(<a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Moves the XQC_Sequence so that the current item is positioned at the next item in the sequence. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td>when the call is successful </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fadfd1d8eea45c90655b98cfd728bfee2e" title="The end of the XQC_Sequence has been reached.">XQC_END_OF_SEQUENCE</a></em> </td><td>when the end of the sequence is reached </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3faeb68302bd3ceab3cb9d9473afd06248a" title="A type error has occured while preparing or executing the query.">XQC_TYPE_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa1ece0ad69a59c3f0ce59b841ded10f9d" title="A dynamic error has occured while preparing or executing the query.">XQC_DYNAMIC_ERROR</a></em> </td><td></td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="xqc-basic_8c-example.html#a7">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#a9">xqc-context-item.c</a>.</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a755d353442dd2cc25906bb0152ef8fe1"></a><!-- doxytag: member="XQC_Sequence_s::node_name" ref="a755d353442dd2cc25906bb0152ef8fe1" args=")(const XQC_Sequence *sequence, const char **uri, const char **name)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#a755d353442dd2cc25906bb0152ef8fe1">XQC_Sequence_s::node_name</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the name for the current node as a (URI, localname) pair. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>uri</em> </td><td>The URI of the name of the current node. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>. </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>name</em> </td><td>The localname of the name of the current node. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em> </td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa42003308041f1f0db1d2028af432de95">XQC_NOT_NODE</a></em> </td><td>if the current item is not a node. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a3bd3b6dab0c68652af816438407dd037"></a><!-- doxytag: member="XQC_Sequence_s::string_value" ref="a3bd3b6dab0c68652af816438407dd037" args=")(const XQC_Sequence *sequence, const char **value)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#a3bd3b6dab0c68652af816438407dd037">XQC_Sequence_s::string_value</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **value)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the string value of the current item in the sequence - this is equivalent to calling <code>fn:string()</code> (<a href="http://www.w3.org/TR/xpath-functions/#func-string">http://www.w3.org/TR/xpath-functions/#func-string</a>) on the current item. </p>
|
|
<p>This is available for all item types.</p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>value</em> </td><td>The string value of the current item. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em> </td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Examples: </b></dt><dd><a class="el" href="xqc-basic_8c-example.html#a9">xqc-basic.c</a>, and <a class="el" href="xqc-context-item_8c-example.html#a13">xqc-context-item.c</a>.</dd>
|
|
</dl>
|
|
</div>
|
|
</div>
|
|
<a class="anchor" id="a0ced435e02516a489e3a892abd1c2764"></a><!-- doxytag: member="XQC_Sequence_s::type_name" ref="a0ced435e02516a489e3a892abd1c2764" args=")(const XQC_Sequence *sequence, const char **uri, const char **name)" -->
|
|
<div class="memitem">
|
|
<div class="memproto">
|
|
<table class="memname">
|
|
<tr>
|
|
<td class="memname"><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3f">XQC_Error</a>(* <a class="el" href="structXQC__Sequence__s.html#a0ced435e02516a489e3a892abd1c2764">XQC_Sequence_s::type_name</a>)(const <a class="el" href="structXQC__Sequence__s.html">XQC_Sequence</a> *sequence, const char **uri, const char **name)</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
<div class="memdoc">
|
|
|
|
<p>Returns the type name for the current item as a (URI, localname) pair. </p>
|
|
<dl><dt><b>Parameters:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em>sequence</em> </td><td>The XQC_Sequence that this function pointer is a member of </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>uri</em> </td><td>The URI of the type of the current item. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>. </td></tr>
|
|
<tr><td valign="top"><tt>[out]</tt> </td><td valign="top"><em>name</em> </td><td>The localname of the type of the current item. The memory for the string will be valid until a subsequent call to <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">XQC_Sequence::next()</a>.</td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
<dl><dt><b>Return values:</b></dt><dd>
|
|
<table border="0" cellspacing="2" cellpadding="0">
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa975a11c6557d4d849e48f4034380a375" title="No error.">XQC_NO_ERROR</a></em> </td><td></td></tr>
|
|
<tr><td valign="top"></td><td valign="top"><em><a class="el" href="xqc_8h.html#aeb1ad206e9c38a7f84749cafe04d7a3fa8e49ef7f25ae9121a0b59bc4cd050f5b">XQC_NO_CURRENT_ITEM</a></em> </td><td>if there is no current item, either because <a class="el" href="structXQC__Sequence__s.html#ab84594b06f7e69fd870c41f55ae5c6c6" title="Moves the XQC_Sequence so that the current item is positioned at the next item in...">next()</a> has not been called yet, or because the end of the sequence has been reached. </td></tr>
|
|
</table>
|
|
</dd>
|
|
</dl>
|
|
|
|
</div>
|
|
</div>
|
|
<hr/>The documentation for this struct was generated from the following file:<ul>
|
|
<li><a class="el" href="xqc_8h_source.html">xqc.h</a></li>
|
|
</ul>
|
|
</div>
|
|
<hr size="1"/><address style="text-align: right;"><small>Generated on 8 Jul 2015 for XQilla XQC API by
|
|
<a href="http://www.doxygen.org/index.html">
|
|
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address>
|
|
</body>
|
|
</html>
|