Daniel Veillard | d433046 | 2003-04-29 12:40:16 +0000 | [diff] [blame^] | 1 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| 2 | <html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"><title>xpathInternals</title><meta name="generator" content="DocBook XSL Stylesheets V1.58.1"><style xmlns="http://www.w3.org/TR/xhtml1/transitional" type="text/css"> |
| 3 | .synopsis, .classsynopsis { |
| 4 | background: #eeeeee; |
| 5 | border: solid 1px #aaaaaa; |
| 6 | padding: 0.5em; |
| 7 | } |
| 8 | .programlisting { |
| 9 | background: #eeeeff; |
| 10 | border: solid 1px #aaaaff; |
| 11 | padding: 0.5em; |
| 12 | } |
| 13 | .variablelist { |
| 14 | padding: 4px; |
| 15 | margin-left: 3em; |
| 16 | } |
| 17 | .navigation { |
| 18 | background: #ffeeee; |
| 19 | border: solid 1px #ffaaaa; |
| 20 | margin-top: 0.5em; |
| 21 | margin-bottom: 0.5em; |
| 22 | } |
| 23 | .navigation a { |
| 24 | color: #770000; |
| 25 | } |
| 26 | .navigation a:visited { |
| 27 | color: #550000; |
| 28 | } |
| 29 | .navigation .title { |
| 30 | font-size: 200%; |
| 31 | } |
| 32 | </style><link rel="home" href="index.html" title="Gnome XML Library Reference Manual"><link rel="up" href="libxml-lib.html" title="Libxml Library Reference"><link rel="previous" href="libxml-xpath.html" title="xpath"><link rel="next" href="libxml-xpointer.html" title="xpointer"></head><body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF"><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxml-xpath.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></img></a></td><td><a accesskey="u" href="libxml-lib.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></img></a></td><td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></img></a></td><th width="100%" align="center">Gnome XML Library Reference Manual</th><td><a accesskey="n" href="libxml-xpointer.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></img></a></td></tr></table><div class="refentry" lang="en"><a name="libxml-xpathInternals"></a><div class="titlepage"></div><div class="refnamediv"><h2>xpathInternals</h2><p>xpathInternals — </p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis"> |
| 33 | |
| 34 | |
| 35 | |
| 36 | #define <a href="libxml-xpathInternals.html#xmlXPathSetError">xmlXPathSetError</a> (ctxt, err) |
| 37 | #define <a href="libxml-xpathInternals.html#xmlXPathSetArityError">xmlXPathSetArityError</a> (ctxt) |
| 38 | #define <a href="libxml-xpathInternals.html#xmlXPathSetTypeError">xmlXPathSetTypeError</a> (ctxt) |
| 39 | #define <a href="libxml-xpathInternals.html#xmlXPathGetError">xmlXPathGetError</a> (ctxt) |
| 40 | #define <a href="libxml-xpathInternals.html#xmlXPathCheckError">xmlXPathCheckError</a> (ctxt) |
| 41 | #define <a href="libxml-xpathInternals.html#xmlXPathGetDocument">xmlXPathGetDocument</a> (ctxt) |
| 42 | #define <a href="libxml-xpathInternals.html#xmlXPathGetContextNode">xmlXPathGetContextNode</a> (ctxt) |
| 43 | int <a href="libxml-xpathInternals.html#xmlXPathPopBoolean">xmlXPathPopBoolean</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 44 | <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="double">double</GTKDOCLINK> <a href="libxml-xpathInternals.html#xmlXPathPopNumber">xmlXPathPopNumber</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 45 | <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-xpathInternals.html#xmlXPathPopString">xmlXPathPopString</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 46 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathPopNodeSet">xmlXPathPopNodeSet</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 47 | void* <a href="libxml-xpathInternals.html#xmlXPathPopExternal">xmlXPathPopExternal</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 48 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnBoolean">xmlXPathReturnBoolean</a> (ctxt, val) |
| 49 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnTrue">xmlXPathReturnTrue</a> (ctxt) |
| 50 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnFalse">xmlXPathReturnFalse</a> (ctxt) |
| 51 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnNumber">xmlXPathReturnNumber</a> (ctxt, val) |
| 52 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnString">xmlXPathReturnString</a> (ctxt, str) |
| 53 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnEmptyString">xmlXPathReturnEmptyString</a> (ctxt) |
| 54 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnNodeSet">xmlXPathReturnNodeSet</a> (ctxt, ns) |
| 55 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnEmptyNodeSet">xmlXPathReturnEmptyNodeSet</a> (ctxt) |
| 56 | #define <a href="libxml-xpathInternals.html#xmlXPathReturnExternal">xmlXPathReturnExternal</a> (ctxt, val) |
| 57 | #define <a href="libxml-xpathInternals.html#xmlXPathStackIsNodeSet">xmlXPathStackIsNodeSet</a> (ctxt) |
| 58 | #define <a href="libxml-xpathInternals.html#xmlXPathStackIsExternal">xmlXPathStackIsExternal</a> (ctxt) |
| 59 | #define <a href="libxml-xpathInternals.html#xmlXPathEmptyNodeSet">xmlXPathEmptyNodeSet</a> (ns) |
| 60 | #define <a href="libxml-xpathInternals.html#CHECK-ERROR-CAPS">CHECK_ERROR</a> |
| 61 | #define <a href="libxml-xpathInternals.html#CHECK-ERROR0-CAPS">CHECK_ERROR0</a> |
| 62 | #define <a href="libxml-xpathInternals.html#XP-ERROR-CAPS">XP_ERROR</a> (X) |
| 63 | #define <a href="libxml-xpathInternals.html#XP-ERROR0-CAPS">XP_ERROR0</a> (X) |
| 64 | #define <a href="libxml-xpathInternals.html#CHECK-TYPE-CAPS">CHECK_TYPE</a> (typeval) |
| 65 | #define <a href="libxml-xpathInternals.html#CHECK-TYPE0-CAPS">CHECK_TYPE0</a> (typeval) |
| 66 | #define <a href="libxml-xpathInternals.html#CHECK-ARITY-CAPS">CHECK_ARITY</a> (x) |
| 67 | #define <a href="libxml-xpathInternals.html#CAST-TO-STRING-CAPS">CAST_TO_STRING</a> |
| 68 | #define <a href="libxml-xpathInternals.html#CAST-TO-NUMBER-CAPS">CAST_TO_NUMBER</a> |
| 69 | #define <a href="libxml-xpathInternals.html#CAST-TO-BOOLEAN-CAPS">CAST_TO_BOOLEAN</a> |
| 70 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> (<a href="libxml-xpathInternals.html#xmlXPathVariableLookupFunc">*xmlXPathVariableLookupFunc</a>) |
| 71 | (void *ctxt, |
| 72 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 73 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri); |
| 74 | void <a href="libxml-xpathInternals.html#xmlXPathRegisterVariableLookup">xmlXPathRegisterVariableLookup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 75 | <a href="libxml-xpathInternals.html#xmlXPathVariableLookupFunc">xmlXPathVariableLookupFunc</a> f, |
| 76 | void *data); |
| 77 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> (<a href="libxml-xpathInternals.html#xmlXPathFuncLookupFunc">*xmlXPathFuncLookupFunc</a>) (void *ctxt, |
| 78 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 79 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri); |
| 80 | void <a href="libxml-xpathInternals.html#xmlXPathRegisterFuncLookup">xmlXPathRegisterFuncLookup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 81 | <a href="libxml-xpathInternals.html#xmlXPathFuncLookupFunc">xmlXPathFuncLookupFunc</a> f, |
| 82 | void *funcCtxt); |
| 83 | void <a href="libxml-xpathInternals.html#xmlXPatherror">xmlXPatherror</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 84 | const char *file, |
| 85 | int line, |
| 86 | int no); |
| 87 | void <a href="libxml-xpathInternals.html#xmlXPathDebugDumpObject">xmlXPathDebugDumpObject</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 88 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> cur, |
| 89 | int depth); |
| 90 | void <a href="libxml-xpathInternals.html#xmlXPathDebugDumpCompExpr">xmlXPathDebugDumpCompExpr</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 91 | <a href="libxml-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp, |
| 92 | int depth); |
| 93 | int <a href="libxml-xpathInternals.html#xmlXPathNodeSetContains">xmlXPathNodeSetContains</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 94 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val); |
| 95 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathDifference">xmlXPathDifference</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 96 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 97 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathIntersection">xmlXPathIntersection</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 98 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 99 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathDistinctSorted">xmlXPathDistinctSorted</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes); |
| 100 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathDistinct">xmlXPathDistinct</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes); |
| 101 | int <a href="libxml-xpathInternals.html#xmlXPathHasSameNodes">xmlXPathHasSameNodes</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 102 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 103 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNodeLeadingSorted">xmlXPathNodeLeadingSorted</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 104 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 105 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathLeadingSorted">xmlXPathLeadingSorted</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 106 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 107 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNodeLeading">xmlXPathNodeLeading</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 108 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 109 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathLeading">xmlXPathLeading</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 110 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 111 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNodeTrailingSorted">xmlXPathNodeTrailingSorted</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 112 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 113 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathTrailingSorted">xmlXPathTrailingSorted</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 114 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 115 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNodeTrailing">xmlXPathNodeTrailing</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 116 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node); |
| 117 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathTrailing">xmlXPathTrailing</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 118 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2); |
| 119 | int <a href="libxml-xpathInternals.html#xmlXPathRegisterNs">xmlXPathRegisterNs</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 120 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix, |
| 121 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri); |
| 122 | const <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-xpathInternals.html#xmlXPathNsLookup">xmlXPathNsLookup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 123 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix); |
| 124 | void <a href="libxml-xpathInternals.html#xmlXPathRegisteredNsCleanup">xmlXPathRegisteredNsCleanup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); |
| 125 | int <a href="libxml-xpathInternals.html#xmlXPathRegisterFunc">xmlXPathRegisterFunc</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 126 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 127 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> f); |
| 128 | int <a href="libxml-xpathInternals.html#xmlXPathRegisterFuncNS">xmlXPathRegisterFuncNS</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 129 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 130 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri, |
| 131 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> f); |
| 132 | int <a href="libxml-xpathInternals.html#xmlXPathRegisterVariable">xmlXPathRegisterVariable</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 133 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 134 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value); |
| 135 | int <a href="libxml-xpathInternals.html#xmlXPathRegisterVariableNS">xmlXPathRegisterVariableNS</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 136 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 137 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri, |
| 138 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value); |
| 139 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> <a href="libxml-xpathInternals.html#xmlXPathFunctionLookup">xmlXPathFunctionLookup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 140 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name); |
| 141 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> <a href="libxml-xpathInternals.html#xmlXPathFunctionLookupNS">xmlXPathFunctionLookupNS</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 142 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 143 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri); |
| 144 | void <a href="libxml-xpathInternals.html#xmlXPathRegisteredFuncsCleanup">xmlXPathRegisteredFuncsCleanup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); |
| 145 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathVariableLookup">xmlXPathVariableLookup</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 146 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name); |
| 147 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathVariableLookupNS">xmlXPathVariableLookupNS</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 148 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 149 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri); |
| 150 | void <a href="libxml-xpathInternals.html#xmlXPathRegisteredVariablesCleanup">xmlXPathRegisteredVariablesCleanup</a> |
| 151 | (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); |
| 152 | <a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewParserContext">xmlXPathNewParserContext</a> |
| 153 | (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str, |
| 154 | <a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); |
| 155 | void <a href="libxml-xpathInternals.html#xmlXPathFreeParserContext">xmlXPathFreeParserContext</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 156 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#valuePop">valuePop</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 157 | int <a href="libxml-xpathInternals.html#valuePush">valuePush</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 158 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value); |
| 159 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewString">xmlXPathNewString</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *val); |
| 160 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewCString">xmlXPathNewCString</a> (const char *val); |
| 161 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathWrapString">xmlXPathWrapString</a> (<a href="libxml-tree.html#xmlChar">xmlChar</a> *val); |
| 162 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathWrapCString">xmlXPathWrapCString</a> (char *val); |
| 163 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewFloat">xmlXPathNewFloat</a> (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="double">double</GTKDOCLINK> val); |
| 164 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewBoolean">xmlXPathNewBoolean</a> (int val); |
| 165 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewNodeSet">xmlXPathNewNodeSet</a> (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val); |
| 166 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewValueTree">xmlXPathNewValueTree</a> (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val); |
| 167 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetAdd">xmlXPathNodeSetAdd</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 168 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val); |
| 169 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetAddUnique">xmlXPathNodeSetAddUnique</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 170 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val); |
| 171 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetAddNs">xmlXPathNodeSetAddNs</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 172 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 173 | <a href="libxml-tree.html#xmlNsPtr">xmlNsPtr</a> ns); |
| 174 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetSort">xmlXPathNodeSetSort</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> set); |
| 175 | void <a href="libxml-xpathInternals.html#xmlXPathRoot">xmlXPathRoot</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 176 | void <a href="libxml-xpathInternals.html#xmlXPathEvalExpr">xmlXPathEvalExpr</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 177 | <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-xpathInternals.html#xmlXPathParseName">xmlXPathParseName</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 178 | <a href="libxml-tree.html#xmlChar">xmlChar</a>* <a href="libxml-xpathInternals.html#xmlXPathParseNCName">xmlXPathParseNCName</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 179 | <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="double">double</GTKDOCLINK> <a href="libxml-xpathInternals.html#xmlXPathStringEvalNumber">xmlXPathStringEvalNumber</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str); |
| 180 | int <a href="libxml-xpathInternals.html#xmlXPathEvaluatePredicateResult">xmlXPathEvaluatePredicateResult</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 181 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> res); |
| 182 | void <a href="libxml-xpathInternals.html#xmlXPathRegisterAllFunctions">xmlXPathRegisterAllFunctions</a> (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt); |
| 183 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNodeSetMerge">xmlXPathNodeSetMerge</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val1, |
| 184 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val2); |
| 185 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetDel">xmlXPathNodeSetDel</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 186 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val); |
| 187 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetRemove">xmlXPathNodeSetRemove</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 188 | int val); |
| 189 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathNewNodeSetList">xmlXPathNewNodeSetList</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val); |
| 190 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathWrapNodeSet">xmlXPathWrapNodeSet</a> (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val); |
| 191 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> <a href="libxml-xpathInternals.html#xmlXPathWrapExternal">xmlXPathWrapExternal</a> (void *val); |
| 192 | int <a href="libxml-xpathInternals.html#xmlXPathEqualValues">xmlXPathEqualValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 193 | int <a href="libxml-xpathInternals.html#xmlXPathNotEqualValues">xmlXPathNotEqualValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 194 | int <a href="libxml-xpathInternals.html#xmlXPathCompareValues">xmlXPathCompareValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 195 | int inf, |
| 196 | int strict); |
| 197 | void <a href="libxml-xpathInternals.html#xmlXPathValueFlipSign">xmlXPathValueFlipSign</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 198 | void <a href="libxml-xpathInternals.html#xmlXPathAddValues">xmlXPathAddValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 199 | void <a href="libxml-xpathInternals.html#xmlXPathSubValues">xmlXPathSubValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 200 | void <a href="libxml-xpathInternals.html#xmlXPathMultValues">xmlXPathMultValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 201 | void <a href="libxml-xpathInternals.html#xmlXPathDivValues">xmlXPathDivValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 202 | void <a href="libxml-xpathInternals.html#xmlXPathModValues">xmlXPathModValues</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt); |
| 203 | int <a href="libxml-xpathInternals.html#xmlXPathIsNodeType">xmlXPathIsNodeType</a> (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name); |
| 204 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextSelf">xmlXPathNextSelf</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 205 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 206 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextChild">xmlXPathNextChild</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 207 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 208 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextDescendant">xmlXPathNextDescendant</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 209 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 210 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextDescendantOrSelf">xmlXPathNextDescendantOrSelf</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 211 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 212 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextParent">xmlXPathNextParent</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 213 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 214 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextAncestorOrSelf">xmlXPathNextAncestorOrSelf</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 215 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 216 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextFollowingSibling">xmlXPathNextFollowingSibling</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 217 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 218 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextFollowing">xmlXPathNextFollowing</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 219 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 220 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextNamespace">xmlXPathNextNamespace</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 221 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 222 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextAttribute">xmlXPathNextAttribute</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 223 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 224 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextPreceding">xmlXPathNextPreceding</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 225 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 226 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextAncestor">xmlXPathNextAncestor</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 227 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 228 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> <a href="libxml-xpathInternals.html#xmlXPathNextPrecedingSibling">xmlXPathNextPrecedingSibling</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 229 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur); |
| 230 | void <a href="libxml-xpathInternals.html#xmlXPathLastFunction">xmlXPathLastFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 231 | int nargs); |
| 232 | void <a href="libxml-xpathInternals.html#xmlXPathPositionFunction">xmlXPathPositionFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 233 | int nargs); |
| 234 | void <a href="libxml-xpathInternals.html#xmlXPathCountFunction">xmlXPathCountFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 235 | int nargs); |
| 236 | void <a href="libxml-xpathInternals.html#xmlXPathIdFunction">xmlXPathIdFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 237 | int nargs); |
| 238 | void <a href="libxml-xpathInternals.html#xmlXPathLocalNameFunction">xmlXPathLocalNameFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 239 | int nargs); |
| 240 | void <a href="libxml-xpathInternals.html#xmlXPathNamespaceURIFunction">xmlXPathNamespaceURIFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 241 | int nargs); |
| 242 | void <a href="libxml-xpathInternals.html#xmlXPathStringFunction">xmlXPathStringFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 243 | int nargs); |
| 244 | void <a href="libxml-xpathInternals.html#xmlXPathStringLengthFunction">xmlXPathStringLengthFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 245 | int nargs); |
| 246 | void <a href="libxml-xpathInternals.html#xmlXPathConcatFunction">xmlXPathConcatFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 247 | int nargs); |
| 248 | void <a href="libxml-xpathInternals.html#xmlXPathContainsFunction">xmlXPathContainsFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 249 | int nargs); |
| 250 | void <a href="libxml-xpathInternals.html#xmlXPathStartsWithFunction">xmlXPathStartsWithFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 251 | int nargs); |
| 252 | void <a href="libxml-xpathInternals.html#xmlXPathSubstringFunction">xmlXPathSubstringFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 253 | int nargs); |
| 254 | void <a href="libxml-xpathInternals.html#xmlXPathSubstringBeforeFunction">xmlXPathSubstringBeforeFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 255 | int nargs); |
| 256 | void <a href="libxml-xpathInternals.html#xmlXPathSubstringAfterFunction">xmlXPathSubstringAfterFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 257 | int nargs); |
| 258 | void <a href="libxml-xpathInternals.html#xmlXPathNormalizeFunction">xmlXPathNormalizeFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 259 | int nargs); |
| 260 | void <a href="libxml-xpathInternals.html#xmlXPathTranslateFunction">xmlXPathTranslateFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 261 | int nargs); |
| 262 | void <a href="libxml-xpathInternals.html#xmlXPathNotFunction">xmlXPathNotFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 263 | int nargs); |
| 264 | void <a href="libxml-xpathInternals.html#xmlXPathTrueFunction">xmlXPathTrueFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 265 | int nargs); |
| 266 | void <a href="libxml-xpathInternals.html#xmlXPathFalseFunction">xmlXPathFalseFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 267 | int nargs); |
| 268 | void <a href="libxml-xpathInternals.html#xmlXPathLangFunction">xmlXPathLangFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 269 | int nargs); |
| 270 | void <a href="libxml-xpathInternals.html#xmlXPathNumberFunction">xmlXPathNumberFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 271 | int nargs); |
| 272 | void <a href="libxml-xpathInternals.html#xmlXPathSumFunction">xmlXPathSumFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 273 | int nargs); |
| 274 | void <a href="libxml-xpathInternals.html#xmlXPathFloorFunction">xmlXPathFloorFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 275 | int nargs); |
| 276 | void <a href="libxml-xpathInternals.html#xmlXPathCeilingFunction">xmlXPathCeilingFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 277 | int nargs); |
| 278 | void <a href="libxml-xpathInternals.html#xmlXPathRoundFunction">xmlXPathRoundFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 279 | int nargs); |
| 280 | void <a href="libxml-xpathInternals.html#xmlXPathBooleanFunction">xmlXPathBooleanFunction</a> (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 281 | int nargs); |
| 282 | void <a href="libxml-xpathInternals.html#xmlXPathNodeSetFreeNs">xmlXPathNodeSetFreeNs</a> (<a href="libxml-tree.html#xmlNsPtr">xmlNsPtr</a> ns); |
| 283 | </pre></div><div class="refsect1" lang="en"><h2>Description</h2><p> |
| 284 | |
| 285 | </p></div><div class="refsect1" lang="en"><h2>Details</h2><div class="refsect2" lang="en"><h3><a name="xmlXPathSetError"></a>xmlXPathSetError()</h3><pre class="programlisting">#define xmlXPathSetError(ctxt, err)</pre><p> |
| 286 | Raises an error.</p><p> |
| 287 | |
| 288 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 289 | </td></tr><tr><td><span class="term"><i><tt>err</tt></i> :</span></td><td> an xmlXPathError code |
| 290 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSetArityError"></a>xmlXPathSetArityError()</h3><pre class="programlisting">#define xmlXPathSetArityError(ctxt)</pre><p> |
| 291 | Raises an XPATH_INVALID_ARITY error.</p><p> |
| 292 | |
| 293 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 294 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSetTypeError"></a>xmlXPathSetTypeError()</h3><pre class="programlisting">#define xmlXPathSetTypeError(ctxt)</pre><p> |
| 295 | Raises an XPATH_INVALID_TYPE error.</p><p> |
| 296 | |
| 297 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 298 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathGetError"></a>xmlXPathGetError()</h3><pre class="programlisting">#define xmlXPathGetError(ctxt) ((ctxt)->error) |
| 299 | </pre><p> |
| 300 | Get the error code of an XPath context.</p><p> |
| 301 | |
| 302 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 303 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathCheckError"></a>xmlXPathCheckError()</h3><pre class="programlisting">#define xmlXPathCheckError(ctxt) ((ctxt)->error != XPATH_EXPRESSION_OK) |
| 304 | </pre><p> |
| 305 | Check if an XPath error was raised.</p><p> |
| 306 | |
| 307 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 308 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathGetDocument"></a>xmlXPathGetDocument()</h3><pre class="programlisting">#define xmlXPathGetDocument(ctxt) ((ctxt)->context->doc) |
| 309 | </pre><p> |
| 310 | Get the document of an XPath context.</p><p> |
| 311 | |
| 312 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 313 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathGetContextNode"></a>xmlXPathGetContextNode()</h3><pre class="programlisting">#define xmlXPathGetContextNode(ctxt) ((ctxt)->context->node) |
| 314 | </pre><p> |
| 315 | Get the context node of an XPath context.</p><p> |
| 316 | |
| 317 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 318 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathPopBoolean"></a>xmlXPathPopBoolean ()</h3><pre class="programlisting">int xmlXPathPopBoolean (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 319 | Pops a boolean from the stack, handling conversion if needed. |
| 320 | Check error with <a href="libxml-xpathInternals.html#xmlXPathCheckError">xmlXPathCheckError</a>.</p><p> |
| 321 | |
| 322 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 323 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the boolean |
| 324 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathPopNumber"></a>xmlXPathPopNumber ()</h3><pre class="programlisting"><GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="double">double</GTKDOCLINK> xmlXPathPopNumber (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 325 | Pops a number from the stack, handling conversion if needed. |
| 326 | Check error with <a href="libxml-xpathInternals.html#xmlXPathCheckError">xmlXPathCheckError</a>.</p><p> |
| 327 | |
| 328 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 329 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number |
| 330 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathPopString"></a>xmlXPathPopString ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlXPathPopString (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 331 | Pops a string from the stack, handling conversion if needed. |
| 332 | Check error with <a href="libxml-xpathInternals.html#xmlXPathCheckError">xmlXPathCheckError</a>.</p><p> |
| 333 | |
| 334 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 335 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the string |
| 336 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathPopNodeSet"></a>xmlXPathPopNodeSet ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathPopNodeSet (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 337 | Pops a node-set from the stack, handling conversion if needed. |
| 338 | Check error with <a href="libxml-xpathInternals.html#xmlXPathCheckError">xmlXPathCheckError</a>.</p><p> |
| 339 | |
| 340 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 341 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the node-set |
| 342 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathPopExternal"></a>xmlXPathPopExternal ()</h3><pre class="programlisting">void* xmlXPathPopExternal (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 343 | Pops an external object from the stack, handling conversion if needed. |
| 344 | Check error with <a href="libxml-xpathInternals.html#xmlXPathCheckError">xmlXPathCheckError</a>.</p><p> |
| 345 | |
| 346 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 347 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnBoolean"></a>xmlXPathReturnBoolean()</h3><pre class="programlisting">#define xmlXPathReturnBoolean(ctxt, val)</pre><p> |
| 348 | Pushes the boolean <i><tt>val</tt></i> on the context stack.</p><p> |
| 349 | |
| 350 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 351 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> a boolean |
| 352 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnTrue"></a>xmlXPathReturnTrue()</h3><pre class="programlisting">#define xmlXPathReturnTrue(ctxt) xmlXPathReturnBoolean((ctxt), 1) |
| 353 | </pre><p> |
| 354 | Pushes true on the context stack.</p><p> |
| 355 | |
| 356 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 357 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnFalse"></a>xmlXPathReturnFalse()</h3><pre class="programlisting">#define xmlXPathReturnFalse(ctxt) xmlXPathReturnBoolean((ctxt), 0) |
| 358 | </pre><p> |
| 359 | Pushes false on the context stack.</p><p> |
| 360 | |
| 361 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 362 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnNumber"></a>xmlXPathReturnNumber()</h3><pre class="programlisting">#define xmlXPathReturnNumber(ctxt, val)</pre><p> |
| 363 | Pushes the double <i><tt>val</tt></i> on the context stack.</p><p> |
| 364 | |
| 365 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 366 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> a double |
| 367 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnString"></a>xmlXPathReturnString()</h3><pre class="programlisting">#define xmlXPathReturnString(ctxt, str)</pre><p> |
| 368 | Pushes the string <i><tt>str</tt></i> on the context stack.</p><p> |
| 369 | |
| 370 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 371 | </td></tr><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> a string |
| 372 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnEmptyString"></a>xmlXPathReturnEmptyString()</h3><pre class="programlisting">#define xmlXPathReturnEmptyString(ctxt)</pre><p> |
| 373 | Pushes an empty string on the stack.</p><p> |
| 374 | |
| 375 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 376 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnNodeSet"></a>xmlXPathReturnNodeSet()</h3><pre class="programlisting">#define xmlXPathReturnNodeSet(ctxt, ns)</pre><p> |
| 377 | Pushes the node-set <i><tt>ns</tt></i> on the context stack.</p><p> |
| 378 | |
| 379 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 380 | </td></tr><tr><td><span class="term"><i><tt>ns</tt></i> :</span></td><td> a node-set |
| 381 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnEmptyNodeSet"></a>xmlXPathReturnEmptyNodeSet()</h3><pre class="programlisting">#define xmlXPathReturnEmptyNodeSet(ctxt)</pre><p> |
| 382 | Pushes an empty node-set on the context stack.</p><p> |
| 383 | |
| 384 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 385 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathReturnExternal"></a>xmlXPathReturnExternal()</h3><pre class="programlisting">#define xmlXPathReturnExternal(ctxt, val)</pre><p> |
| 386 | Pushes user data on the context stack.</p><p> |
| 387 | |
| 388 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 389 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> user data |
| 390 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathStackIsNodeSet"></a>xmlXPathStackIsNodeSet()</h3><pre class="programlisting">#define xmlXPathStackIsNodeSet(ctxt)</pre><p> |
| 391 | Check if the current value on the XPath stack is a node set or |
| 392 | an XSLT value tree.</p><p> |
| 393 | |
| 394 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 395 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathStackIsExternal"></a>xmlXPathStackIsExternal()</h3><pre class="programlisting">#define xmlXPathStackIsExternal(ctxt)</pre><p> |
| 396 | Checks if the current value on the XPath stack is an external |
| 397 | object.</p><p> |
| 398 | |
| 399 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath parser context |
| 400 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathEmptyNodeSet"></a>xmlXPathEmptyNodeSet()</h3><pre class="programlisting">#define xmlXPathEmptyNodeSet(ns)</pre><p> |
| 401 | Empties a node-set.</p><p> |
| 402 | |
| 403 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ns</tt></i> :</span></td><td> a node-set |
| 404 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CHECK-ERROR-CAPS"></a>CHECK_ERROR</h3><pre class="programlisting">#define CHECK_ERROR</pre><p> |
| 405 | Macro to return from the function if an XPath error was detected.</p><p> |
| 406 | |
| 407 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CHECK-ERROR0-CAPS"></a>CHECK_ERROR0</h3><pre class="programlisting">#define CHECK_ERROR0</pre><p> |
| 408 | Macro to return 0 from the function if an XPath error was detected.</p><p> |
| 409 | |
| 410 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XP-ERROR-CAPS"></a>XP_ERROR()</h3><pre class="programlisting">#define XP_ERROR(X)</pre><p> |
| 411 | Macro to raise an XPath error and return.</p><p> |
| 412 | |
| 413 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>X</tt></i> :</span></td><td> the error code |
| 414 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="XP-ERROR0-CAPS"></a>XP_ERROR0()</h3><pre class="programlisting">#define XP_ERROR0(X)</pre><p> |
| 415 | Macro to raise an XPath error and return 0.</p><p> |
| 416 | |
| 417 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>X</tt></i> :</span></td><td> the error code |
| 418 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CHECK-TYPE-CAPS"></a>CHECK_TYPE()</h3><pre class="programlisting">#define CHECK_TYPE(typeval)</pre><p> |
| 419 | Macro to check that the value on top of the XPath stack is of a given |
| 420 | type.</p><p> |
| 421 | |
| 422 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>typeval</tt></i> :</span></td><td> the XPath type |
| 423 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CHECK-TYPE0-CAPS"></a>CHECK_TYPE0()</h3><pre class="programlisting">#define CHECK_TYPE0(typeval)</pre><p> |
| 424 | Macro to check that the value on top of the XPath stack is of a given |
| 425 | type. Return(0) in case of failure</p><p> |
| 426 | |
| 427 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>typeval</tt></i> :</span></td><td> the XPath type |
| 428 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CHECK-ARITY-CAPS"></a>CHECK_ARITY()</h3><pre class="programlisting">#define CHECK_ARITY(x)</pre><p> |
| 429 | Macro to check that the number of args passed to an XPath function matches.</p><p> |
| 430 | |
| 431 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>x</tt></i> :</span></td><td> the number of expected args |
| 432 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CAST-TO-STRING-CAPS"></a>CAST_TO_STRING</h3><pre class="programlisting">#define CAST_TO_STRING</pre><p> |
| 433 | Macro to try to cast the value on the top of the XPath stack to a string.</p><p> |
| 434 | |
| 435 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CAST-TO-NUMBER-CAPS"></a>CAST_TO_NUMBER</h3><pre class="programlisting">#define CAST_TO_NUMBER</pre><p> |
| 436 | Macro to try to cast the value on the top of the XPath stack to a number.</p><p> |
| 437 | |
| 438 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="CAST-TO-BOOLEAN-CAPS"></a>CAST_TO_BOOLEAN</h3><pre class="programlisting">#define CAST_TO_BOOLEAN</pre><p> |
| 439 | Macro to try to cast the value on the top of the XPath stack to a boolean.</p><p> |
| 440 | |
| 441 | </p></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathVariableLookupFunc"></a>xmlXPathVariableLookupFunc ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> (*xmlXPathVariableLookupFunc) |
| 442 | (void *ctxt, |
| 443 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 444 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri);</pre><p> |
| 445 | Prototype for callbacks used to plug variable lookup in the XPath |
| 446 | engine.</p><p> |
| 447 | |
| 448 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath context |
| 449 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> name of the variable |
| 450 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the namespace name hosting this variable |
| 451 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the XPath object value or NULL if not found. |
| 452 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterVariableLookup"></a>xmlXPathRegisterVariableLookup ()</h3><pre class="programlisting">void xmlXPathRegisterVariableLookup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 453 | <a href="libxml-xpathInternals.html#xmlXPathVariableLookupFunc">xmlXPathVariableLookupFunc</a> f, |
| 454 | void *data);</pre><p> |
| 455 | register an external mechanism to do variable lookup</p><p> |
| 456 | |
| 457 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 458 | </td></tr><tr><td><span class="term"><i><tt>f</tt></i> :</span></td><td> the lookup function |
| 459 | </td></tr><tr><td><span class="term"><i><tt>data</tt></i> :</span></td><td> the lookup data |
| 460 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathFuncLookupFunc"></a>xmlXPathFuncLookupFunc ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> (*xmlXPathFuncLookupFunc) (void *ctxt, |
| 461 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 462 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri);</pre><p> |
| 463 | Prototype for callbacks used to plug function lookup in the XPath |
| 464 | engine.</p><p> |
| 465 | |
| 466 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath context |
| 467 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> name of the function |
| 468 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the namespace name hosting this function |
| 469 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the XPath function or NULL if not found. |
| 470 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterFuncLookup"></a>xmlXPathRegisterFuncLookup ()</h3><pre class="programlisting">void xmlXPathRegisterFuncLookup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 471 | <a href="libxml-xpathInternals.html#xmlXPathFuncLookupFunc">xmlXPathFuncLookupFunc</a> f, |
| 472 | void *funcCtxt);</pre><p> |
| 473 | Registers an external mechanism to do function lookup.</p><p> |
| 474 | |
| 475 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 476 | </td></tr><tr><td><span class="term"><i><tt>f</tt></i> :</span></td><td> the lookup function |
| 477 | </td></tr><tr><td><span class="term"><i><tt>funcCtxt</tt></i> :</span></td><td> the lookup data |
| 478 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPatherror"></a>xmlXPatherror ()</h3><pre class="programlisting">void xmlXPatherror (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 479 | const char *file, |
| 480 | int line, |
| 481 | int no);</pre><p> |
| 482 | Formats an error message.</p><p> |
| 483 | |
| 484 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 485 | </td></tr><tr><td><span class="term"><i><tt>file</tt></i> :</span></td><td> the file name |
| 486 | </td></tr><tr><td><span class="term"><i><tt>line</tt></i> :</span></td><td> the line number |
| 487 | </td></tr><tr><td><span class="term"><i><tt>no</tt></i> :</span></td><td> the error number |
| 488 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathDebugDumpObject"></a>xmlXPathDebugDumpObject ()</h3><pre class="programlisting">void xmlXPathDebugDumpObject (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 489 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> cur, |
| 490 | int depth);</pre><p> |
| 491 | Dump the content of the object for debugging purposes</p><p> |
| 492 | |
| 493 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * to dump the output |
| 494 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the object to inspect |
| 495 | </td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> indentation level |
| 496 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathDebugDumpCompExpr"></a>xmlXPathDebugDumpCompExpr ()</h3><pre class="programlisting">void xmlXPathDebugDumpCompExpr (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="FILE-CAPS">FILE</GTKDOCLINK> *output, |
| 497 | <a href="libxml-xpath.html#xmlXPathCompExprPtr">xmlXPathCompExprPtr</a> comp, |
| 498 | int depth);</pre><p> |
| 499 | Dumps the tree of the compiled XPath expression.</p><p> |
| 500 | |
| 501 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>output</tt></i> :</span></td><td> the FILE * for the output |
| 502 | </td></tr><tr><td><span class="term"><i><tt>comp</tt></i> :</span></td><td> the precompiled XPath expression |
| 503 | </td></tr><tr><td><span class="term"><i><tt>depth</tt></i> :</span></td><td> the indentation level. |
| 504 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetContains"></a>xmlXPathNodeSetContains ()</h3><pre class="programlisting">int xmlXPathNodeSetContains (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 505 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val);</pre><p> |
| 506 | checks whether <i><tt>cur</tt></i> contains <i><tt>val</tt></i></p><p> |
| 507 | |
| 508 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the node-set |
| 509 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the node |
| 510 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>true (1) if <i><tt>cur</tt></i> contains <i><tt>val</tt></i>, false (0) otherwise |
| 511 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathDifference"></a>xmlXPathDifference ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathDifference (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 512 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 513 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="difference">difference</GTKDOCLINK>() function: |
| 514 | node-set set:difference (node-set, node-set)</p><p> |
| 515 | |
| 516 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set |
| 517 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set |
| 518 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the difference between the two node sets, or nodes1 if |
| 519 | nodes2 is empty |
| 520 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathIntersection"></a>xmlXPathIntersection ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathIntersection (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 521 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 522 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="intersection">intersection</GTKDOCLINK>() function: |
| 523 | node-set set:intersection (node-set, node-set)</p><p> |
| 524 | |
| 525 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set |
| 526 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set |
| 527 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a node set comprising the nodes that are within both the |
| 528 | node sets passed as arguments |
| 529 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathDistinctSorted"></a>xmlXPathDistinctSorted ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathDistinctSorted (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes);</pre><p> |
| 530 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="distinct">distinct</GTKDOCLINK>() function: |
| 531 | node-set set:distinct (node-set)</p><p> |
| 532 | |
| 533 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes</tt></i> :</span></td><td> a node-set, sorted by document order |
| 534 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a subset of the nodes contained in <i><tt>nodes</tt></i>, or <i><tt>nodes</tt></i> if |
| 535 | it is empty |
| 536 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathDistinct"></a>xmlXPathDistinct ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathDistinct (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes);</pre><p> |
| 537 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="distinct">distinct</GTKDOCLINK>() function: |
| 538 | node-set set:distinct (node-set) |
| 539 | <i><tt>nodes</tt></i> is sorted by document order, then <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="exslSetsDistinctSorted">exslSetsDistinctSorted</GTKDOCLINK> |
| 540 | is called with the sorted node-set</p><p> |
| 541 | |
| 542 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes</tt></i> :</span></td><td> a node-set |
| 543 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a subset of the nodes contained in <i><tt>nodes</tt></i>, or <i><tt>nodes</tt></i> if |
| 544 | it is empty |
| 545 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathHasSameNodes"></a>xmlXPathHasSameNodes ()</h3><pre class="programlisting">int xmlXPathHasSameNodes (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 546 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 547 | Implements the EXSLT - Sets has-same-nodes function: |
| 548 | boolean set:has-same-node(node-set, node-set)</p><p> |
| 549 | |
| 550 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set |
| 551 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set |
| 552 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>true (1) if <i><tt>nodes1</tt></i> shares any node with <i><tt>nodes2</tt></i>, false (0) |
| 553 | otherwise |
| 554 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeLeadingSorted"></a>xmlXPathNodeLeadingSorted ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathNodeLeadingSorted (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 555 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 556 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="leading">leading</GTKDOCLINK>() function: |
| 557 | node-set set:leading (node-set, node-set)</p><p> |
| 558 | |
| 559 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes</tt></i> :</span></td><td> a node-set, sorted by document order |
| 560 | </td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node |
| 561 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes</tt></i> that precede <i><tt>node</tt></i> in document order, |
| 562 | <i><tt>nodes</tt></i> if <i><tt>node</tt></i> is NULL or an empty node-set if <i><tt>nodes</tt></i> |
| 563 | doesn't contain <i><tt>node</tt></i> |
| 564 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathLeadingSorted"></a>xmlXPathLeadingSorted ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathLeadingSorted (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 565 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 566 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="leading">leading</GTKDOCLINK>() function: |
| 567 | node-set set:leading (node-set, node-set)</p><p> |
| 568 | |
| 569 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set, sorted by document order |
| 570 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set, sorted by document order |
| 571 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes1</tt></i> that precede the first node in <i><tt>nodes2</tt></i> |
| 572 | in document order, <i><tt>nodes1</tt></i> if <i><tt>nodes2</tt></i> is NULL or empty or |
| 573 | an empty node-set if <i><tt>nodes1</tt></i> doesn't contain <i><tt>nodes2</tt></i> |
| 574 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeLeading"></a>xmlXPathNodeLeading ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathNodeLeading (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 575 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 576 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="leading">leading</GTKDOCLINK>() function: |
| 577 | node-set set:leading (node-set, node-set) |
| 578 | <i><tt>nodes</tt></i> is sorted by document order, then <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="exslSetsNodeLeadingSorted">exslSetsNodeLeadingSorted</GTKDOCLINK> |
| 579 | is called.</p><p> |
| 580 | |
| 581 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes</tt></i> :</span></td><td> a node-set |
| 582 | </td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node |
| 583 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes</tt></i> that precede <i><tt>node</tt></i> in document order, |
| 584 | <i><tt>nodes</tt></i> if <i><tt>node</tt></i> is NULL or an empty node-set if <i><tt>nodes</tt></i> |
| 585 | doesn't contain <i><tt>node</tt></i> |
| 586 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathLeading"></a>xmlXPathLeading ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathLeading (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 587 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 588 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="leading">leading</GTKDOCLINK>() function: |
| 589 | node-set set:leading (node-set, node-set) |
| 590 | <i><tt>nodes1</tt></i> and <i><tt>nodes2</tt></i> are sorted by document order, then |
| 591 | <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="exslSetsLeadingSorted">exslSetsLeadingSorted</GTKDOCLINK> is called.</p><p> |
| 592 | |
| 593 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set |
| 594 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set |
| 595 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes1</tt></i> that precede the first node in <i><tt>nodes2</tt></i> |
| 596 | in document order, <i><tt>nodes1</tt></i> if <i><tt>nodes2</tt></i> is NULL or empty or |
| 597 | an empty node-set if <i><tt>nodes1</tt></i> doesn't contain <i><tt>nodes2</tt></i> |
| 598 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeTrailingSorted"></a>xmlXPathNodeTrailingSorted ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathNodeTrailingSorted (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 599 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 600 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="trailing">trailing</GTKDOCLINK>() function: |
| 601 | node-set set:trailing (node-set, node-set)</p><p> |
| 602 | |
| 603 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes</tt></i> :</span></td><td> a node-set, sorted by document order |
| 604 | </td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node |
| 605 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes</tt></i> that follow <i><tt>node</tt></i> in document order, |
| 606 | <i><tt>nodes</tt></i> if <i><tt>node</tt></i> is NULL or an empty node-set if <i><tt>nodes</tt></i> |
| 607 | doesn't contain <i><tt>node</tt></i> |
| 608 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathTrailingSorted"></a>xmlXPathTrailingSorted ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathTrailingSorted (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 609 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 610 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="trailing">trailing</GTKDOCLINK>() function: |
| 611 | node-set set:trailing (node-set, node-set)</p><p> |
| 612 | |
| 613 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set, sorted by document order |
| 614 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set, sorted by document order |
| 615 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes1</tt></i> that follow the first node in <i><tt>nodes2</tt></i> |
| 616 | in document order, <i><tt>nodes1</tt></i> if <i><tt>nodes2</tt></i> is NULL or empty or |
| 617 | an empty node-set if <i><tt>nodes1</tt></i> doesn't contain <i><tt>nodes2</tt></i> |
| 618 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeTrailing"></a>xmlXPathNodeTrailing ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathNodeTrailing (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes, |
| 619 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node);</pre><p> |
| 620 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="trailing">trailing</GTKDOCLINK>() function: |
| 621 | node-set set:trailing (node-set, node-set) |
| 622 | <i><tt>nodes</tt></i> is sorted by document order, then <a href="libxml-xpathInternals.html#xmlXPathNodeTrailingSorted">xmlXPathNodeTrailingSorted</a> |
| 623 | is called.</p><p> |
| 624 | |
| 625 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes</tt></i> :</span></td><td> a node-set |
| 626 | </td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> a node |
| 627 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes</tt></i> that follow <i><tt>node</tt></i> in document order, |
| 628 | <i><tt>nodes</tt></i> if <i><tt>node</tt></i> is NULL or an empty node-set if <i><tt>nodes</tt></i> |
| 629 | doesn't contain <i><tt>node</tt></i> |
| 630 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathTrailing"></a>xmlXPathTrailing ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathTrailing (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes1, |
| 631 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> nodes2);</pre><p> |
| 632 | Implements the EXSLT - Sets <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="trailing">trailing</GTKDOCLINK>() function: |
| 633 | node-set set:trailing (node-set, node-set) |
| 634 | <i><tt>nodes1</tt></i> and <i><tt>nodes2</tt></i> are sorted by document order, then |
| 635 | <a href="libxml-xpathInternals.html#xmlXPathTrailingSorted">xmlXPathTrailingSorted</a> is called.</p><p> |
| 636 | |
| 637 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>nodes1</tt></i> :</span></td><td> a node-set |
| 638 | </td></tr><tr><td><span class="term"><i><tt>nodes2</tt></i> :</span></td><td> a node-set |
| 639 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the nodes in <i><tt>nodes1</tt></i> that follow the first node in <i><tt>nodes2</tt></i> |
| 640 | in document order, <i><tt>nodes1</tt></i> if <i><tt>nodes2</tt></i> is NULL or empty or |
| 641 | an empty node-set if <i><tt>nodes1</tt></i> doesn't contain <i><tt>nodes2</tt></i> |
| 642 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterNs"></a>xmlXPathRegisterNs ()</h3><pre class="programlisting">int xmlXPathRegisterNs (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 643 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix, |
| 644 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri);</pre><p> |
| 645 | Register a new namespace. If <i><tt>ns_uri</tt></i> is NULL it unregisters |
| 646 | the namespace</p><p> |
| 647 | |
| 648 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 649 | </td></tr><tr><td><span class="term"><i><tt>prefix</tt></i> :</span></td><td> the namespace prefix |
| 650 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the namespace name |
| 651 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error |
| 652 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNsLookup"></a>xmlXPathNsLookup ()</h3><pre class="programlisting">const <a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlXPathNsLookup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 653 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *prefix);</pre><p> |
| 654 | Search in the namespace declaration array of the context for the given |
| 655 | namespace name associated to the given prefix</p><p> |
| 656 | |
| 657 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 658 | </td></tr><tr><td><span class="term"><i><tt>prefix</tt></i> :</span></td><td> the namespace prefix value |
| 659 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the value or NULL if not found |
| 660 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisteredNsCleanup"></a>xmlXPathRegisteredNsCleanup ()</h3><pre class="programlisting">void xmlXPathRegisteredNsCleanup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt);</pre><p> |
| 661 | Cleanup the XPath context data associated to registered variables</p><p> |
| 662 | |
| 663 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 664 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterFunc"></a>xmlXPathRegisterFunc ()</h3><pre class="programlisting">int xmlXPathRegisterFunc (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 665 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 666 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> f);</pre><p> |
| 667 | Register a new function. If <i><tt>f</tt></i> is NULL it unregisters the function</p><p> |
| 668 | |
| 669 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 670 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the function name |
| 671 | </td></tr><tr><td><span class="term"><i><tt>f</tt></i> :</span></td><td> the function implementation or NULL |
| 672 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error |
| 673 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterFuncNS"></a>xmlXPathRegisterFuncNS ()</h3><pre class="programlisting">int xmlXPathRegisterFuncNS (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 674 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 675 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri, |
| 676 | <a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> f);</pre><p> |
| 677 | Register a new function. If <i><tt>f</tt></i> is NULL it unregisters the function</p><p> |
| 678 | |
| 679 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 680 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the function name |
| 681 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the function namespace URI |
| 682 | </td></tr><tr><td><span class="term"><i><tt>f</tt></i> :</span></td><td> the function implementation or NULL |
| 683 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error |
| 684 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterVariable"></a>xmlXPathRegisterVariable ()</h3><pre class="programlisting">int xmlXPathRegisterVariable (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 685 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 686 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value);</pre><p> |
| 687 | Register a new variable value. If <i><tt>value</tt></i> is NULL it unregisters |
| 688 | the variable</p><p> |
| 689 | |
| 690 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 691 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the variable name |
| 692 | </td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> the variable value or NULL |
| 693 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error |
| 694 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterVariableNS"></a>xmlXPathRegisterVariableNS ()</h3><pre class="programlisting">int xmlXPathRegisterVariableNS (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 695 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 696 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri, |
| 697 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value);</pre><p> |
| 698 | Register a new variable value. If <i><tt>value</tt></i> is NULL it unregisters |
| 699 | the variable</p><p> |
| 700 | |
| 701 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 702 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the variable name |
| 703 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the variable namespace URI |
| 704 | </td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> the variable value or NULL |
| 705 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 in case of success, -1 in case of error |
| 706 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathFunctionLookup"></a>xmlXPathFunctionLookup ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> xmlXPathFunctionLookup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 707 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p> |
| 708 | Search in the Function array of the context for the given |
| 709 | function.</p><p> |
| 710 | |
| 711 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 712 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the function name |
| 713 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlXPathFunction or NULL if not found |
| 714 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathFunctionLookupNS"></a>xmlXPathFunctionLookupNS ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathFunction">xmlXPathFunction</a> xmlXPathFunctionLookupNS (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 715 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 716 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri);</pre><p> |
| 717 | Search in the Function array of the context for the given |
| 718 | function.</p><p> |
| 719 | |
| 720 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 721 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the function name |
| 722 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the function namespace URI |
| 723 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlXPathFunction or NULL if not found |
| 724 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisteredFuncsCleanup"></a>xmlXPathRegisteredFuncsCleanup ()</h3><pre class="programlisting">void xmlXPathRegisteredFuncsCleanup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt);</pre><p> |
| 725 | Cleanup the XPath context data associated to registered functions</p><p> |
| 726 | |
| 727 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 728 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathVariableLookup"></a>xmlXPathVariableLookup ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathVariableLookup (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 729 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p> |
| 730 | Search in the Variable array of the context for the given |
| 731 | variable value.</p><p> |
| 732 | |
| 733 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 734 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the variable name |
| 735 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>a copy of the value or NULL if not found |
| 736 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathVariableLookupNS"></a>xmlXPathVariableLookupNS ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathVariableLookupNS (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt, |
| 737 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name, |
| 738 | const <a href="libxml-tree.html#xmlChar">xmlChar</a> *ns_uri);</pre><p> |
| 739 | Search in the Variable array of the context for the given |
| 740 | variable value.</p><p> |
| 741 | |
| 742 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 743 | </td></tr><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> the variable name |
| 744 | </td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i> :</span></td><td> the variable namespace URI |
| 745 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the a copy of the value or NULL if not found |
| 746 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisteredVariablesCleanup"></a>xmlXPathRegisteredVariablesCleanup ()</h3><pre class="programlisting">void xmlXPathRegisteredVariablesCleanup |
| 747 | (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt);</pre><p> |
| 748 | Cleanup the XPath context data associated to registered variables</p><p> |
| 749 | |
| 750 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 751 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewParserContext"></a>xmlXPathNewParserContext ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> xmlXPathNewParserContext |
| 752 | (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str, |
| 753 | <a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt);</pre><p> |
| 754 | Create a new xmlXPathParserContext</p><p> |
| 755 | |
| 756 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> the XPath expression |
| 757 | </td></tr><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 758 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the xmlXPathParserContext just allocated. |
| 759 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathFreeParserContext"></a>xmlXPathFreeParserContext ()</h3><pre class="programlisting">void xmlXPathFreeParserContext (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 760 | Free up an xmlXPathParserContext</p><p> |
| 761 | |
| 762 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the context to free |
| 763 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="valuePop"></a>valuePop ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> valuePop (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 764 | Pops the top XPath object from the value stack</p><p> |
| 765 | |
| 766 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath evaluation context |
| 767 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the XPath object just removed |
| 768 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="valuePush"></a>valuePush ()</h3><pre class="programlisting">int valuePush (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 769 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> value);</pre><p> |
| 770 | Pushes a new XPath object on top of the value stack</p><p> |
| 771 | |
| 772 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> an XPath evaluation context |
| 773 | </td></tr><tr><td><span class="term"><i><tt>value</tt></i> :</span></td><td> the XPath object |
| 774 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the number of items on the value stack |
| 775 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewString"></a>xmlXPathNewString ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewString (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *val);</pre><p> |
| 776 | Create a new xmlXPathObjectPtr of type string and of value <i><tt>val</tt></i></p><p> |
| 777 | |
| 778 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the xmlChar * value |
| 779 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 780 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewCString"></a>xmlXPathNewCString ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewCString (const char *val);</pre><p> |
| 781 | Create a new xmlXPathObjectPtr of type string and of value <i><tt>val</tt></i></p><p> |
| 782 | |
| 783 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the char * value |
| 784 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 785 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathWrapString"></a>xmlXPathWrapString ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathWrapString (<a href="libxml-tree.html#xmlChar">xmlChar</a> *val);</pre><p> |
| 786 | Wraps the <i><tt>val</tt></i> string into an XPath object.</p><p> |
| 787 | |
| 788 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the xmlChar * value |
| 789 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 790 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathWrapCString"></a>xmlXPathWrapCString ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathWrapCString (char *val);</pre><p> |
| 791 | Wraps a string into an XPath object.</p><p> |
| 792 | |
| 793 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the char * value |
| 794 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 795 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewFloat"></a>xmlXPathNewFloat ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewFloat (<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="double">double</GTKDOCLINK> val);</pre><p> |
| 796 | Create a new xmlXPathObjectPtr of type double and of value <i><tt>val</tt></i></p><p> |
| 797 | |
| 798 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the double value |
| 799 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 800 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewBoolean"></a>xmlXPathNewBoolean ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewBoolean (int val);</pre><p> |
| 801 | Create a new xmlXPathObjectPtr of type boolean and of value <i><tt>val</tt></i></p><p> |
| 802 | |
| 803 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the boolean value |
| 804 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 805 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewNodeSet"></a>xmlXPathNewNodeSet ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewNodeSet (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val);</pre><p> |
| 806 | Create a new xmlXPathObjectPtr of type NodeSet and initialize |
| 807 | it with the single Node <i><tt>val</tt></i></p><p> |
| 808 | |
| 809 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the NodePtr value |
| 810 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 811 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewValueTree"></a>xmlXPathNewValueTree ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewValueTree (<a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val);</pre><p> |
| 812 | Create a new xmlXPathObjectPtr of type Value Tree (XSLT) and initialize |
| 813 | it with the tree root <i><tt>val</tt></i></p><p> |
| 814 | |
| 815 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the NodePtr value |
| 816 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 817 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetAdd"></a>xmlXPathNodeSetAdd ()</h3><pre class="programlisting">void xmlXPathNodeSetAdd (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 818 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val);</pre><p> |
| 819 | add a new xmlNodePtr to an existing NodeSet</p><p> |
| 820 | |
| 821 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the initial node set |
| 822 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> a new xmlNodePtr |
| 823 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetAddUnique"></a>xmlXPathNodeSetAddUnique ()</h3><pre class="programlisting">void xmlXPathNodeSetAddUnique (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 824 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val);</pre><p> |
| 825 | add a new xmlNodePtr to an existing NodeSet, optimized version |
| 826 | when we are sure the node is not already in the set.</p><p> |
| 827 | |
| 828 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the initial node set |
| 829 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> a new xmlNodePtr |
| 830 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetAddNs"></a>xmlXPathNodeSetAddNs ()</h3><pre class="programlisting">void xmlXPathNodeSetAddNs (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 831 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> node, |
| 832 | <a href="libxml-tree.html#xmlNsPtr">xmlNsPtr</a> ns);</pre><p> |
| 833 | add a new namespace node to an existing NodeSet</p><p> |
| 834 | |
| 835 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the initial node set |
| 836 | </td></tr><tr><td><span class="term"><i><tt>node</tt></i> :</span></td><td> the hosting node |
| 837 | </td></tr><tr><td><span class="term"><i><tt>ns</tt></i> :</span></td><td> a the namespace node |
| 838 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetSort"></a>xmlXPathNodeSetSort ()</h3><pre class="programlisting">void xmlXPathNodeSetSort (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> set);</pre><p> |
| 839 | Sort the node set in document order</p><p> |
| 840 | |
| 841 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>set</tt></i> :</span></td><td> the node set |
| 842 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRoot"></a>xmlXPathRoot ()</h3><pre class="programlisting">void xmlXPathRoot (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 843 | Initialize the context to the root of the document</p><p> |
| 844 | |
| 845 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 846 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathEvalExpr"></a>xmlXPathEvalExpr ()</h3><pre class="programlisting">void xmlXPathEvalExpr (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 847 | Parse and evaluate an XPath expression in the given context, |
| 848 | then push the result on the context stack</p><p> |
| 849 | |
| 850 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 851 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathParseName"></a>xmlXPathParseName ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlXPathParseName (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 852 | parse an XML name |
| 853 | </p><p> |
| 854 | [4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' | |
| 855 | CombiningChar | Extender |
| 856 | </p><p> |
| 857 | [5] Name ::= (Letter | '_' | ':') (NameChar)*</p><p> |
| 858 | |
| 859 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 860 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the namespace name or NULL |
| 861 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathParseNCName"></a>xmlXPathParseNCName ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlChar">xmlChar</a>* xmlXPathParseNCName (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 862 | parse an XML namespace non qualified name. |
| 863 | </p><p> |
| 864 | [NS 3] NCName ::= (Letter | '_') (NCNameChar)* |
| 865 | </p><p> |
| 866 | [NS 4] NCNameChar ::= Letter | Digit | '.' | '-' | '_' | |
| 867 | CombiningChar | Extender</p><p> |
| 868 | |
| 869 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 870 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the namespace name or NULL |
| 871 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathStringEvalNumber"></a>xmlXPathStringEvalNumber ()</h3><pre class="programlisting"><GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="double">double</GTKDOCLINK> xmlXPathStringEvalNumber (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *str);</pre><p> |
| 872 | [30a] Float ::= Number ('e' Digits?)? |
| 873 | </p><p> |
| 874 | [30] Number ::= Digits ('.' Digits?)? |
| 875 | | '.' Digits |
| 876 | [31] Digits ::= [0-9]+ |
| 877 | </p><p> |
| 878 | Compile a Number in the string |
| 879 | In complement of the Number expression, this function also handles |
| 880 | negative values : '-' Number.</p><p> |
| 881 | |
| 882 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>str</tt></i> :</span></td><td> A string to scan |
| 883 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the double value. |
| 884 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathEvaluatePredicateResult"></a>xmlXPathEvaluatePredicateResult ()</h3><pre class="programlisting">int xmlXPathEvaluatePredicateResult (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 885 | <a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> res);</pre><p> |
| 886 | Evaluate a predicate result for the current node. |
| 887 | A PredicateExpr is evaluated by evaluating the Expr and converting |
| 888 | the result to a boolean. If the result is a number, the result will |
| 889 | be converted to true if the number is equal to the position of the |
| 890 | context node in the context node list (as returned by the position |
| 891 | function) and will be converted to false otherwise; if the result |
| 892 | is not a number, then the result will be converted as if by a call |
| 893 | to the boolean function.</p><p> |
| 894 | |
| 895 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 896 | </td></tr><tr><td><span class="term"><i><tt>res</tt></i> :</span></td><td> the Predicate Expression evaluation result |
| 897 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if predicate is true, 0 otherwise |
| 898 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRegisterAllFunctions"></a>xmlXPathRegisterAllFunctions ()</h3><pre class="programlisting">void xmlXPathRegisterAllFunctions (<a href="libxml-xpath.html#xmlXPathContextPtr">xmlXPathContextPtr</a> ctxt);</pre><p> |
| 899 | Registers all default XPath functions in this context</p><p> |
| 900 | |
| 901 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath context |
| 902 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetMerge"></a>xmlXPathNodeSetMerge ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> xmlXPathNodeSetMerge (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val1, |
| 903 | <a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val2);</pre><p> |
| 904 | Merges two nodesets, all nodes from <i><tt>val2</tt></i> are added to <i><tt>val1</tt></i> |
| 905 | if <i><tt>val1</tt></i> is NULL, a new set is created and copied from <i><tt>val2</tt></i></p><p> |
| 906 | |
| 907 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val1</tt></i> :</span></td><td> the first NodeSet or NULL |
| 908 | </td></tr><tr><td><span class="term"><i><tt>val2</tt></i> :</span></td><td> the second NodeSet |
| 909 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td><i><tt>val1</tt></i> once extended or NULL in case of error. |
| 910 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetDel"></a>xmlXPathNodeSetDel ()</h3><pre class="programlisting">void xmlXPathNodeSetDel (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 911 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> val);</pre><p> |
| 912 | Removes an xmlNodePtr from an existing NodeSet</p><p> |
| 913 | |
| 914 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the initial node set |
| 915 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> an xmlNodePtr |
| 916 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetRemove"></a>xmlXPathNodeSetRemove ()</h3><pre class="programlisting">void xmlXPathNodeSetRemove (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> cur, |
| 917 | int val);</pre><p> |
| 918 | Removes an entry from an existing NodeSet list.</p><p> |
| 919 | |
| 920 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the initial node set |
| 921 | </td></tr><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the index to remove |
| 922 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNewNodeSetList"></a>xmlXPathNewNodeSetList ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathNewNodeSetList (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val);</pre><p> |
| 923 | Create a new xmlXPathObjectPtr of type NodeSet and initialize |
| 924 | it with the Nodeset <i><tt>val</tt></i></p><p> |
| 925 | |
| 926 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> an existing NodeSet |
| 927 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 928 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathWrapNodeSet"></a>xmlXPathWrapNodeSet ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathWrapNodeSet (<a href="libxml-xpath.html#xmlNodeSetPtr">xmlNodeSetPtr</a> val);</pre><p> |
| 929 | Wrap the Nodeset <i><tt>val</tt></i> in a new xmlXPathObjectPtr</p><p> |
| 930 | |
| 931 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the NodePtr value |
| 932 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 933 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathWrapExternal"></a>xmlXPathWrapExternal ()</h3><pre class="programlisting"><a href="libxml-xpath.html#xmlXPathObjectPtr">xmlXPathObjectPtr</a> xmlXPathWrapExternal (void *val);</pre><p> |
| 934 | Wraps the <i><tt>val</tt></i> data into an XPath object.</p><p> |
| 935 | |
| 936 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>val</tt></i> :</span></td><td> the user data |
| 937 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the newly created object. |
| 938 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathEqualValues"></a>xmlXPathEqualValues ()</h3><pre class="programlisting">int xmlXPathEqualValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 939 | Implement the equal operation on XPath objects content: <i><tt>arg1</tt></i> == <i><tt>arg2</tt></i></p><p> |
| 940 | |
| 941 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 942 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or 1 depending on the results of the test. |
| 943 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNotEqualValues"></a>xmlXPathNotEqualValues ()</h3><pre class="programlisting">int xmlXPathNotEqualValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 944 | Implement the equal operation on XPath objects content: <i><tt>arg1</tt></i> == <i><tt>arg2</tt></i></p><p> |
| 945 | |
| 946 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 947 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>0 or 1 depending on the results of the test. |
| 948 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathCompareValues"></a>xmlXPathCompareValues ()</h3><pre class="programlisting">int xmlXPathCompareValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 949 | int inf, |
| 950 | int strict);</pre><p> |
| 951 | Implement the compare operation on XPath objects: |
| 952 | <i><tt>arg1</tt></i> < <i><tt>arg2</tt></i> (1, 1, ... |
| 953 | <i><tt>arg1</tt></i> <= <i><tt>arg2</tt></i> (1, 0, ... |
| 954 | <i><tt>arg1</tt></i> > <i><tt>arg2</tt></i> (0, 1, ... |
| 955 | <i><tt>arg1</tt></i> >= <i><tt>arg2</tt></i> (0, 0, ... |
| 956 | </p><p> |
| 957 | When neither object to be compared is a node-set and the operator is |
| 958 | <=, <, >=, >, then the objects are compared by converted both objects |
| 959 | to numbers and comparing the numbers according to IEEE 754. The < |
| 960 | comparison will be true if and only if the first number is less than the |
| 961 | second number. The <= comparison will be true if and only if the first |
| 962 | number is less than or equal to the second number. The > comparison |
| 963 | will be true if and only if the first number is greater than the second |
| 964 | number. The >= comparison will be true if and only if the first number |
| 965 | is greater than or equal to the second number.</p><p> |
| 966 | |
| 967 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 968 | </td></tr><tr><td><span class="term"><i><tt>inf</tt></i> :</span></td><td> less than (1) or greater than (0) |
| 969 | </td></tr><tr><td><span class="term"><i><tt>strict</tt></i> :</span></td><td> is the comparison strict |
| 970 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if the comparison succeeded, 0 if it failed |
| 971 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathValueFlipSign"></a>xmlXPathValueFlipSign ()</h3><pre class="programlisting">void xmlXPathValueFlipSign (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 972 | Implement the unary - operation on an XPath object |
| 973 | The numeric operators convert their operands to numbers as if |
| 974 | by calling the number function.</p><p> |
| 975 | |
| 976 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 977 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathAddValues"></a>xmlXPathAddValues ()</h3><pre class="programlisting">void xmlXPathAddValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 978 | Implement the add operation on XPath objects: |
| 979 | The numeric operators convert their operands to numbers as if |
| 980 | by calling the number function.</p><p> |
| 981 | |
| 982 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 983 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSubValues"></a>xmlXPathSubValues ()</h3><pre class="programlisting">void xmlXPathSubValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 984 | Implement the subtraction operation on XPath objects: |
| 985 | The numeric operators convert their operands to numbers as if |
| 986 | by calling the number function.</p><p> |
| 987 | |
| 988 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 989 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathMultValues"></a>xmlXPathMultValues ()</h3><pre class="programlisting">void xmlXPathMultValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 990 | Implement the multiply operation on XPath objects: |
| 991 | The numeric operators convert their operands to numbers as if |
| 992 | by calling the number function.</p><p> |
| 993 | |
| 994 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 995 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathDivValues"></a>xmlXPathDivValues ()</h3><pre class="programlisting">void xmlXPathDivValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 996 | Implement the div operation on XPath objects <i><tt>arg1</tt></i> / <i><tt>arg2</tt></i>: |
| 997 | The numeric operators convert their operands to numbers as if |
| 998 | by calling the number function.</p><p> |
| 999 | |
| 1000 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1001 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathModValues"></a>xmlXPathModValues ()</h3><pre class="programlisting">void xmlXPathModValues (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt);</pre><p> |
| 1002 | Implement the mod operation on XPath objects: <i><tt>arg1</tt></i> / <i><tt>arg2</tt></i> |
| 1003 | The numeric operators convert their operands to numbers as if |
| 1004 | by calling the number function.</p><p> |
| 1005 | |
| 1006 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1007 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathIsNodeType"></a>xmlXPathIsNodeType ()</h3><pre class="programlisting">int xmlXPathIsNodeType (const <a href="libxml-tree.html#xmlChar">xmlChar</a> *name);</pre><p> |
| 1008 | Is the name given a NodeType one. |
| 1009 | </p><p> |
| 1010 | [38] NodeType ::= 'comment' |
| 1011 | | 'text' |
| 1012 | | 'processing-instruction' |
| 1013 | | 'node'</p><p> |
| 1014 | |
| 1015 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>name</tt></i> :</span></td><td> a name string |
| 1016 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>1 if true 0 otherwise |
| 1017 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextSelf"></a>xmlXPathNextSelf ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextSelf (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1018 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1019 | Traversal function for the "self" direction |
| 1020 | The self axis contains just the context node itself</p><p> |
| 1021 | |
| 1022 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1023 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1024 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1025 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextChild"></a>xmlXPathNextChild ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextChild (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1026 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1027 | Traversal function for the "child" direction |
| 1028 | The child axis contains the children of the context node in document order.</p><p> |
| 1029 | |
| 1030 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1031 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1032 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1033 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextDescendant"></a>xmlXPathNextDescendant ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextDescendant (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1034 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1035 | Traversal function for the "descendant" direction |
| 1036 | the descendant axis contains the descendants of the context node in document |
| 1037 | order; a descendant is a child or a child of a child and so on.</p><p> |
| 1038 | |
| 1039 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1040 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1041 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1042 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextDescendantOrSelf"></a>xmlXPathNextDescendantOrSelf ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextDescendantOrSelf (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1043 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1044 | Traversal function for the "descendant-or-self" direction |
| 1045 | the descendant-or-self axis contains the context node and the descendants |
| 1046 | of the context node in document order; thus the context node is the first |
| 1047 | node on the axis, and the first child of the context node is the second node |
| 1048 | on the axis</p><p> |
| 1049 | |
| 1050 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1051 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1052 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1053 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextParent"></a>xmlXPathNextParent ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextParent (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1054 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1055 | Traversal function for the "parent" direction |
| 1056 | The parent axis contains the parent of the context node, if there is one.</p><p> |
| 1057 | |
| 1058 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1059 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1060 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1061 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextAncestorOrSelf"></a>xmlXPathNextAncestorOrSelf ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextAncestorOrSelf (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1062 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1063 | Traversal function for the "ancestor-or-self" direction |
| 1064 | he ancestor-or-self axis contains the context node and ancestors of |
| 1065 | the context node in reverse document order; thus the context node is |
| 1066 | the first node on the axis, and the context node's parent the second; |
| 1067 | parent here is defined the same as with the parent axis.</p><p> |
| 1068 | |
| 1069 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1070 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1071 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1072 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextFollowingSibling"></a>xmlXPathNextFollowingSibling ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextFollowingSibling (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1073 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1074 | Traversal function for the "following-sibling" direction |
| 1075 | The following-sibling axis contains the following siblings of the context |
| 1076 | node in document order.</p><p> |
| 1077 | |
| 1078 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1079 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1080 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1081 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextFollowing"></a>xmlXPathNextFollowing ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextFollowing (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1082 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1083 | Traversal function for the "following" direction |
| 1084 | The following axis contains all nodes in the same document as the context |
| 1085 | node that are after the context node in document order, excluding any |
| 1086 | descendants and excluding attribute nodes and namespace nodes; the nodes |
| 1087 | are ordered in document order</p><p> |
| 1088 | |
| 1089 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1090 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1091 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1092 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextNamespace"></a>xmlXPathNextNamespace ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextNamespace (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1093 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1094 | Traversal function for the "namespace" direction |
| 1095 | the namespace axis contains the namespace nodes of the context node; |
| 1096 | the order of nodes on this axis is implementation-defined; the axis will |
| 1097 | be empty unless the context node is an element |
| 1098 | </p><p> |
| 1099 | We keep the XML namespace node at the end of the list.</p><p> |
| 1100 | |
| 1101 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1102 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current attribute in the traversal |
| 1103 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1104 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextAttribute"></a>xmlXPathNextAttribute ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextAttribute (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1105 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1106 | Traversal function for the "attribute" direction |
| 1107 | TODO: support DTD inherited default attributes</p><p> |
| 1108 | |
| 1109 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1110 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current attribute in the traversal |
| 1111 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1112 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextPreceding"></a>xmlXPathNextPreceding ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextPreceding (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1113 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1114 | Traversal function for the "preceding" direction |
| 1115 | the preceding axis contains all nodes in the same document as the context |
| 1116 | node that are before the context node in document order, excluding any |
| 1117 | ancestors and excluding attribute nodes and namespace nodes; the nodes are |
| 1118 | ordered in reverse document order</p><p> |
| 1119 | |
| 1120 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1121 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1122 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1123 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextAncestor"></a>xmlXPathNextAncestor ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextAncestor (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1124 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1125 | Traversal function for the "ancestor" direction |
| 1126 | the ancestor axis contains the ancestors of the context node; the ancestors |
| 1127 | of the context node consist of the parent of context node and the parent's |
| 1128 | parent and so on; the nodes are ordered in reverse document order; thus the |
| 1129 | parent is the first node on the axis, and the parent's parent is the second |
| 1130 | node on the axis</p><p> |
| 1131 | |
| 1132 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1133 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1134 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1135 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNextPrecedingSibling"></a>xmlXPathNextPrecedingSibling ()</h3><pre class="programlisting"><a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> xmlXPathNextPrecedingSibling (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1136 | <a href="libxml-tree.html#xmlNodePtr">xmlNodePtr</a> cur);</pre><p> |
| 1137 | Traversal function for the "preceding-sibling" direction |
| 1138 | The preceding-sibling axis contains the preceding siblings of the context |
| 1139 | node in reverse document order; the first preceding sibling is first on the |
| 1140 | axis; the sibling preceding that node is the second on the axis and so on.</p><p> |
| 1141 | |
| 1142 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1143 | </td></tr><tr><td><span class="term"><i><tt>cur</tt></i> :</span></td><td> the current node in the traversal |
| 1144 | </td></tr><tr><td><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></td><td>the next element following that axis |
| 1145 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathLastFunction"></a>xmlXPathLastFunction ()</h3><pre class="programlisting">void xmlXPathLastFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1146 | int nargs);</pre><p> |
| 1147 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="last">last</GTKDOCLINK>() XPath function |
| 1148 | number <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="last">last</GTKDOCLINK>() |
| 1149 | The last function returns the number of nodes in the context node list.</p><p> |
| 1150 | |
| 1151 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1152 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1153 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathPositionFunction"></a>xmlXPathPositionFunction ()</h3><pre class="programlisting">void xmlXPathPositionFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1154 | int nargs);</pre><p> |
| 1155 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="position">position</GTKDOCLINK>() XPath function |
| 1156 | number <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="position">position</GTKDOCLINK>() |
| 1157 | The position function returns the position of the context node in the |
| 1158 | context node list. The first position is 1, and so the last position |
| 1159 | will be equal to <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="last">last</GTKDOCLINK>().</p><p> |
| 1160 | |
| 1161 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1162 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1163 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathCountFunction"></a>xmlXPathCountFunction ()</h3><pre class="programlisting">void xmlXPathCountFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1164 | int nargs);</pre><p> |
| 1165 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="count">count</GTKDOCLINK>() XPath function |
| 1166 | number count(node-set)</p><p> |
| 1167 | |
| 1168 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1169 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1170 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathIdFunction"></a>xmlXPathIdFunction ()</h3><pre class="programlisting">void xmlXPathIdFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1171 | int nargs);</pre><p> |
| 1172 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="id">id</GTKDOCLINK>() XPath function |
| 1173 | node-set id(object) |
| 1174 | The id function selects elements by their unique ID |
| 1175 | (see [5.2.1 Unique IDs]). When the argument to id is of type node-set, |
| 1176 | then the result is the union of the result of applying id to the |
| 1177 | string value of each of the nodes in the argument node-set. When the |
| 1178 | argument to id is of any other type, the argument is converted to a |
| 1179 | string as if by a call to the string function; the string is split |
| 1180 | into a whitespace-separated list of tokens (whitespace is any sequence |
| 1181 | of characters matching the production S); the result is a node-set |
| 1182 | containing the elements in the same document as the context node that |
| 1183 | have a unique ID equal to any of the tokens in the list.</p><p> |
| 1184 | |
| 1185 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1186 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1187 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathLocalNameFunction"></a>xmlXPathLocalNameFunction ()</h3><pre class="programlisting">void xmlXPathLocalNameFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1188 | int nargs);</pre><p> |
| 1189 | Implement the local-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="name">name</GTKDOCLINK>() XPath function |
| 1190 | string local-name(node-set?) |
| 1191 | The local-name function returns a string containing the local part |
| 1192 | of the name of the node in the argument node-set that is first in |
| 1193 | document order. If the node-set is empty or the first node has no |
| 1194 | name, an empty string is returned. If the argument is omitted it |
| 1195 | defaults to the context node.</p><p> |
| 1196 | |
| 1197 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1198 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1199 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNamespaceURIFunction"></a>xmlXPathNamespaceURIFunction ()</h3><pre class="programlisting">void xmlXPathNamespaceURIFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1200 | int nargs);</pre><p> |
| 1201 | Implement the namespace-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="uri">uri</GTKDOCLINK>() XPath function |
| 1202 | string namespace-uri(node-set?) |
| 1203 | The namespace-uri function returns a string containing the |
| 1204 | namespace URI of the expanded name of the node in the argument |
| 1205 | node-set that is first in document order. If the node-set is empty, |
| 1206 | the first node has no name, or the expanded name has no namespace |
| 1207 | URI, an empty string is returned. If the argument is omitted it |
| 1208 | defaults to the context node.</p><p> |
| 1209 | |
| 1210 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1211 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1212 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathStringFunction"></a>xmlXPathStringFunction ()</h3><pre class="programlisting">void xmlXPathStringFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1213 | int nargs);</pre><p> |
| 1214 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="string">string</GTKDOCLINK>() XPath function |
| 1215 | string string(object?) |
| 1216 | he string function converts an object to a string as follows: |
| 1217 | - A node-set is converted to a string by returning the value of |
| 1218 | the node in the node-set that is first in document order. |
| 1219 | If the node-set is empty, an empty string is returned. |
| 1220 | - A number is converted to a string as follows |
| 1221 | + NaN is converted to the string NaN |
| 1222 | + positive zero is converted to the string 0 |
| 1223 | + negative zero is converted to the string 0 |
| 1224 | + positive infinity is converted to the string Infinity |
| 1225 | + negative infinity is converted to the string -Infinity |
| 1226 | + if the number is an integer, the number is represented in |
| 1227 | decimal form as a Number with no decimal point and no leading |
| 1228 | zeros, preceded by a minus sign (-) if the number is negative |
| 1229 | + otherwise, the number is represented in decimal form as a |
| 1230 | Number including a decimal point with at least one digit |
| 1231 | before the decimal point and at least one digit after the |
| 1232 | decimal point, preceded by a minus sign (-) if the number |
| 1233 | is negative; there must be no leading zeros before the decimal |
| 1234 | point apart possibly from the one required digit immediately |
| 1235 | before the decimal point; beyond the one required digit |
| 1236 | after the decimal point there must be as many, but only as |
| 1237 | many, more digits as are needed to uniquely distinguish the |
| 1238 | number from all other IEEE 754 numeric values. |
| 1239 | - The boolean false value is converted to the string false. |
| 1240 | The boolean true value is converted to the string true. |
| 1241 | </p><p> |
| 1242 | If the argument is omitted, it defaults to a node-set with the |
| 1243 | context node as its only member.</p><p> |
| 1244 | |
| 1245 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1246 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1247 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathStringLengthFunction"></a>xmlXPathStringLengthFunction ()</h3><pre class="programlisting">void xmlXPathStringLengthFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1248 | int nargs);</pre><p> |
| 1249 | Implement the string-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="length">length</GTKDOCLINK>() XPath function |
| 1250 | number string-length(string?) |
| 1251 | The string-length returns the number of characters in the string |
| 1252 | (see [3.6 Strings]). If the argument is omitted, it defaults to |
| 1253 | the context node converted to a string, in other words the value |
| 1254 | of the context node.</p><p> |
| 1255 | |
| 1256 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1257 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1258 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathConcatFunction"></a>xmlXPathConcatFunction ()</h3><pre class="programlisting">void xmlXPathConcatFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1259 | int nargs);</pre><p> |
| 1260 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="concat">concat</GTKDOCLINK>() XPath function |
| 1261 | string concat(string, string, string*) |
| 1262 | The concat function returns the concatenation of its arguments.</p><p> |
| 1263 | |
| 1264 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1265 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1266 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathContainsFunction"></a>xmlXPathContainsFunction ()</h3><pre class="programlisting">void xmlXPathContainsFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1267 | int nargs);</pre><p> |
| 1268 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="contains">contains</GTKDOCLINK>() XPath function |
| 1269 | boolean contains(string, string) |
| 1270 | The contains function returns true if the first argument string |
| 1271 | contains the second argument string, and otherwise returns false.</p><p> |
| 1272 | |
| 1273 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1274 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1275 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathStartsWithFunction"></a>xmlXPathStartsWithFunction ()</h3><pre class="programlisting">void xmlXPathStartsWithFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1276 | int nargs);</pre><p> |
| 1277 | Implement the starts-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="with">with</GTKDOCLINK>() XPath function |
| 1278 | boolean starts-with(string, string) |
| 1279 | The starts-with function returns true if the first argument string |
| 1280 | starts with the second argument string, and otherwise returns false.</p><p> |
| 1281 | |
| 1282 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1283 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1284 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSubstringFunction"></a>xmlXPathSubstringFunction ()</h3><pre class="programlisting">void xmlXPathSubstringFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1285 | int nargs);</pre><p> |
| 1286 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="substring">substring</GTKDOCLINK>() XPath function |
| 1287 | string substring(string, number, number?) |
| 1288 | The substring function returns the substring of the first argument |
| 1289 | starting at the position specified in the second argument with |
| 1290 | length specified in the third argument. For example, |
| 1291 | substring("12345",2,3) returns "234". If the third argument is not |
| 1292 | specified, it returns the substring starting at the position specified |
| 1293 | in the second argument and continuing to the end of the string. For |
| 1294 | example, substring("12345",2) returns "2345". More precisely, each |
| 1295 | character in the string (see [3.6 Strings]) is considered to have a |
| 1296 | numeric position: the position of the first character is 1, the position |
| 1297 | of the second character is 2 and so on. The returned substring contains |
| 1298 | those characters for which the position of the character is greater than |
| 1299 | or equal to the second argument and, if the third argument is specified, |
| 1300 | less than the sum of the second and third arguments; the comparisons |
| 1301 | and addition used for the above follow the standard IEEE 754 rules. Thus: |
| 1302 | - substring("12345", 1.5, 2.6) returns "234" |
| 1303 | - substring("12345", 0, 3) returns "12" |
| 1304 | - substring("12345", 0 div 0, 3) returns "" |
| 1305 | - substring("12345", 1, 0 div 0) returns "" |
| 1306 | - substring("12345", -42, 1 div 0) returns "12345" |
| 1307 | - substring("12345", -1 div 0, 1 div 0) returns ""</p><p> |
| 1308 | |
| 1309 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1310 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1311 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSubstringBeforeFunction"></a>xmlXPathSubstringBeforeFunction ()</h3><pre class="programlisting">void xmlXPathSubstringBeforeFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1312 | int nargs);</pre><p> |
| 1313 | Implement the substring-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="before">before</GTKDOCLINK>() XPath function |
| 1314 | string substring-before(string, string) |
| 1315 | The substring-before function returns the substring of the first |
| 1316 | argument string that precedes the first occurrence of the second |
| 1317 | argument string in the first argument string, or the empty string |
| 1318 | if the first argument string does not contain the second argument |
| 1319 | string. For example, substring-before("1999/04/01","/") returns 1999.</p><p> |
| 1320 | |
| 1321 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1322 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1323 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSubstringAfterFunction"></a>xmlXPathSubstringAfterFunction ()</h3><pre class="programlisting">void xmlXPathSubstringAfterFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1324 | int nargs);</pre><p> |
| 1325 | Implement the substring-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="after">after</GTKDOCLINK>() XPath function |
| 1326 | string substring-after(string, string) |
| 1327 | The substring-after function returns the substring of the first |
| 1328 | argument string that follows the first occurrence of the second |
| 1329 | argument string in the first argument string, or the empty stringi |
| 1330 | if the first argument string does not contain the second argument |
| 1331 | string. For example, substring-after("1999/04/01","/") returns 04/01, |
| 1332 | and substring-after("1999/04/01","19") returns 99/04/01.</p><p> |
| 1333 | |
| 1334 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1335 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1336 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNormalizeFunction"></a>xmlXPathNormalizeFunction ()</h3><pre class="programlisting">void xmlXPathNormalizeFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1337 | int nargs);</pre><p> |
| 1338 | Implement the normalize-<GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="space">space</GTKDOCLINK>() XPath function |
| 1339 | string normalize-space(string?) |
| 1340 | The normalize-space function returns the argument string with white |
| 1341 | space normalized by stripping leading and trailing whitespace |
| 1342 | and replacing sequences of whitespace characters by a single |
| 1343 | space. Whitespace characters are the same allowed by the S production |
| 1344 | in XML. If the argument is omitted, it defaults to the context |
| 1345 | node converted to a string, in other words the value of the context node.</p><p> |
| 1346 | |
| 1347 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1348 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1349 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathTranslateFunction"></a>xmlXPathTranslateFunction ()</h3><pre class="programlisting">void xmlXPathTranslateFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1350 | int nargs);</pre><p> |
| 1351 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="translate">translate</GTKDOCLINK>() XPath function |
| 1352 | string translate(string, string, string) |
| 1353 | The translate function returns the first argument string with |
| 1354 | occurrences of characters in the second argument string replaced |
| 1355 | by the character at the corresponding position in the third argument |
| 1356 | string. For example, translate("bar","abc","ABC") returns the string |
| 1357 | BAr. If there is a character in the second argument string with no |
| 1358 | character at a corresponding position in the third argument string |
| 1359 | (because the second argument string is longer than the third argument |
| 1360 | string), then occurrences of that character in the first argument |
| 1361 | string are removed. For example, translate("--aaa--","abc-","ABC")</p><p> |
| 1362 | |
| 1363 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1364 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1365 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNotFunction"></a>xmlXPathNotFunction ()</h3><pre class="programlisting">void xmlXPathNotFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1366 | int nargs);</pre><p> |
| 1367 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="not">not</GTKDOCLINK>() XPath function |
| 1368 | boolean not(boolean) |
| 1369 | The not function returns true if its argument is false, |
| 1370 | and false otherwise.</p><p> |
| 1371 | |
| 1372 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1373 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1374 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathTrueFunction"></a>xmlXPathTrueFunction ()</h3><pre class="programlisting">void xmlXPathTrueFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1375 | int nargs);</pre><p> |
| 1376 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="true">true</GTKDOCLINK>() XPath function |
| 1377 | boolean <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="true">true</GTKDOCLINK>()</p><p> |
| 1378 | |
| 1379 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1380 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1381 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathFalseFunction"></a>xmlXPathFalseFunction ()</h3><pre class="programlisting">void xmlXPathFalseFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1382 | int nargs);</pre><p> |
| 1383 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="false">false</GTKDOCLINK>() XPath function |
| 1384 | boolean <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="false">false</GTKDOCLINK>()</p><p> |
| 1385 | |
| 1386 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1387 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1388 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathLangFunction"></a>xmlXPathLangFunction ()</h3><pre class="programlisting">void xmlXPathLangFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1389 | int nargs);</pre><p> |
| 1390 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="lang">lang</GTKDOCLINK>() XPath function |
| 1391 | boolean lang(string) |
| 1392 | The lang function returns true or false depending on whether the |
| 1393 | language of the context node as specified by xml:lang attributes |
| 1394 | is the same as or is a sublanguage of the language specified by |
| 1395 | the argument string. The language of the context node is determined |
| 1396 | by the value of the xml:lang attribute on the context node, or, if |
| 1397 | the context node has no xml:lang attribute, by the value of the |
| 1398 | xml:lang attribute on the nearest ancestor of the context node that |
| 1399 | has an xml:lang attribute. If there is no such attribute, then lang</p><p> |
| 1400 | |
| 1401 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1402 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1403 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNumberFunction"></a>xmlXPathNumberFunction ()</h3><pre class="programlisting">void xmlXPathNumberFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1404 | int nargs);</pre><p> |
| 1405 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="number">number</GTKDOCLINK>() XPath function |
| 1406 | number number(object?)</p><p> |
| 1407 | |
| 1408 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1409 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1410 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathSumFunction"></a>xmlXPathSumFunction ()</h3><pre class="programlisting">void xmlXPathSumFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1411 | int nargs);</pre><p> |
| 1412 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="sum">sum</GTKDOCLINK>() XPath function |
| 1413 | number sum(node-set) |
| 1414 | The sum function returns the sum of the values of the nodes in |
| 1415 | the argument node-set.</p><p> |
| 1416 | |
| 1417 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1418 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1419 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathFloorFunction"></a>xmlXPathFloorFunction ()</h3><pre class="programlisting">void xmlXPathFloorFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1420 | int nargs);</pre><p> |
| 1421 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="floor">floor</GTKDOCLINK>() XPath function |
| 1422 | number floor(number) |
| 1423 | The floor function returns the largest (closest to positive infinity) |
| 1424 | number that is not greater than the argument and that is an integer.</p><p> |
| 1425 | |
| 1426 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1427 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1428 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathCeilingFunction"></a>xmlXPathCeilingFunction ()</h3><pre class="programlisting">void xmlXPathCeilingFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1429 | int nargs);</pre><p> |
| 1430 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="ceiling">ceiling</GTKDOCLINK>() XPath function |
| 1431 | number ceiling(number) |
| 1432 | The ceiling function returns the smallest (closest to negative infinity) |
| 1433 | number that is not less than the argument and that is an integer.</p><p> |
| 1434 | |
| 1435 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1436 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1437 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathRoundFunction"></a>xmlXPathRoundFunction ()</h3><pre class="programlisting">void xmlXPathRoundFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1438 | int nargs);</pre><p> |
| 1439 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="round">round</GTKDOCLINK>() XPath function |
| 1440 | number round(number) |
| 1441 | The round function returns the number that is closest to the |
| 1442 | argument and that is an integer. If there are two such numbers, |
| 1443 | then the one that is even is returned.</p><p> |
| 1444 | |
| 1445 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1446 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1447 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathBooleanFunction"></a>xmlXPathBooleanFunction ()</h3><pre class="programlisting">void xmlXPathBooleanFunction (<a href="libxml-xpath.html#xmlXPathParserContextPtr">xmlXPathParserContextPtr</a> ctxt, |
| 1448 | int nargs);</pre><p> |
| 1449 | Implement the <GTKDOCLINK xmlns="http://www.w3.org/TR/xhtml1/transitional" HREF="boolean">boolean</GTKDOCLINK>() XPath function |
| 1450 | boolean boolean(object) |
| 1451 | he boolean function converts its argument to a boolean as follows: |
| 1452 | - a number is true if and only if it is neither positive or |
| 1453 | negative zero nor NaN |
| 1454 | - a node-set is true if and only if it is non-empty |
| 1455 | - a string is true if and only if its length is non-zero</p><p> |
| 1456 | |
| 1457 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i> :</span></td><td> the XPath Parser context |
| 1458 | </td></tr><tr><td><span class="term"><i><tt>nargs</tt></i> :</span></td><td> the number of arguments |
| 1459 | </td></tr></tbody></table></div></div><hr xmlns="http://www.w3.org/TR/xhtml1/transitional"></hr><div class="refsect2" lang="en"><h3><a name="xmlXPathNodeSetFreeNs"></a>xmlXPathNodeSetFreeNs ()</h3><pre class="programlisting">void xmlXPathNodeSetFreeNs (<a href="libxml-tree.html#xmlNsPtr">xmlNsPtr</a> ns);</pre><p> |
| 1460 | Namespace node in libxml don't match the XPath semantic. In a node set |
| 1461 | the namespace nodes are duplicated and the next pointer is set to the |
| 1462 | parent node in the XPath semantic. Check if such a node need to be freed</p><p> |
| 1463 | |
| 1464 | </p><div class="variablelist"><table border="0"><col align="left" valign="top"><tbody><tr><td><span class="term"><i><tt>ns</tt></i> :</span></td><td> the XPath namespace node found in a nodeset. |
| 1465 | </td></tr></tbody></table></div></div></div></div><table xmlns="http://www.w3.org/TR/xhtml1/transitional" class="navigation" width="100%" summary="Navigation footer" cellpadding="2" cellspacing="0"><tr valign="middle"><td align="left"><a accesskey="p" href="libxml-xpath.html"><b><< xpath</b></a></td><td align="right"><a accesskey="n" href="libxml-xpointer.html"><b>xpointer >></b></a></td></tr></table></body></html> |