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">pattern</H1
128 >pattern -- </DIV
130 CLASS="REFSYNOPSISDIV"
146 HREF="libxslt-pattern.html#XSLTCOMPMATCH"
150 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
154 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
157 HREF="libxslt-pattern.html#XSLTCOMPILEPATTERN"
158 >xsltCompilePattern</A
165 >xmlDocPtr</GTKDOCLINK
169 >xmlNodePtr</GTKDOCLINK
172 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
173 >xsltStylesheetPtr</A
176 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
177 >xsltTransformContextPtr</A
180 HREF="libxslt-pattern.html#XSLTFREECOMPMATCHLIST"
181 >xsltFreeCompMatchList</A
183 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
187 HREF="libxslt-pattern.html#XSLTTESTCOMPMATCHLIST"
188 >xsltTestCompMatchList</A
190 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
191 >xsltTransformContextPtr</A
195 >xmlNodePtr</GTKDOCLINK
198 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
202 HREF="libxslt-pattern.html#XSLTADDTEMPLATE"
205 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
206 >xsltStylesheetPtr</A
209 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
221 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
224 HREF="libxslt-pattern.html#XSLTGETTEMPLATE"
227 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
228 >xsltTransformContextPtr</A
232 >xmlNodePtr</GTKDOCLINK
235 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
236 >xsltStylesheetPtr</A
239 HREF="libxslt-pattern.html#XSLTFREETEMPLATEHASHES"
240 >xsltFreeTemplateHashes</A
242 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
243 >xsltStylesheetPtr</A
246 HREF="libxslt-pattern.html#XSLTCLEANUPTEMPLATES"
247 >xsltCleanupTemplates</A
249 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
250 >xsltStylesheetPtr</A
253 HREF="libxslt-pattern.html#XSLTMATCHPATTERN"
256 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
257 >xsltTransformContextPtr</A
261 >xmlNodePtr</GTKDOCLINK
269 >xmlDocPtr</GTKDOCLINK
273 >xmlNodePtr</GTKDOCLINK
305 >struct xsltCompMatch</H3
314 CLASS="PROGRAMLISTING"
315 >struct xsltCompMatch;</PRE
320 >Data structure used for the implementation of patterns.
321 It is kept private (in pattern.c).</P
332 NAME="XSLTCOMPMATCHPTR"
334 >xsltCompMatchPtr</H3
343 CLASS="PROGRAMLISTING"
344 >typedef xsltCompMatch *xsltCompMatchPtr;</PRE
358 NAME="XSLTCOMPILEPATTERN"
360 >xsltCompilePattern ()</H3
369 CLASS="PROGRAMLISTING"
371 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
373 > xsltCompilePattern (const <GTKDOCLINK
379 >xmlDocPtr</GTKDOCLINK
383 >xmlNodePtr</GTKDOCLINK
386 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
387 >xsltStylesheetPtr</A
390 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
391 >xsltTransformContextPtr</A
397 >Compile the XSLT pattern and generates a list of precompiled form suitable
398 for fast matching.</P
400 >[1] Pattern ::= LocationPathPattern | Pattern '|' LocationPathPattern</P
404 CLASS="INFORMALTABLE"
431 > an XSLT pattern</TD
448 > the containing document</TD
465 > the containing element</TD
499 > the transformation context, if done at run-time</TD
517 >the generated pattern list or NULL in case of failure</TD
532 NAME="XSLTFREECOMPMATCHLIST"
534 >xsltFreeCompMatchList ()</H3
543 CLASS="PROGRAMLISTING"
544 >void xsltFreeCompMatchList (<A
545 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
552 >Free up the memory allocated by all the elements of <TT
561 CLASS="INFORMALTABLE"
588 > an XSLT comp list</TD
603 NAME="XSLTTESTCOMPMATCHLIST"
605 >xsltTestCompMatchList ()</H3
614 CLASS="PROGRAMLISTING"
615 >int xsltTestCompMatchList (<A
616 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
617 >xsltTransformContextPtr</A
621 >xmlNodePtr</GTKDOCLINK
624 HREF="libxslt-pattern.html#XSLTCOMPMATCHPTR"
631 >Test wether the node matches one of the patterns in the list</P
635 CLASS="INFORMALTABLE"
662 > a XSLT process context</TD
696 > the precompiled pattern list</TD
714 >1 if it matches, 0 if it doesn't and -1 in case of failure</TD
729 NAME="XSLTADDTEMPLATE"
731 >xsltAddTemplate ()</H3
740 CLASS="PROGRAMLISTING"
741 >int xsltAddTemplate (<A
742 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
743 >xsltStylesheetPtr</A
746 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
761 >Register the XSLT pattern associated to <TT
770 CLASS="INFORMALTABLE"
797 > an XSLT stylesheet</TD
814 > an XSLT template</TD
831 > the mode name or NULL</TD
848 > the mode URI or NULL</TD
866 >-1 in case of error, 0 otherwise</TD
881 NAME="XSLTGETTEMPLATE"
883 >xsltGetTemplate ()</H3
892 CLASS="PROGRAMLISTING"
894 HREF="libxslt-xsltinternals.html#XSLTTEMPLATEPTR"
896 > xsltGetTemplate (<A
897 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
898 >xsltTransformContextPtr</A
902 >xmlNodePtr</GTKDOCLINK
905 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
906 >xsltStylesheetPtr</A
912 >Finds the template applying to this node, if <TT
918 it means one needs to look for the next imported template in scope.</P
922 CLASS="INFORMALTABLE"
949 > a XSLT process context</TD
966 > the node being processed</TD
983 > the current style</TD
1001 >the xsltTemplatePtr or NULL if not found</TD
1016 NAME="XSLTFREETEMPLATEHASHES"
1018 >xsltFreeTemplateHashes ()</H3
1027 CLASS="PROGRAMLISTING"
1028 >void xsltFreeTemplateHashes (<A
1029 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
1030 >xsltStylesheetPtr</A
1036 >Free up the memory used by xsltAddTemplate/xsltGetTemplate mechanism</P
1040 CLASS="INFORMALTABLE"
1067 > an XSLT stylesheet</TD
1082 NAME="XSLTCLEANUPTEMPLATES"
1084 >xsltCleanupTemplates ()</H3
1093 CLASS="PROGRAMLISTING"
1094 >void xsltCleanupTemplates (<A
1095 HREF="libxslt-xsltinternals.html#XSLTSTYLESHEETPTR"
1096 >xsltStylesheetPtr</A
1102 >Cleanup the state of the templates used by the stylesheet and
1103 the ones it imports.</P
1107 CLASS="INFORMALTABLE"
1134 > an XSLT stylesheet</TD
1149 NAME="XSLTMATCHPATTERN"
1151 >xsltMatchPattern ()</H3
1160 CLASS="PROGRAMLISTING"
1161 >int xsltMatchPattern (<A
1162 HREF="libxslt-xsltinternals.html#XSLTTRANSFORMCONTEXTPTR"
1163 >xsltTransformContextPtr</A
1167 >xmlNodePtr</GTKDOCLINK
1171 >xmlChar</GTKDOCLINK
1175 >xmlDocPtr</GTKDOCLINK
1179 >xmlNodePtr</GTKDOCLINK
1185 >Determine if a node matches a pattern.</P
1189 CLASS="INFORMALTABLE"
1233 > a node in the source tree</TD
1250 > an XSLT pattern</TD
1267 > context document (for namespaces)</TD
1284 > context node (for namespaces)</TD
1314 CLEAR="all"><BR><TABLE
1326 HREF="libxslt-functions.html"
1331 ><<< Previous Page</B
1364 HREF="libxslt-lib.html"
1380 HREF="libxslt-templates.html"
1385 >Next Page >>></B