blob: e601f31de57e2b2bc0cae3b0471ce4b82be7edb6 [file] [log] [blame]
Daniel Veillard9753ad72000-11-13 19:12:23 +00001<HTML
2><HEAD
3><TITLE
4>xpathInternals</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.33"><LINK
8REL="HOME"
9TITLE="Gnome XML Library Reference Manual"
10HREF="book1.html"><LINK
11REL="UP"
12TITLE="Libxml Library Reference"
13HREF="libxml-lib.html"><LINK
14REL="PREVIOUS"
15TITLE="xpath"
16HREF="gnome-xml-xpath.html"><LINK
17REL="NEXT"
18TITLE="xpointer"
19HREF="gnome-xml-xpointer.html"></HEAD
20><BODY
21BGCOLOR="#FFFFFF"
22TEXT="#000000"
23><DIV
24CLASS="NAVHEADER"
25><TABLE
26WIDTH="100%"
27BORDER="0"
28BGCOLOR="#000000"
29CELLPADDING="1"
30CELLSPACING="0"
31><TR
32><TH
33COLSPAN="4"
34ALIGN="center"
35><FONT
36COLOR="#FFFFFF"
37SIZE="5"
38>Gnome XML Library Reference Manual</FONT
39></TH
40></TR
41><TR
42><TD
43WIDTH="25%"
44BGCOLOR="#C00000"
45ALIGN="left"
46><A
47HREF="gnome-xml-xpath.html"
48><FONT
49COLOR="#FFFFFF"
50SIZE="3"
51><B
52>&#60;&#60;&#60; Previous Page</B
53></FONT
54></A
55></TD
56><TD
57WIDTH="25%"
58BGCOLOR="#0000C0"
59ALIGN="center"
60><FONT
61COLOR="#FFFFFF"
62SIZE="3"
63><B
64><A
65HREF="book1.html"
66><FONT
67COLOR="#FFFFFF"
68SIZE="3"
69><B
70>Home</B
71></FONT
72></A
73></B
74></FONT
75></TD
76><TD
77WIDTH="25%"
78BGCOLOR="#00C000"
79ALIGN="center"
80><FONT
81COLOR="#FFFFFF"
82SIZE="3"
83><B
84><A
85HREF="libxml-lib.html"
86><FONT
87COLOR="#FFFFFF"
88SIZE="3"
89><B
90>Up</B
91></FONT
92></A
93></B
94></FONT
95></TD
96><TD
97WIDTH="25%"
98BGCOLOR="#C00000"
99ALIGN="right"
100><A
101HREF="gnome-xml-xpointer.html"
102><FONT
103COLOR="#FFFFFF"
104SIZE="3"
105><B
106>Next Page &#62;&#62;&#62;</B
107></FONT
108></A
109></TD
110></TR
111></TABLE
112></DIV
113><H1
114>xpathInternals</H1
115><DIV
116CLASS="REFNAMEDIV"
117><A
118NAME="AEN10993"
119></A
120><H2
121>Name</H2
122>xpathInternals &#8212; </DIV
123><DIV
124CLASS="REFSYNOPSISDIV"
125><A
126NAME="AEN10996"
127></A
128><H2
129>Synopsis</H2
130><TABLE
131BORDER="0"
132BGCOLOR="#D6E8FF"
133WIDTH="100%"
134CELLPADDING="6"
135><TR
136><TD
137><PRE
138CLASS="SYNOPSIS"
139>&#13;
140
141#define <A
142HREF="gnome-xml-xpathinternals.html#CHECK-ERROR"
143>CHECK_ERROR</A
144>
145#define <A
146HREF="gnome-xml-xpathinternals.html#CHECK-ERROR0"
147>CHECK_ERROR0</A
148>
149#define <A
150HREF="gnome-xml-xpathinternals.html#XP-ERROR"
151>XP_ERROR</A
152> (X)
153#define <A
154HREF="gnome-xml-xpathinternals.html#XP-ERROR0"
155>XP_ERROR0</A
156> (X)
157#define <A
158HREF="gnome-xml-xpathinternals.html#CHECK-TYPE"
159>CHECK_TYPE</A
160> (typeval)
161#define <A
162HREF="gnome-xml-xpathinternals.html#CHECK-ARITY"
163>CHECK_ARITY</A
164> (x)
165#define <A
166HREF="gnome-xml-xpathinternals.html#CAST-TO-STRING"
167>CAST_TO_STRING</A
168>
169#define <A
170HREF="gnome-xml-xpathinternals.html#CAST-TO-NUMBER"
171>CAST_TO_NUMBER</A
172>
173#define <A
174HREF="gnome-xml-xpathinternals.html#CAST-TO-BOOLEAN"
175>CAST_TO_BOOLEAN</A
176>
177void <A
178HREF="gnome-xml-xpath.html#XMLXPATHERROR"
179>xmlXPatherror</A
180> (<A
181HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
182>xmlXPathParserContextPtr</A
183> ctxt,
184 const char *file,
185 int line,
186 int no);
187void <A
188HREF="gnome-xml-xpathinternals.html#XMLXPATHDEBUGDUMPOBJECT"
189>xmlXPathDebugDumpObject</A
190> (<GTKDOCLINK
191HREF="FILE"
192>FILE</GTKDOCLINK
193> *output,
194 <A
195HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
196>xmlXPathObjectPtr</A
197> cur,
198 int depth);
199int <A
200HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTERFUNC"
201>xmlXPathRegisterFunc</A
202> (<A
203HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
204>xmlXPathContextPtr</A
205> ctxt,
206 const <A
207HREF="gnome-xml-tree.html#XMLCHAR"
208>xmlChar</A
209> *name,
210 <A
211HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
212>xmlXPathFunction</A
213> f);
214int <A
215HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTERFUNCNS"
216>xmlXPathRegisterFuncNS</A
217> (<A
218HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
219>xmlXPathContextPtr</A
220> ctxt,
221 const <A
222HREF="gnome-xml-tree.html#XMLCHAR"
223>xmlChar</A
224> *name,
225 const <A
226HREF="gnome-xml-tree.html#XMLCHAR"
227>xmlChar</A
228> *ns_uri,
229 <A
230HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
231>xmlXPathFunction</A
232> f);
233int <A
234HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTERVARIABLE"
235>xmlXPathRegisterVariable</A
236> (<A
237HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
238>xmlXPathContextPtr</A
239> ctxt,
240 const <A
241HREF="gnome-xml-tree.html#XMLCHAR"
242>xmlChar</A
243> *name,
244 <A
245HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
246>xmlXPathObjectPtr</A
247> value);
248int <A
249HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTERVARIABLENS"
250>xmlXPathRegisterVariableNS</A
251> (<A
252HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
253>xmlXPathContextPtr</A
254> ctxt,
255 const <A
256HREF="gnome-xml-tree.html#XMLCHAR"
257>xmlChar</A
258> *name,
259 const <A
260HREF="gnome-xml-tree.html#XMLCHAR"
261>xmlChar</A
262> *ns_uri,
263 <A
264HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
265>xmlXPathObjectPtr</A
266> value);
267<A
268HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
269>xmlXPathFunction</A
270> <A
271HREF="gnome-xml-xpathinternals.html#XMLXPATHFUNCTIONLOOKUP"
272>xmlXPathFunctionLookup</A
273> (<A
274HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
275>xmlXPathContextPtr</A
276> ctxt,
277 const <A
278HREF="gnome-xml-tree.html#XMLCHAR"
279>xmlChar</A
280> *name);
281<A
282HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
283>xmlXPathFunction</A
284> <A
285HREF="gnome-xml-xpathinternals.html#XMLXPATHFUNCTIONLOOKUPNS"
286>xmlXPathFunctionLookupNS</A
287> (<A
288HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
289>xmlXPathContextPtr</A
290> ctxt,
291 const <A
292HREF="gnome-xml-tree.html#XMLCHAR"
293>xmlChar</A
294> *name,
295 const <A
296HREF="gnome-xml-tree.html#XMLCHAR"
297>xmlChar</A
298> *ns_uri);
299void <A
300HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTEREDFUNCSCLEANUP"
301>xmlXPathRegisteredFuncsCleanup</A
302> (<A
303HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
304>xmlXPathContextPtr</A
305> ctxt);
306<A
307HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
308>xmlXPathObjectPtr</A
309> <A
310HREF="gnome-xml-xpathinternals.html#XMLXPATHVARIABLELOOKUP"
311>xmlXPathVariableLookup</A
312> (<A
313HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
314>xmlXPathContextPtr</A
315> ctxt,
316 const <A
317HREF="gnome-xml-tree.html#XMLCHAR"
318>xmlChar</A
319> *name);
320<A
321HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
322>xmlXPathObjectPtr</A
323> <A
324HREF="gnome-xml-xpathinternals.html#XMLXPATHVARIABLELOOKUPNS"
325>xmlXPathVariableLookupNS</A
326> (<A
327HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
328>xmlXPathContextPtr</A
329> ctxt,
330 const <A
331HREF="gnome-xml-tree.html#XMLCHAR"
332>xmlChar</A
333> *name,
334 const <A
335HREF="gnome-xml-tree.html#XMLCHAR"
336>xmlChar</A
337> *ns_uri);
338void <A
339HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTEREDVARIABLESCLEANUP"
340>xmlXPathRegisteredVariablesCleanup</A
341>
342 (<A
343HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
344>xmlXPathContextPtr</A
345> ctxt);
346<A
347HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
348>xmlXPathParserContextPtr</A
349> <A
350HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWPARSERCONTEXT"
351>xmlXPathNewParserContext</A
352>
353 (const <A
354HREF="gnome-xml-tree.html#XMLCHAR"
355>xmlChar</A
356> *str,
357 <A
358HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
359>xmlXPathContextPtr</A
360> ctxt);
361void <A
362HREF="gnome-xml-xpathinternals.html#XMLXPATHFREEPARSERCONTEXT"
363>xmlXPathFreeParserContext</A
364> (<A
365HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
366>xmlXPathParserContextPtr</A
367> ctxt);
368<A
369HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
370>xmlXPathObjectPtr</A
371> <A
372HREF="gnome-xml-xpathinternals.html#VALUEPOP"
373>valuePop</A
374> (<A
375HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
376>xmlXPathParserContextPtr</A
377> ctxt);
378int <A
379HREF="gnome-xml-xpathinternals.html#VALUEPUSH"
380>valuePush</A
381> (<A
382HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
383>xmlXPathParserContextPtr</A
384> ctxt,
385 <A
386HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
387>xmlXPathObjectPtr</A
388> value);
389<A
390HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
391>xmlXPathObjectPtr</A
392> <A
393HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWSTRING"
394>xmlXPathNewString</A
395> (const <A
396HREF="gnome-xml-tree.html#XMLCHAR"
397>xmlChar</A
398> *val);
399<A
400HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
401>xmlXPathObjectPtr</A
402> <A
403HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWCSTRING"
404>xmlXPathNewCString</A
405> (const char *val);
406<A
407HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
408>xmlXPathObjectPtr</A
409> <A
410HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWFLOAT"
411>xmlXPathNewFloat</A
412> (<GTKDOCLINK
413HREF="DOUBLE"
414>double</GTKDOCLINK
415> val);
416<A
417HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
418>xmlXPathObjectPtr</A
419> <A
420HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWBOOLEAN"
421>xmlXPathNewBoolean</A
422> (int val);
423<A
424HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
425>xmlXPathObjectPtr</A
426> <A
427HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWNODESET"
428>xmlXPathNewNodeSet</A
429> (<A
430HREF="gnome-xml-tree.html#XMLNODEPTR"
431>xmlNodePtr</A
432> val);
433void <A
434HREF="gnome-xml-xpathinternals.html#XMLXPATHNODESETADD"
435>xmlXPathNodeSetAdd</A
436> (<A
437HREF="gnome-xml-xpath.html#XMLNODESETPTR"
438>xmlNodeSetPtr</A
439> cur,
440 <A
441HREF="gnome-xml-tree.html#XMLNODEPTR"
442>xmlNodePtr</A
443> val);
444void <A
445HREF="gnome-xml-xpathinternals.html#XMLXPATHIDFUNCTION"
446>xmlXPathIdFunction</A
447> (<A
448HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
449>xmlXPathParserContextPtr</A
450> ctxt,
451 int nargs);
452void <A
453HREF="gnome-xml-xpathinternals.html#XMLXPATHROOT"
454>xmlXPathRoot</A
455> (<A
456HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
457>xmlXPathParserContextPtr</A
458> ctxt);
459void <A
460HREF="gnome-xml-xpathinternals.html#XMLXPATHEVALEXPR"
461>xmlXPathEvalExpr</A
462> (<A
463HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
464>xmlXPathParserContextPtr</A
465> ctxt);
466<A
467HREF="gnome-xml-tree.html#XMLCHAR"
468>xmlChar</A
469>* <A
470HREF="gnome-xml-xpathinternals.html#XMLXPATHPARSENAME"
471>xmlXPathParseName</A
472> (<A
473HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
474>xmlXPathParserContextPtr</A
475> ctxt);
476<GTKDOCLINK
477HREF="DOUBLE"
478>double</GTKDOCLINK
479> <A
480HREF="gnome-xml-xpathinternals.html#XMLXPATHSTRINGEVALNUMBER"
481>xmlXPathStringEvalNumber</A
482> (const <A
483HREF="gnome-xml-tree.html#XMLCHAR"
484>xmlChar</A
485> *str);
486void <A
487HREF="gnome-xml-xpath.html#XMLXPATHINIT"
488>xmlXPathInit</A
489> (void);
490void <A
491HREF="gnome-xml-xpathinternals.html#XMLXPATHSTRINGFUNCTION"
492>xmlXPathStringFunction</A
493> (<A
494HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
495>xmlXPathParserContextPtr</A
496> ctxt,
497 int nargs);
498void <A
499HREF="gnome-xml-xpathinternals.html#XMLXPATHREGISTERALLFUNCTIONS"
500>xmlXPathRegisterAllFunctions</A
501> (<A
502HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
503>xmlXPathContextPtr</A
504> ctxt);
505<A
506HREF="gnome-xml-xpath.html#XMLNODESETPTR"
507>xmlNodeSetPtr</A
508> <A
509HREF="gnome-xml-xpath.html#XMLXPATHNODESETCREATE"
510>xmlXPathNodeSetCreate</A
511> (<A
512HREF="gnome-xml-tree.html#XMLNODEPTR"
513>xmlNodePtr</A
514> val);
515<A
516HREF="gnome-xml-xpath.html#XMLNODESETPTR"
517>xmlNodeSetPtr</A
518> <A
519HREF="gnome-xml-xpathinternals.html#XMLXPATHNODESETMERGE"
520>xmlXPathNodeSetMerge</A
521> (<A
522HREF="gnome-xml-xpath.html#XMLNODESETPTR"
523>xmlNodeSetPtr</A
524> val1,
525 <A
526HREF="gnome-xml-xpath.html#XMLNODESETPTR"
527>xmlNodeSetPtr</A
528> val2);
529void <A
530HREF="gnome-xml-xpathinternals.html#XMLXPATHNODESETDEL"
531>xmlXPathNodeSetDel</A
532> (<A
533HREF="gnome-xml-xpath.html#XMLNODESETPTR"
534>xmlNodeSetPtr</A
535> cur,
536 <A
537HREF="gnome-xml-tree.html#XMLNODEPTR"
538>xmlNodePtr</A
539> val);
540void <A
541HREF="gnome-xml-xpathinternals.html#XMLXPATHNODESETREMOVE"
542>xmlXPathNodeSetRemove</A
543> (<A
544HREF="gnome-xml-xpath.html#XMLNODESETPTR"
545>xmlNodeSetPtr</A
546> cur,
547 int val);
548void <A
549HREF="gnome-xml-xpath.html#XMLXPATHFREENODESET"
550>xmlXPathFreeNodeSet</A
551> (<A
552HREF="gnome-xml-xpath.html#XMLNODESETPTR"
553>xmlNodeSetPtr</A
554> obj);
555<A
556HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
557>xmlXPathObjectPtr</A
558> <A
559HREF="gnome-xml-xpathinternals.html#XMLXPATHNEWNODESETLIST"
560>xmlXPathNewNodeSetList</A
561> (<A
562HREF="gnome-xml-xpath.html#XMLNODESETPTR"
563>xmlNodeSetPtr</A
564> val);
565<A
566HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
567>xmlXPathObjectPtr</A
568> <A
569HREF="gnome-xml-xpathinternals.html#XMLXPATHWRAPNODESET"
570>xmlXPathWrapNodeSet</A
571> (<A
572HREF="gnome-xml-xpath.html#XMLNODESETPTR"
573>xmlNodeSetPtr</A
574> val);
575void <A
576HREF="gnome-xml-xpath.html#XMLXPATHFREENODESETLIST"
577>xmlXPathFreeNodeSetList</A
578> (<A
579HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
580>xmlXPathObjectPtr</A
581> obj);
582void <A
583HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
584>xmlXPathFreeObject</A
585> (<A
586HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
587>xmlXPathObjectPtr</A
588> obj);
589<A
590HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
591>xmlXPathContextPtr</A
592> <A
593HREF="gnome-xml-xpath.html#XMLXPATHNEWCONTEXT"
594>xmlXPathNewContext</A
595> (<A
596HREF="gnome-xml-tree.html#XMLDOCPTR"
597>xmlDocPtr</A
598> doc);
599void <A
600HREF="gnome-xml-xpath.html#XMLXPATHFREECONTEXT"
601>xmlXPathFreeContext</A
602> (<A
603HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
604>xmlXPathContextPtr</A
605> ctxt);
606int <A
607HREF="gnome-xml-xpathinternals.html#XMLXPATHEQUALVALUES"
608>xmlXPathEqualValues</A
609> (<A
610HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
611>xmlXPathParserContextPtr</A
612> ctxt);
613int <A
614HREF="gnome-xml-xpathinternals.html#XMLXPATHCOMPAREVALUES"
615>xmlXPathCompareValues</A
616> (<A
617HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
618>xmlXPathParserContextPtr</A
619> ctxt,
620 int inf,
621 int strict);
622void <A
623HREF="gnome-xml-xpathinternals.html#XMLXPATHVALUEFLIPSIGN"
624>xmlXPathValueFlipSign</A
625> (<A
626HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
627>xmlXPathParserContextPtr</A
628> ctxt);
629void <A
630HREF="gnome-xml-xpathinternals.html#XMLXPATHADDVALUES"
631>xmlXPathAddValues</A
632> (<A
633HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
634>xmlXPathParserContextPtr</A
635> ctxt);
636void <A
637HREF="gnome-xml-xpathinternals.html#XMLXPATHSUBVALUES"
638>xmlXPathSubValues</A
639> (<A
640HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
641>xmlXPathParserContextPtr</A
642> ctxt);
643void <A
644HREF="gnome-xml-xpathinternals.html#XMLXPATHMULTVALUES"
645>xmlXPathMultValues</A
646> (<A
647HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
648>xmlXPathParserContextPtr</A
649> ctxt);
650void <A
651HREF="gnome-xml-xpathinternals.html#XMLXPATHDIVVALUES"
652>xmlXPathDivValues</A
653> (<A
654HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
655>xmlXPathParserContextPtr</A
656> ctxt);
657void <A
658HREF="gnome-xml-xpathinternals.html#XMLXPATHMODVALUES"
659>xmlXPathModValues</A
660> (<A
661HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
662>xmlXPathParserContextPtr</A
663> ctxt);
664void <A
665HREF="gnome-xml-xpathinternals.html#XMLXPATHLASTFUNCTION"
666>xmlXPathLastFunction</A
667> (<A
668HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
669>xmlXPathParserContextPtr</A
670> ctxt,
671 int nargs);
672void <A
673HREF="gnome-xml-xpathinternals.html#XMLXPATHPOSITIONFUNCTION"
674>xmlXPathPositionFunction</A
675> (<A
676HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
677>xmlXPathParserContextPtr</A
678> ctxt,
679 int nargs);
680void <A
681HREF="gnome-xml-xpathinternals.html#XMLXPATHCOUNTFUNCTION"
682>xmlXPathCountFunction</A
683> (<A
684HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
685>xmlXPathParserContextPtr</A
686> ctxt,
687 int nargs);
688void <A
689HREF="gnome-xml-xpathinternals.html#XMLXPATHLOCALNAMEFUNCTION"
690>xmlXPathLocalNameFunction</A
691> (<A
692HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
693>xmlXPathParserContextPtr</A
694> ctxt,
695 int nargs);
696void <A
697HREF="gnome-xml-xpathinternals.html#XMLXPATHNAMESPACEURIFUNCTION"
698>xmlXPathNamespaceURIFunction</A
699> (<A
700HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
701>xmlXPathParserContextPtr</A
702> ctxt,
703 int nargs);
704void <A
705HREF="gnome-xml-xpathinternals.html#XMLXPATHSTRINGLENGTHFUNCTION"
706>xmlXPathStringLengthFunction</A
707> (<A
708HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
709>xmlXPathParserContextPtr</A
710> ctxt,
711 int nargs);
712void <A
713HREF="gnome-xml-xpathinternals.html#XMLXPATHCONCATFUNCTION"
714>xmlXPathConcatFunction</A
715> (<A
716HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
717>xmlXPathParserContextPtr</A
718> ctxt,
719 int nargs);
720void <A
721HREF="gnome-xml-xpathinternals.html#XMLXPATHCONTAINSFUNCTION"
722>xmlXPathContainsFunction</A
723> (<A
724HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
725>xmlXPathParserContextPtr</A
726> ctxt,
727 int nargs);
728void <A
729HREF="gnome-xml-xpathinternals.html#XMLXPATHSTARTSWITHFUNCTION"
730>xmlXPathStartsWithFunction</A
731> (<A
732HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
733>xmlXPathParserContextPtr</A
734> ctxt,
735 int nargs);
736void <A
737HREF="gnome-xml-xpathinternals.html#XMLXPATHSUBSTRINGFUNCTION"
738>xmlXPathSubstringFunction</A
739> (<A
740HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
741>xmlXPathParserContextPtr</A
742> ctxt,
743 int nargs);
744void <A
745HREF="gnome-xml-xpathinternals.html#XMLXPATHSUBSTRINGBEFOREFUNCTION"
746>xmlXPathSubstringBeforeFunction</A
747> (<A
748HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
749>xmlXPathParserContextPtr</A
750> ctxt,
751 int nargs);
752void <A
753HREF="gnome-xml-xpathinternals.html#XMLXPATHSUBSTRINGAFTERFUNCTION"
754>xmlXPathSubstringAfterFunction</A
755> (<A
756HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
757>xmlXPathParserContextPtr</A
758> ctxt,
759 int nargs);
760void <A
761HREF="gnome-xml-xpathinternals.html#XMLXPATHNORMALIZEFUNCTION"
762>xmlXPathNormalizeFunction</A
763> (<A
764HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
765>xmlXPathParserContextPtr</A
766> ctxt,
767 int nargs);
768void <A
769HREF="gnome-xml-xpathinternals.html#XMLXPATHTRANSLATEFUNCTION"
770>xmlXPathTranslateFunction</A
771> (<A
772HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
773>xmlXPathParserContextPtr</A
774> ctxt,
775 int nargs);
776void <A
777HREF="gnome-xml-xpathinternals.html#XMLXPATHNOTFUNCTION"
778>xmlXPathNotFunction</A
779> (<A
780HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
781>xmlXPathParserContextPtr</A
782> ctxt,
783 int nargs);
784void <A
785HREF="gnome-xml-xpathinternals.html#XMLXPATHTRUEFUNCTION"
786>xmlXPathTrueFunction</A
787> (<A
788HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
789>xmlXPathParserContextPtr</A
790> ctxt,
791 int nargs);
792void <A
793HREF="gnome-xml-xpathinternals.html#XMLXPATHFALSEFUNCTION"
794>xmlXPathFalseFunction</A
795> (<A
796HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
797>xmlXPathParserContextPtr</A
798> ctxt,
799 int nargs);
800void <A
801HREF="gnome-xml-xpathinternals.html#XMLXPATHLANGFUNCTION"
802>xmlXPathLangFunction</A
803> (<A
804HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
805>xmlXPathParserContextPtr</A
806> ctxt,
807 int nargs);
808void <A
809HREF="gnome-xml-xpathinternals.html#XMLXPATHNUMBERFUNCTION"
810>xmlXPathNumberFunction</A
811> (<A
812HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
813>xmlXPathParserContextPtr</A
814> ctxt,
815 int nargs);
816void <A
817HREF="gnome-xml-xpathinternals.html#XMLXPATHSUMFUNCTION"
818>xmlXPathSumFunction</A
819> (<A
820HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
821>xmlXPathParserContextPtr</A
822> ctxt,
823 int nargs);
824void <A
825HREF="gnome-xml-xpathinternals.html#XMLXPATHFLOORFUNCTION"
826>xmlXPathFloorFunction</A
827> (<A
828HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
829>xmlXPathParserContextPtr</A
830> ctxt,
831 int nargs);
832void <A
833HREF="gnome-xml-xpathinternals.html#XMLXPATHCEILINGFUNCTION"
834>xmlXPathCeilingFunction</A
835> (<A
836HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
837>xmlXPathParserContextPtr</A
838> ctxt,
839 int nargs);
840void <A
841HREF="gnome-xml-xpathinternals.html#XMLXPATHROUNDFUNCTION"
842>xmlXPathRoundFunction</A
843> (<A
844HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
845>xmlXPathParserContextPtr</A
846> ctxt,
847 int nargs);</PRE
848></TD
849></TR
850></TABLE
851></DIV
852><DIV
853CLASS="REFSECT1"
854><A
855NAME="AEN11189"
856></A
857><H2
858>Description</H2
859><P
860></P
861></DIV
862><DIV
863CLASS="REFSECT1"
864><A
865NAME="AEN11192"
866></A
867><H2
868>Details</H2
869><DIV
870CLASS="REFSECT2"
871><A
872NAME="AEN11194"
873></A
874><H3
875><A
876NAME="CHECK-ERROR"
877></A
878>CHECK_ERROR</H3
879><TABLE
880BORDER="0"
881BGCOLOR="#D6E8FF"
882WIDTH="100%"
883CELLPADDING="6"
884><TR
885><TD
886><PRE
887CLASS="PROGRAMLISTING"
888>#define CHECK_ERROR</PRE
889></TD
890></TR
891></TABLE
892><P
893></P
894></DIV
895><HR><DIV
896CLASS="REFSECT2"
897><A
898NAME="AEN11199"
899></A
900><H3
901><A
902NAME="CHECK-ERROR0"
903></A
904>CHECK_ERROR0</H3
905><TABLE
906BORDER="0"
907BGCOLOR="#D6E8FF"
908WIDTH="100%"
909CELLPADDING="6"
910><TR
911><TD
912><PRE
913CLASS="PROGRAMLISTING"
914>#define CHECK_ERROR0</PRE
915></TD
916></TR
917></TABLE
918><P
919></P
920></DIV
921><HR><DIV
922CLASS="REFSECT2"
923><A
924NAME="AEN11204"
925></A
926><H3
927><A
928NAME="XP-ERROR"
929></A
930>XP_ERROR()</H3
931><TABLE
932BORDER="0"
933BGCOLOR="#D6E8FF"
934WIDTH="100%"
935CELLPADDING="6"
936><TR
937><TD
938><PRE
939CLASS="PROGRAMLISTING"
940>#define XP_ERROR(X)</PRE
941></TD
942></TR
943></TABLE
944><P
945></P
946><DIV
947CLASS="INFORMALTABLE"
948><P
949></P
950><TABLE
951BORDER="0"
952WIDTH="100%"
953BGCOLOR="#FFD0D0"
954CELLSPACING="0"
955CELLPADDING="4"
956CLASS="CALSTABLE"
957><TR
958><TD
959WIDTH="20%"
960ALIGN="RIGHT"
961VALIGN="TOP"
962><TT
963CLASS="PARAMETER"
964><I
965>X</I
966></TT
967>&nbsp;:</TD
968><TD
969WIDTH="80%"
970ALIGN="LEFT"
971VALIGN="TOP"
972>&nbsp;</TD
973></TR
974></TABLE
975><P
976></P
977></DIV
978></DIV
979><HR><DIV
980CLASS="REFSECT2"
981><A
982NAME="AEN11218"
983></A
984><H3
985><A
986NAME="XP-ERROR0"
987></A
988>XP_ERROR0()</H3
989><TABLE
990BORDER="0"
991BGCOLOR="#D6E8FF"
992WIDTH="100%"
993CELLPADDING="6"
994><TR
995><TD
996><PRE
997CLASS="PROGRAMLISTING"
998>#define XP_ERROR0(X)</PRE
999></TD
1000></TR
1001></TABLE
1002><P
1003></P
1004><DIV
1005CLASS="INFORMALTABLE"
1006><P
1007></P
1008><TABLE
1009BORDER="0"
1010WIDTH="100%"
1011BGCOLOR="#FFD0D0"
1012CELLSPACING="0"
1013CELLPADDING="4"
1014CLASS="CALSTABLE"
1015><TR
1016><TD
1017WIDTH="20%"
1018ALIGN="RIGHT"
1019VALIGN="TOP"
1020><TT
1021CLASS="PARAMETER"
1022><I
1023>X</I
1024></TT
1025>&nbsp;:</TD
1026><TD
1027WIDTH="80%"
1028ALIGN="LEFT"
1029VALIGN="TOP"
1030>&nbsp;</TD
1031></TR
1032></TABLE
1033><P
1034></P
1035></DIV
1036></DIV
1037><HR><DIV
1038CLASS="REFSECT2"
1039><A
1040NAME="AEN11232"
1041></A
1042><H3
1043><A
1044NAME="CHECK-TYPE"
1045></A
1046>CHECK_TYPE()</H3
1047><TABLE
1048BORDER="0"
1049BGCOLOR="#D6E8FF"
1050WIDTH="100%"
1051CELLPADDING="6"
1052><TR
1053><TD
1054><PRE
1055CLASS="PROGRAMLISTING"
1056>#define CHECK_TYPE(typeval)</PRE
1057></TD
1058></TR
1059></TABLE
1060><P
1061></P
1062><DIV
1063CLASS="INFORMALTABLE"
1064><P
1065></P
1066><TABLE
1067BORDER="0"
1068WIDTH="100%"
1069BGCOLOR="#FFD0D0"
1070CELLSPACING="0"
1071CELLPADDING="4"
1072CLASS="CALSTABLE"
1073><TR
1074><TD
1075WIDTH="20%"
1076ALIGN="RIGHT"
1077VALIGN="TOP"
1078><TT
1079CLASS="PARAMETER"
1080><I
1081>typeval</I
1082></TT
1083>&nbsp;:</TD
1084><TD
1085WIDTH="80%"
1086ALIGN="LEFT"
1087VALIGN="TOP"
1088>&nbsp;</TD
1089></TR
1090></TABLE
1091><P
1092></P
1093></DIV
1094></DIV
1095><HR><DIV
1096CLASS="REFSECT2"
1097><A
1098NAME="AEN11246"
1099></A
1100><H3
1101><A
1102NAME="CHECK-ARITY"
1103></A
1104>CHECK_ARITY()</H3
1105><TABLE
1106BORDER="0"
1107BGCOLOR="#D6E8FF"
1108WIDTH="100%"
1109CELLPADDING="6"
1110><TR
1111><TD
1112><PRE
1113CLASS="PROGRAMLISTING"
1114>#define CHECK_ARITY(x)</PRE
1115></TD
1116></TR
1117></TABLE
1118><P
1119></P
1120><DIV
1121CLASS="INFORMALTABLE"
1122><P
1123></P
1124><TABLE
1125BORDER="0"
1126WIDTH="100%"
1127BGCOLOR="#FFD0D0"
1128CELLSPACING="0"
1129CELLPADDING="4"
1130CLASS="CALSTABLE"
1131><TR
1132><TD
1133WIDTH="20%"
1134ALIGN="RIGHT"
1135VALIGN="TOP"
1136><TT
1137CLASS="PARAMETER"
1138><I
1139>x</I
1140></TT
1141>&nbsp;:</TD
1142><TD
1143WIDTH="80%"
1144ALIGN="LEFT"
1145VALIGN="TOP"
1146>&nbsp;</TD
1147></TR
1148></TABLE
1149><P
1150></P
1151></DIV
1152></DIV
1153><HR><DIV
1154CLASS="REFSECT2"
1155><A
1156NAME="AEN11260"
1157></A
1158><H3
1159><A
1160NAME="CAST-TO-STRING"
1161></A
1162>CAST_TO_STRING</H3
1163><TABLE
1164BORDER="0"
1165BGCOLOR="#D6E8FF"
1166WIDTH="100%"
1167CELLPADDING="6"
1168><TR
1169><TD
1170><PRE
1171CLASS="PROGRAMLISTING"
1172>#define CAST_TO_STRING</PRE
1173></TD
1174></TR
1175></TABLE
1176><P
1177></P
1178></DIV
1179><HR><DIV
1180CLASS="REFSECT2"
1181><A
1182NAME="AEN11265"
1183></A
1184><H3
1185><A
1186NAME="CAST-TO-NUMBER"
1187></A
1188>CAST_TO_NUMBER</H3
1189><TABLE
1190BORDER="0"
1191BGCOLOR="#D6E8FF"
1192WIDTH="100%"
1193CELLPADDING="6"
1194><TR
1195><TD
1196><PRE
1197CLASS="PROGRAMLISTING"
1198>#define CAST_TO_NUMBER</PRE
1199></TD
1200></TR
1201></TABLE
1202><P
1203></P
1204></DIV
1205><HR><DIV
1206CLASS="REFSECT2"
1207><A
1208NAME="AEN11270"
1209></A
1210><H3
1211><A
1212NAME="CAST-TO-BOOLEAN"
1213></A
1214>CAST_TO_BOOLEAN</H3
1215><TABLE
1216BORDER="0"
1217BGCOLOR="#D6E8FF"
1218WIDTH="100%"
1219CELLPADDING="6"
1220><TR
1221><TD
1222><PRE
1223CLASS="PROGRAMLISTING"
1224>#define CAST_TO_BOOLEAN</PRE
1225></TD
1226></TR
1227></TABLE
1228><P
1229></P
1230></DIV
1231><HR><DIV
1232CLASS="REFSECT2"
1233><A
1234NAME="AEN11275"
1235></A
1236><H3
1237><A
1238NAME="XMLXPATHERROR"
1239></A
1240>xmlXPatherror ()</H3
1241><TABLE
1242BORDER="0"
1243BGCOLOR="#D6E8FF"
1244WIDTH="100%"
1245CELLPADDING="6"
1246><TR
1247><TD
1248><PRE
1249CLASS="PROGRAMLISTING"
1250>void xmlXPatherror (<A
1251HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
1252>xmlXPathParserContextPtr</A
1253> ctxt,
1254 const char *file,
1255 int line,
1256 int no);</PRE
1257></TD
1258></TR
1259></TABLE
1260><P
1261></P
1262><DIV
1263CLASS="INFORMALTABLE"
1264><P
1265></P
1266><TABLE
1267BORDER="0"
1268WIDTH="100%"
1269BGCOLOR="#FFD0D0"
1270CELLSPACING="0"
1271CELLPADDING="4"
1272CLASS="CALSTABLE"
1273><TR
1274><TD
1275WIDTH="20%"
1276ALIGN="RIGHT"
1277VALIGN="TOP"
1278><TT
1279CLASS="PARAMETER"
1280><I
1281>ctxt</I
1282></TT
1283>&nbsp;:</TD
1284><TD
1285WIDTH="80%"
1286ALIGN="LEFT"
1287VALIGN="TOP"
1288>&nbsp;</TD
1289></TR
1290><TR
1291><TD
1292WIDTH="20%"
1293ALIGN="RIGHT"
1294VALIGN="TOP"
1295><TT
1296CLASS="PARAMETER"
1297><I
1298>file</I
1299></TT
1300>&nbsp;:</TD
1301><TD
1302WIDTH="80%"
1303ALIGN="LEFT"
1304VALIGN="TOP"
1305>&nbsp;</TD
1306></TR
1307><TR
1308><TD
1309WIDTH="20%"
1310ALIGN="RIGHT"
1311VALIGN="TOP"
1312><TT
1313CLASS="PARAMETER"
1314><I
1315>line</I
1316></TT
1317>&nbsp;:</TD
1318><TD
1319WIDTH="80%"
1320ALIGN="LEFT"
1321VALIGN="TOP"
1322>&nbsp;</TD
1323></TR
1324><TR
1325><TD
1326WIDTH="20%"
1327ALIGN="RIGHT"
1328VALIGN="TOP"
1329><TT
1330CLASS="PARAMETER"
1331><I
1332>no</I
1333></TT
1334>&nbsp;:</TD
1335><TD
1336WIDTH="80%"
1337ALIGN="LEFT"
1338VALIGN="TOP"
1339>&nbsp;</TD
1340></TR
1341></TABLE
1342><P
1343></P
1344></DIV
1345></DIV
1346><HR><DIV
1347CLASS="REFSECT2"
1348><A
1349NAME="AEN11302"
1350></A
1351><H3
1352><A
1353NAME="XMLXPATHDEBUGDUMPOBJECT"
1354></A
1355>xmlXPathDebugDumpObject ()</H3
1356><TABLE
1357BORDER="0"
1358BGCOLOR="#D6E8FF"
1359WIDTH="100%"
1360CELLPADDING="6"
1361><TR
1362><TD
1363><PRE
1364CLASS="PROGRAMLISTING"
1365>void xmlXPathDebugDumpObject (<GTKDOCLINK
1366HREF="FILE"
1367>FILE</GTKDOCLINK
1368> *output,
1369 <A
1370HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1371>xmlXPathObjectPtr</A
1372> cur,
1373 int depth);</PRE
1374></TD
1375></TR
1376></TABLE
1377><P
1378></P
1379><DIV
1380CLASS="INFORMALTABLE"
1381><P
1382></P
1383><TABLE
1384BORDER="0"
1385WIDTH="100%"
1386BGCOLOR="#FFD0D0"
1387CELLSPACING="0"
1388CELLPADDING="4"
1389CLASS="CALSTABLE"
1390><TR
1391><TD
1392WIDTH="20%"
1393ALIGN="RIGHT"
1394VALIGN="TOP"
1395><TT
1396CLASS="PARAMETER"
1397><I
1398>output</I
1399></TT
1400>&nbsp;:</TD
1401><TD
1402WIDTH="80%"
1403ALIGN="LEFT"
1404VALIGN="TOP"
1405>&nbsp;</TD
1406></TR
1407><TR
1408><TD
1409WIDTH="20%"
1410ALIGN="RIGHT"
1411VALIGN="TOP"
1412><TT
1413CLASS="PARAMETER"
1414><I
1415>cur</I
1416></TT
1417>&nbsp;:</TD
1418><TD
1419WIDTH="80%"
1420ALIGN="LEFT"
1421VALIGN="TOP"
1422>&nbsp;</TD
1423></TR
1424><TR
1425><TD
1426WIDTH="20%"
1427ALIGN="RIGHT"
1428VALIGN="TOP"
1429><TT
1430CLASS="PARAMETER"
1431><I
1432>depth</I
1433></TT
1434>&nbsp;:</TD
1435><TD
1436WIDTH="80%"
1437ALIGN="LEFT"
1438VALIGN="TOP"
1439>&nbsp;</TD
1440></TR
1441></TABLE
1442><P
1443></P
1444></DIV
1445></DIV
1446><HR><DIV
1447CLASS="REFSECT2"
1448><A
1449NAME="AEN11326"
1450></A
1451><H3
1452><A
1453NAME="XMLXPATHREGISTERFUNC"
1454></A
1455>xmlXPathRegisterFunc ()</H3
1456><TABLE
1457BORDER="0"
1458BGCOLOR="#D6E8FF"
1459WIDTH="100%"
1460CELLPADDING="6"
1461><TR
1462><TD
1463><PRE
1464CLASS="PROGRAMLISTING"
1465>int xmlXPathRegisterFunc (<A
1466HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1467>xmlXPathContextPtr</A
1468> ctxt,
1469 const <A
1470HREF="gnome-xml-tree.html#XMLCHAR"
1471>xmlChar</A
1472> *name,
1473 <A
1474HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
1475>xmlXPathFunction</A
1476> f);</PRE
1477></TD
1478></TR
1479></TABLE
1480><P
1481>Register a new function. If <TT
1482CLASS="PARAMETER"
1483><I
1484>f</I
1485></TT
1486> is NULL it unregisters the function</P
1487><P
1488></P
1489><DIV
1490CLASS="INFORMALTABLE"
1491><P
1492></P
1493><TABLE
1494BORDER="0"
1495WIDTH="100%"
1496BGCOLOR="#FFD0D0"
1497CELLSPACING="0"
1498CELLPADDING="4"
1499CLASS="CALSTABLE"
1500><TR
1501><TD
1502WIDTH="20%"
1503ALIGN="RIGHT"
1504VALIGN="TOP"
1505><TT
1506CLASS="PARAMETER"
1507><I
1508>ctxt</I
1509></TT
1510>&nbsp;:</TD
1511><TD
1512WIDTH="80%"
1513ALIGN="LEFT"
1514VALIGN="TOP"
1515> the XPath context</TD
1516></TR
1517><TR
1518><TD
1519WIDTH="20%"
1520ALIGN="RIGHT"
1521VALIGN="TOP"
1522><TT
1523CLASS="PARAMETER"
1524><I
1525>name</I
1526></TT
1527>&nbsp;:</TD
1528><TD
1529WIDTH="80%"
1530ALIGN="LEFT"
1531VALIGN="TOP"
1532> the function name</TD
1533></TR
1534><TR
1535><TD
1536WIDTH="20%"
1537ALIGN="RIGHT"
1538VALIGN="TOP"
1539><TT
1540CLASS="PARAMETER"
1541><I
1542>f</I
1543></TT
1544>&nbsp;:</TD
1545><TD
1546WIDTH="80%"
1547ALIGN="LEFT"
1548VALIGN="TOP"
1549> the function implementation or NULL</TD
1550></TR
1551><TR
1552><TD
1553WIDTH="20%"
1554ALIGN="RIGHT"
1555VALIGN="TOP"
1556><I
1557CLASS="EMPHASIS"
1558>Returns</I
1559> :</TD
1560><TD
1561WIDTH="80%"
1562ALIGN="LEFT"
1563VALIGN="TOP"
1564>0 in case of success, -1 in case of error</TD
1565></TR
1566></TABLE
1567><P
1568></P
1569></DIV
1570></DIV
1571><HR><DIV
1572CLASS="REFSECT2"
1573><A
1574NAME="AEN11357"
1575></A
1576><H3
1577><A
1578NAME="XMLXPATHREGISTERFUNCNS"
1579></A
1580>xmlXPathRegisterFuncNS ()</H3
1581><TABLE
1582BORDER="0"
1583BGCOLOR="#D6E8FF"
1584WIDTH="100%"
1585CELLPADDING="6"
1586><TR
1587><TD
1588><PRE
1589CLASS="PROGRAMLISTING"
1590>int xmlXPathRegisterFuncNS (<A
1591HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1592>xmlXPathContextPtr</A
1593> ctxt,
1594 const <A
1595HREF="gnome-xml-tree.html#XMLCHAR"
1596>xmlChar</A
1597> *name,
1598 const <A
1599HREF="gnome-xml-tree.html#XMLCHAR"
1600>xmlChar</A
1601> *ns_uri,
1602 <A
1603HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
1604>xmlXPathFunction</A
1605> f);</PRE
1606></TD
1607></TR
1608></TABLE
1609><P
1610>Register a new function. If <TT
1611CLASS="PARAMETER"
1612><I
1613>f</I
1614></TT
1615> is NULL it unregisters the function</P
1616><P
1617></P
1618><DIV
1619CLASS="INFORMALTABLE"
1620><P
1621></P
1622><TABLE
1623BORDER="0"
1624WIDTH="100%"
1625BGCOLOR="#FFD0D0"
1626CELLSPACING="0"
1627CELLPADDING="4"
1628CLASS="CALSTABLE"
1629><TR
1630><TD
1631WIDTH="20%"
1632ALIGN="RIGHT"
1633VALIGN="TOP"
1634><TT
1635CLASS="PARAMETER"
1636><I
1637>ctxt</I
1638></TT
1639>&nbsp;:</TD
1640><TD
1641WIDTH="80%"
1642ALIGN="LEFT"
1643VALIGN="TOP"
1644> the XPath context</TD
1645></TR
1646><TR
1647><TD
1648WIDTH="20%"
1649ALIGN="RIGHT"
1650VALIGN="TOP"
1651><TT
1652CLASS="PARAMETER"
1653><I
1654>name</I
1655></TT
1656>&nbsp;:</TD
1657><TD
1658WIDTH="80%"
1659ALIGN="LEFT"
1660VALIGN="TOP"
1661> the function name</TD
1662></TR
1663><TR
1664><TD
1665WIDTH="20%"
1666ALIGN="RIGHT"
1667VALIGN="TOP"
1668><TT
1669CLASS="PARAMETER"
1670><I
1671>ns_uri</I
1672></TT
1673>&nbsp;:</TD
1674><TD
1675WIDTH="80%"
1676ALIGN="LEFT"
1677VALIGN="TOP"
1678> the function namespace URI</TD
1679></TR
1680><TR
1681><TD
1682WIDTH="20%"
1683ALIGN="RIGHT"
1684VALIGN="TOP"
1685><TT
1686CLASS="PARAMETER"
1687><I
1688>f</I
1689></TT
1690>&nbsp;:</TD
1691><TD
1692WIDTH="80%"
1693ALIGN="LEFT"
1694VALIGN="TOP"
1695> the function implementation or NULL</TD
1696></TR
1697><TR
1698><TD
1699WIDTH="20%"
1700ALIGN="RIGHT"
1701VALIGN="TOP"
1702><I
1703CLASS="EMPHASIS"
1704>Returns</I
1705> :</TD
1706><TD
1707WIDTH="80%"
1708ALIGN="LEFT"
1709VALIGN="TOP"
1710>0 in case of success, -1 in case of error</TD
1711></TR
1712></TABLE
1713><P
1714></P
1715></DIV
1716></DIV
1717><HR><DIV
1718CLASS="REFSECT2"
1719><A
1720NAME="AEN11393"
1721></A
1722><H3
1723><A
1724NAME="XMLXPATHREGISTERVARIABLE"
1725></A
1726>xmlXPathRegisterVariable ()</H3
1727><TABLE
1728BORDER="0"
1729BGCOLOR="#D6E8FF"
1730WIDTH="100%"
1731CELLPADDING="6"
1732><TR
1733><TD
1734><PRE
1735CLASS="PROGRAMLISTING"
1736>int xmlXPathRegisterVariable (<A
1737HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1738>xmlXPathContextPtr</A
1739> ctxt,
1740 const <A
1741HREF="gnome-xml-tree.html#XMLCHAR"
1742>xmlChar</A
1743> *name,
1744 <A
1745HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1746>xmlXPathObjectPtr</A
1747> value);</PRE
1748></TD
1749></TR
1750></TABLE
1751><P
1752>Register a new variable value. If <TT
1753CLASS="PARAMETER"
1754><I
1755>value</I
1756></TT
1757> is NULL it unregisters
1758the variable</P
1759><P
1760></P
1761><DIV
1762CLASS="INFORMALTABLE"
1763><P
1764></P
1765><TABLE
1766BORDER="0"
1767WIDTH="100%"
1768BGCOLOR="#FFD0D0"
1769CELLSPACING="0"
1770CELLPADDING="4"
1771CLASS="CALSTABLE"
1772><TR
1773><TD
1774WIDTH="20%"
1775ALIGN="RIGHT"
1776VALIGN="TOP"
1777><TT
1778CLASS="PARAMETER"
1779><I
1780>ctxt</I
1781></TT
1782>&nbsp;:</TD
1783><TD
1784WIDTH="80%"
1785ALIGN="LEFT"
1786VALIGN="TOP"
1787> the XPath context</TD
1788></TR
1789><TR
1790><TD
1791WIDTH="20%"
1792ALIGN="RIGHT"
1793VALIGN="TOP"
1794><TT
1795CLASS="PARAMETER"
1796><I
1797>name</I
1798></TT
1799>&nbsp;:</TD
1800><TD
1801WIDTH="80%"
1802ALIGN="LEFT"
1803VALIGN="TOP"
1804> the variable name</TD
1805></TR
1806><TR
1807><TD
1808WIDTH="20%"
1809ALIGN="RIGHT"
1810VALIGN="TOP"
1811><TT
1812CLASS="PARAMETER"
1813><I
1814>value</I
1815></TT
1816>&nbsp;:</TD
1817><TD
1818WIDTH="80%"
1819ALIGN="LEFT"
1820VALIGN="TOP"
1821> the variable value or NULL</TD
1822></TR
1823><TR
1824><TD
1825WIDTH="20%"
1826ALIGN="RIGHT"
1827VALIGN="TOP"
1828><I
1829CLASS="EMPHASIS"
1830>Returns</I
1831> :</TD
1832><TD
1833WIDTH="80%"
1834ALIGN="LEFT"
1835VALIGN="TOP"
1836>0 in case of success, -1 in case of error</TD
1837></TR
1838></TABLE
1839><P
1840></P
1841></DIV
1842></DIV
1843><HR><DIV
1844CLASS="REFSECT2"
1845><A
1846NAME="AEN11424"
1847></A
1848><H3
1849><A
1850NAME="XMLXPATHREGISTERVARIABLENS"
1851></A
1852>xmlXPathRegisterVariableNS ()</H3
1853><TABLE
1854BORDER="0"
1855BGCOLOR="#D6E8FF"
1856WIDTH="100%"
1857CELLPADDING="6"
1858><TR
1859><TD
1860><PRE
1861CLASS="PROGRAMLISTING"
1862>int xmlXPathRegisterVariableNS (<A
1863HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
1864>xmlXPathContextPtr</A
1865> ctxt,
1866 const <A
1867HREF="gnome-xml-tree.html#XMLCHAR"
1868>xmlChar</A
1869> *name,
1870 const <A
1871HREF="gnome-xml-tree.html#XMLCHAR"
1872>xmlChar</A
1873> *ns_uri,
1874 <A
1875HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
1876>xmlXPathObjectPtr</A
1877> value);</PRE
1878></TD
1879></TR
1880></TABLE
1881><P
1882>Register a new variable value. If <TT
1883CLASS="PARAMETER"
1884><I
1885>value</I
1886></TT
1887> is NULL it unregisters
1888the variable</P
1889><P
1890></P
1891><DIV
1892CLASS="INFORMALTABLE"
1893><P
1894></P
1895><TABLE
1896BORDER="0"
1897WIDTH="100%"
1898BGCOLOR="#FFD0D0"
1899CELLSPACING="0"
1900CELLPADDING="4"
1901CLASS="CALSTABLE"
1902><TR
1903><TD
1904WIDTH="20%"
1905ALIGN="RIGHT"
1906VALIGN="TOP"
1907><TT
1908CLASS="PARAMETER"
1909><I
1910>ctxt</I
1911></TT
1912>&nbsp;:</TD
1913><TD
1914WIDTH="80%"
1915ALIGN="LEFT"
1916VALIGN="TOP"
1917> the XPath context</TD
1918></TR
1919><TR
1920><TD
1921WIDTH="20%"
1922ALIGN="RIGHT"
1923VALIGN="TOP"
1924><TT
1925CLASS="PARAMETER"
1926><I
1927>name</I
1928></TT
1929>&nbsp;:</TD
1930><TD
1931WIDTH="80%"
1932ALIGN="LEFT"
1933VALIGN="TOP"
1934> the variable name</TD
1935></TR
1936><TR
1937><TD
1938WIDTH="20%"
1939ALIGN="RIGHT"
1940VALIGN="TOP"
1941><TT
1942CLASS="PARAMETER"
1943><I
1944>ns_uri</I
1945></TT
1946>&nbsp;:</TD
1947><TD
1948WIDTH="80%"
1949ALIGN="LEFT"
1950VALIGN="TOP"
1951> the variable namespace URI</TD
1952></TR
1953><TR
1954><TD
1955WIDTH="20%"
1956ALIGN="RIGHT"
1957VALIGN="TOP"
1958><TT
1959CLASS="PARAMETER"
1960><I
1961>value</I
1962></TT
1963>&nbsp;:</TD
1964><TD
1965WIDTH="80%"
1966ALIGN="LEFT"
1967VALIGN="TOP"
1968> the variable value or NULL</TD
1969></TR
1970><TR
1971><TD
1972WIDTH="20%"
1973ALIGN="RIGHT"
1974VALIGN="TOP"
1975><I
1976CLASS="EMPHASIS"
1977>Returns</I
1978> :</TD
1979><TD
1980WIDTH="80%"
1981ALIGN="LEFT"
1982VALIGN="TOP"
1983>0 in case of success, -1 in case of error</TD
1984></TR
1985></TABLE
1986><P
1987></P
1988></DIV
1989></DIV
1990><HR><DIV
1991CLASS="REFSECT2"
1992><A
1993NAME="AEN11460"
1994></A
1995><H3
1996><A
1997NAME="XMLXPATHFUNCTIONLOOKUP"
1998></A
1999>xmlXPathFunctionLookup ()</H3
2000><TABLE
2001BORDER="0"
2002BGCOLOR="#D6E8FF"
2003WIDTH="100%"
2004CELLPADDING="6"
2005><TR
2006><TD
2007><PRE
2008CLASS="PROGRAMLISTING"
2009><A
2010HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
2011>xmlXPathFunction</A
2012> xmlXPathFunctionLookup (<A
2013HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2014>xmlXPathContextPtr</A
2015> ctxt,
2016 const <A
2017HREF="gnome-xml-tree.html#XMLCHAR"
2018>xmlChar</A
2019> *name);</PRE
2020></TD
2021></TR
2022></TABLE
2023><P
2024>Search in the Function array of the context for the given
2025function.</P
2026><P
2027></P
2028><DIV
2029CLASS="INFORMALTABLE"
2030><P
2031></P
2032><TABLE
2033BORDER="0"
2034WIDTH="100%"
2035BGCOLOR="#FFD0D0"
2036CELLSPACING="0"
2037CELLPADDING="4"
2038CLASS="CALSTABLE"
2039><TR
2040><TD
2041WIDTH="20%"
2042ALIGN="RIGHT"
2043VALIGN="TOP"
2044><TT
2045CLASS="PARAMETER"
2046><I
2047>ctxt</I
2048></TT
2049>&nbsp;:</TD
2050><TD
2051WIDTH="80%"
2052ALIGN="LEFT"
2053VALIGN="TOP"
2054> the XPath context</TD
2055></TR
2056><TR
2057><TD
2058WIDTH="20%"
2059ALIGN="RIGHT"
2060VALIGN="TOP"
2061><TT
2062CLASS="PARAMETER"
2063><I
2064>name</I
2065></TT
2066>&nbsp;:</TD
2067><TD
2068WIDTH="80%"
2069ALIGN="LEFT"
2070VALIGN="TOP"
2071> the function name</TD
2072></TR
2073><TR
2074><TD
2075WIDTH="20%"
2076ALIGN="RIGHT"
2077VALIGN="TOP"
2078><I
2079CLASS="EMPHASIS"
2080>Returns</I
2081> :</TD
2082><TD
2083WIDTH="80%"
2084ALIGN="LEFT"
2085VALIGN="TOP"
2086>the xmlXPathFunction or NULL if not found</TD
2087></TR
2088></TABLE
2089><P
2090></P
2091></DIV
2092></DIV
2093><HR><DIV
2094CLASS="REFSECT2"
2095><A
2096NAME="AEN11486"
2097></A
2098><H3
2099><A
2100NAME="XMLXPATHFUNCTIONLOOKUPNS"
2101></A
2102>xmlXPathFunctionLookupNS ()</H3
2103><TABLE
2104BORDER="0"
2105BGCOLOR="#D6E8FF"
2106WIDTH="100%"
2107CELLPADDING="6"
2108><TR
2109><TD
2110><PRE
2111CLASS="PROGRAMLISTING"
2112><A
2113HREF="gnome-xml-xpath.html#XMLXPATHFUNCTION"
2114>xmlXPathFunction</A
2115> xmlXPathFunctionLookupNS (<A
2116HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2117>xmlXPathContextPtr</A
2118> ctxt,
2119 const <A
2120HREF="gnome-xml-tree.html#XMLCHAR"
2121>xmlChar</A
2122> *name,
2123 const <A
2124HREF="gnome-xml-tree.html#XMLCHAR"
2125>xmlChar</A
2126> *ns_uri);</PRE
2127></TD
2128></TR
2129></TABLE
2130><P
2131>Search in the Function array of the context for the given
2132function.</P
2133><P
2134></P
2135><DIV
2136CLASS="INFORMALTABLE"
2137><P
2138></P
2139><TABLE
2140BORDER="0"
2141WIDTH="100%"
2142BGCOLOR="#FFD0D0"
2143CELLSPACING="0"
2144CELLPADDING="4"
2145CLASS="CALSTABLE"
2146><TR
2147><TD
2148WIDTH="20%"
2149ALIGN="RIGHT"
2150VALIGN="TOP"
2151><TT
2152CLASS="PARAMETER"
2153><I
2154>ctxt</I
2155></TT
2156>&nbsp;:</TD
2157><TD
2158WIDTH="80%"
2159ALIGN="LEFT"
2160VALIGN="TOP"
2161> the XPath context</TD
2162></TR
2163><TR
2164><TD
2165WIDTH="20%"
2166ALIGN="RIGHT"
2167VALIGN="TOP"
2168><TT
2169CLASS="PARAMETER"
2170><I
2171>name</I
2172></TT
2173>&nbsp;:</TD
2174><TD
2175WIDTH="80%"
2176ALIGN="LEFT"
2177VALIGN="TOP"
2178> the function name</TD
2179></TR
2180><TR
2181><TD
2182WIDTH="20%"
2183ALIGN="RIGHT"
2184VALIGN="TOP"
2185><TT
2186CLASS="PARAMETER"
2187><I
2188>ns_uri</I
2189></TT
2190>&nbsp;:</TD
2191><TD
2192WIDTH="80%"
2193ALIGN="LEFT"
2194VALIGN="TOP"
2195> the function namespace URI</TD
2196></TR
2197><TR
2198><TD
2199WIDTH="20%"
2200ALIGN="RIGHT"
2201VALIGN="TOP"
2202><I
2203CLASS="EMPHASIS"
2204>Returns</I
2205> :</TD
2206><TD
2207WIDTH="80%"
2208ALIGN="LEFT"
2209VALIGN="TOP"
2210>the xmlXPathFunction or NULL if not found</TD
2211></TR
2212></TABLE
2213><P
2214></P
2215></DIV
2216></DIV
2217><HR><DIV
2218CLASS="REFSECT2"
2219><A
2220NAME="AEN11517"
2221></A
2222><H3
2223><A
2224NAME="XMLXPATHREGISTEREDFUNCSCLEANUP"
2225></A
2226>xmlXPathRegisteredFuncsCleanup ()</H3
2227><TABLE
2228BORDER="0"
2229BGCOLOR="#D6E8FF"
2230WIDTH="100%"
2231CELLPADDING="6"
2232><TR
2233><TD
2234><PRE
2235CLASS="PROGRAMLISTING"
2236>void xmlXPathRegisteredFuncsCleanup (<A
2237HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2238>xmlXPathContextPtr</A
2239> ctxt);</PRE
2240></TD
2241></TR
2242></TABLE
2243><P
2244>Cleanup the XPath context data associated to registered functions</P
2245><P
2246></P
2247><DIV
2248CLASS="INFORMALTABLE"
2249><P
2250></P
2251><TABLE
2252BORDER="0"
2253WIDTH="100%"
2254BGCOLOR="#FFD0D0"
2255CELLSPACING="0"
2256CELLPADDING="4"
2257CLASS="CALSTABLE"
2258><TR
2259><TD
2260WIDTH="20%"
2261ALIGN="RIGHT"
2262VALIGN="TOP"
2263><TT
2264CLASS="PARAMETER"
2265><I
2266>ctxt</I
2267></TT
2268>&nbsp;:</TD
2269><TD
2270WIDTH="80%"
2271ALIGN="LEFT"
2272VALIGN="TOP"
2273> the XPath context</TD
2274></TR
2275></TABLE
2276><P
2277></P
2278></DIV
2279></DIV
2280><HR><DIV
2281CLASS="REFSECT2"
2282><A
2283NAME="AEN11533"
2284></A
2285><H3
2286><A
2287NAME="XMLXPATHVARIABLELOOKUP"
2288></A
2289>xmlXPathVariableLookup ()</H3
2290><TABLE
2291BORDER="0"
2292BGCOLOR="#D6E8FF"
2293WIDTH="100%"
2294CELLPADDING="6"
2295><TR
2296><TD
2297><PRE
2298CLASS="PROGRAMLISTING"
2299><A
2300HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2301>xmlXPathObjectPtr</A
2302> xmlXPathVariableLookup (<A
2303HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2304>xmlXPathContextPtr</A
2305> ctxt,
2306 const <A
2307HREF="gnome-xml-tree.html#XMLCHAR"
2308>xmlChar</A
2309> *name);</PRE
2310></TD
2311></TR
2312></TABLE
2313><P
2314>Search in the Variable array of the context for the given
2315variable value.</P
2316><P
2317></P
2318><DIV
2319CLASS="INFORMALTABLE"
2320><P
2321></P
2322><TABLE
2323BORDER="0"
2324WIDTH="100%"
2325BGCOLOR="#FFD0D0"
2326CELLSPACING="0"
2327CELLPADDING="4"
2328CLASS="CALSTABLE"
2329><TR
2330><TD
2331WIDTH="20%"
2332ALIGN="RIGHT"
2333VALIGN="TOP"
2334><TT
2335CLASS="PARAMETER"
2336><I
2337>ctxt</I
2338></TT
2339>&nbsp;:</TD
2340><TD
2341WIDTH="80%"
2342ALIGN="LEFT"
2343VALIGN="TOP"
2344> the XPath context</TD
2345></TR
2346><TR
2347><TD
2348WIDTH="20%"
2349ALIGN="RIGHT"
2350VALIGN="TOP"
2351><TT
2352CLASS="PARAMETER"
2353><I
2354>name</I
2355></TT
2356>&nbsp;:</TD
2357><TD
2358WIDTH="80%"
2359ALIGN="LEFT"
2360VALIGN="TOP"
2361> the variable name</TD
2362></TR
2363><TR
2364><TD
2365WIDTH="20%"
2366ALIGN="RIGHT"
2367VALIGN="TOP"
2368><I
2369CLASS="EMPHASIS"
2370>Returns</I
2371> :</TD
2372><TD
2373WIDTH="80%"
2374ALIGN="LEFT"
2375VALIGN="TOP"
2376>the value or NULL if not found</TD
2377></TR
2378></TABLE
2379><P
2380></P
2381></DIV
2382></DIV
2383><HR><DIV
2384CLASS="REFSECT2"
2385><A
2386NAME="AEN11559"
2387></A
2388><H3
2389><A
2390NAME="XMLXPATHVARIABLELOOKUPNS"
2391></A
2392>xmlXPathVariableLookupNS ()</H3
2393><TABLE
2394BORDER="0"
2395BGCOLOR="#D6E8FF"
2396WIDTH="100%"
2397CELLPADDING="6"
2398><TR
2399><TD
2400><PRE
2401CLASS="PROGRAMLISTING"
2402><A
2403HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2404>xmlXPathObjectPtr</A
2405> xmlXPathVariableLookupNS (<A
2406HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2407>xmlXPathContextPtr</A
2408> ctxt,
2409 const <A
2410HREF="gnome-xml-tree.html#XMLCHAR"
2411>xmlChar</A
2412> *name,
2413 const <A
2414HREF="gnome-xml-tree.html#XMLCHAR"
2415>xmlChar</A
2416> *ns_uri);</PRE
2417></TD
2418></TR
2419></TABLE
2420><P
2421>Search in the Variable array of the context for the given
2422variable value.</P
2423><P
2424></P
2425><DIV
2426CLASS="INFORMALTABLE"
2427><P
2428></P
2429><TABLE
2430BORDER="0"
2431WIDTH="100%"
2432BGCOLOR="#FFD0D0"
2433CELLSPACING="0"
2434CELLPADDING="4"
2435CLASS="CALSTABLE"
2436><TR
2437><TD
2438WIDTH="20%"
2439ALIGN="RIGHT"
2440VALIGN="TOP"
2441><TT
2442CLASS="PARAMETER"
2443><I
2444>ctxt</I
2445></TT
2446>&nbsp;:</TD
2447><TD
2448WIDTH="80%"
2449ALIGN="LEFT"
2450VALIGN="TOP"
2451> the XPath context</TD
2452></TR
2453><TR
2454><TD
2455WIDTH="20%"
2456ALIGN="RIGHT"
2457VALIGN="TOP"
2458><TT
2459CLASS="PARAMETER"
2460><I
2461>name</I
2462></TT
2463>&nbsp;:</TD
2464><TD
2465WIDTH="80%"
2466ALIGN="LEFT"
2467VALIGN="TOP"
2468> the variable name</TD
2469></TR
2470><TR
2471><TD
2472WIDTH="20%"
2473ALIGN="RIGHT"
2474VALIGN="TOP"
2475><TT
2476CLASS="PARAMETER"
2477><I
2478>ns_uri</I
2479></TT
2480>&nbsp;:</TD
2481><TD
2482WIDTH="80%"
2483ALIGN="LEFT"
2484VALIGN="TOP"
2485> the variable namespace URI</TD
2486></TR
2487><TR
2488><TD
2489WIDTH="20%"
2490ALIGN="RIGHT"
2491VALIGN="TOP"
2492><I
2493CLASS="EMPHASIS"
2494>Returns</I
2495> :</TD
2496><TD
2497WIDTH="80%"
2498ALIGN="LEFT"
2499VALIGN="TOP"
2500>the value or NULL if not found</TD
2501></TR
2502></TABLE
2503><P
2504></P
2505></DIV
2506></DIV
2507><HR><DIV
2508CLASS="REFSECT2"
2509><A
2510NAME="AEN11590"
2511></A
2512><H3
2513><A
2514NAME="XMLXPATHREGISTEREDVARIABLESCLEANUP"
2515></A
2516>xmlXPathRegisteredVariablesCleanup ()</H3
2517><TABLE
2518BORDER="0"
2519BGCOLOR="#D6E8FF"
2520WIDTH="100%"
2521CELLPADDING="6"
2522><TR
2523><TD
2524><PRE
2525CLASS="PROGRAMLISTING"
2526>void xmlXPathRegisteredVariablesCleanup
2527 (<A
2528HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2529>xmlXPathContextPtr</A
2530> ctxt);</PRE
2531></TD
2532></TR
2533></TABLE
2534><P
2535>Cleanup the XPath context data associated to registered variables</P
2536><P
2537></P
2538><DIV
2539CLASS="INFORMALTABLE"
2540><P
2541></P
2542><TABLE
2543BORDER="0"
2544WIDTH="100%"
2545BGCOLOR="#FFD0D0"
2546CELLSPACING="0"
2547CELLPADDING="4"
2548CLASS="CALSTABLE"
2549><TR
2550><TD
2551WIDTH="20%"
2552ALIGN="RIGHT"
2553VALIGN="TOP"
2554><TT
2555CLASS="PARAMETER"
2556><I
2557>ctxt</I
2558></TT
2559>&nbsp;:</TD
2560><TD
2561WIDTH="80%"
2562ALIGN="LEFT"
2563VALIGN="TOP"
2564> the XPath context</TD
2565></TR
2566></TABLE
2567><P
2568></P
2569></DIV
2570></DIV
2571><HR><DIV
2572CLASS="REFSECT2"
2573><A
2574NAME="AEN11606"
2575></A
2576><H3
2577><A
2578NAME="XMLXPATHNEWPARSERCONTEXT"
2579></A
2580>xmlXPathNewParserContext ()</H3
2581><TABLE
2582BORDER="0"
2583BGCOLOR="#D6E8FF"
2584WIDTH="100%"
2585CELLPADDING="6"
2586><TR
2587><TD
2588><PRE
2589CLASS="PROGRAMLISTING"
2590><A
2591HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
2592>xmlXPathParserContextPtr</A
2593> xmlXPathNewParserContext
2594 (const <A
2595HREF="gnome-xml-tree.html#XMLCHAR"
2596>xmlChar</A
2597> *str,
2598 <A
2599HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
2600>xmlXPathContextPtr</A
2601> ctxt);</PRE
2602></TD
2603></TR
2604></TABLE
2605><P
2606>Create a new xmlXPathParserContext</P
2607><P
2608></P
2609><DIV
2610CLASS="INFORMALTABLE"
2611><P
2612></P
2613><TABLE
2614BORDER="0"
2615WIDTH="100%"
2616BGCOLOR="#FFD0D0"
2617CELLSPACING="0"
2618CELLPADDING="4"
2619CLASS="CALSTABLE"
2620><TR
2621><TD
2622WIDTH="20%"
2623ALIGN="RIGHT"
2624VALIGN="TOP"
2625><TT
2626CLASS="PARAMETER"
2627><I
2628>str</I
2629></TT
2630>&nbsp;:</TD
2631><TD
2632WIDTH="80%"
2633ALIGN="LEFT"
2634VALIGN="TOP"
2635> the XPath expression</TD
2636></TR
2637><TR
2638><TD
2639WIDTH="20%"
2640ALIGN="RIGHT"
2641VALIGN="TOP"
2642><TT
2643CLASS="PARAMETER"
2644><I
2645>ctxt</I
2646></TT
2647>&nbsp;:</TD
2648><TD
2649WIDTH="80%"
2650ALIGN="LEFT"
2651VALIGN="TOP"
2652> the XPath context</TD
2653></TR
2654><TR
2655><TD
2656WIDTH="20%"
2657ALIGN="RIGHT"
2658VALIGN="TOP"
2659><I
2660CLASS="EMPHASIS"
2661>Returns</I
2662> :</TD
2663><TD
2664WIDTH="80%"
2665ALIGN="LEFT"
2666VALIGN="TOP"
2667>the xmlXPathParserContext just allocated.</TD
2668></TR
2669></TABLE
2670><P
2671></P
2672></DIV
2673></DIV
2674><HR><DIV
2675CLASS="REFSECT2"
2676><A
2677NAME="AEN11632"
2678></A
2679><H3
2680><A
2681NAME="XMLXPATHFREEPARSERCONTEXT"
2682></A
2683>xmlXPathFreeParserContext ()</H3
2684><TABLE
2685BORDER="0"
2686BGCOLOR="#D6E8FF"
2687WIDTH="100%"
2688CELLPADDING="6"
2689><TR
2690><TD
2691><PRE
2692CLASS="PROGRAMLISTING"
2693>void xmlXPathFreeParserContext (<A
2694HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
2695>xmlXPathParserContextPtr</A
2696> ctxt);</PRE
2697></TD
2698></TR
2699></TABLE
2700><P
2701>Free up an xmlXPathParserContext</P
2702><P
2703></P
2704><DIV
2705CLASS="INFORMALTABLE"
2706><P
2707></P
2708><TABLE
2709BORDER="0"
2710WIDTH="100%"
2711BGCOLOR="#FFD0D0"
2712CELLSPACING="0"
2713CELLPADDING="4"
2714CLASS="CALSTABLE"
2715><TR
2716><TD
2717WIDTH="20%"
2718ALIGN="RIGHT"
2719VALIGN="TOP"
2720><TT
2721CLASS="PARAMETER"
2722><I
2723>ctxt</I
2724></TT
2725>&nbsp;:</TD
2726><TD
2727WIDTH="80%"
2728ALIGN="LEFT"
2729VALIGN="TOP"
2730> the context to free</TD
2731></TR
2732></TABLE
2733><P
2734></P
2735></DIV
2736></DIV
2737><HR><DIV
2738CLASS="REFSECT2"
2739><A
2740NAME="AEN11648"
2741></A
2742><H3
2743><A
2744NAME="VALUEPOP"
2745></A
2746>valuePop ()</H3
2747><TABLE
2748BORDER="0"
2749BGCOLOR="#D6E8FF"
2750WIDTH="100%"
2751CELLPADDING="6"
2752><TR
2753><TD
2754><PRE
2755CLASS="PROGRAMLISTING"
2756><A
2757HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2758>xmlXPathObjectPtr</A
2759> valuePop (<A
2760HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
2761>xmlXPathParserContextPtr</A
2762> ctxt);</PRE
2763></TD
2764></TR
2765></TABLE
2766><P
2767></P
2768><DIV
2769CLASS="INFORMALTABLE"
2770><P
2771></P
2772><TABLE
2773BORDER="0"
2774WIDTH="100%"
2775BGCOLOR="#FFD0D0"
2776CELLSPACING="0"
2777CELLPADDING="4"
2778CLASS="CALSTABLE"
2779><TR
2780><TD
2781WIDTH="20%"
2782ALIGN="RIGHT"
2783VALIGN="TOP"
2784><TT
2785CLASS="PARAMETER"
2786><I
2787>ctxt</I
2788></TT
2789>&nbsp;:</TD
2790><TD
2791WIDTH="80%"
2792ALIGN="LEFT"
2793VALIGN="TOP"
2794>&nbsp;</TD
2795></TR
2796><TR
2797><TD
2798WIDTH="20%"
2799ALIGN="RIGHT"
2800VALIGN="TOP"
2801><I
2802CLASS="EMPHASIS"
2803>Returns</I
2804> :</TD
2805><TD
2806WIDTH="80%"
2807ALIGN="LEFT"
2808VALIGN="TOP"
2809>&nbsp;</TD
2810></TR
2811></TABLE
2812><P
2813></P
2814></DIV
2815></DIV
2816><HR><DIV
2817CLASS="REFSECT2"
2818><A
2819NAME="AEN11668"
2820></A
2821><H3
2822><A
2823NAME="VALUEPUSH"
2824></A
2825>valuePush ()</H3
2826><TABLE
2827BORDER="0"
2828BGCOLOR="#D6E8FF"
2829WIDTH="100%"
2830CELLPADDING="6"
2831><TR
2832><TD
2833><PRE
2834CLASS="PROGRAMLISTING"
2835>int valuePush (<A
2836HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
2837>xmlXPathParserContextPtr</A
2838> ctxt,
2839 <A
2840HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2841>xmlXPathObjectPtr</A
2842> value);</PRE
2843></TD
2844></TR
2845></TABLE
2846><P
2847></P
2848><DIV
2849CLASS="INFORMALTABLE"
2850><P
2851></P
2852><TABLE
2853BORDER="0"
2854WIDTH="100%"
2855BGCOLOR="#FFD0D0"
2856CELLSPACING="0"
2857CELLPADDING="4"
2858CLASS="CALSTABLE"
2859><TR
2860><TD
2861WIDTH="20%"
2862ALIGN="RIGHT"
2863VALIGN="TOP"
2864><TT
2865CLASS="PARAMETER"
2866><I
2867>ctxt</I
2868></TT
2869>&nbsp;:</TD
2870><TD
2871WIDTH="80%"
2872ALIGN="LEFT"
2873VALIGN="TOP"
2874>&nbsp;</TD
2875></TR
2876><TR
2877><TD
2878WIDTH="20%"
2879ALIGN="RIGHT"
2880VALIGN="TOP"
2881><TT
2882CLASS="PARAMETER"
2883><I
2884>value</I
2885></TT
2886>&nbsp;:</TD
2887><TD
2888WIDTH="80%"
2889ALIGN="LEFT"
2890VALIGN="TOP"
2891>&nbsp;</TD
2892></TR
2893><TR
2894><TD
2895WIDTH="20%"
2896ALIGN="RIGHT"
2897VALIGN="TOP"
2898><I
2899CLASS="EMPHASIS"
2900>Returns</I
2901> :</TD
2902><TD
2903WIDTH="80%"
2904ALIGN="LEFT"
2905VALIGN="TOP"
2906>&nbsp;</TD
2907></TR
2908></TABLE
2909><P
2910></P
2911></DIV
2912></DIV
2913><HR><DIV
2914CLASS="REFSECT2"
2915><A
2916NAME="AEN11692"
2917></A
2918><H3
2919><A
2920NAME="XMLXPATHNEWSTRING"
2921></A
2922>xmlXPathNewString ()</H3
2923><TABLE
2924BORDER="0"
2925BGCOLOR="#D6E8FF"
2926WIDTH="100%"
2927CELLPADDING="6"
2928><TR
2929><TD
2930><PRE
2931CLASS="PROGRAMLISTING"
2932><A
2933HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
2934>xmlXPathObjectPtr</A
2935> xmlXPathNewString (const <A
2936HREF="gnome-xml-tree.html#XMLCHAR"
2937>xmlChar</A
2938> *val);</PRE
2939></TD
2940></TR
2941></TABLE
2942><P
2943>Create a new xmlXPathObjectPtr of type string and of value <TT
2944CLASS="PARAMETER"
2945><I
2946>val</I
2947></TT
2948></P
2949><P
2950></P
2951><DIV
2952CLASS="INFORMALTABLE"
2953><P
2954></P
2955><TABLE
2956BORDER="0"
2957WIDTH="100%"
2958BGCOLOR="#FFD0D0"
2959CELLSPACING="0"
2960CELLPADDING="4"
2961CLASS="CALSTABLE"
2962><TR
2963><TD
2964WIDTH="20%"
2965ALIGN="RIGHT"
2966VALIGN="TOP"
2967><TT
2968CLASS="PARAMETER"
2969><I
2970>val</I
2971></TT
2972>&nbsp;:</TD
2973><TD
2974WIDTH="80%"
2975ALIGN="LEFT"
2976VALIGN="TOP"
2977> the xmlChar * value</TD
2978></TR
2979><TR
2980><TD
2981WIDTH="20%"
2982ALIGN="RIGHT"
2983VALIGN="TOP"
2984><I
2985CLASS="EMPHASIS"
2986>Returns</I
2987> :</TD
2988><TD
2989WIDTH="80%"
2990ALIGN="LEFT"
2991VALIGN="TOP"
2992>the newly created object.</TD
2993></TR
2994></TABLE
2995><P
2996></P
2997></DIV
2998></DIV
2999><HR><DIV
3000CLASS="REFSECT2"
3001><A
3002NAME="AEN11714"
3003></A
3004><H3
3005><A
3006NAME="XMLXPATHNEWCSTRING"
3007></A
3008>xmlXPathNewCString ()</H3
3009><TABLE
3010BORDER="0"
3011BGCOLOR="#D6E8FF"
3012WIDTH="100%"
3013CELLPADDING="6"
3014><TR
3015><TD
3016><PRE
3017CLASS="PROGRAMLISTING"
3018><A
3019HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
3020>xmlXPathObjectPtr</A
3021> xmlXPathNewCString (const char *val);</PRE
3022></TD
3023></TR
3024></TABLE
3025><P
3026>Create a new xmlXPathObjectPtr of type string and of value <TT
3027CLASS="PARAMETER"
3028><I
3029>val</I
3030></TT
3031></P
3032><P
3033></P
3034><DIV
3035CLASS="INFORMALTABLE"
3036><P
3037></P
3038><TABLE
3039BORDER="0"
3040WIDTH="100%"
3041BGCOLOR="#FFD0D0"
3042CELLSPACING="0"
3043CELLPADDING="4"
3044CLASS="CALSTABLE"
3045><TR
3046><TD
3047WIDTH="20%"
3048ALIGN="RIGHT"
3049VALIGN="TOP"
3050><TT
3051CLASS="PARAMETER"
3052><I
3053>val</I
3054></TT
3055>&nbsp;:</TD
3056><TD
3057WIDTH="80%"
3058ALIGN="LEFT"
3059VALIGN="TOP"
3060> the char * value</TD
3061></TR
3062><TR
3063><TD
3064WIDTH="20%"
3065ALIGN="RIGHT"
3066VALIGN="TOP"
3067><I
3068CLASS="EMPHASIS"
3069>Returns</I
3070> :</TD
3071><TD
3072WIDTH="80%"
3073ALIGN="LEFT"
3074VALIGN="TOP"
3075>the newly created object.</TD
3076></TR
3077></TABLE
3078><P
3079></P
3080></DIV
3081></DIV
3082><HR><DIV
3083CLASS="REFSECT2"
3084><A
3085NAME="AEN11735"
3086></A
3087><H3
3088><A
3089NAME="XMLXPATHNEWFLOAT"
3090></A
3091>xmlXPathNewFloat ()</H3
3092><TABLE
3093BORDER="0"
3094BGCOLOR="#D6E8FF"
3095WIDTH="100%"
3096CELLPADDING="6"
3097><TR
3098><TD
3099><PRE
3100CLASS="PROGRAMLISTING"
3101><A
3102HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
3103>xmlXPathObjectPtr</A
3104> xmlXPathNewFloat (<GTKDOCLINK
3105HREF="DOUBLE"
3106>double</GTKDOCLINK
3107> val);</PRE
3108></TD
3109></TR
3110></TABLE
3111><P
3112>Create a new xmlXPathObjectPtr of type double and of value <TT
3113CLASS="PARAMETER"
3114><I
3115>val</I
3116></TT
3117></P
3118><P
3119></P
3120><DIV
3121CLASS="INFORMALTABLE"
3122><P
3123></P
3124><TABLE
3125BORDER="0"
3126WIDTH="100%"
3127BGCOLOR="#FFD0D0"
3128CELLSPACING="0"
3129CELLPADDING="4"
3130CLASS="CALSTABLE"
3131><TR
3132><TD
3133WIDTH="20%"
3134ALIGN="RIGHT"
3135VALIGN="TOP"
3136><TT
3137CLASS="PARAMETER"
3138><I
3139>val</I
3140></TT
3141>&nbsp;:</TD
3142><TD
3143WIDTH="80%"
3144ALIGN="LEFT"
3145VALIGN="TOP"
3146> the double value</TD
3147></TR
3148><TR
3149><TD
3150WIDTH="20%"
3151ALIGN="RIGHT"
3152VALIGN="TOP"
3153><I
3154CLASS="EMPHASIS"
3155>Returns</I
3156> :</TD
3157><TD
3158WIDTH="80%"
3159ALIGN="LEFT"
3160VALIGN="TOP"
3161>the newly created object.</TD
3162></TR
3163></TABLE
3164><P
3165></P
3166></DIV
3167></DIV
3168><HR><DIV
3169CLASS="REFSECT2"
3170><A
3171NAME="AEN11757"
3172></A
3173><H3
3174><A
3175NAME="XMLXPATHNEWBOOLEAN"
3176></A
3177>xmlXPathNewBoolean ()</H3
3178><TABLE
3179BORDER="0"
3180BGCOLOR="#D6E8FF"
3181WIDTH="100%"
3182CELLPADDING="6"
3183><TR
3184><TD
3185><PRE
3186CLASS="PROGRAMLISTING"
3187><A
3188HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
3189>xmlXPathObjectPtr</A
3190> xmlXPathNewBoolean (int val);</PRE
3191></TD
3192></TR
3193></TABLE
3194><P
3195>Create a new xmlXPathObjectPtr of type boolean and of value <TT
3196CLASS="PARAMETER"
3197><I
3198>val</I
3199></TT
3200></P
3201><P
3202></P
3203><DIV
3204CLASS="INFORMALTABLE"
3205><P
3206></P
3207><TABLE
3208BORDER="0"
3209WIDTH="100%"
3210BGCOLOR="#FFD0D0"
3211CELLSPACING="0"
3212CELLPADDING="4"
3213CLASS="CALSTABLE"
3214><TR
3215><TD
3216WIDTH="20%"
3217ALIGN="RIGHT"
3218VALIGN="TOP"
3219><TT
3220CLASS="PARAMETER"
3221><I
3222>val</I
3223></TT
3224>&nbsp;:</TD
3225><TD
3226WIDTH="80%"
3227ALIGN="LEFT"
3228VALIGN="TOP"
3229> the boolean value</TD
3230></TR
3231><TR
3232><TD
3233WIDTH="20%"
3234ALIGN="RIGHT"
3235VALIGN="TOP"
3236><I
3237CLASS="EMPHASIS"
3238>Returns</I
3239> :</TD
3240><TD
3241WIDTH="80%"
3242ALIGN="LEFT"
3243VALIGN="TOP"
3244>the newly created object.</TD
3245></TR
3246></TABLE
3247><P
3248></P
3249></DIV
3250></DIV
3251><HR><DIV
3252CLASS="REFSECT2"
3253><A
3254NAME="AEN11778"
3255></A
3256><H3
3257><A
3258NAME="XMLXPATHNEWNODESET"
3259></A
3260>xmlXPathNewNodeSet ()</H3
3261><TABLE
3262BORDER="0"
3263BGCOLOR="#D6E8FF"
3264WIDTH="100%"
3265CELLPADDING="6"
3266><TR
3267><TD
3268><PRE
3269CLASS="PROGRAMLISTING"
3270><A
3271HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
3272>xmlXPathObjectPtr</A
3273> xmlXPathNewNodeSet (<A
3274HREF="gnome-xml-tree.html#XMLNODEPTR"
3275>xmlNodePtr</A
3276> val);</PRE
3277></TD
3278></TR
3279></TABLE
3280><P
3281>Create a new xmlXPathObjectPtr of type NodeSet and initialize
3282it with the single Node <TT
3283CLASS="PARAMETER"
3284><I
3285>val</I
3286></TT
3287></P
3288><P
3289></P
3290><DIV
3291CLASS="INFORMALTABLE"
3292><P
3293></P
3294><TABLE
3295BORDER="0"
3296WIDTH="100%"
3297BGCOLOR="#FFD0D0"
3298CELLSPACING="0"
3299CELLPADDING="4"
3300CLASS="CALSTABLE"
3301><TR
3302><TD
3303WIDTH="20%"
3304ALIGN="RIGHT"
3305VALIGN="TOP"
3306><TT
3307CLASS="PARAMETER"
3308><I
3309>val</I
3310></TT
3311>&nbsp;:</TD
3312><TD
3313WIDTH="80%"
3314ALIGN="LEFT"
3315VALIGN="TOP"
3316> the NodePtr value</TD
3317></TR
3318><TR
3319><TD
3320WIDTH="20%"
3321ALIGN="RIGHT"
3322VALIGN="TOP"
3323><I
3324CLASS="EMPHASIS"
3325>Returns</I
3326> :</TD
3327><TD
3328WIDTH="80%"
3329ALIGN="LEFT"
3330VALIGN="TOP"
3331>the newly created object.</TD
3332></TR
3333></TABLE
3334><P
3335></P
3336></DIV
3337></DIV
3338><HR><DIV
3339CLASS="REFSECT2"
3340><A
3341NAME="AEN11800"
3342></A
3343><H3
3344><A
3345NAME="XMLXPATHNODESETADD"
3346></A
3347>xmlXPathNodeSetAdd ()</H3
3348><TABLE
3349BORDER="0"
3350BGCOLOR="#D6E8FF"
3351WIDTH="100%"
3352CELLPADDING="6"
3353><TR
3354><TD
3355><PRE
3356CLASS="PROGRAMLISTING"
3357>void xmlXPathNodeSetAdd (<A
3358HREF="gnome-xml-xpath.html#XMLNODESETPTR"
3359>xmlNodeSetPtr</A
3360> cur,
3361 <A
3362HREF="gnome-xml-tree.html#XMLNODEPTR"
3363>xmlNodePtr</A
3364> val);</PRE
3365></TD
3366></TR
3367></TABLE
3368><P
3369>add a new xmlNodePtr ot an existing NodeSet</P
3370><P
3371></P
3372><DIV
3373CLASS="INFORMALTABLE"
3374><P
3375></P
3376><TABLE
3377BORDER="0"
3378WIDTH="100%"
3379BGCOLOR="#FFD0D0"
3380CELLSPACING="0"
3381CELLPADDING="4"
3382CLASS="CALSTABLE"
3383><TR
3384><TD
3385WIDTH="20%"
3386ALIGN="RIGHT"
3387VALIGN="TOP"
3388><TT
3389CLASS="PARAMETER"
3390><I
3391>cur</I
3392></TT
3393>&nbsp;:</TD
3394><TD
3395WIDTH="80%"
3396ALIGN="LEFT"
3397VALIGN="TOP"
3398> the initial node set</TD
3399></TR
3400><TR
3401><TD
3402WIDTH="20%"
3403ALIGN="RIGHT"
3404VALIGN="TOP"
3405><TT
3406CLASS="PARAMETER"
3407><I
3408>val</I
3409></TT
3410>&nbsp;:</TD
3411><TD
3412WIDTH="80%"
3413ALIGN="LEFT"
3414VALIGN="TOP"
3415> a new xmlNodePtr</TD
3416></TR
3417></TABLE
3418><P
3419></P
3420></DIV
3421></DIV
3422><HR><DIV
3423CLASS="REFSECT2"
3424><A
3425NAME="AEN11821"
3426></A
3427><H3
3428><A
3429NAME="XMLXPATHIDFUNCTION"
3430></A
3431>xmlXPathIdFunction ()</H3
3432><TABLE
3433BORDER="0"
3434BGCOLOR="#D6E8FF"
3435WIDTH="100%"
3436CELLPADDING="6"
3437><TR
3438><TD
3439><PRE
3440CLASS="PROGRAMLISTING"
3441>void xmlXPathIdFunction (<A
3442HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
3443>xmlXPathParserContextPtr</A
3444> ctxt,
3445 int nargs);</PRE
3446></TD
3447></TR
3448></TABLE
3449><P
3450>Implement the <GTKDOCLINK
3451HREF="ID"
3452>id</GTKDOCLINK
3453>() XPath function
3454node-set id(object)
3455The id function selects elements by their unique ID
3456(see [5.2.1 Unique IDs]). When the argument to id is of type node-set,
3457then the result is the union of the result of applying id to the
3458string value of each of the nodes in the argument node-set. When the
3459argument to id is of any other type, the argument is converted to a
3460string as if by a call to the string function; the string is split
3461into a whitespace-separated list of tokens (whitespace is any sequence
3462of characters matching the production S); the result is a node-set
3463containing the elements in the same document as the context node that
3464have a unique ID equal to any of the tokens in the list.</P
3465><P
3466></P
3467><DIV
3468CLASS="INFORMALTABLE"
3469><P
3470></P
3471><TABLE
3472BORDER="0"
3473WIDTH="100%"
3474BGCOLOR="#FFD0D0"
3475CELLSPACING="0"
3476CELLPADDING="4"
3477CLASS="CALSTABLE"
3478><TR
3479><TD
3480WIDTH="20%"
3481ALIGN="RIGHT"
3482VALIGN="TOP"
3483><TT
3484CLASS="PARAMETER"
3485><I
3486>ctxt</I
3487></TT
3488>&nbsp;:</TD
3489><TD
3490WIDTH="80%"
3491ALIGN="LEFT"
3492VALIGN="TOP"
3493> the XPath Parser context</TD
3494></TR
3495><TR
3496><TD
3497WIDTH="20%"
3498ALIGN="RIGHT"
3499VALIGN="TOP"
3500><TT
3501CLASS="PARAMETER"
3502><I
3503>nargs</I
3504></TT
3505>&nbsp;:</TD
3506><TD
3507WIDTH="80%"
3508ALIGN="LEFT"
3509VALIGN="TOP"
3510>&nbsp;</TD
3511></TR
3512></TABLE
3513><P
3514></P
3515></DIV
3516></DIV
3517><HR><DIV
3518CLASS="REFSECT2"
3519><A
3520NAME="AEN11842"
3521></A
3522><H3
3523><A
3524NAME="XMLXPATHROOT"
3525></A
3526>xmlXPathRoot ()</H3
3527><TABLE
3528BORDER="0"
3529BGCOLOR="#D6E8FF"
3530WIDTH="100%"
3531CELLPADDING="6"
3532><TR
3533><TD
3534><PRE
3535CLASS="PROGRAMLISTING"
3536>void xmlXPathRoot (<A
3537HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
3538>xmlXPathParserContextPtr</A
3539> ctxt);</PRE
3540></TD
3541></TR
3542></TABLE
3543><P
3544>Initialize the context to the root of the document</P
3545><P
3546></P
3547><DIV
3548CLASS="INFORMALTABLE"
3549><P
3550></P
3551><TABLE
3552BORDER="0"
3553WIDTH="100%"
3554BGCOLOR="#FFD0D0"
3555CELLSPACING="0"
3556CELLPADDING="4"
3557CLASS="CALSTABLE"
3558><TR
3559><TD
3560WIDTH="20%"
3561ALIGN="RIGHT"
3562VALIGN="TOP"
3563><TT
3564CLASS="PARAMETER"
3565><I
3566>ctxt</I
3567></TT
3568>&nbsp;:</TD
3569><TD
3570WIDTH="80%"
3571ALIGN="LEFT"
3572VALIGN="TOP"
3573> the XPath Parser context</TD
3574></TR
3575></TABLE
3576><P
3577></P
3578></DIV
3579></DIV
3580><HR><DIV
3581CLASS="REFSECT2"
3582><A
3583NAME="AEN11858"
3584></A
3585><H3
3586><A
3587NAME="XMLXPATHEVALEXPR"
3588></A
3589>xmlXPathEvalExpr ()</H3
3590><TABLE
3591BORDER="0"
3592BGCOLOR="#D6E8FF"
3593WIDTH="100%"
3594CELLPADDING="6"
3595><TR
3596><TD
3597><PRE
3598CLASS="PROGRAMLISTING"
3599>void xmlXPathEvalExpr (<A
3600HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
3601>xmlXPathParserContextPtr</A
3602> ctxt);</PRE
3603></TD
3604></TR
3605></TABLE
3606><P
3607>[14] Expr ::= OrExpr
3608[21] OrExpr ::= AndExpr
3609| OrExpr 'or' AndExpr </P
3610><P
3611>Parse and evaluate an expression, then push the result on the stack</P
3612><P
3613></P
3614><DIV
3615CLASS="INFORMALTABLE"
3616><P
3617></P
3618><TABLE
3619BORDER="0"
3620WIDTH="100%"
3621BGCOLOR="#FFD0D0"
3622CELLSPACING="0"
3623CELLPADDING="4"
3624CLASS="CALSTABLE"
3625><TR
3626><TD
3627WIDTH="20%"
3628ALIGN="RIGHT"
3629VALIGN="TOP"
3630><TT
3631CLASS="PARAMETER"
3632><I
3633>ctxt</I
3634></TT
3635>&nbsp;:</TD
3636><TD
3637WIDTH="80%"
3638ALIGN="LEFT"
3639VALIGN="TOP"
3640> the XPath Parser context</TD
3641></TR
3642></TABLE
3643><P
3644></P
3645></DIV
3646></DIV
3647><HR><DIV
3648CLASS="REFSECT2"
3649><A
3650NAME="AEN11875"
3651></A
3652><H3
3653><A
3654NAME="XMLXPATHPARSENAME"
3655></A
3656>xmlXPathParseName ()</H3
3657><TABLE
3658BORDER="0"
3659BGCOLOR="#D6E8FF"
3660WIDTH="100%"
3661CELLPADDING="6"
3662><TR
3663><TD
3664><PRE
3665CLASS="PROGRAMLISTING"
3666><A
3667HREF="gnome-xml-tree.html#XMLCHAR"
3668>xmlChar</A
3669>* xmlXPathParseName (<A
3670HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
3671>xmlXPathParserContextPtr</A
3672> ctxt);</PRE
3673></TD
3674></TR
3675></TABLE
3676><P
3677>parse an XML name</P
3678><P
3679>[4] NameChar ::= Letter | Digit | '.' | '-' | '_' | ':' |
3680CombiningChar | Extender</P
3681><P
3682>[5] Name ::= (Letter | '_' | ':') (NameChar)*</P
3683><P
3684></P
3685><DIV
3686CLASS="INFORMALTABLE"
3687><P
3688></P
3689><TABLE
3690BORDER="0"
3691WIDTH="100%"
3692BGCOLOR="#FFD0D0"
3693CELLSPACING="0"
3694CELLPADDING="4"
3695CLASS="CALSTABLE"
3696><TR
3697><TD
3698WIDTH="20%"
3699ALIGN="RIGHT"
3700VALIGN="TOP"
3701><TT
3702CLASS="PARAMETER"
3703><I
3704>ctxt</I
3705></TT
3706>&nbsp;:</TD
3707><TD
3708WIDTH="80%"
3709ALIGN="LEFT"
3710VALIGN="TOP"
3711> the XPointer Parser context</TD
3712></TR
3713><TR
3714><TD
3715WIDTH="20%"
3716ALIGN="RIGHT"
3717VALIGN="TOP"
3718><I
3719CLASS="EMPHASIS"
3720>Returns</I
3721> :</TD
3722><TD
3723WIDTH="80%"
3724ALIGN="LEFT"
3725VALIGN="TOP"
3726>the namespace name or NULL</TD
3727></TR
3728></TABLE
3729><P
3730></P
3731></DIV
3732></DIV
3733><HR><DIV
3734CLASS="REFSECT2"
3735><A
3736NAME="AEN11898"
3737></A
3738><H3
3739><A
3740NAME="XMLXPATHSTRINGEVALNUMBER"
3741></A
3742>xmlXPathStringEvalNumber ()</H3
3743><TABLE
3744BORDER="0"
3745BGCOLOR="#D6E8FF"
3746WIDTH="100%"
3747CELLPADDING="6"
3748><TR
3749><TD
3750><PRE
3751CLASS="PROGRAMLISTING"
3752><GTKDOCLINK
3753HREF="DOUBLE"
3754>double</GTKDOCLINK
3755> xmlXPathStringEvalNumber (const <A
3756HREF="gnome-xml-tree.html#XMLCHAR"
3757>xmlChar</A
3758> *str);</PRE
3759></TD
3760></TR
3761></TABLE
3762><P
3763>[30] Number ::= Digits ('.' Digits?)?
3764| '.' Digits
3765[31] Digits ::= [0-9]+</P
3766><P
3767>Parse and evaluate a Number in the string
3768In complement of the Number expression, this function also handles
3769negative values : '-' Number.</P
3770><P
3771></P
3772><DIV
3773CLASS="INFORMALTABLE"
3774><P
3775></P
3776><TABLE
3777BORDER="0"
3778WIDTH="100%"
3779BGCOLOR="#FFD0D0"
3780CELLSPACING="0"
3781CELLPADDING="4"
3782CLASS="CALSTABLE"
3783><TR
3784><TD
3785WIDTH="20%"
3786ALIGN="RIGHT"
3787VALIGN="TOP"
3788><TT
3789CLASS="PARAMETER"
3790><I
3791>str</I
3792></TT
3793>&nbsp;:</TD
3794><TD
3795WIDTH="80%"
3796ALIGN="LEFT"
3797VALIGN="TOP"
3798> A string to scan</TD
3799></TR
3800><TR
3801><TD
3802WIDTH="20%"
3803ALIGN="RIGHT"
3804VALIGN="TOP"
3805><I
3806CLASS="EMPHASIS"
3807>Returns</I
3808> :</TD
3809><TD
3810WIDTH="80%"
3811ALIGN="LEFT"
3812VALIGN="TOP"
3813>the double value.</TD
3814></TR
3815></TABLE
3816><P
3817></P
3818></DIV
3819></DIV
3820><HR><DIV
3821CLASS="REFSECT2"
3822><A
3823NAME="AEN11920"
3824></A
3825><H3
3826><A
3827NAME="XMLXPATHINIT"
3828></A
3829>xmlXPathInit ()</H3
3830><TABLE
3831BORDER="0"
3832BGCOLOR="#D6E8FF"
3833WIDTH="100%"
3834CELLPADDING="6"
3835><TR
3836><TD
3837><PRE
3838CLASS="PROGRAMLISTING"
3839>void xmlXPathInit (void);</PRE
3840></TD
3841></TR
3842></TABLE
3843><P
3844>Initialize the XPath environment</P
3845><P
3846></P
3847></DIV
3848><HR><DIV
3849CLASS="REFSECT2"
3850><A
3851NAME="AEN11926"
3852></A
3853><H3
3854><A
3855NAME="XMLXPATHSTRINGFUNCTION"
3856></A
3857>xmlXPathStringFunction ()</H3
3858><TABLE
3859BORDER="0"
3860BGCOLOR="#D6E8FF"
3861WIDTH="100%"
3862CELLPADDING="6"
3863><TR
3864><TD
3865><PRE
3866CLASS="PROGRAMLISTING"
3867>void xmlXPathStringFunction (<A
3868HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
3869>xmlXPathParserContextPtr</A
3870> ctxt,
3871 int nargs);</PRE
3872></TD
3873></TR
3874></TABLE
3875><P
3876>Implement the <GTKDOCLINK
3877HREF="STRING"
3878>string</GTKDOCLINK
3879>() XPath function
3880string string(object?)
3881he string function converts an object to a string as follows:
3882- A node-set is converted to a string by returning the value of
3883the node in the node-set that is first in document order.
3884If the node-set is empty, an empty string is returned.
3885- A number is converted to a string as follows
3886+ NaN is converted to the string NaN
3887+ positive zero is converted to the string 0
3888+ negative zero is converted to the string 0
3889+ positive infinity is converted to the string Infinity
3890+ negative infinity is converted to the string -Infinity
3891+ if the number is an integer, the number is represented in
3892decimal form as a Number with no decimal point and no leading
3893zeros, preceded by a minus sign (-) if the number is negative
3894+ otherwise, the number is represented in decimal form as a
3895Number including a decimal point with at least one digit
3896before the decimal point and at least one digit after the
3897decimal point, preceded by a minus sign (-) if the number
3898is negative; there must be no leading zeros before the decimal
3899point apart possibly from the one required digit immediatelyi
3900before the decimal point; beyond the one required digit
3901after the decimal point there must be as many, but only as
3902many, more digits as are needed to uniquely distinguish the
3903number from all other IEEE 754 numeric values.
3904- The boolean false value is converted to the string false.
3905The boolean true value is converted to the string true.</P
3906><P
3907>If the argument is omitted, it defaults to a node-set with the
3908context node as its only member.</P
3909><P
3910></P
3911><DIV
3912CLASS="INFORMALTABLE"
3913><P
3914></P
3915><TABLE
3916BORDER="0"
3917WIDTH="100%"
3918BGCOLOR="#FFD0D0"
3919CELLSPACING="0"
3920CELLPADDING="4"
3921CLASS="CALSTABLE"
3922><TR
3923><TD
3924WIDTH="20%"
3925ALIGN="RIGHT"
3926VALIGN="TOP"
3927><TT
3928CLASS="PARAMETER"
3929><I
3930>ctxt</I
3931></TT
3932>&nbsp;:</TD
3933><TD
3934WIDTH="80%"
3935ALIGN="LEFT"
3936VALIGN="TOP"
3937> the XPath Parser context</TD
3938></TR
3939><TR
3940><TD
3941WIDTH="20%"
3942ALIGN="RIGHT"
3943VALIGN="TOP"
3944><TT
3945CLASS="PARAMETER"
3946><I
3947>nargs</I
3948></TT
3949>&nbsp;:</TD
3950><TD
3951WIDTH="80%"
3952ALIGN="LEFT"
3953VALIGN="TOP"
3954>&nbsp;</TD
3955></TR
3956></TABLE
3957><P
3958></P
3959></DIV
3960></DIV
3961><HR><DIV
3962CLASS="REFSECT2"
3963><A
3964NAME="AEN11948"
3965></A
3966><H3
3967><A
3968NAME="XMLXPATHREGISTERALLFUNCTIONS"
3969></A
3970>xmlXPathRegisterAllFunctions ()</H3
3971><TABLE
3972BORDER="0"
3973BGCOLOR="#D6E8FF"
3974WIDTH="100%"
3975CELLPADDING="6"
3976><TR
3977><TD
3978><PRE
3979CLASS="PROGRAMLISTING"
3980>void xmlXPathRegisterAllFunctions (<A
3981HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
3982>xmlXPathContextPtr</A
3983> ctxt);</PRE
3984></TD
3985></TR
3986></TABLE
3987><P
3988></P
3989><DIV
3990CLASS="INFORMALTABLE"
3991><P
3992></P
3993><TABLE
3994BORDER="0"
3995WIDTH="100%"
3996BGCOLOR="#FFD0D0"
3997CELLSPACING="0"
3998CELLPADDING="4"
3999CLASS="CALSTABLE"
4000><TR
4001><TD
4002WIDTH="20%"
4003ALIGN="RIGHT"
4004VALIGN="TOP"
4005><TT
4006CLASS="PARAMETER"
4007><I
4008>ctxt</I
4009></TT
4010>&nbsp;:</TD
4011><TD
4012WIDTH="80%"
4013ALIGN="LEFT"
4014VALIGN="TOP"
4015>&nbsp;</TD
4016></TR
4017></TABLE
4018><P
4019></P
4020></DIV
4021></DIV
4022><HR><DIV
4023CLASS="REFSECT2"
4024><A
4025NAME="AEN11963"
4026></A
4027><H3
4028><A
4029NAME="XMLXPATHNODESETCREATE"
4030></A
4031>xmlXPathNodeSetCreate ()</H3
4032><TABLE
4033BORDER="0"
4034BGCOLOR="#D6E8FF"
4035WIDTH="100%"
4036CELLPADDING="6"
4037><TR
4038><TD
4039><PRE
4040CLASS="PROGRAMLISTING"
4041><A
4042HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4043>xmlNodeSetPtr</A
4044> xmlXPathNodeSetCreate (<A
4045HREF="gnome-xml-tree.html#XMLNODEPTR"
4046>xmlNodePtr</A
4047> val);</PRE
4048></TD
4049></TR
4050></TABLE
4051><P
4052>Create a new xmlNodeSetPtr of type double and of value <TT
4053CLASS="PARAMETER"
4054><I
4055>val</I
4056></TT
4057></P
4058><P
4059></P
4060><DIV
4061CLASS="INFORMALTABLE"
4062><P
4063></P
4064><TABLE
4065BORDER="0"
4066WIDTH="100%"
4067BGCOLOR="#FFD0D0"
4068CELLSPACING="0"
4069CELLPADDING="4"
4070CLASS="CALSTABLE"
4071><TR
4072><TD
4073WIDTH="20%"
4074ALIGN="RIGHT"
4075VALIGN="TOP"
4076><TT
4077CLASS="PARAMETER"
4078><I
4079>val</I
4080></TT
4081>&nbsp;:</TD
4082><TD
4083WIDTH="80%"
4084ALIGN="LEFT"
4085VALIGN="TOP"
4086>&nbsp;</TD
4087></TR
4088><TR
4089><TD
4090WIDTH="20%"
4091ALIGN="RIGHT"
4092VALIGN="TOP"
4093><I
4094CLASS="EMPHASIS"
4095>Returns</I
4096> :</TD
4097><TD
4098WIDTH="80%"
4099ALIGN="LEFT"
4100VALIGN="TOP"
4101>&nbsp;</TD
4102></TR
4103></TABLE
4104><P
4105></P
4106></DIV
4107></DIV
4108><HR><DIV
4109CLASS="REFSECT2"
4110><A
4111NAME="AEN11985"
4112></A
4113><H3
4114><A
4115NAME="XMLXPATHNODESETMERGE"
4116></A
4117>xmlXPathNodeSetMerge ()</H3
4118><TABLE
4119BORDER="0"
4120BGCOLOR="#D6E8FF"
4121WIDTH="100%"
4122CELLPADDING="6"
4123><TR
4124><TD
4125><PRE
4126CLASS="PROGRAMLISTING"
4127><A
4128HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4129>xmlNodeSetPtr</A
4130> xmlXPathNodeSetMerge (<A
4131HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4132>xmlNodeSetPtr</A
4133> val1,
4134 <A
4135HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4136>xmlNodeSetPtr</A
4137> val2);</PRE
4138></TD
4139></TR
4140></TABLE
4141><P
4142>Merges two nodesets, all nodes from <TT
4143CLASS="PARAMETER"
4144><I
4145>val2</I
4146></TT
4147> are added to <TT
4148CLASS="PARAMETER"
4149><I
4150>val1</I
4151></TT
4152>
4153if <TT
4154CLASS="PARAMETER"
4155><I
4156>val1</I
4157></TT
4158> is NULL, a new set is created and copied from <TT
4159CLASS="PARAMETER"
4160><I
4161>val2</I
4162></TT
4163></P
4164><P
4165></P
4166><DIV
4167CLASS="INFORMALTABLE"
4168><P
4169></P
4170><TABLE
4171BORDER="0"
4172WIDTH="100%"
4173BGCOLOR="#FFD0D0"
4174CELLSPACING="0"
4175CELLPADDING="4"
4176CLASS="CALSTABLE"
4177><TR
4178><TD
4179WIDTH="20%"
4180ALIGN="RIGHT"
4181VALIGN="TOP"
4182><TT
4183CLASS="PARAMETER"
4184><I
4185>val1</I
4186></TT
4187>&nbsp;:</TD
4188><TD
4189WIDTH="80%"
4190ALIGN="LEFT"
4191VALIGN="TOP"
4192> the first NodeSet or NULL</TD
4193></TR
4194><TR
4195><TD
4196WIDTH="20%"
4197ALIGN="RIGHT"
4198VALIGN="TOP"
4199><TT
4200CLASS="PARAMETER"
4201><I
4202>val2</I
4203></TT
4204>&nbsp;:</TD
4205><TD
4206WIDTH="80%"
4207ALIGN="LEFT"
4208VALIGN="TOP"
4209> the second NodeSet</TD
4210></TR
4211><TR
4212><TD
4213WIDTH="20%"
4214ALIGN="RIGHT"
4215VALIGN="TOP"
4216><I
4217CLASS="EMPHASIS"
4218>Returns</I
4219> :</TD
4220><TD
4221WIDTH="80%"
4222ALIGN="LEFT"
4223VALIGN="TOP"
4224>val1 once extended or NULL in case of error.</TD
4225></TR
4226></TABLE
4227><P
4228></P
4229></DIV
4230></DIV
4231><HR><DIV
4232CLASS="REFSECT2"
4233><A
4234NAME="AEN12015"
4235></A
4236><H3
4237><A
4238NAME="XMLXPATHNODESETDEL"
4239></A
4240>xmlXPathNodeSetDel ()</H3
4241><TABLE
4242BORDER="0"
4243BGCOLOR="#D6E8FF"
4244WIDTH="100%"
4245CELLPADDING="6"
4246><TR
4247><TD
4248><PRE
4249CLASS="PROGRAMLISTING"
4250>void xmlXPathNodeSetDel (<A
4251HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4252>xmlNodeSetPtr</A
4253> cur,
4254 <A
4255HREF="gnome-xml-tree.html#XMLNODEPTR"
4256>xmlNodePtr</A
4257> val);</PRE
4258></TD
4259></TR
4260></TABLE
4261><P
4262>Removes an xmlNodePtr from an existing NodeSet</P
4263><P
4264></P
4265><DIV
4266CLASS="INFORMALTABLE"
4267><P
4268></P
4269><TABLE
4270BORDER="0"
4271WIDTH="100%"
4272BGCOLOR="#FFD0D0"
4273CELLSPACING="0"
4274CELLPADDING="4"
4275CLASS="CALSTABLE"
4276><TR
4277><TD
4278WIDTH="20%"
4279ALIGN="RIGHT"
4280VALIGN="TOP"
4281><TT
4282CLASS="PARAMETER"
4283><I
4284>cur</I
4285></TT
4286>&nbsp;:</TD
4287><TD
4288WIDTH="80%"
4289ALIGN="LEFT"
4290VALIGN="TOP"
4291> the initial node set</TD
4292></TR
4293><TR
4294><TD
4295WIDTH="20%"
4296ALIGN="RIGHT"
4297VALIGN="TOP"
4298><TT
4299CLASS="PARAMETER"
4300><I
4301>val</I
4302></TT
4303>&nbsp;:</TD
4304><TD
4305WIDTH="80%"
4306ALIGN="LEFT"
4307VALIGN="TOP"
4308> an xmlNodePtr</TD
4309></TR
4310></TABLE
4311><P
4312></P
4313></DIV
4314></DIV
4315><HR><DIV
4316CLASS="REFSECT2"
4317><A
4318NAME="AEN12036"
4319></A
4320><H3
4321><A
4322NAME="XMLXPATHNODESETREMOVE"
4323></A
4324>xmlXPathNodeSetRemove ()</H3
4325><TABLE
4326BORDER="0"
4327BGCOLOR="#D6E8FF"
4328WIDTH="100%"
4329CELLPADDING="6"
4330><TR
4331><TD
4332><PRE
4333CLASS="PROGRAMLISTING"
4334>void xmlXPathNodeSetRemove (<A
4335HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4336>xmlNodeSetPtr</A
4337> cur,
4338 int val);</PRE
4339></TD
4340></TR
4341></TABLE
4342><P
4343>Removes an entry from an existing NodeSet list.</P
4344><P
4345></P
4346><DIV
4347CLASS="INFORMALTABLE"
4348><P
4349></P
4350><TABLE
4351BORDER="0"
4352WIDTH="100%"
4353BGCOLOR="#FFD0D0"
4354CELLSPACING="0"
4355CELLPADDING="4"
4356CLASS="CALSTABLE"
4357><TR
4358><TD
4359WIDTH="20%"
4360ALIGN="RIGHT"
4361VALIGN="TOP"
4362><TT
4363CLASS="PARAMETER"
4364><I
4365>cur</I
4366></TT
4367>&nbsp;:</TD
4368><TD
4369WIDTH="80%"
4370ALIGN="LEFT"
4371VALIGN="TOP"
4372> the initial node set</TD
4373></TR
4374><TR
4375><TD
4376WIDTH="20%"
4377ALIGN="RIGHT"
4378VALIGN="TOP"
4379><TT
4380CLASS="PARAMETER"
4381><I
4382>val</I
4383></TT
4384>&nbsp;:</TD
4385><TD
4386WIDTH="80%"
4387ALIGN="LEFT"
4388VALIGN="TOP"
4389> the index to remove</TD
4390></TR
4391></TABLE
4392><P
4393></P
4394></DIV
4395></DIV
4396><HR><DIV
4397CLASS="REFSECT2"
4398><A
4399NAME="AEN12056"
4400></A
4401><H3
4402><A
4403NAME="XMLXPATHFREENODESET"
4404></A
4405>xmlXPathFreeNodeSet ()</H3
4406><TABLE
4407BORDER="0"
4408BGCOLOR="#D6E8FF"
4409WIDTH="100%"
4410CELLPADDING="6"
4411><TR
4412><TD
4413><PRE
4414CLASS="PROGRAMLISTING"
4415>void xmlXPathFreeNodeSet (<A
4416HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4417>xmlNodeSetPtr</A
4418> obj);</PRE
4419></TD
4420></TR
4421></TABLE
4422><P
4423>Free the NodeSet compound (not the actual nodes !).</P
4424><P
4425></P
4426><DIV
4427CLASS="INFORMALTABLE"
4428><P
4429></P
4430><TABLE
4431BORDER="0"
4432WIDTH="100%"
4433BGCOLOR="#FFD0D0"
4434CELLSPACING="0"
4435CELLPADDING="4"
4436CLASS="CALSTABLE"
4437><TR
4438><TD
4439WIDTH="20%"
4440ALIGN="RIGHT"
4441VALIGN="TOP"
4442><TT
4443CLASS="PARAMETER"
4444><I
4445>obj</I
4446></TT
4447>&nbsp;:</TD
4448><TD
4449WIDTH="80%"
4450ALIGN="LEFT"
4451VALIGN="TOP"
4452>&nbsp;</TD
4453></TR
4454></TABLE
4455><P
4456></P
4457></DIV
4458></DIV
4459><HR><DIV
4460CLASS="REFSECT2"
4461><A
4462NAME="AEN12072"
4463></A
4464><H3
4465><A
4466NAME="XMLXPATHNEWNODESETLIST"
4467></A
4468>xmlXPathNewNodeSetList ()</H3
4469><TABLE
4470BORDER="0"
4471BGCOLOR="#D6E8FF"
4472WIDTH="100%"
4473CELLPADDING="6"
4474><TR
4475><TD
4476><PRE
4477CLASS="PROGRAMLISTING"
4478><A
4479HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
4480>xmlXPathObjectPtr</A
4481> xmlXPathNewNodeSetList (<A
4482HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4483>xmlNodeSetPtr</A
4484> val);</PRE
4485></TD
4486></TR
4487></TABLE
4488><P
4489>Create a new xmlXPathObjectPtr of type NodeSet and initialize
4490it with the Nodeset <TT
4491CLASS="PARAMETER"
4492><I
4493>val</I
4494></TT
4495></P
4496><P
4497></P
4498><DIV
4499CLASS="INFORMALTABLE"
4500><P
4501></P
4502><TABLE
4503BORDER="0"
4504WIDTH="100%"
4505BGCOLOR="#FFD0D0"
4506CELLSPACING="0"
4507CELLPADDING="4"
4508CLASS="CALSTABLE"
4509><TR
4510><TD
4511WIDTH="20%"
4512ALIGN="RIGHT"
4513VALIGN="TOP"
4514><TT
4515CLASS="PARAMETER"
4516><I
4517>val</I
4518></TT
4519>&nbsp;:</TD
4520><TD
4521WIDTH="80%"
4522ALIGN="LEFT"
4523VALIGN="TOP"
4524> an existing NodeSet</TD
4525></TR
4526><TR
4527><TD
4528WIDTH="20%"
4529ALIGN="RIGHT"
4530VALIGN="TOP"
4531><I
4532CLASS="EMPHASIS"
4533>Returns</I
4534> :</TD
4535><TD
4536WIDTH="80%"
4537ALIGN="LEFT"
4538VALIGN="TOP"
4539>the newly created object.</TD
4540></TR
4541></TABLE
4542><P
4543></P
4544></DIV
4545></DIV
4546><HR><DIV
4547CLASS="REFSECT2"
4548><A
4549NAME="AEN12094"
4550></A
4551><H3
4552><A
4553NAME="XMLXPATHWRAPNODESET"
4554></A
4555>xmlXPathWrapNodeSet ()</H3
4556><TABLE
4557BORDER="0"
4558BGCOLOR="#D6E8FF"
4559WIDTH="100%"
4560CELLPADDING="6"
4561><TR
4562><TD
4563><PRE
4564CLASS="PROGRAMLISTING"
4565><A
4566HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
4567>xmlXPathObjectPtr</A
4568> xmlXPathWrapNodeSet (<A
4569HREF="gnome-xml-xpath.html#XMLNODESETPTR"
4570>xmlNodeSetPtr</A
4571> val);</PRE
4572></TD
4573></TR
4574></TABLE
4575><P
4576>Wrap the Nodeset <TT
4577CLASS="PARAMETER"
4578><I
4579>val</I
4580></TT
4581> in a new xmlXPathObjectPtr</P
4582><P
4583></P
4584><DIV
4585CLASS="INFORMALTABLE"
4586><P
4587></P
4588><TABLE
4589BORDER="0"
4590WIDTH="100%"
4591BGCOLOR="#FFD0D0"
4592CELLSPACING="0"
4593CELLPADDING="4"
4594CLASS="CALSTABLE"
4595><TR
4596><TD
4597WIDTH="20%"
4598ALIGN="RIGHT"
4599VALIGN="TOP"
4600><TT
4601CLASS="PARAMETER"
4602><I
4603>val</I
4604></TT
4605>&nbsp;:</TD
4606><TD
4607WIDTH="80%"
4608ALIGN="LEFT"
4609VALIGN="TOP"
4610> the NodePtr value</TD
4611></TR
4612><TR
4613><TD
4614WIDTH="20%"
4615ALIGN="RIGHT"
4616VALIGN="TOP"
4617><I
4618CLASS="EMPHASIS"
4619>Returns</I
4620> :</TD
4621><TD
4622WIDTH="80%"
4623ALIGN="LEFT"
4624VALIGN="TOP"
4625>the newly created object.</TD
4626></TR
4627></TABLE
4628><P
4629></P
4630></DIV
4631></DIV
4632><HR><DIV
4633CLASS="REFSECT2"
4634><A
4635NAME="AEN12116"
4636></A
4637><H3
4638><A
4639NAME="XMLXPATHFREENODESETLIST"
4640></A
4641>xmlXPathFreeNodeSetList ()</H3
4642><TABLE
4643BORDER="0"
4644BGCOLOR="#D6E8FF"
4645WIDTH="100%"
4646CELLPADDING="6"
4647><TR
4648><TD
4649><PRE
4650CLASS="PROGRAMLISTING"
4651>void xmlXPathFreeNodeSetList (<A
4652HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
4653>xmlXPathObjectPtr</A
4654> obj);</PRE
4655></TD
4656></TR
4657></TABLE
4658><P
4659>Free up the xmlXPathObjectPtr <TT
4660CLASS="PARAMETER"
4661><I
4662>obj</I
4663></TT
4664> but don't deallocate the objects in
4665the list contrary to <A
4666HREF="gnome-xml-xpath.html#XMLXPATHFREEOBJECT"
4667>xmlXPathFreeObject</A
4668>().</P
4669><P
4670></P
4671><DIV
4672CLASS="INFORMALTABLE"
4673><P
4674></P
4675><TABLE
4676BORDER="0"
4677WIDTH="100%"
4678BGCOLOR="#FFD0D0"
4679CELLSPACING="0"
4680CELLPADDING="4"
4681CLASS="CALSTABLE"
4682><TR
4683><TD
4684WIDTH="20%"
4685ALIGN="RIGHT"
4686VALIGN="TOP"
4687><TT
4688CLASS="PARAMETER"
4689><I
4690>obj</I
4691></TT
4692>&nbsp;:</TD
4693><TD
4694WIDTH="80%"
4695ALIGN="LEFT"
4696VALIGN="TOP"
4697>&nbsp;</TD
4698></TR
4699></TABLE
4700><P
4701></P
4702></DIV
4703></DIV
4704><HR><DIV
4705CLASS="REFSECT2"
4706><A
4707NAME="AEN12134"
4708></A
4709><H3
4710><A
4711NAME="XMLXPATHFREEOBJECT"
4712></A
4713>xmlXPathFreeObject ()</H3
4714><TABLE
4715BORDER="0"
4716BGCOLOR="#D6E8FF"
4717WIDTH="100%"
4718CELLPADDING="6"
4719><TR
4720><TD
4721><PRE
4722CLASS="PROGRAMLISTING"
4723>void xmlXPathFreeObject (<A
4724HREF="gnome-xml-xpath.html#XMLXPATHOBJECTPTR"
4725>xmlXPathObjectPtr</A
4726> obj);</PRE
4727></TD
4728></TR
4729></TABLE
4730><P
4731>Free up an xmlXPathObjectPtr object.</P
4732><P
4733></P
4734><DIV
4735CLASS="INFORMALTABLE"
4736><P
4737></P
4738><TABLE
4739BORDER="0"
4740WIDTH="100%"
4741BGCOLOR="#FFD0D0"
4742CELLSPACING="0"
4743CELLPADDING="4"
4744CLASS="CALSTABLE"
4745><TR
4746><TD
4747WIDTH="20%"
4748ALIGN="RIGHT"
4749VALIGN="TOP"
4750><TT
4751CLASS="PARAMETER"
4752><I
4753>obj</I
4754></TT
4755>&nbsp;:</TD
4756><TD
4757WIDTH="80%"
4758ALIGN="LEFT"
4759VALIGN="TOP"
4760>&nbsp;</TD
4761></TR
4762></TABLE
4763><P
4764></P
4765></DIV
4766></DIV
4767><HR><DIV
4768CLASS="REFSECT2"
4769><A
4770NAME="AEN12150"
4771></A
4772><H3
4773><A
4774NAME="XMLXPATHNEWCONTEXT"
4775></A
4776>xmlXPathNewContext ()</H3
4777><TABLE
4778BORDER="0"
4779BGCOLOR="#D6E8FF"
4780WIDTH="100%"
4781CELLPADDING="6"
4782><TR
4783><TD
4784><PRE
4785CLASS="PROGRAMLISTING"
4786><A
4787HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
4788>xmlXPathContextPtr</A
4789> xmlXPathNewContext (<A
4790HREF="gnome-xml-tree.html#XMLDOCPTR"
4791>xmlDocPtr</A
4792> doc);</PRE
4793></TD
4794></TR
4795></TABLE
4796><P
4797>Create a new xmlXPathContext</P
4798><P
4799></P
4800><DIV
4801CLASS="INFORMALTABLE"
4802><P
4803></P
4804><TABLE
4805BORDER="0"
4806WIDTH="100%"
4807BGCOLOR="#FFD0D0"
4808CELLSPACING="0"
4809CELLPADDING="4"
4810CLASS="CALSTABLE"
4811><TR
4812><TD
4813WIDTH="20%"
4814ALIGN="RIGHT"
4815VALIGN="TOP"
4816><TT
4817CLASS="PARAMETER"
4818><I
4819>doc</I
4820></TT
4821>&nbsp;:</TD
4822><TD
4823WIDTH="80%"
4824ALIGN="LEFT"
4825VALIGN="TOP"
4826>&nbsp;</TD
4827></TR
4828><TR
4829><TD
4830WIDTH="20%"
4831ALIGN="RIGHT"
4832VALIGN="TOP"
4833><I
4834CLASS="EMPHASIS"
4835>Returns</I
4836> :</TD
4837><TD
4838WIDTH="80%"
4839ALIGN="LEFT"
4840VALIGN="TOP"
4841>&nbsp;</TD
4842></TR
4843></TABLE
4844><P
4845></P
4846></DIV
4847></DIV
4848><HR><DIV
4849CLASS="REFSECT2"
4850><A
4851NAME="AEN12171"
4852></A
4853><H3
4854><A
4855NAME="XMLXPATHFREECONTEXT"
4856></A
4857>xmlXPathFreeContext ()</H3
4858><TABLE
4859BORDER="0"
4860BGCOLOR="#D6E8FF"
4861WIDTH="100%"
4862CELLPADDING="6"
4863><TR
4864><TD
4865><PRE
4866CLASS="PROGRAMLISTING"
4867>void xmlXPathFreeContext (<A
4868HREF="gnome-xml-xpath.html#XMLXPATHCONTEXTPTR"
4869>xmlXPathContextPtr</A
4870> ctxt);</PRE
4871></TD
4872></TR
4873></TABLE
4874><P
4875>Free up an xmlXPathContext</P
4876><P
4877></P
4878><DIV
4879CLASS="INFORMALTABLE"
4880><P
4881></P
4882><TABLE
4883BORDER="0"
4884WIDTH="100%"
4885BGCOLOR="#FFD0D0"
4886CELLSPACING="0"
4887CELLPADDING="4"
4888CLASS="CALSTABLE"
4889><TR
4890><TD
4891WIDTH="20%"
4892ALIGN="RIGHT"
4893VALIGN="TOP"
4894><TT
4895CLASS="PARAMETER"
4896><I
4897>ctxt</I
4898></TT
4899>&nbsp;:</TD
4900><TD
4901WIDTH="80%"
4902ALIGN="LEFT"
4903VALIGN="TOP"
4904>&nbsp;</TD
4905></TR
4906></TABLE
4907><P
4908></P
4909></DIV
4910></DIV
4911><HR><DIV
4912CLASS="REFSECT2"
4913><A
4914NAME="AEN12187"
4915></A
4916><H3
4917><A
4918NAME="XMLXPATHEQUALVALUES"
4919></A
4920>xmlXPathEqualValues ()</H3
4921><TABLE
4922BORDER="0"
4923BGCOLOR="#D6E8FF"
4924WIDTH="100%"
4925CELLPADDING="6"
4926><TR
4927><TD
4928><PRE
4929CLASS="PROGRAMLISTING"
4930>int xmlXPathEqualValues (<A
4931HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
4932>xmlXPathParserContextPtr</A
4933> ctxt);</PRE
4934></TD
4935></TR
4936></TABLE
4937><P
4938>Implement the equal operation on XPath objects content: <TT
4939CLASS="PARAMETER"
4940><I
4941>arg1</I
4942></TT
4943> == <TT
4944CLASS="PARAMETER"
4945><I
4946>arg2</I
4947></TT
4948></P
4949><P
4950></P
4951><DIV
4952CLASS="INFORMALTABLE"
4953><P
4954></P
4955><TABLE
4956BORDER="0"
4957WIDTH="100%"
4958BGCOLOR="#FFD0D0"
4959CELLSPACING="0"
4960CELLPADDING="4"
4961CLASS="CALSTABLE"
4962><TR
4963><TD
4964WIDTH="20%"
4965ALIGN="RIGHT"
4966VALIGN="TOP"
4967><TT
4968CLASS="PARAMETER"
4969><I
4970>ctxt</I
4971></TT
4972>&nbsp;:</TD
4973><TD
4974WIDTH="80%"
4975ALIGN="LEFT"
4976VALIGN="TOP"
4977> the XPath Parser context</TD
4978></TR
4979><TR
4980><TD
4981WIDTH="20%"
4982ALIGN="RIGHT"
4983VALIGN="TOP"
4984><I
4985CLASS="EMPHASIS"
4986>Returns</I
4987> :</TD
4988><TD
4989WIDTH="80%"
4990ALIGN="LEFT"
4991VALIGN="TOP"
4992>0 or 1 depending on the results of the test.</TD
4993></TR
4994></TABLE
4995><P
4996></P
4997></DIV
4998></DIV
4999><HR><DIV
5000CLASS="REFSECT2"
5001><A
5002NAME="AEN12209"
5003></A
5004><H3
5005><A
5006NAME="XMLXPATHCOMPAREVALUES"
5007></A
5008>xmlXPathCompareValues ()</H3
5009><TABLE
5010BORDER="0"
5011BGCOLOR="#D6E8FF"
5012WIDTH="100%"
5013CELLPADDING="6"
5014><TR
5015><TD
5016><PRE
5017CLASS="PROGRAMLISTING"
5018>int xmlXPathCompareValues (<A
5019HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5020>xmlXPathParserContextPtr</A
5021> ctxt,
5022 int inf,
5023 int strict);</PRE
5024></TD
5025></TR
5026></TABLE
5027><P
5028>Implement the compare operation on XPath objects:
5029<TT
5030CLASS="PARAMETER"
5031><I
5032>arg1</I
5033></TT
5034> &lt; <TT
5035CLASS="PARAMETER"
5036><I
5037>arg2</I
5038></TT
5039> (1, 1, ...
5040<TT
5041CLASS="PARAMETER"
5042><I
5043>arg1</I
5044></TT
5045> &lt;= <TT
5046CLASS="PARAMETER"
5047><I
5048>arg2</I
5049></TT
5050> (1, 0, ...
5051<TT
5052CLASS="PARAMETER"
5053><I
5054>arg1</I
5055></TT
5056> &gt; <TT
5057CLASS="PARAMETER"
5058><I
5059>arg2</I
5060></TT
5061> (0, 1, ...
5062<TT
5063CLASS="PARAMETER"
5064><I
5065>arg1</I
5066></TT
5067> &gt;= <TT
5068CLASS="PARAMETER"
5069><I
5070>arg2</I
5071></TT
5072> (0, 0, ...</P
5073><P
5074>When neither object to be compared is a node-set and the operator is
5075&lt;=, &lt;, &gt;=, &gt;, then the objects are compared by converted both objects
5076to numbers and comparing the numbers according to IEEE 754. The &lt;
5077comparison will be true if and only if the first number is less than the
5078second number. The &lt;= comparison will be true if and only if the first
5079number is less than or equal to the second number. The &gt; comparison
5080will be true if and only if the first number is greater than the second
5081number. The &gt;= comparison will be true if and only if the first number
5082is greater than or equal to the second number.</P
5083><P
5084></P
5085><DIV
5086CLASS="INFORMALTABLE"
5087><P
5088></P
5089><TABLE
5090BORDER="0"
5091WIDTH="100%"
5092BGCOLOR="#FFD0D0"
5093CELLSPACING="0"
5094CELLPADDING="4"
5095CLASS="CALSTABLE"
5096><TR
5097><TD
5098WIDTH="20%"
5099ALIGN="RIGHT"
5100VALIGN="TOP"
5101><TT
5102CLASS="PARAMETER"
5103><I
5104>ctxt</I
5105></TT
5106>&nbsp;:</TD
5107><TD
5108WIDTH="80%"
5109ALIGN="LEFT"
5110VALIGN="TOP"
5111> the XPath Parser context</TD
5112></TR
5113><TR
5114><TD
5115WIDTH="20%"
5116ALIGN="RIGHT"
5117VALIGN="TOP"
5118><TT
5119CLASS="PARAMETER"
5120><I
5121>inf</I
5122></TT
5123>&nbsp;:</TD
5124><TD
5125WIDTH="80%"
5126ALIGN="LEFT"
5127VALIGN="TOP"
5128> less than (1) or greater than (2)</TD
5129></TR
5130><TR
5131><TD
5132WIDTH="20%"
5133ALIGN="RIGHT"
5134VALIGN="TOP"
5135><TT
5136CLASS="PARAMETER"
5137><I
5138>strict</I
5139></TT
5140>&nbsp;:</TD
5141><TD
5142WIDTH="80%"
5143ALIGN="LEFT"
5144VALIGN="TOP"
5145> is the comparison strict</TD
5146></TR
5147><TR
5148><TD
5149WIDTH="20%"
5150ALIGN="RIGHT"
5151VALIGN="TOP"
5152><I
5153CLASS="EMPHASIS"
5154>Returns</I
5155> :</TD
5156><TD
5157WIDTH="80%"
5158ALIGN="LEFT"
5159VALIGN="TOP"
5160>&nbsp;</TD
5161></TR
5162></TABLE
5163><P
5164></P
5165></DIV
5166></DIV
5167><HR><DIV
5168CLASS="REFSECT2"
5169><A
5170NAME="AEN12246"
5171></A
5172><H3
5173><A
5174NAME="XMLXPATHVALUEFLIPSIGN"
5175></A
5176>xmlXPathValueFlipSign ()</H3
5177><TABLE
5178BORDER="0"
5179BGCOLOR="#D6E8FF"
5180WIDTH="100%"
5181CELLPADDING="6"
5182><TR
5183><TD
5184><PRE
5185CLASS="PROGRAMLISTING"
5186>void xmlXPathValueFlipSign (<A
5187HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5188>xmlXPathParserContextPtr</A
5189> ctxt);</PRE
5190></TD
5191></TR
5192></TABLE
5193><P
5194>Implement the unary - operation on an XPath object
5195The numeric operators convert their operands to numbers as if
5196by calling the number function.</P
5197><P
5198></P
5199><DIV
5200CLASS="INFORMALTABLE"
5201><P
5202></P
5203><TABLE
5204BORDER="0"
5205WIDTH="100%"
5206BGCOLOR="#FFD0D0"
5207CELLSPACING="0"
5208CELLPADDING="4"
5209CLASS="CALSTABLE"
5210><TR
5211><TD
5212WIDTH="20%"
5213ALIGN="RIGHT"
5214VALIGN="TOP"
5215><TT
5216CLASS="PARAMETER"
5217><I
5218>ctxt</I
5219></TT
5220>&nbsp;:</TD
5221><TD
5222WIDTH="80%"
5223ALIGN="LEFT"
5224VALIGN="TOP"
5225> the XPath Parser context</TD
5226></TR
5227></TABLE
5228><P
5229></P
5230></DIV
5231></DIV
5232><HR><DIV
5233CLASS="REFSECT2"
5234><A
5235NAME="AEN12262"
5236></A
5237><H3
5238><A
5239NAME="XMLXPATHADDVALUES"
5240></A
5241>xmlXPathAddValues ()</H3
5242><TABLE
5243BORDER="0"
5244BGCOLOR="#D6E8FF"
5245WIDTH="100%"
5246CELLPADDING="6"
5247><TR
5248><TD
5249><PRE
5250CLASS="PROGRAMLISTING"
5251>void xmlXPathAddValues (<A
5252HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5253>xmlXPathParserContextPtr</A
5254> ctxt);</PRE
5255></TD
5256></TR
5257></TABLE
5258><P
5259>Implement the add operation on XPath objects:
5260The numeric operators convert their operands to numbers as if
5261by calling the number function.</P
5262><P
5263></P
5264><DIV
5265CLASS="INFORMALTABLE"
5266><P
5267></P
5268><TABLE
5269BORDER="0"
5270WIDTH="100%"
5271BGCOLOR="#FFD0D0"
5272CELLSPACING="0"
5273CELLPADDING="4"
5274CLASS="CALSTABLE"
5275><TR
5276><TD
5277WIDTH="20%"
5278ALIGN="RIGHT"
5279VALIGN="TOP"
5280><TT
5281CLASS="PARAMETER"
5282><I
5283>ctxt</I
5284></TT
5285>&nbsp;:</TD
5286><TD
5287WIDTH="80%"
5288ALIGN="LEFT"
5289VALIGN="TOP"
5290> the XPath Parser context</TD
5291></TR
5292></TABLE
5293><P
5294></P
5295></DIV
5296></DIV
5297><HR><DIV
5298CLASS="REFSECT2"
5299><A
5300NAME="AEN12278"
5301></A
5302><H3
5303><A
5304NAME="XMLXPATHSUBVALUES"
5305></A
5306>xmlXPathSubValues ()</H3
5307><TABLE
5308BORDER="0"
5309BGCOLOR="#D6E8FF"
5310WIDTH="100%"
5311CELLPADDING="6"
5312><TR
5313><TD
5314><PRE
5315CLASS="PROGRAMLISTING"
5316>void xmlXPathSubValues (<A
5317HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5318>xmlXPathParserContextPtr</A
5319> ctxt);</PRE
5320></TD
5321></TR
5322></TABLE
5323><P
5324>Implement the substraction operation on XPath objects:
5325The numeric operators convert their operands to numbers as if
5326by calling the number function.</P
5327><P
5328></P
5329><DIV
5330CLASS="INFORMALTABLE"
5331><P
5332></P
5333><TABLE
5334BORDER="0"
5335WIDTH="100%"
5336BGCOLOR="#FFD0D0"
5337CELLSPACING="0"
5338CELLPADDING="4"
5339CLASS="CALSTABLE"
5340><TR
5341><TD
5342WIDTH="20%"
5343ALIGN="RIGHT"
5344VALIGN="TOP"
5345><TT
5346CLASS="PARAMETER"
5347><I
5348>ctxt</I
5349></TT
5350>&nbsp;:</TD
5351><TD
5352WIDTH="80%"
5353ALIGN="LEFT"
5354VALIGN="TOP"
5355> the XPath Parser context</TD
5356></TR
5357></TABLE
5358><P
5359></P
5360></DIV
5361></DIV
5362><HR><DIV
5363CLASS="REFSECT2"
5364><A
5365NAME="AEN12294"
5366></A
5367><H3
5368><A
5369NAME="XMLXPATHMULTVALUES"
5370></A
5371>xmlXPathMultValues ()</H3
5372><TABLE
5373BORDER="0"
5374BGCOLOR="#D6E8FF"
5375WIDTH="100%"
5376CELLPADDING="6"
5377><TR
5378><TD
5379><PRE
5380CLASS="PROGRAMLISTING"
5381>void xmlXPathMultValues (<A
5382HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5383>xmlXPathParserContextPtr</A
5384> ctxt);</PRE
5385></TD
5386></TR
5387></TABLE
5388><P
5389>Implement the multiply operation on XPath objects:
5390The numeric operators convert their operands to numbers as if
5391by calling the number function.</P
5392><P
5393></P
5394><DIV
5395CLASS="INFORMALTABLE"
5396><P
5397></P
5398><TABLE
5399BORDER="0"
5400WIDTH="100%"
5401BGCOLOR="#FFD0D0"
5402CELLSPACING="0"
5403CELLPADDING="4"
5404CLASS="CALSTABLE"
5405><TR
5406><TD
5407WIDTH="20%"
5408ALIGN="RIGHT"
5409VALIGN="TOP"
5410><TT
5411CLASS="PARAMETER"
5412><I
5413>ctxt</I
5414></TT
5415>&nbsp;:</TD
5416><TD
5417WIDTH="80%"
5418ALIGN="LEFT"
5419VALIGN="TOP"
5420> the XPath Parser context</TD
5421></TR
5422></TABLE
5423><P
5424></P
5425></DIV
5426></DIV
5427><HR><DIV
5428CLASS="REFSECT2"
5429><A
5430NAME="AEN12310"
5431></A
5432><H3
5433><A
5434NAME="XMLXPATHDIVVALUES"
5435></A
5436>xmlXPathDivValues ()</H3
5437><TABLE
5438BORDER="0"
5439BGCOLOR="#D6E8FF"
5440WIDTH="100%"
5441CELLPADDING="6"
5442><TR
5443><TD
5444><PRE
5445CLASS="PROGRAMLISTING"
5446>void xmlXPathDivValues (<A
5447HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5448>xmlXPathParserContextPtr</A
5449> ctxt);</PRE
5450></TD
5451></TR
5452></TABLE
5453><P
5454>Implement the div operation on XPath objects:
5455The numeric operators convert their operands to numbers as if
5456by calling the number function.</P
5457><P
5458></P
5459><DIV
5460CLASS="INFORMALTABLE"
5461><P
5462></P
5463><TABLE
5464BORDER="0"
5465WIDTH="100%"
5466BGCOLOR="#FFD0D0"
5467CELLSPACING="0"
5468CELLPADDING="4"
5469CLASS="CALSTABLE"
5470><TR
5471><TD
5472WIDTH="20%"
5473ALIGN="RIGHT"
5474VALIGN="TOP"
5475><TT
5476CLASS="PARAMETER"
5477><I
5478>ctxt</I
5479></TT
5480>&nbsp;:</TD
5481><TD
5482WIDTH="80%"
5483ALIGN="LEFT"
5484VALIGN="TOP"
5485> the XPath Parser context</TD
5486></TR
5487></TABLE
5488><P
5489></P
5490></DIV
5491></DIV
5492><HR><DIV
5493CLASS="REFSECT2"
5494><A
5495NAME="AEN12326"
5496></A
5497><H3
5498><A
5499NAME="XMLXPATHMODVALUES"
5500></A
5501>xmlXPathModValues ()</H3
5502><TABLE
5503BORDER="0"
5504BGCOLOR="#D6E8FF"
5505WIDTH="100%"
5506CELLPADDING="6"
5507><TR
5508><TD
5509><PRE
5510CLASS="PROGRAMLISTING"
5511>void xmlXPathModValues (<A
5512HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5513>xmlXPathParserContextPtr</A
5514> ctxt);</PRE
5515></TD
5516></TR
5517></TABLE
5518><P
5519>Implement the div operation on XPath objects: <TT
5520CLASS="PARAMETER"
5521><I
5522>arg1</I
5523></TT
5524> / <TT
5525CLASS="PARAMETER"
5526><I
5527>arg2</I
5528></TT
5529>
5530The numeric operators convert their operands to numbers as if
5531by calling the number function.</P
5532><P
5533></P
5534><DIV
5535CLASS="INFORMALTABLE"
5536><P
5537></P
5538><TABLE
5539BORDER="0"
5540WIDTH="100%"
5541BGCOLOR="#FFD0D0"
5542CELLSPACING="0"
5543CELLPADDING="4"
5544CLASS="CALSTABLE"
5545><TR
5546><TD
5547WIDTH="20%"
5548ALIGN="RIGHT"
5549VALIGN="TOP"
5550><TT
5551CLASS="PARAMETER"
5552><I
5553>ctxt</I
5554></TT
5555>&nbsp;:</TD
5556><TD
5557WIDTH="80%"
5558ALIGN="LEFT"
5559VALIGN="TOP"
5560> the XPath Parser context</TD
5561></TR
5562></TABLE
5563><P
5564></P
5565></DIV
5566></DIV
5567><HR><DIV
5568CLASS="REFSECT2"
5569><A
5570NAME="AEN12344"
5571></A
5572><H3
5573><A
5574NAME="XMLXPATHLASTFUNCTION"
5575></A
5576>xmlXPathLastFunction ()</H3
5577><TABLE
5578BORDER="0"
5579BGCOLOR="#D6E8FF"
5580WIDTH="100%"
5581CELLPADDING="6"
5582><TR
5583><TD
5584><PRE
5585CLASS="PROGRAMLISTING"
5586>void xmlXPathLastFunction (<A
5587HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5588>xmlXPathParserContextPtr</A
5589> ctxt,
5590 int nargs);</PRE
5591></TD
5592></TR
5593></TABLE
5594><P
5595>Implement the <GTKDOCLINK
5596HREF="LAST"
5597>last</GTKDOCLINK
5598>() XPath function
5599number <GTKDOCLINK
5600HREF="LAST"
5601>last</GTKDOCLINK
5602>()
5603The last function returns the number of nodes in the context node list.</P
5604><P
5605></P
5606><DIV
5607CLASS="INFORMALTABLE"
5608><P
5609></P
5610><TABLE
5611BORDER="0"
5612WIDTH="100%"
5613BGCOLOR="#FFD0D0"
5614CELLSPACING="0"
5615CELLPADDING="4"
5616CLASS="CALSTABLE"
5617><TR
5618><TD
5619WIDTH="20%"
5620ALIGN="RIGHT"
5621VALIGN="TOP"
5622><TT
5623CLASS="PARAMETER"
5624><I
5625>ctxt</I
5626></TT
5627>&nbsp;:</TD
5628><TD
5629WIDTH="80%"
5630ALIGN="LEFT"
5631VALIGN="TOP"
5632> the XPath Parser context</TD
5633></TR
5634><TR
5635><TD
5636WIDTH="20%"
5637ALIGN="RIGHT"
5638VALIGN="TOP"
5639><TT
5640CLASS="PARAMETER"
5641><I
5642>nargs</I
5643></TT
5644>&nbsp;:</TD
5645><TD
5646WIDTH="80%"
5647ALIGN="LEFT"
5648VALIGN="TOP"
5649>&nbsp;</TD
5650></TR
5651></TABLE
5652><P
5653></P
5654></DIV
5655></DIV
5656><HR><DIV
5657CLASS="REFSECT2"
5658><A
5659NAME="AEN12366"
5660></A
5661><H3
5662><A
5663NAME="XMLXPATHPOSITIONFUNCTION"
5664></A
5665>xmlXPathPositionFunction ()</H3
5666><TABLE
5667BORDER="0"
5668BGCOLOR="#D6E8FF"
5669WIDTH="100%"
5670CELLPADDING="6"
5671><TR
5672><TD
5673><PRE
5674CLASS="PROGRAMLISTING"
5675>void xmlXPathPositionFunction (<A
5676HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5677>xmlXPathParserContextPtr</A
5678> ctxt,
5679 int nargs);</PRE
5680></TD
5681></TR
5682></TABLE
5683><P
5684>Implement the <GTKDOCLINK
5685HREF="POSITION"
5686>position</GTKDOCLINK
5687>() XPath function
5688number <GTKDOCLINK
5689HREF="POSITION"
5690>position</GTKDOCLINK
5691>()
5692The position function returns the position of the context node in the
5693context node list. The first position is 1, and so the last positionr
5694will be equal to <GTKDOCLINK
5695HREF="LAST"
5696>last</GTKDOCLINK
5697>().</P
5698><P
5699></P
5700><DIV
5701CLASS="INFORMALTABLE"
5702><P
5703></P
5704><TABLE
5705BORDER="0"
5706WIDTH="100%"
5707BGCOLOR="#FFD0D0"
5708CELLSPACING="0"
5709CELLPADDING="4"
5710CLASS="CALSTABLE"
5711><TR
5712><TD
5713WIDTH="20%"
5714ALIGN="RIGHT"
5715VALIGN="TOP"
5716><TT
5717CLASS="PARAMETER"
5718><I
5719>ctxt</I
5720></TT
5721>&nbsp;:</TD
5722><TD
5723WIDTH="80%"
5724ALIGN="LEFT"
5725VALIGN="TOP"
5726> the XPath Parser context</TD
5727></TR
5728><TR
5729><TD
5730WIDTH="20%"
5731ALIGN="RIGHT"
5732VALIGN="TOP"
5733><TT
5734CLASS="PARAMETER"
5735><I
5736>nargs</I
5737></TT
5738>&nbsp;:</TD
5739><TD
5740WIDTH="80%"
5741ALIGN="LEFT"
5742VALIGN="TOP"
5743>&nbsp;</TD
5744></TR
5745></TABLE
5746><P
5747></P
5748></DIV
5749></DIV
5750><HR><DIV
5751CLASS="REFSECT2"
5752><A
5753NAME="AEN12389"
5754></A
5755><H3
5756><A
5757NAME="XMLXPATHCOUNTFUNCTION"
5758></A
5759>xmlXPathCountFunction ()</H3
5760><TABLE
5761BORDER="0"
5762BGCOLOR="#D6E8FF"
5763WIDTH="100%"
5764CELLPADDING="6"
5765><TR
5766><TD
5767><PRE
5768CLASS="PROGRAMLISTING"
5769>void xmlXPathCountFunction (<A
5770HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5771>xmlXPathParserContextPtr</A
5772> ctxt,
5773 int nargs);</PRE
5774></TD
5775></TR
5776></TABLE
5777><P
5778>Implement the <GTKDOCLINK
5779HREF="COUNT"
5780>count</GTKDOCLINK
5781>() XPath function
5782number count(node-set)</P
5783><P
5784></P
5785><DIV
5786CLASS="INFORMALTABLE"
5787><P
5788></P
5789><TABLE
5790BORDER="0"
5791WIDTH="100%"
5792BGCOLOR="#FFD0D0"
5793CELLSPACING="0"
5794CELLPADDING="4"
5795CLASS="CALSTABLE"
5796><TR
5797><TD
5798WIDTH="20%"
5799ALIGN="RIGHT"
5800VALIGN="TOP"
5801><TT
5802CLASS="PARAMETER"
5803><I
5804>ctxt</I
5805></TT
5806>&nbsp;:</TD
5807><TD
5808WIDTH="80%"
5809ALIGN="LEFT"
5810VALIGN="TOP"
5811> the XPath Parser context</TD
5812></TR
5813><TR
5814><TD
5815WIDTH="20%"
5816ALIGN="RIGHT"
5817VALIGN="TOP"
5818><TT
5819CLASS="PARAMETER"
5820><I
5821>nargs</I
5822></TT
5823>&nbsp;:</TD
5824><TD
5825WIDTH="80%"
5826ALIGN="LEFT"
5827VALIGN="TOP"
5828>&nbsp;</TD
5829></TR
5830></TABLE
5831><P
5832></P
5833></DIV
5834></DIV
5835><HR><DIV
5836CLASS="REFSECT2"
5837><A
5838NAME="AEN12410"
5839></A
5840><H3
5841><A
5842NAME="XMLXPATHLOCALNAMEFUNCTION"
5843></A
5844>xmlXPathLocalNameFunction ()</H3
5845><TABLE
5846BORDER="0"
5847BGCOLOR="#D6E8FF"
5848WIDTH="100%"
5849CELLPADDING="6"
5850><TR
5851><TD
5852><PRE
5853CLASS="PROGRAMLISTING"
5854>void xmlXPathLocalNameFunction (<A
5855HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5856>xmlXPathParserContextPtr</A
5857> ctxt,
5858 int nargs);</PRE
5859></TD
5860></TR
5861></TABLE
5862><P
5863>Implement the local-<GTKDOCLINK
5864HREF="NAME"
5865>name</GTKDOCLINK
5866>() XPath function
5867string local-name(node-set?)
5868The local-name function returns a string containing the local part
5869of the name of the node in the argument node-set that is first in
5870document order. If the node-set is empty or the first node has no
5871name, an empty string is returned. If the argument is omitted it
5872defaults to the context node.</P
5873><P
5874></P
5875><DIV
5876CLASS="INFORMALTABLE"
5877><P
5878></P
5879><TABLE
5880BORDER="0"
5881WIDTH="100%"
5882BGCOLOR="#FFD0D0"
5883CELLSPACING="0"
5884CELLPADDING="4"
5885CLASS="CALSTABLE"
5886><TR
5887><TD
5888WIDTH="20%"
5889ALIGN="RIGHT"
5890VALIGN="TOP"
5891><TT
5892CLASS="PARAMETER"
5893><I
5894>ctxt</I
5895></TT
5896>&nbsp;:</TD
5897><TD
5898WIDTH="80%"
5899ALIGN="LEFT"
5900VALIGN="TOP"
5901> the XPath Parser context</TD
5902></TR
5903><TR
5904><TD
5905WIDTH="20%"
5906ALIGN="RIGHT"
5907VALIGN="TOP"
5908><TT
5909CLASS="PARAMETER"
5910><I
5911>nargs</I
5912></TT
5913>&nbsp;:</TD
5914><TD
5915WIDTH="80%"
5916ALIGN="LEFT"
5917VALIGN="TOP"
5918>&nbsp;</TD
5919></TR
5920></TABLE
5921><P
5922></P
5923></DIV
5924></DIV
5925><HR><DIV
5926CLASS="REFSECT2"
5927><A
5928NAME="AEN12431"
5929></A
5930><H3
5931><A
5932NAME="XMLXPATHNAMESPACEURIFUNCTION"
5933></A
5934>xmlXPathNamespaceURIFunction ()</H3
5935><TABLE
5936BORDER="0"
5937BGCOLOR="#D6E8FF"
5938WIDTH="100%"
5939CELLPADDING="6"
5940><TR
5941><TD
5942><PRE
5943CLASS="PROGRAMLISTING"
5944>void xmlXPathNamespaceURIFunction (<A
5945HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
5946>xmlXPathParserContextPtr</A
5947> ctxt,
5948 int nargs);</PRE
5949></TD
5950></TR
5951></TABLE
5952><P
5953>Implement the namespace-<GTKDOCLINK
5954HREF="URI"
5955>uri</GTKDOCLINK
5956>() XPath function
5957string namespace-uri(node-set?)
5958The namespace-uri function returns a string containing the
5959namespace URI of the expanded name of the node in the argument
5960node-set that is first in document order. If the node-set is empty,
5961the first node has no name, or the expanded name has no namespace
5962URI, an empty string is returned. If the argument is omitted it
5963defaults to the context node.</P
5964><P
5965></P
5966><DIV
5967CLASS="INFORMALTABLE"
5968><P
5969></P
5970><TABLE
5971BORDER="0"
5972WIDTH="100%"
5973BGCOLOR="#FFD0D0"
5974CELLSPACING="0"
5975CELLPADDING="4"
5976CLASS="CALSTABLE"
5977><TR
5978><TD
5979WIDTH="20%"
5980ALIGN="RIGHT"
5981VALIGN="TOP"
5982><TT
5983CLASS="PARAMETER"
5984><I
5985>ctxt</I
5986></TT
5987>&nbsp;:</TD
5988><TD
5989WIDTH="80%"
5990ALIGN="LEFT"
5991VALIGN="TOP"
5992> the XPath Parser context</TD
5993></TR
5994><TR
5995><TD
5996WIDTH="20%"
5997ALIGN="RIGHT"
5998VALIGN="TOP"
5999><TT
6000CLASS="PARAMETER"
6001><I
6002>nargs</I
6003></TT
6004>&nbsp;:</TD
6005><TD
6006WIDTH="80%"
6007ALIGN="LEFT"
6008VALIGN="TOP"
6009>&nbsp;</TD
6010></TR
6011></TABLE
6012><P
6013></P
6014></DIV
6015></DIV
6016><HR><DIV
6017CLASS="REFSECT2"
6018><A
6019NAME="AEN12452"
6020></A
6021><H3
6022><A
6023NAME="XMLXPATHSTRINGLENGTHFUNCTION"
6024></A
6025>xmlXPathStringLengthFunction ()</H3
6026><TABLE
6027BORDER="0"
6028BGCOLOR="#D6E8FF"
6029WIDTH="100%"
6030CELLPADDING="6"
6031><TR
6032><TD
6033><PRE
6034CLASS="PROGRAMLISTING"
6035>void xmlXPathStringLengthFunction (<A
6036HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6037>xmlXPathParserContextPtr</A
6038> ctxt,
6039 int nargs);</PRE
6040></TD
6041></TR
6042></TABLE
6043><P
6044>Implement the string-<GTKDOCLINK
6045HREF="LENGTH"
6046>length</GTKDOCLINK
6047>() XPath function
6048number string-length(string?)
6049The string-length returns the number of characters in the string
6050(see [3.6 Strings]). If the argument is omitted, it defaults to
6051the context node converted to a string, in other words the value
6052of the context node.</P
6053><P
6054></P
6055><DIV
6056CLASS="INFORMALTABLE"
6057><P
6058></P
6059><TABLE
6060BORDER="0"
6061WIDTH="100%"
6062BGCOLOR="#FFD0D0"
6063CELLSPACING="0"
6064CELLPADDING="4"
6065CLASS="CALSTABLE"
6066><TR
6067><TD
6068WIDTH="20%"
6069ALIGN="RIGHT"
6070VALIGN="TOP"
6071><TT
6072CLASS="PARAMETER"
6073><I
6074>ctxt</I
6075></TT
6076>&nbsp;:</TD
6077><TD
6078WIDTH="80%"
6079ALIGN="LEFT"
6080VALIGN="TOP"
6081> the XPath Parser context</TD
6082></TR
6083><TR
6084><TD
6085WIDTH="20%"
6086ALIGN="RIGHT"
6087VALIGN="TOP"
6088><TT
6089CLASS="PARAMETER"
6090><I
6091>nargs</I
6092></TT
6093>&nbsp;:</TD
6094><TD
6095WIDTH="80%"
6096ALIGN="LEFT"
6097VALIGN="TOP"
6098>&nbsp;</TD
6099></TR
6100></TABLE
6101><P
6102></P
6103></DIV
6104></DIV
6105><HR><DIV
6106CLASS="REFSECT2"
6107><A
6108NAME="AEN12473"
6109></A
6110><H3
6111><A
6112NAME="XMLXPATHCONCATFUNCTION"
6113></A
6114>xmlXPathConcatFunction ()</H3
6115><TABLE
6116BORDER="0"
6117BGCOLOR="#D6E8FF"
6118WIDTH="100%"
6119CELLPADDING="6"
6120><TR
6121><TD
6122><PRE
6123CLASS="PROGRAMLISTING"
6124>void xmlXPathConcatFunction (<A
6125HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6126>xmlXPathParserContextPtr</A
6127> ctxt,
6128 int nargs);</PRE
6129></TD
6130></TR
6131></TABLE
6132><P
6133>Implement the <GTKDOCLINK
6134HREF="CONCAT"
6135>concat</GTKDOCLINK
6136>() XPath function
6137string concat(string, string, string*)
6138The concat function returns the concatenation of its arguments.</P
6139><P
6140></P
6141><DIV
6142CLASS="INFORMALTABLE"
6143><P
6144></P
6145><TABLE
6146BORDER="0"
6147WIDTH="100%"
6148BGCOLOR="#FFD0D0"
6149CELLSPACING="0"
6150CELLPADDING="4"
6151CLASS="CALSTABLE"
6152><TR
6153><TD
6154WIDTH="20%"
6155ALIGN="RIGHT"
6156VALIGN="TOP"
6157><TT
6158CLASS="PARAMETER"
6159><I
6160>ctxt</I
6161></TT
6162>&nbsp;:</TD
6163><TD
6164WIDTH="80%"
6165ALIGN="LEFT"
6166VALIGN="TOP"
6167> the XPath Parser context</TD
6168></TR
6169><TR
6170><TD
6171WIDTH="20%"
6172ALIGN="RIGHT"
6173VALIGN="TOP"
6174><TT
6175CLASS="PARAMETER"
6176><I
6177>nargs</I
6178></TT
6179>&nbsp;:</TD
6180><TD
6181WIDTH="80%"
6182ALIGN="LEFT"
6183VALIGN="TOP"
6184>&nbsp;</TD
6185></TR
6186></TABLE
6187><P
6188></P
6189></DIV
6190></DIV
6191><HR><DIV
6192CLASS="REFSECT2"
6193><A
6194NAME="AEN12494"
6195></A
6196><H3
6197><A
6198NAME="XMLXPATHCONTAINSFUNCTION"
6199></A
6200>xmlXPathContainsFunction ()</H3
6201><TABLE
6202BORDER="0"
6203BGCOLOR="#D6E8FF"
6204WIDTH="100%"
6205CELLPADDING="6"
6206><TR
6207><TD
6208><PRE
6209CLASS="PROGRAMLISTING"
6210>void xmlXPathContainsFunction (<A
6211HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6212>xmlXPathParserContextPtr</A
6213> ctxt,
6214 int nargs);</PRE
6215></TD
6216></TR
6217></TABLE
6218><P
6219>Implement the <GTKDOCLINK
6220HREF="CONTAINS"
6221>contains</GTKDOCLINK
6222>() XPath function
6223boolean contains(string, string)
6224The contains function returns true if the first argument string
6225contains the second argument string, and otherwise returns false.</P
6226><P
6227></P
6228><DIV
6229CLASS="INFORMALTABLE"
6230><P
6231></P
6232><TABLE
6233BORDER="0"
6234WIDTH="100%"
6235BGCOLOR="#FFD0D0"
6236CELLSPACING="0"
6237CELLPADDING="4"
6238CLASS="CALSTABLE"
6239><TR
6240><TD
6241WIDTH="20%"
6242ALIGN="RIGHT"
6243VALIGN="TOP"
6244><TT
6245CLASS="PARAMETER"
6246><I
6247>ctxt</I
6248></TT
6249>&nbsp;:</TD
6250><TD
6251WIDTH="80%"
6252ALIGN="LEFT"
6253VALIGN="TOP"
6254> the XPath Parser context</TD
6255></TR
6256><TR
6257><TD
6258WIDTH="20%"
6259ALIGN="RIGHT"
6260VALIGN="TOP"
6261><TT
6262CLASS="PARAMETER"
6263><I
6264>nargs</I
6265></TT
6266>&nbsp;:</TD
6267><TD
6268WIDTH="80%"
6269ALIGN="LEFT"
6270VALIGN="TOP"
6271>&nbsp;</TD
6272></TR
6273></TABLE
6274><P
6275></P
6276></DIV
6277></DIV
6278><HR><DIV
6279CLASS="REFSECT2"
6280><A
6281NAME="AEN12515"
6282></A
6283><H3
6284><A
6285NAME="XMLXPATHSTARTSWITHFUNCTION"
6286></A
6287>xmlXPathStartsWithFunction ()</H3
6288><TABLE
6289BORDER="0"
6290BGCOLOR="#D6E8FF"
6291WIDTH="100%"
6292CELLPADDING="6"
6293><TR
6294><TD
6295><PRE
6296CLASS="PROGRAMLISTING"
6297>void xmlXPathStartsWithFunction (<A
6298HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6299>xmlXPathParserContextPtr</A
6300> ctxt,
6301 int nargs);</PRE
6302></TD
6303></TR
6304></TABLE
6305><P
6306>Implement the starts-<GTKDOCLINK
6307HREF="WITH"
6308>with</GTKDOCLINK
6309>() XPath function
6310boolean starts-with(string, string)
6311The starts-with function returns true if the first argument string
6312starts with the second argument string, and otherwise returns false.</P
6313><P
6314></P
6315><DIV
6316CLASS="INFORMALTABLE"
6317><P
6318></P
6319><TABLE
6320BORDER="0"
6321WIDTH="100%"
6322BGCOLOR="#FFD0D0"
6323CELLSPACING="0"
6324CELLPADDING="4"
6325CLASS="CALSTABLE"
6326><TR
6327><TD
6328WIDTH="20%"
6329ALIGN="RIGHT"
6330VALIGN="TOP"
6331><TT
6332CLASS="PARAMETER"
6333><I
6334>ctxt</I
6335></TT
6336>&nbsp;:</TD
6337><TD
6338WIDTH="80%"
6339ALIGN="LEFT"
6340VALIGN="TOP"
6341> the XPath Parser context</TD
6342></TR
6343><TR
6344><TD
6345WIDTH="20%"
6346ALIGN="RIGHT"
6347VALIGN="TOP"
6348><TT
6349CLASS="PARAMETER"
6350><I
6351>nargs</I
6352></TT
6353>&nbsp;:</TD
6354><TD
6355WIDTH="80%"
6356ALIGN="LEFT"
6357VALIGN="TOP"
6358>&nbsp;</TD
6359></TR
6360></TABLE
6361><P
6362></P
6363></DIV
6364></DIV
6365><HR><DIV
6366CLASS="REFSECT2"
6367><A
6368NAME="AEN12536"
6369></A
6370><H3
6371><A
6372NAME="XMLXPATHSUBSTRINGFUNCTION"
6373></A
6374>xmlXPathSubstringFunction ()</H3
6375><TABLE
6376BORDER="0"
6377BGCOLOR="#D6E8FF"
6378WIDTH="100%"
6379CELLPADDING="6"
6380><TR
6381><TD
6382><PRE
6383CLASS="PROGRAMLISTING"
6384>void xmlXPathSubstringFunction (<A
6385HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6386>xmlXPathParserContextPtr</A
6387> ctxt,
6388 int nargs);</PRE
6389></TD
6390></TR
6391></TABLE
6392><P
6393>Implement the <GTKDOCLINK
6394HREF="SUBSTRING"
6395>substring</GTKDOCLINK
6396>() XPath function
6397string substring(string, number, number?)
6398The substring function returns the substring of the first argument
6399starting at the position specified in the second argument with
6400length specified in the third argument. For example,
6401substring("12345",2,3) returns "234". If the third argument is not
6402specified, it returns the substring starting at the position specified
6403in the second argument and continuing to the end of the string. For
6404example, substring("12345",2) returns "2345". More precisely, each
6405character in the string (see [3.6 Strings]) is considered to have a
6406numeric position: the position of the first character is 1, the position
6407of the second character is 2 and so on. The returned substring contains
6408those characters for which the position of the character is greater than
6409or equal to the second argument and, if the third argument is specified,
6410less than the sum of the second and third arguments; the comparisons
6411and addition used for the above follow the standard IEEE 754 rules. Thus:
6412- substring("12345", 1.5, 2.6) returns "234"
6413- substring("12345", 0, 3) returns "12"
6414- substring("12345", 0 div 0, 3) returns ""
6415- substring("12345", 1, 0 div 0) returns ""
6416- substring("12345", -42, 1 div 0) returns "12345"
6417- substring("12345", -1 div 0, 1 div 0) returns ""</P
6418><P
6419></P
6420><DIV
6421CLASS="INFORMALTABLE"
6422><P
6423></P
6424><TABLE
6425BORDER="0"
6426WIDTH="100%"
6427BGCOLOR="#FFD0D0"
6428CELLSPACING="0"
6429CELLPADDING="4"
6430CLASS="CALSTABLE"
6431><TR
6432><TD
6433WIDTH="20%"
6434ALIGN="RIGHT"
6435VALIGN="TOP"
6436><TT
6437CLASS="PARAMETER"
6438><I
6439>ctxt</I
6440></TT
6441>&nbsp;:</TD
6442><TD
6443WIDTH="80%"
6444ALIGN="LEFT"
6445VALIGN="TOP"
6446> the XPath Parser context</TD
6447></TR
6448><TR
6449><TD
6450WIDTH="20%"
6451ALIGN="RIGHT"
6452VALIGN="TOP"
6453><TT
6454CLASS="PARAMETER"
6455><I
6456>nargs</I
6457></TT
6458>&nbsp;:</TD
6459><TD
6460WIDTH="80%"
6461ALIGN="LEFT"
6462VALIGN="TOP"
6463>&nbsp;</TD
6464></TR
6465></TABLE
6466><P
6467></P
6468></DIV
6469></DIV
6470><HR><DIV
6471CLASS="REFSECT2"
6472><A
6473NAME="AEN12557"
6474></A
6475><H3
6476><A
6477NAME="XMLXPATHSUBSTRINGBEFOREFUNCTION"
6478></A
6479>xmlXPathSubstringBeforeFunction ()</H3
6480><TABLE
6481BORDER="0"
6482BGCOLOR="#D6E8FF"
6483WIDTH="100%"
6484CELLPADDING="6"
6485><TR
6486><TD
6487><PRE
6488CLASS="PROGRAMLISTING"
6489>void xmlXPathSubstringBeforeFunction (<A
6490HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6491>xmlXPathParserContextPtr</A
6492> ctxt,
6493 int nargs);</PRE
6494></TD
6495></TR
6496></TABLE
6497><P
6498>Implement the substring-<GTKDOCLINK
6499HREF="BEFORE"
6500>before</GTKDOCLINK
6501>() XPath function
6502string substring-before(string, string)
6503The substring-before function returns the substring of the first
6504argument string that precedes the first occurrence of the second
6505argument string in the first argument string, or the empty string
6506if the first argument string does not contain the second argument
6507string. For example, substring-before("1999/04/01","/") returns 1999.</P
6508><P
6509></P
6510><DIV
6511CLASS="INFORMALTABLE"
6512><P
6513></P
6514><TABLE
6515BORDER="0"
6516WIDTH="100%"
6517BGCOLOR="#FFD0D0"
6518CELLSPACING="0"
6519CELLPADDING="4"
6520CLASS="CALSTABLE"
6521><TR
6522><TD
6523WIDTH="20%"
6524ALIGN="RIGHT"
6525VALIGN="TOP"
6526><TT
6527CLASS="PARAMETER"
6528><I
6529>ctxt</I
6530></TT
6531>&nbsp;:</TD
6532><TD
6533WIDTH="80%"
6534ALIGN="LEFT"
6535VALIGN="TOP"
6536> the XPath Parser context</TD
6537></TR
6538><TR
6539><TD
6540WIDTH="20%"
6541ALIGN="RIGHT"
6542VALIGN="TOP"
6543><TT
6544CLASS="PARAMETER"
6545><I
6546>nargs</I
6547></TT
6548>&nbsp;:</TD
6549><TD
6550WIDTH="80%"
6551ALIGN="LEFT"
6552VALIGN="TOP"
6553>&nbsp;</TD
6554></TR
6555></TABLE
6556><P
6557></P
6558></DIV
6559></DIV
6560><HR><DIV
6561CLASS="REFSECT2"
6562><A
6563NAME="AEN12578"
6564></A
6565><H3
6566><A
6567NAME="XMLXPATHSUBSTRINGAFTERFUNCTION"
6568></A
6569>xmlXPathSubstringAfterFunction ()</H3
6570><TABLE
6571BORDER="0"
6572BGCOLOR="#D6E8FF"
6573WIDTH="100%"
6574CELLPADDING="6"
6575><TR
6576><TD
6577><PRE
6578CLASS="PROGRAMLISTING"
6579>void xmlXPathSubstringAfterFunction (<A
6580HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6581>xmlXPathParserContextPtr</A
6582> ctxt,
6583 int nargs);</PRE
6584></TD
6585></TR
6586></TABLE
6587><P
6588>Implement the substring-<GTKDOCLINK
6589HREF="AFTER"
6590>after</GTKDOCLINK
6591>() XPath function
6592string substring-after(string, string)
6593The substring-after function returns the substring of the first
6594argument string that follows the first occurrence of the second
6595argument string in the first argument string, or the empty stringi
6596if the first argument string does not contain the second argument
6597string. For example, substring-after("1999/04/01","/") returns 04/01,
6598and substring-after("1999/04/01","19") returns 99/04/01.</P
6599><P
6600></P
6601><DIV
6602CLASS="INFORMALTABLE"
6603><P
6604></P
6605><TABLE
6606BORDER="0"
6607WIDTH="100%"
6608BGCOLOR="#FFD0D0"
6609CELLSPACING="0"
6610CELLPADDING="4"
6611CLASS="CALSTABLE"
6612><TR
6613><TD
6614WIDTH="20%"
6615ALIGN="RIGHT"
6616VALIGN="TOP"
6617><TT
6618CLASS="PARAMETER"
6619><I
6620>ctxt</I
6621></TT
6622>&nbsp;:</TD
6623><TD
6624WIDTH="80%"
6625ALIGN="LEFT"
6626VALIGN="TOP"
6627> the XPath Parser context</TD
6628></TR
6629><TR
6630><TD
6631WIDTH="20%"
6632ALIGN="RIGHT"
6633VALIGN="TOP"
6634><TT
6635CLASS="PARAMETER"
6636><I
6637>nargs</I
6638></TT
6639>&nbsp;:</TD
6640><TD
6641WIDTH="80%"
6642ALIGN="LEFT"
6643VALIGN="TOP"
6644>&nbsp;</TD
6645></TR
6646></TABLE
6647><P
6648></P
6649></DIV
6650></DIV
6651><HR><DIV
6652CLASS="REFSECT2"
6653><A
6654NAME="AEN12599"
6655></A
6656><H3
6657><A
6658NAME="XMLXPATHNORMALIZEFUNCTION"
6659></A
6660>xmlXPathNormalizeFunction ()</H3
6661><TABLE
6662BORDER="0"
6663BGCOLOR="#D6E8FF"
6664WIDTH="100%"
6665CELLPADDING="6"
6666><TR
6667><TD
6668><PRE
6669CLASS="PROGRAMLISTING"
6670>void xmlXPathNormalizeFunction (<A
6671HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6672>xmlXPathParserContextPtr</A
6673> ctxt,
6674 int nargs);</PRE
6675></TD
6676></TR
6677></TABLE
6678><P
6679>Implement the normalize-<GTKDOCLINK
6680HREF="SPACE"
6681>space</GTKDOCLINK
6682>() XPath function
6683string normalize-space(string?)
6684The normalize-space function returns the argument string with white
6685space normalized by stripping leading and trailing whitespace
6686and replacing sequences of whitespace characters by a single
6687space. Whitespace characters are the same allowed by the S production
6688in XML. If the argument is omitted, it defaults to the context
6689node converted to a string, in other words the value of the context node.</P
6690><P
6691></P
6692><DIV
6693CLASS="INFORMALTABLE"
6694><P
6695></P
6696><TABLE
6697BORDER="0"
6698WIDTH="100%"
6699BGCOLOR="#FFD0D0"
6700CELLSPACING="0"
6701CELLPADDING="4"
6702CLASS="CALSTABLE"
6703><TR
6704><TD
6705WIDTH="20%"
6706ALIGN="RIGHT"
6707VALIGN="TOP"
6708><TT
6709CLASS="PARAMETER"
6710><I
6711>ctxt</I
6712></TT
6713>&nbsp;:</TD
6714><TD
6715WIDTH="80%"
6716ALIGN="LEFT"
6717VALIGN="TOP"
6718> the XPath Parser context</TD
6719></TR
6720><TR
6721><TD
6722WIDTH="20%"
6723ALIGN="RIGHT"
6724VALIGN="TOP"
6725><TT
6726CLASS="PARAMETER"
6727><I
6728>nargs</I
6729></TT
6730>&nbsp;:</TD
6731><TD
6732WIDTH="80%"
6733ALIGN="LEFT"
6734VALIGN="TOP"
6735>&nbsp;</TD
6736></TR
6737></TABLE
6738><P
6739></P
6740></DIV
6741></DIV
6742><HR><DIV
6743CLASS="REFSECT2"
6744><A
6745NAME="AEN12620"
6746></A
6747><H3
6748><A
6749NAME="XMLXPATHTRANSLATEFUNCTION"
6750></A
6751>xmlXPathTranslateFunction ()</H3
6752><TABLE
6753BORDER="0"
6754BGCOLOR="#D6E8FF"
6755WIDTH="100%"
6756CELLPADDING="6"
6757><TR
6758><TD
6759><PRE
6760CLASS="PROGRAMLISTING"
6761>void xmlXPathTranslateFunction (<A
6762HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6763>xmlXPathParserContextPtr</A
6764> ctxt,
6765 int nargs);</PRE
6766></TD
6767></TR
6768></TABLE
6769><P
6770>Implement the <GTKDOCLINK
6771HREF="TRANSLATE"
6772>translate</GTKDOCLINK
6773>() XPath function
6774string translate(string, string, string)
6775The translate function returns the first argument string with
6776occurrences of characters in the second argument string replaced
6777by the character at the corresponding position in the third argument
6778string. For example, translate("bar","abc","ABC") returns the string
6779BAr. If there is a character in the second argument string with no
6780character at a corresponding position in the third argument string
6781(because the second argument string is longer than the third argument
6782string), then occurrences of that character in the first argument
6783string are removed. For example, translate("--aaa--","abc-","ABC")</P
6784><P
6785></P
6786><DIV
6787CLASS="INFORMALTABLE"
6788><P
6789></P
6790><TABLE
6791BORDER="0"
6792WIDTH="100%"
6793BGCOLOR="#FFD0D0"
6794CELLSPACING="0"
6795CELLPADDING="4"
6796CLASS="CALSTABLE"
6797><TR
6798><TD
6799WIDTH="20%"
6800ALIGN="RIGHT"
6801VALIGN="TOP"
6802><TT
6803CLASS="PARAMETER"
6804><I
6805>ctxt</I
6806></TT
6807>&nbsp;:</TD
6808><TD
6809WIDTH="80%"
6810ALIGN="LEFT"
6811VALIGN="TOP"
6812> the XPath Parser context</TD
6813></TR
6814><TR
6815><TD
6816WIDTH="20%"
6817ALIGN="RIGHT"
6818VALIGN="TOP"
6819><TT
6820CLASS="PARAMETER"
6821><I
6822>nargs</I
6823></TT
6824>&nbsp;:</TD
6825><TD
6826WIDTH="80%"
6827ALIGN="LEFT"
6828VALIGN="TOP"
6829>&nbsp;</TD
6830></TR
6831></TABLE
6832><P
6833></P
6834></DIV
6835></DIV
6836><HR><DIV
6837CLASS="REFSECT2"
6838><A
6839NAME="AEN12641"
6840></A
6841><H3
6842><A
6843NAME="XMLXPATHNOTFUNCTION"
6844></A
6845>xmlXPathNotFunction ()</H3
6846><TABLE
6847BORDER="0"
6848BGCOLOR="#D6E8FF"
6849WIDTH="100%"
6850CELLPADDING="6"
6851><TR
6852><TD
6853><PRE
6854CLASS="PROGRAMLISTING"
6855>void xmlXPathNotFunction (<A
6856HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6857>xmlXPathParserContextPtr</A
6858> ctxt,
6859 int nargs);</PRE
6860></TD
6861></TR
6862></TABLE
6863><P
6864>Implement the <GTKDOCLINK
6865HREF="NOT"
6866>not</GTKDOCLINK
6867>() XPath function
6868boolean not(boolean)
6869The not function returns true if its argument is false,
6870and false otherwise.</P
6871><P
6872></P
6873><DIV
6874CLASS="INFORMALTABLE"
6875><P
6876></P
6877><TABLE
6878BORDER="0"
6879WIDTH="100%"
6880BGCOLOR="#FFD0D0"
6881CELLSPACING="0"
6882CELLPADDING="4"
6883CLASS="CALSTABLE"
6884><TR
6885><TD
6886WIDTH="20%"
6887ALIGN="RIGHT"
6888VALIGN="TOP"
6889><TT
6890CLASS="PARAMETER"
6891><I
6892>ctxt</I
6893></TT
6894>&nbsp;:</TD
6895><TD
6896WIDTH="80%"
6897ALIGN="LEFT"
6898VALIGN="TOP"
6899> the XPath Parser context</TD
6900></TR
6901><TR
6902><TD
6903WIDTH="20%"
6904ALIGN="RIGHT"
6905VALIGN="TOP"
6906><TT
6907CLASS="PARAMETER"
6908><I
6909>nargs</I
6910></TT
6911>&nbsp;:</TD
6912><TD
6913WIDTH="80%"
6914ALIGN="LEFT"
6915VALIGN="TOP"
6916>&nbsp;</TD
6917></TR
6918></TABLE
6919><P
6920></P
6921></DIV
6922></DIV
6923><HR><DIV
6924CLASS="REFSECT2"
6925><A
6926NAME="AEN12662"
6927></A
6928><H3
6929><A
6930NAME="XMLXPATHTRUEFUNCTION"
6931></A
6932>xmlXPathTrueFunction ()</H3
6933><TABLE
6934BORDER="0"
6935BGCOLOR="#D6E8FF"
6936WIDTH="100%"
6937CELLPADDING="6"
6938><TR
6939><TD
6940><PRE
6941CLASS="PROGRAMLISTING"
6942>void xmlXPathTrueFunction (<A
6943HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
6944>xmlXPathParserContextPtr</A
6945> ctxt,
6946 int nargs);</PRE
6947></TD
6948></TR
6949></TABLE
6950><P
6951>Implement the <GTKDOCLINK
6952HREF="TRUE"
6953>true</GTKDOCLINK
6954>() XPath function
6955boolean <GTKDOCLINK
6956HREF="TRUE"
6957>true</GTKDOCLINK
6958>()</P
6959><P
6960></P
6961><DIV
6962CLASS="INFORMALTABLE"
6963><P
6964></P
6965><TABLE
6966BORDER="0"
6967WIDTH="100%"
6968BGCOLOR="#FFD0D0"
6969CELLSPACING="0"
6970CELLPADDING="4"
6971CLASS="CALSTABLE"
6972><TR
6973><TD
6974WIDTH="20%"
6975ALIGN="RIGHT"
6976VALIGN="TOP"
6977><TT
6978CLASS="PARAMETER"
6979><I
6980>ctxt</I
6981></TT
6982>&nbsp;:</TD
6983><TD
6984WIDTH="80%"
6985ALIGN="LEFT"
6986VALIGN="TOP"
6987> the XPath Parser context</TD
6988></TR
6989><TR
6990><TD
6991WIDTH="20%"
6992ALIGN="RIGHT"
6993VALIGN="TOP"
6994><TT
6995CLASS="PARAMETER"
6996><I
6997>nargs</I
6998></TT
6999>&nbsp;:</TD
7000><TD
7001WIDTH="80%"
7002ALIGN="LEFT"
7003VALIGN="TOP"
7004>&nbsp;</TD
7005></TR
7006></TABLE
7007><P
7008></P
7009></DIV
7010></DIV
7011><HR><DIV
7012CLASS="REFSECT2"
7013><A
7014NAME="AEN12684"
7015></A
7016><H3
7017><A
7018NAME="XMLXPATHFALSEFUNCTION"
7019></A
7020>xmlXPathFalseFunction ()</H3
7021><TABLE
7022BORDER="0"
7023BGCOLOR="#D6E8FF"
7024WIDTH="100%"
7025CELLPADDING="6"
7026><TR
7027><TD
7028><PRE
7029CLASS="PROGRAMLISTING"
7030>void xmlXPathFalseFunction (<A
7031HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7032>xmlXPathParserContextPtr</A
7033> ctxt,
7034 int nargs);</PRE
7035></TD
7036></TR
7037></TABLE
7038><P
7039>Implement the <GTKDOCLINK
7040HREF="FALSE"
7041>false</GTKDOCLINK
7042>() XPath function
7043boolean <GTKDOCLINK
7044HREF="FALSE"
7045>false</GTKDOCLINK
7046>()</P
7047><P
7048></P
7049><DIV
7050CLASS="INFORMALTABLE"
7051><P
7052></P
7053><TABLE
7054BORDER="0"
7055WIDTH="100%"
7056BGCOLOR="#FFD0D0"
7057CELLSPACING="0"
7058CELLPADDING="4"
7059CLASS="CALSTABLE"
7060><TR
7061><TD
7062WIDTH="20%"
7063ALIGN="RIGHT"
7064VALIGN="TOP"
7065><TT
7066CLASS="PARAMETER"
7067><I
7068>ctxt</I
7069></TT
7070>&nbsp;:</TD
7071><TD
7072WIDTH="80%"
7073ALIGN="LEFT"
7074VALIGN="TOP"
7075> the XPath Parser context</TD
7076></TR
7077><TR
7078><TD
7079WIDTH="20%"
7080ALIGN="RIGHT"
7081VALIGN="TOP"
7082><TT
7083CLASS="PARAMETER"
7084><I
7085>nargs</I
7086></TT
7087>&nbsp;:</TD
7088><TD
7089WIDTH="80%"
7090ALIGN="LEFT"
7091VALIGN="TOP"
7092>&nbsp;</TD
7093></TR
7094></TABLE
7095><P
7096></P
7097></DIV
7098></DIV
7099><HR><DIV
7100CLASS="REFSECT2"
7101><A
7102NAME="AEN12706"
7103></A
7104><H3
7105><A
7106NAME="XMLXPATHLANGFUNCTION"
7107></A
7108>xmlXPathLangFunction ()</H3
7109><TABLE
7110BORDER="0"
7111BGCOLOR="#D6E8FF"
7112WIDTH="100%"
7113CELLPADDING="6"
7114><TR
7115><TD
7116><PRE
7117CLASS="PROGRAMLISTING"
7118>void xmlXPathLangFunction (<A
7119HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7120>xmlXPathParserContextPtr</A
7121> ctxt,
7122 int nargs);</PRE
7123></TD
7124></TR
7125></TABLE
7126><P
7127>Implement the <GTKDOCLINK
7128HREF="LANG"
7129>lang</GTKDOCLINK
7130>() XPath function
7131boolean lang(string)
7132The lang function returns true or false depending on whether the
7133language of the context node as specified by xml:lang attributes
7134is the same as or is a sublanguage of the language specified by
7135the argument string. The language of the context node is determined
7136by the value of the xml:lang attribute on the context node, or, if
7137the context node has no xml:lang attribute, by the value of the
7138xml:lang attribute on the nearest ancestor of the context node that
7139has an xml:lang attribute. If there is no such attribute, then lang</P
7140><P
7141></P
7142><DIV
7143CLASS="INFORMALTABLE"
7144><P
7145></P
7146><TABLE
7147BORDER="0"
7148WIDTH="100%"
7149BGCOLOR="#FFD0D0"
7150CELLSPACING="0"
7151CELLPADDING="4"
7152CLASS="CALSTABLE"
7153><TR
7154><TD
7155WIDTH="20%"
7156ALIGN="RIGHT"
7157VALIGN="TOP"
7158><TT
7159CLASS="PARAMETER"
7160><I
7161>ctxt</I
7162></TT
7163>&nbsp;:</TD
7164><TD
7165WIDTH="80%"
7166ALIGN="LEFT"
7167VALIGN="TOP"
7168> the XPath Parser context</TD
7169></TR
7170><TR
7171><TD
7172WIDTH="20%"
7173ALIGN="RIGHT"
7174VALIGN="TOP"
7175><TT
7176CLASS="PARAMETER"
7177><I
7178>nargs</I
7179></TT
7180>&nbsp;:</TD
7181><TD
7182WIDTH="80%"
7183ALIGN="LEFT"
7184VALIGN="TOP"
7185>&nbsp;</TD
7186></TR
7187></TABLE
7188><P
7189></P
7190></DIV
7191></DIV
7192><HR><DIV
7193CLASS="REFSECT2"
7194><A
7195NAME="AEN12727"
7196></A
7197><H3
7198><A
7199NAME="XMLXPATHNUMBERFUNCTION"
7200></A
7201>xmlXPathNumberFunction ()</H3
7202><TABLE
7203BORDER="0"
7204BGCOLOR="#D6E8FF"
7205WIDTH="100%"
7206CELLPADDING="6"
7207><TR
7208><TD
7209><PRE
7210CLASS="PROGRAMLISTING"
7211>void xmlXPathNumberFunction (<A
7212HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7213>xmlXPathParserContextPtr</A
7214> ctxt,
7215 int nargs);</PRE
7216></TD
7217></TR
7218></TABLE
7219><P
7220>Implement the <GTKDOCLINK
7221HREF="NUMBER"
7222>number</GTKDOCLINK
7223>() XPath function
7224number number(object?)</P
7225><P
7226></P
7227><DIV
7228CLASS="INFORMALTABLE"
7229><P
7230></P
7231><TABLE
7232BORDER="0"
7233WIDTH="100%"
7234BGCOLOR="#FFD0D0"
7235CELLSPACING="0"
7236CELLPADDING="4"
7237CLASS="CALSTABLE"
7238><TR
7239><TD
7240WIDTH="20%"
7241ALIGN="RIGHT"
7242VALIGN="TOP"
7243><TT
7244CLASS="PARAMETER"
7245><I
7246>ctxt</I
7247></TT
7248>&nbsp;:</TD
7249><TD
7250WIDTH="80%"
7251ALIGN="LEFT"
7252VALIGN="TOP"
7253> the XPath Parser context</TD
7254></TR
7255><TR
7256><TD
7257WIDTH="20%"
7258ALIGN="RIGHT"
7259VALIGN="TOP"
7260><TT
7261CLASS="PARAMETER"
7262><I
7263>nargs</I
7264></TT
7265>&nbsp;:</TD
7266><TD
7267WIDTH="80%"
7268ALIGN="LEFT"
7269VALIGN="TOP"
7270>&nbsp;</TD
7271></TR
7272></TABLE
7273><P
7274></P
7275></DIV
7276></DIV
7277><HR><DIV
7278CLASS="REFSECT2"
7279><A
7280NAME="AEN12748"
7281></A
7282><H3
7283><A
7284NAME="XMLXPATHSUMFUNCTION"
7285></A
7286>xmlXPathSumFunction ()</H3
7287><TABLE
7288BORDER="0"
7289BGCOLOR="#D6E8FF"
7290WIDTH="100%"
7291CELLPADDING="6"
7292><TR
7293><TD
7294><PRE
7295CLASS="PROGRAMLISTING"
7296>void xmlXPathSumFunction (<A
7297HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7298>xmlXPathParserContextPtr</A
7299> ctxt,
7300 int nargs);</PRE
7301></TD
7302></TR
7303></TABLE
7304><P
7305>Implement the <GTKDOCLINK
7306HREF="SUM"
7307>sum</GTKDOCLINK
7308>() XPath function
7309number sum(node-set)
7310The sum function returns the sum of the values of the nodes in
7311the argument node-set.</P
7312><P
7313></P
7314><DIV
7315CLASS="INFORMALTABLE"
7316><P
7317></P
7318><TABLE
7319BORDER="0"
7320WIDTH="100%"
7321BGCOLOR="#FFD0D0"
7322CELLSPACING="0"
7323CELLPADDING="4"
7324CLASS="CALSTABLE"
7325><TR
7326><TD
7327WIDTH="20%"
7328ALIGN="RIGHT"
7329VALIGN="TOP"
7330><TT
7331CLASS="PARAMETER"
7332><I
7333>ctxt</I
7334></TT
7335>&nbsp;:</TD
7336><TD
7337WIDTH="80%"
7338ALIGN="LEFT"
7339VALIGN="TOP"
7340> the XPath Parser context</TD
7341></TR
7342><TR
7343><TD
7344WIDTH="20%"
7345ALIGN="RIGHT"
7346VALIGN="TOP"
7347><TT
7348CLASS="PARAMETER"
7349><I
7350>nargs</I
7351></TT
7352>&nbsp;:</TD
7353><TD
7354WIDTH="80%"
7355ALIGN="LEFT"
7356VALIGN="TOP"
7357>&nbsp;</TD
7358></TR
7359></TABLE
7360><P
7361></P
7362></DIV
7363></DIV
7364><HR><DIV
7365CLASS="REFSECT2"
7366><A
7367NAME="AEN12769"
7368></A
7369><H3
7370><A
7371NAME="XMLXPATHFLOORFUNCTION"
7372></A
7373>xmlXPathFloorFunction ()</H3
7374><TABLE
7375BORDER="0"
7376BGCOLOR="#D6E8FF"
7377WIDTH="100%"
7378CELLPADDING="6"
7379><TR
7380><TD
7381><PRE
7382CLASS="PROGRAMLISTING"
7383>void xmlXPathFloorFunction (<A
7384HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7385>xmlXPathParserContextPtr</A
7386> ctxt,
7387 int nargs);</PRE
7388></TD
7389></TR
7390></TABLE
7391><P
7392>Implement the <GTKDOCLINK
7393HREF="FLOOR"
7394>floor</GTKDOCLINK
7395>() XPath function
7396number floor(number)
7397The floor function returns the largest (closest to positive infinity)
7398number that is not greater than the argument and that is an integer.</P
7399><P
7400></P
7401><DIV
7402CLASS="INFORMALTABLE"
7403><P
7404></P
7405><TABLE
7406BORDER="0"
7407WIDTH="100%"
7408BGCOLOR="#FFD0D0"
7409CELLSPACING="0"
7410CELLPADDING="4"
7411CLASS="CALSTABLE"
7412><TR
7413><TD
7414WIDTH="20%"
7415ALIGN="RIGHT"
7416VALIGN="TOP"
7417><TT
7418CLASS="PARAMETER"
7419><I
7420>ctxt</I
7421></TT
7422>&nbsp;:</TD
7423><TD
7424WIDTH="80%"
7425ALIGN="LEFT"
7426VALIGN="TOP"
7427> the XPath Parser context</TD
7428></TR
7429><TR
7430><TD
7431WIDTH="20%"
7432ALIGN="RIGHT"
7433VALIGN="TOP"
7434><TT
7435CLASS="PARAMETER"
7436><I
7437>nargs</I
7438></TT
7439>&nbsp;:</TD
7440><TD
7441WIDTH="80%"
7442ALIGN="LEFT"
7443VALIGN="TOP"
7444>&nbsp;</TD
7445></TR
7446></TABLE
7447><P
7448></P
7449></DIV
7450></DIV
7451><HR><DIV
7452CLASS="REFSECT2"
7453><A
7454NAME="AEN12790"
7455></A
7456><H3
7457><A
7458NAME="XMLXPATHCEILINGFUNCTION"
7459></A
7460>xmlXPathCeilingFunction ()</H3
7461><TABLE
7462BORDER="0"
7463BGCOLOR="#D6E8FF"
7464WIDTH="100%"
7465CELLPADDING="6"
7466><TR
7467><TD
7468><PRE
7469CLASS="PROGRAMLISTING"
7470>void xmlXPathCeilingFunction (<A
7471HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7472>xmlXPathParserContextPtr</A
7473> ctxt,
7474 int nargs);</PRE
7475></TD
7476></TR
7477></TABLE
7478><P
7479>Implement the <GTKDOCLINK
7480HREF="CEILING"
7481>ceiling</GTKDOCLINK
7482>() XPath function
7483number ceiling(number)
7484The ceiling function returns the smallest (closest to negative infinity)
7485number that is not less than the argument and that is an integer.</P
7486><P
7487></P
7488><DIV
7489CLASS="INFORMALTABLE"
7490><P
7491></P
7492><TABLE
7493BORDER="0"
7494WIDTH="100%"
7495BGCOLOR="#FFD0D0"
7496CELLSPACING="0"
7497CELLPADDING="4"
7498CLASS="CALSTABLE"
7499><TR
7500><TD
7501WIDTH="20%"
7502ALIGN="RIGHT"
7503VALIGN="TOP"
7504><TT
7505CLASS="PARAMETER"
7506><I
7507>ctxt</I
7508></TT
7509>&nbsp;:</TD
7510><TD
7511WIDTH="80%"
7512ALIGN="LEFT"
7513VALIGN="TOP"
7514> the XPath Parser context</TD
7515></TR
7516><TR
7517><TD
7518WIDTH="20%"
7519ALIGN="RIGHT"
7520VALIGN="TOP"
7521><TT
7522CLASS="PARAMETER"
7523><I
7524>nargs</I
7525></TT
7526>&nbsp;:</TD
7527><TD
7528WIDTH="80%"
7529ALIGN="LEFT"
7530VALIGN="TOP"
7531>&nbsp;</TD
7532></TR
7533></TABLE
7534><P
7535></P
7536></DIV
7537></DIV
7538><HR><DIV
7539CLASS="REFSECT2"
7540><A
7541NAME="AEN12811"
7542></A
7543><H3
7544><A
7545NAME="XMLXPATHROUNDFUNCTION"
7546></A
7547>xmlXPathRoundFunction ()</H3
7548><TABLE
7549BORDER="0"
7550BGCOLOR="#D6E8FF"
7551WIDTH="100%"
7552CELLPADDING="6"
7553><TR
7554><TD
7555><PRE
7556CLASS="PROGRAMLISTING"
7557>void xmlXPathRoundFunction (<A
7558HREF="gnome-xml-xpath.html#XMLXPATHPARSERCONTEXTPTR"
7559>xmlXPathParserContextPtr</A
7560> ctxt,
7561 int nargs);</PRE
7562></TD
7563></TR
7564></TABLE
7565><P
7566>Implement the <GTKDOCLINK
7567HREF="ROUND"
7568>round</GTKDOCLINK
7569>() XPath function
7570number round(number)
7571The round function returns the number that is closest to the
7572argument and that is an integer. If there are two such numbers,
7573then the one that is even is returned.</P
7574><P
7575></P
7576><DIV
7577CLASS="INFORMALTABLE"
7578><P
7579></P
7580><TABLE
7581BORDER="0"
7582WIDTH="100%"
7583BGCOLOR="#FFD0D0"
7584CELLSPACING="0"
7585CELLPADDING="4"
7586CLASS="CALSTABLE"
7587><TR
7588><TD
7589WIDTH="20%"
7590ALIGN="RIGHT"
7591VALIGN="TOP"
7592><TT
7593CLASS="PARAMETER"
7594><I
7595>ctxt</I
7596></TT
7597>&nbsp;:</TD
7598><TD
7599WIDTH="80%"
7600ALIGN="LEFT"
7601VALIGN="TOP"
7602> the XPath Parser context</TD
7603></TR
7604><TR
7605><TD
7606WIDTH="20%"
7607ALIGN="RIGHT"
7608VALIGN="TOP"
7609><TT
7610CLASS="PARAMETER"
7611><I
7612>nargs</I
7613></TT
7614>&nbsp;:</TD
7615><TD
7616WIDTH="80%"
7617ALIGN="LEFT"
7618VALIGN="TOP"
7619>&nbsp;</TD
7620></TR
7621></TABLE
7622><P
7623></P
7624></DIV
7625></DIV
7626></DIV
7627><DIV
7628CLASS="NAVFOOTER"
7629><BR
7630CLEAR="all"><BR><TABLE
7631WIDTH="100%"
7632BORDER="0"
7633BGCOLOR="#000000"
7634CELLPADDING="1"
7635CELLSPACING="0"
7636><TR
7637><TD
7638WIDTH="25%"
7639BGCOLOR="#C00000"
7640ALIGN="left"
7641><A
7642HREF="gnome-xml-xpath.html"
7643><FONT
7644COLOR="#FFFFFF"
7645SIZE="3"
7646><B
7647>&#60;&#60;&#60; Previous Page</B
7648></FONT
7649></A
7650></TD
7651><TD
7652WIDTH="25%"
7653BGCOLOR="#0000C0"
7654ALIGN="center"
7655><FONT
7656COLOR="#FFFFFF"
7657SIZE="3"
7658><B
7659><A
7660HREF="book1.html"
7661><FONT
7662COLOR="#FFFFFF"
7663SIZE="3"
7664><B
7665>Home</B
7666></FONT
7667></A
7668></B
7669></FONT
7670></TD
7671><TD
7672WIDTH="25%"
7673BGCOLOR="#00C000"
7674ALIGN="center"
7675><FONT
7676COLOR="#FFFFFF"
7677SIZE="3"
7678><B
7679><A
7680HREF="libxml-lib.html"
7681><FONT
7682COLOR="#FFFFFF"
7683SIZE="3"
7684><B
7685>Up</B
7686></FONT
7687></A
7688></B
7689></FONT
7690></TD
7691><TD
7692WIDTH="25%"
7693BGCOLOR="#C00000"
7694ALIGN="right"
7695><A
7696HREF="gnome-xml-xpointer.html"
7697><FONT
7698COLOR="#FFFFFF"
7699SIZE="3"
7700><B
7701>Next Page &#62;&#62;&#62;</B
7702></FONT
7703></A
7704></TD
7705></TR
7706><TR
7707><TD
7708COLSPAN="2"
7709ALIGN="left"
7710><FONT
7711COLOR="#FFFFFF"
7712SIZE="3"
7713><B
7714>xpath</B
7715></FONT
7716></TD
7717><TD
7718COLSPAN="2"
7719ALIGN="right"
7720><FONT
7721COLOR="#FFFFFF"
7722SIZE="3"
7723><B
7724>xpointer</B
7725></FONT
7726></TD
7727></TR
7728></TABLE
7729></DIV
7730></BODY
7731></HTML
7732>