1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><style type="text/css">
4 TD {font-family: Verdana,Arial,Helvetica}
5 BODY {font-family: Verdana,Arial,Helvetica; margin-top: 2em; margin-left: 0em; margin-right: 0em}
6 H1 {font-family: Verdana,Arial,Helvetica}
7 H2 {font-family: Verdana,Arial,Helvetica}
8 H3 {font-family: Verdana,Arial,Helvetica}
9 A:link, A:visited, A:active { text-decoration: underline }
10 </style><style type="text/css">
11 div.deprecated pre.programlisting {border-style: double;border-color:red}
12 pre.programlisting {border-style: double}
13 </style><title>Module functions from libxslt</title></head><body bgcolor="#8b7765" text="#000000" link="#000000" vlink="#000000"><table border="0" width="100%" cellpadding="5" cellspacing="0" align="center"><tr><td width="120"><a href="http://swpat.ffii.org/"><img src="../epatents.png" alt="Action against software patents" /></a></td><td width="100"><a href="http://www.gnome.org/"><img src="../gnome2.png" alt="Gnome2 Logo" /></a><a href="http://www.redhat.com"><img src="../redhat.gif" alt="Red Hat Logo" /></a><div align="left"><a href="http://xmlsoft.org/XSLT/"><img src="../Libxslt-Logo-180x168.gif" alt="Made with Libxslt Logo" /></a></div></td><td><table border="0" width="90%" cellpadding="2" cellspacing="0" align="center" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3" bgcolor="#fffacd"><tr><td align="center"><h1></h1><h2>Module functions from libxslt</h2></td></tr></table></td></tr></table></td></tr></table><table border="0" cellpadding="4" cellspacing="0" width="100%" align="center"><tr><td bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="2" width="100%"><tr><td valign="top" width="200" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>API Menu</b></center></td></tr><tr><td bgcolor="#fffacd"><form action="../search.php" enctype="application/x-www-form-urlencoded" method="get"><input name="query" type="text" size="20" value="" /><input name="submit" type="submit" value="Search ..." /></form><ul><li><a style="font-weight:bold" href="../index.html">Main Menu</a></li><li><a style="font-weight:bold" href="../docs.html">Developer Menu</a></li><li><a style="font-weight:bold" href="index.html">API Menu</a></li></ul></td></tr></table><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>API Indexes</b></center></td></tr><tr><td bgcolor="#fffacd"><ul><li><a href="../APIchunk0.html">Alphabetic</a></li><li><a href="../APIconstructors.html">Constructors</a></li><li><a href="../APIfunctions.html">Functions/Types</a></li><li><a href="../APIfiles.html">Modules</a></li><li><a href="../APIsymbols.html">Symbols</a></li></ul></td></tr></table><table width="100%" border="0" cellspacing="1" cellpadding="3"><tr><td colspan="1" bgcolor="#eecfa1" align="center"><center><b>Related links</b></center></td></tr><tr><td bgcolor="#fffacd"><ul><li><a href="../tutorial/libxslttutorial.html">Tutorial</a></li><li><a href="../xsltproc.html">Man page for xsltproc</a></li><li><a href="http://mail.gnome.org/archives/xslt/">Mail archive</a></li><li><a href="http://xmlsoft.org/">XML libxml</a></li><li><a href="http://phd.cs.unibo.it/gdome2/">DOM gdome2</a></li><li><a href="ftp://xmlsoft.org/">FTP</a></li><li><a href="http://www.zlatkovic.com/projects/libxml/">Windows binaries</a></li><li><a href="http://garypennington.net/libxml2/">Solaris binaries</a></li><li><a href="http://www.zveno.com/open_source/libxml2xslt.html">MacOsX binaries</a></li><li><a href="http://sourceforge.net/projects/libxml2-pas/">Pascal bindings</a></li><li><a href="http://bugzilla.gnome.org/buglist.cgi?product=libxslt">Bug Tracker</a></li><li><a href="http://xsldbg.sourceforge.net/">Xsldbg Debugger</a></li><li><a href="http://www.mod-xslt.com/mod-xslt/">Apache module</a></li></ul></td></tr></table></td></tr></table></td><td valign="top" bgcolor="#8b7765"><table border="0" cellspacing="0" cellpadding="1" width="100%"><tr><td><table border="0" cellspacing="0" cellpadding="1" width="100%" bgcolor="#000000"><tr><td><table border="0" cellpadding="3" cellspacing="1" width="100%"><tr><td bgcolor="#fffacd"><table class="navigation" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2"><tr valign="middle"><td><a accesskey="p" href="libxslt-extra.html"><img src="left.png" width="24" height="24" border="0" alt="Prev" /></a></td><th align="left"><a href="libxslt-extra.html">extra</a></th><td><a accesskey="u" href="index.html"><img src="up.png" width="24" height="24" border="0" alt="Up" /></a></td><th align="left"><a href="index.html">API documentation</a></th><td><a accesskey="h" href="../index.html"><img src="home.png" width="24" height="24" border="0" alt="Home" /></a></td><th align="center"><a href="../index.html">The XSLT C library for Gnome</a></th><th align="right"><a href="libxslt-imports.html">imports</a></th><td><a accesskey="n" href="libxslt-imports.html"><img src="right.png" width="24" height="24" border="0" alt="Next" /></a></td></tr></table><p>a set of extra functions coming from XSLT but not in XPath </p><h2>Table of Contents</h2><pre class="programlisting">#define <a href="#XSLT_REGISTER_FUNCTION_LOOKUP">XSLT_REGISTER_FUNCTION_LOOKUP</a></pre><pre class="programlisting">void <a href="#xsltDocumentFunction">xsltDocumentFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
14 <pre class="programlisting">void <a href="#xsltElementAvailableFunction">xsltElementAvailableFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
15 <pre class="programlisting">void <a href="#xsltFormatNumberFunction">xsltFormatNumberFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
16 <pre class="programlisting">void <a href="#xsltFunctionAvailableFunction">xsltFunctionAvailableFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
17 <pre class="programlisting">void <a href="#xsltGenerateIdFunction">xsltGenerateIdFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
18 <pre class="programlisting">void <a href="#xsltKeyFunction">xsltKeyFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
19 <pre class="programlisting">void <a href="#xsltRegisterAllFunctions">xsltRegisterAllFunctions</a> (xmlXPathContextPtr ctxt)</pre>
20 <pre class="programlisting">void <a href="#xsltSystemPropertyFunction">xsltSystemPropertyFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
21 <pre class="programlisting">void <a href="#xsltUnparsedEntityURIFunction">xsltUnparsedEntityURIFunction</a> (xmlXPathParserContextPtr ctxt, <br /> int nargs)</pre>
22 <pre class="programlisting">xmlXPathFunction <a href="#xsltXPathFunctionLookup">xsltXPathFunctionLookup</a> (xmlXPathContextPtr ctxt, <br /> const xmlChar * name, <br /> const xmlChar * ns_uri)</pre>
24 <h3><a name="XSLT_REGISTER_FUNCTION_LOOKUP" id="XSLT_REGISTER_FUNCTION_LOOKUP"></a>Macro: XSLT_REGISTER_FUNCTION_LOOKUP</h3><pre>#define XSLT_REGISTER_FUNCTION_LOOKUP</pre><p>Registering macro, not general purpose at all but used in different modules.</p>
25 <h3><a name="xsltDocumentFunction" id="xsltDocumentFunction"></a>Function: xsltDocumentFunction</h3><pre class="programlisting">void xsltDocumentFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
26 </pre><p>Implement the document() XSLT function node-set document(object, node-set?)</p>
27 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltElementAvailableFunction" id="xsltElementAvailableFunction"></a>Function: xsltElementAvailableFunction</h3><pre class="programlisting">void xsltElementAvailableFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
28 </pre><p>Implement the element-available() XSLT function boolean element-available(string)</p>
29 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltFormatNumberFunction" id="xsltFormatNumberFunction"></a>Function: xsltFormatNumberFunction</h3><pre class="programlisting">void xsltFormatNumberFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
30 </pre><p>Implement the format-number() XSLT function string format-number(number, string, string?)</p>
31 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltFunctionAvailableFunction" id="xsltFunctionAvailableFunction"></a>Function: xsltFunctionAvailableFunction</h3><pre class="programlisting">void xsltFunctionAvailableFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
32 </pre><p>Implement the function-available() XSLT function boolean function-available(string)</p>
33 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltGenerateIdFunction" id="xsltGenerateIdFunction"></a>Function: xsltGenerateIdFunction</h3><pre class="programlisting">void xsltGenerateIdFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
34 </pre><p>Implement the generate-id() XSLT function string generate-id(node-set?)</p>
35 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltKeyFunction" id="xsltKeyFunction"></a>Function: xsltKeyFunction</h3><pre class="programlisting">void xsltKeyFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
36 </pre><p>Implement the key() XSLT function node-set key(string, object)</p>
37 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltRegisterAllFunctions" id="xsltRegisterAllFunctions"></a>Function: xsltRegisterAllFunctions</h3><pre class="programlisting">void xsltRegisterAllFunctions (xmlXPathContextPtr ctxt)<br />
38 </pre><p>Registers all default XSLT functions in this context</p>
39 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath context</td></tr></tbody></table></div><h3><a name="xsltSystemPropertyFunction" id="xsltSystemPropertyFunction"></a>Function: xsltSystemPropertyFunction</h3><pre class="programlisting">void xsltSystemPropertyFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
40 </pre><p>Implement the system-property() XSLT function object system-property(string)</p>
41 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltUnparsedEntityURIFunction" id="xsltUnparsedEntityURIFunction"></a>Function: xsltUnparsedEntityURIFunction</h3><pre class="programlisting">void xsltUnparsedEntityURIFunction (xmlXPathParserContextPtr ctxt, <br /> int nargs)<br />
42 </pre><p>Implement the unparsed-entity-uri() XSLT function string unparsed-entity-uri(string)</p>
43 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>the XPath Parser context</td></tr><tr><td><span class="term"><i><tt>nargs</tt></i>:</span></td><td>the number of arguments</td></tr></tbody></table></div><h3><a name="xsltXPathFunctionLookup" id="xsltXPathFunctionLookup"></a>Function: xsltXPathFunctionLookup</h3><pre class="programlisting">xmlXPathFunction xsltXPathFunctionLookup (xmlXPathContextPtr ctxt, <br /> const xmlChar * name, <br /> const xmlChar * ns_uri)<br />
44 </pre><p>This is the entry point when a function is needed by the XPath interpretor.</p>
45 <div class="variablelist"><table border="0"><col align="left" /><tbody><tr><td><span class="term"><i><tt>ctxt</tt></i>:</span></td><td>a void * but the XSLT transformation context actually</td></tr><tr><td><span class="term"><i><tt>name</tt></i>:</span></td><td>the function name</td></tr><tr><td><span class="term"><i><tt>ns_uri</tt></i>:</span></td><td>the function namespace URI</td></tr><tr><td><span class="term"><i><tt>Returns</tt></i>:</span></td><td>the callback function or NULL if not found</td></tr></tbody></table></div><p><a href="../bugs.html">Daniel Veillard</a></p></td></tr></table></td></tr></table></td></tr></table></td></tr></table></td></tr></table></body></html>