7 CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
10 TITLE="Gnome XSLT Library Reference Manual"
11 HREF="book1.html"><LINK
13 TITLE="Libxslt Library Reference"
14 HREF="libxslt-lib.html"><LINK
17 HREF="libxslt-functions.html"><LINK
20 HREF="libxslt-templates.html"></HEAD
43 >Gnome XSLT Library Reference Manual</FONT
52 HREF="libxslt-functions.html"
57 ><<< Previous Page</B
90 HREF="libxslt-lib.html"
106 HREF="libxslt-templates.html"
111 >Next Page >>></B
120 NAME="LIBXSLT-PATTERN"
130 >pattern -- </DIV
132 CLASS="REFSYNOPSISDIV"
150 HREF="libxslt-pattern.html#XSLTCOMPMATCH"
154 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
158 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
161 HREF="libxslt-pattern.html#XSLTCOMPILEPATTERN"
162 >xsltCompilePattern</A
169 >xmlDocPtr</GTKDOCLINK
173 >xmlNodePtr</GTKDOCLINK
176 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
177 >xsltStylesheetPtr</A
180 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
181 >xsltTransformContextPtr</A
184 HREF="libxslt-pattern.html#XSLTFREECOMPMATCHLIST"
185 >xsltFreeCompMatchList</A
187 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
191 HREF="libxslt-pattern.html#XSLTTESTCOMPMATCHLIST"
192 >xsltTestCompMatchList</A
194 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
195 >xsltTransformContextPtr</A
199 >xmlNodePtr</GTKDOCLINK
202 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
206 HREF="libxslt-pattern.html#XSLTADDTEMPLATE"
209 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
210 >xsltStylesheetPtr</A
213 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
225 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
228 HREF="libxslt-pattern.html#XSLTGETTEMPLATE"
231 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
232 >xsltTransformContextPtr</A
236 >xmlNodePtr</GTKDOCLINK
239 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
240 >xsltStylesheetPtr</A
243 HREF="libxslt-pattern.html#XSLTFREETEMPLATEHASHES"
244 >xsltFreeTemplateHashes</A
246 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
247 >xsltStylesheetPtr</A
250 HREF="libxslt-pattern.html#XSLTCLEANUPTEMPLATES"
251 >xsltCleanupTemplates</A
253 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
254 >xsltStylesheetPtr</A
257 HREF="libxslt-pattern.html#XSLTMATCHPATTERN"
260 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
261 >xsltTransformContextPtr</A
265 >xmlNodePtr</GTKDOCLINK
273 >xmlDocPtr</GTKDOCLINK
277 >xmlNodePtr</GTKDOCLINK
309 >struct xsltCompMatch</H3
318 CLASS="PROGRAMLISTING"
319 >struct xsltCompMatch;</PRE
324 >Data structure used for the implementation of patterns.
325 It is kept private (in pattern.c).</P
336 NAME="XSLTCOMPMATCHPTR"
338 >xsltCompMatchPtr</H3
347 CLASS="PROGRAMLISTING"
348 >typedef xsltCompMatch *xsltCompMatchPtr;</PRE
362 NAME="XSLTCOMPILEPATTERN"
364 >xsltCompilePattern ()</H3
373 CLASS="PROGRAMLISTING"
375 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
377 > xsltCompilePattern (const <GTKDOCLINK
383 >xmlDocPtr</GTKDOCLINK
387 >xmlNodePtr</GTKDOCLINK
390 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
391 >xsltStylesheetPtr</A
394 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
395 >xsltTransformContextPtr</A
401 >Compile the XSLT pattern and generates a list of precompiled form suitable
402 for fast matching.</P
404 >[1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern</P
408 CLASS="INFORMALTABLE"
437 > an XSLT pattern</TD
454 > the containing document</TD
471 > the containing element</TD
505 > the transformation context, if done at run-time</TD
523 >the generated pattern list or NULL in case of failure</TD
538 NAME="XSLTFREECOMPMATCHLIST"
540 >xsltFreeCompMatchList ()</H3
549 CLASS="PROGRAMLISTING"
550 >void xsltFreeCompMatchList (<A
551 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
558 >Free up the memory allocated by all the elements of <TT
567 CLASS="INFORMALTABLE"
596 > an XSLT comp list</TD
611 NAME="XSLTTESTCOMPMATCHLIST"
613 >xsltTestCompMatchList ()</H3
622 CLASS="PROGRAMLISTING"
623 >int xsltTestCompMatchList (<A
624 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
625 >xsltTransformContextPtr</A
629 >xmlNodePtr</GTKDOCLINK
632 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
639 >Test wether the node matches one of the patterns in the list</P
643 CLASS="INFORMALTABLE"
672 > a XSLT process context</TD
706 > the precompiled pattern list</TD
724 >1 if it matches, 0 if it doesn't and -1 in case of failure</TD
739 NAME="XSLTADDTEMPLATE"
741 >xsltAddTemplate ()</H3
750 CLASS="PROGRAMLISTING"
751 >int xsltAddTemplate (<A
752 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
753 >xsltStylesheetPtr</A
756 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
771 >Register the XSLT pattern associated to <TT
780 CLASS="INFORMALTABLE"
809 > an XSLT stylesheet</TD
826 > an XSLT template</TD
843 > the mode name or NULL</TD
860 > the mode URI or NULL</TD
878 >-1 in case of error, 0 otherwise</TD
893 NAME="XSLTGETTEMPLATE"
895 >xsltGetTemplate ()</H3
904 CLASS="PROGRAMLISTING"
906 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
908 > xsltGetTemplate (<A
909 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
910 >xsltTransformContextPtr</A
914 >xmlNodePtr</GTKDOCLINK
917 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
918 >xsltStylesheetPtr</A
924 >Finds the template applying to this node, if <TT
930 it means one needs to look for the next imported template in scope.</P
934 CLASS="INFORMALTABLE"
963 > a XSLT process context</TD
980 > the node being processed</TD
997 > the current style</TD
1015 >the xsltTemplatePtr or NULL if not found</TD
1030 NAME="XSLTFREETEMPLATEHASHES"
1032 >xsltFreeTemplateHashes ()</H3
1041 CLASS="PROGRAMLISTING"
1042 >void xsltFreeTemplateHashes (<A
1043 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
1044 >xsltStylesheetPtr</A
1050 >Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism</P
1054 CLASS="INFORMALTABLE"
1083 > an XSLT stylesheet</TD
1098 NAME="XSLTCLEANUPTEMPLATES"
1100 >xsltCleanupTemplates ()</H3
1109 CLASS="PROGRAMLISTING"
1110 >void xsltCleanupTemplates (<A
1111 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
1112 >xsltStylesheetPtr</A
1118 >Cleanup the state of the templates used by the stylesheet and
1119 the ones it imports.</P
1123 CLASS="INFORMALTABLE"
1152 > an XSLT stylesheet</TD
1167 NAME="XSLTMATCHPATTERN"
1169 >xsltMatchPattern ()</H3
1178 CLASS="PROGRAMLISTING"
1179 >int xsltMatchPattern (<A
1180 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
1181 >xsltTransformContextPtr</A
1185 >xmlNodePtr</GTKDOCLINK
1189 >xmlChar</GTKDOCLINK
1193 >xmlDocPtr</GTKDOCLINK
1197 >xmlNodePtr</GTKDOCLINK
1203 >Determine if a node matches a pattern.</P
1207 CLASS="INFORMALTABLE"
1253 > a node in the source tree</TD
1270 > an XSLT pattern</TD
1287 > context document (for namespaces)</TD
1304 > context node (for namespaces)</TD
1334 CLEAR="all"><BR><TABLE
1346 HREF="libxslt-functions.html"
1351 ><<< Previous Page</B
1384 HREF="libxslt-lib.html"
1400 HREF="libxslt-templates.html"
1405 >Next Page >>></B