XQuilla/docs/xqc-api/structXQC__StaticContext__s.html
2020-02-17 22:19:08 +01:00

992 lines
54 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&amp;type=2" border="0" alt="SourceForge.net Logo" /></a>
<!-- Generated by Doxygen 1.3.9.1 -->
<div class="qindex"><a class="qindex" href="index.html">Main&nbsp;Page</a> | <a class="qindex" href="annotated.html">Class&nbsp;List</a> | <a class="qindex" href="dirs.html">Directories</a> | <a class="qindex" href="files.html">File&nbsp;List</a> | <a class="qindex" href="functions.html">Class&nbsp;Members</a> | <a class="qindex" href="globals.html">File&nbsp;Members</a> | <a class="qindex" href="examples.html">Examples</a></div>
<h1>XQC_StaticContext_s Struct Reference</h1>The <a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> struct provides a way to specify values for the static context of the query to be prepared.
<a href="#_details">More...</a>
<p>
<code>#include &lt;<a class="el" href="xqc_8h-source.html">xqc.h</a>&gt;</code>
<p>
<a href="structXQC__StaticContext__s-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o0">create_child_context</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> **child_context)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a child context of the given static context. <a href="#o0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o1">declare_ns</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *prefix, const char *uri)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a (prefix, uri) pair to the set of statically known namespaces of the given context. <a href="#o1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o2">get_ns_by_prefix</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *prefix, const char **result_ns)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the namespace uri that belongs to the given prefix. <a href="#o2"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o3">set_default_element_and_type_ns</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *uri)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the value of the default namespace for elements and types. <a href="#o3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o4">get_default_element_and_type_ns</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char **uri)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o5">set_default_function_ns</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *uri)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the default namespace for functions. <a href="#o5"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o6">get_default_function_ns</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char **uri)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returnsthe default namespace for functions set in this static context. <a href="#o6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o7">set_xpath_compatib_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a68">XQC_XPath1Mode</a> mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the XPath 1.0 compatibility mode to either XQC_XPATH1_0 or XQC_XPATH2_0. <a href="#o7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o8">get_xpath_compatib_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a68">XQC_XPath1Mode</a> *mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the XPath 1.0 compatibility that is set in the given static context. <a href="#o8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o9">set_construction_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a74">XQC_ConstructionMode</a> mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the construction mode to either XQC_PRESERVE_CONS or XQC_StaticContext. <a href="#o9"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o10">get_construction_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a74">XQC_ConstructionMode</a> *mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the construction mode that is set in the given static context. <a href="#o10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o11">set_ordering_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a69">XQC_OrderingMode</a> mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the ordering mode to either XQC_ORDERED or XQC_UNORDERED. <a href="#o11"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o12">get_ordering_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a69">XQC_OrderingMode</a> *mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the ordering mode that is set in the given static context. <a href="#o12"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o13">set_default_order_empty_sequences</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a70">XQC_OrderEmptyMode</a> mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the default order mode for empty sequences to either XQC_EMTPY_LEAST or XQC_EMPTY_GREATEST. <a href="#o13"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o14">get_default_order_empty_sequences</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a70">XQC_OrderEmptyMode</a> *mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the default order mode for empty sequences that is set in the given static context. <a href="#o14"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o15">set_boundary_space_policy</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a73">XQC_BoundarySpaceMode</a> mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the boundary space policy to either XQC_PRESERVE_SPACE or XQC_STRIP_SPACE. <a href="#o15"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o16">get_boundary_space_policy</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a73">XQC_BoundarySpaceMode</a> *mode)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the boundary space policy that is set in the given static context. <a href="#o16"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o17">set_copy_ns_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a72">XQC_PreserveMode</a> preserve, <a class="el" href="xqc_8h.html#a71">XQC_InheritMode</a> inherit)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the copy namespace mode which consists of the preserve and the inherit mode. <a href="#o17"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o18">get_copy_ns_mode</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a72">XQC_PreserveMode</a> *preserve, <a class="el" href="xqc_8h.html#a71">XQC_InheritMode</a> *inherit)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the copy namespace mode as a pair consisting of the preserve and the inherit mode. <a href="#o18"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o19">set_base_uri</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *base_uri)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the base uri in the given static context. <a href="#o19"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o20">get_base_uri</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char **base_uri)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the base uri that is set in the given static context. <a href="#o20"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o21">set_error_handler</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="structXQC__ErrorHandler__s.html">XQC_ErrorHandler</a> *handler)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o22">get_error_handler</a> )(const <a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="structXQC__ErrorHandler__s.html">XQC_ErrorHandler</a> **handler)</td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void *(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o23">get_interface</a> )(const <a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *name)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to retrieve an implementation specific interface. <a href="#o23"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void(*&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="structXQC__StaticContext__s.html#o24">free</a> )(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context)</td></tr>
<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Called to free the resources associated with the XQC_StaticContext. <a href="#o24"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
The <a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> struct provides a way to specify values for the static context of the query to be prepared.
<p>
An <a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> object is not thread-safe - threads should each use their own instance of a <a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> object.<p>
<a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> objects are created by calling the <a class="el" href="structXQC__Implementation__s.html#z0_0">XQC_Implementation::create_context()</a> function. Once created, the user is responsible for freeing the object by calling the <a class="el" href="structXQC__StaticContext__s.html#o24">free()</a> function. The <a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> object should be freed before the <a class="el" href="xqc_8h.html#a1">XQC_Implementation</a> object that created it.
<p>
<hr><h2>Member Data Documentation</h2>
<a class="anchor" name="o0" doxytag="XQC_StaticContext_s::create_child_context"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o0">XQC_StaticContext_s::create_child_context</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> **child_context) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Creates a child context of the given static context.
<p>
A child context contains the same information as it's parent context but it allows the user to override and add information. The user is responsible for freeing the <a class="el" href="xqc_8h.html#a2">XQC_StaticContext</a> object returned by calling <a class="el" href="structXQC__StaticContext__s.html#o24">XQC_StaticContext::free()</a>.<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>child_context</em>&nbsp;</td><td>The newly created XQC_StaticContext object which is a child of the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o1" doxytag="XQC_StaticContext_s::declare_ns"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o1">XQC_StaticContext_s::declare_ns</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *prefix, const char *uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Adds a (prefix, uri) pair to the set of statically known namespaces of the given context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>prefix</em>&nbsp;</td><td>The prefix of the namespace to add to the given XQC_StaticContext. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>uri</em>&nbsp;</td><td>The uri of the namespace to add to the given XQC_StaticContext.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o24" doxytag="XQC_StaticContext_s::free"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void(* <a class="el" href="structXQC__StaticContext__s.html#o24">XQC_StaticContext_s::free</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Called to free the resources associated with the XQC_StaticContext.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of</td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o20" doxytag="XQC_StaticContext_s::get_base_uri"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o20">XQC_StaticContext_s::get_base_uri</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char **base_uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the base uri that is set in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>base_uri</em>&nbsp;</td><td>The base uri that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o16" doxytag="XQC_StaticContext_s::get_boundary_space_policy"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o16">XQC_StaticContext_s::get_boundary_space_policy</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a73">XQC_BoundarySpaceMode</a> *mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the boundary space policy that is set in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_BoundarySpaceMode that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o10" doxytag="XQC_StaticContext_s::get_construction_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o10">XQC_StaticContext_s::get_construction_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a74">XQC_ConstructionMode</a> *mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the construction mode that is set in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_ConstructionMode that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o18" doxytag="XQC_StaticContext_s::get_copy_ns_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o18">XQC_StaticContext_s::get_copy_ns_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a72">XQC_PreserveMode</a> *preserve, <a class="el" href="xqc_8h.html#a71">XQC_InheritMode</a> *inherit) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the copy namespace mode as a pair consisting of the preserve and the inherit mode.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>preserve</em>&nbsp;</td><td>The XQC_PreserveMode that is set in the given context. </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>inherit</em>&nbsp;</td><td>The XQC_InheritMode that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o4" doxytag="XQC_StaticContext_s::get_default_element_and_type_ns"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o4">XQC_StaticContext_s::get_default_element_and_type_ns</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char **uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>uri</em>&nbsp;</td><td>The uri of the default element and type namespace that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o6" doxytag="XQC_StaticContext_s::get_default_function_ns"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o6">XQC_StaticContext_s::get_default_function_ns</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char **uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returnsthe default namespace for functions set in this static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>uri</em>&nbsp;</td><td>The uri of the default function namespace that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o14" doxytag="XQC_StaticContext_s::get_default_order_empty_sequences"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o14">XQC_StaticContext_s::get_default_order_empty_sequences</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a70">XQC_OrderEmptyMode</a> *mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the default order mode for empty sequences that is set in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_OrderEmptyMode that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o22" doxytag="XQC_StaticContext_s::get_error_handler"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o22">XQC_StaticContext_s::get_error_handler</a>)(const <a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="structXQC__ErrorHandler__s.html">XQC_ErrorHandler</a> **handler) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a class="anchor" name="o23" doxytag="XQC_StaticContext_s::get_interface"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top">void*(* <a class="el" href="structXQC__StaticContext__s.html#o23">XQC_StaticContext_s::get_interface</a>)(const <a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *name) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Called to retrieve an implementation specific interface.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>name</em>&nbsp;</td><td>The name that identifies the interface to return</td></tr>
</table>
</dl>
<dl compact><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>
</td>
</tr>
</table>
<a class="anchor" name="o2" doxytag="XQC_StaticContext_s::get_ns_by_prefix"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o2">XQC_StaticContext_s::get_ns_by_prefix</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *prefix, const char **result_ns) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the namespace uri that belongs to the given prefix.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>prefix</em>&nbsp;</td><td>The prefix of the namespace to add to the given XQC_StaticContext. </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>result_ns</em>&nbsp;</td><td>The namespace uri of the namespace registered with the given prefix, or 0 if none can be found.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o12" doxytag="XQC_StaticContext_s::get_ordering_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o12">XQC_StaticContext_s::get_ordering_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a69">XQC_OrderingMode</a> *mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the ordering mode that is set in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_OrderingMode that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o8" doxytag="XQC_StaticContext_s::get_xpath_compatib_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o8">XQC_StaticContext_s::get_xpath_compatib_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a68">XQC_XPath1Mode</a> *mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Returns the XPath 1.0 compatibility that is set in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"><tt>[out]</tt>&nbsp;</td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_XPath1Mode that is set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o19" doxytag="XQC_StaticContext_s::set_base_uri"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o19">XQC_StaticContext_s::set_base_uri</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *base_uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the base uri in the given static context.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>base_uri</em>&nbsp;</td><td>The base uri to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o15" doxytag="XQC_StaticContext_s::set_boundary_space_policy"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o15">XQC_StaticContext_s::set_boundary_space_policy</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a73">XQC_BoundarySpaceMode</a> mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the boundary space policy to either XQC_PRESERVE_SPACE or XQC_STRIP_SPACE.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_BoundarySpaceMode to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o9" doxytag="XQC_StaticContext_s::set_construction_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o9">XQC_StaticContext_s::set_construction_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a74">XQC_ConstructionMode</a> mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the construction mode to either XQC_PRESERVE_CONS or XQC_StaticContext.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_ConstructionMode to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o17" doxytag="XQC_StaticContext_s::set_copy_ns_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o17">XQC_StaticContext_s::set_copy_ns_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a72">XQC_PreserveMode</a> preserve, <a class="el" href="xqc_8h.html#a71">XQC_InheritMode</a> inherit) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the copy namespace mode which consists of the preserve and the inherit mode.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>preserve</em>&nbsp;</td><td>The XQC_PreserveMode to set in the given context. </td></tr>
<tr><td valign="top"></td><td valign="top"><em>inherit</em>&nbsp;</td><td>The XQC_InheritMode to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o3" doxytag="XQC_StaticContext_s::set_default_element_and_type_ns"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o3">XQC_StaticContext_s::set_default_element_and_type_ns</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the value of the default namespace for elements and types.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>uri</em>&nbsp;</td><td>The uri of the default element and type namespace to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o5" doxytag="XQC_StaticContext_s::set_default_function_ns"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o5">XQC_StaticContext_s::set_default_function_ns</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, const char *uri) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the default namespace for functions.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>uri</em>&nbsp;</td><td>The uri of the default function namespace to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o13" doxytag="XQC_StaticContext_s::set_default_order_empty_sequences"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o13">XQC_StaticContext_s::set_default_order_empty_sequences</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a70">XQC_OrderEmptyMode</a> mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the default order mode for empty sequences to either XQC_EMTPY_LEAST or XQC_EMPTY_GREATEST.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_OrderEmptyMode to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o21" doxytag="XQC_StaticContext_s::set_error_handler"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o21">XQC_StaticContext_s::set_error_handler</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="structXQC__ErrorHandler__s.html">XQC_ErrorHandler</a> *handler) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<a class="anchor" name="o11" doxytag="XQC_StaticContext_s::set_ordering_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o11">XQC_StaticContext_s::set_ordering_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a69">XQC_OrderingMode</a> mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the ordering mode to either XQC_ORDERED or XQC_UNORDERED.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_OrderingMode to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<a class="anchor" name="o7" doxytag="XQC_StaticContext_s::set_xpath_compatib_mode"></a><p>
<table class="mdTable" width="100%" cellpadding="2" cellspacing="0">
<tr>
<td class="mdRow">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"><a class="el" href="xqc_8h.html#a66">XQC_Error</a>(* <a class="el" href="structXQC__StaticContext__s.html#o7">XQC_StaticContext_s::set_xpath_compatib_mode</a>)(<a class="el" href="structXQC__StaticContext__s.html">XQC_StaticContext</a> *context, <a class="el" href="xqc_8h.html#a68">XQC_XPath1Mode</a> mode) </td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="5" cellpadding="0" border="0">
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Sets the XPath 1.0 compatibility mode to either XQC_XPATH1_0 or XQC_XPATH2_0.
<p>
<dl compact><dt><b>Parameters:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>context</em>&nbsp;</td><td>The XQC_StaticContext that this function pointer is a member of </td></tr>
<tr><td valign="top"></td><td valign="top"><em>mode</em>&nbsp;</td><td>The XQC_XPath1Mode to set in the given context.</td></tr>
</table>
</dl>
<dl compact><dt><b>Return values:</b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"></td><td valign="top"><em>::XQC_NO_ERROR</em>&nbsp;</td><td></td></tr>
<tr><td valign="top"></td><td valign="top"><em>::XQC_INTERNAL_ERROR</em>&nbsp;</td><td></td></tr>
</table>
</dl>
</td>
</tr>
</table>
<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></ul>
<hr size="1"><address style="align: right;"><small>Generated on Fri Sep 25 06:55:57 2009 for XQilla XQC API by&nbsp;
<a href="http://www.doxygen.org/index.html">
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.3.9.1 </small></address>
</body>
</html>