-<xqdoc:xqdoc>
-<xqdoc:module type="library">
<xqdoc:uri>http://exist-db.org/xquery/transform</xqdoc:uri>
-<xqdoc:comment>
<xqdoc:description>Functions to deal with XSL transformations</xqdoc:description>
</xqdoc:comment>
</xqdoc:module>
-<xqdoc:functions>
-<xqdoc:function>
<xqdoc:name>transform</xqdoc:name>
<xqdoc:signature>transform:transform($a as node()?, $b as item(), $c as node()?) node()?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Applies an XSL stylesheet to the node tree passed as first argument. The stylesheet is specified in the second argument. This should either be an URI or a node. If it is an URI, it can either point to an external location or to an XSL stored in the db by using the 'xmldb:' scheme. Stylesheets are cached unless they were just created from an XML fragment and not from a complete document. Stylesheet parameters may be passed in the third argument using an XML fragment with the following structure: <parameters><param name="param-name1" value="param-value1"/></parameters></xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>transform</xqdoc:name>
<xqdoc:signature>transform:transform($a as node()?, $b as item(), $c as node()?, $d as xs:string) node()?</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Applies an XSL stylesheet to the node tree passed as first argument. The stylesheet is specified in the second argument. This should either be an URI or a node. If it is an URI, it can either point to an external location or to an XSL stored in the db by using the 'xmldb:' scheme. Stylesheets are cached unless they were just created from an XML fragment and not from a complete document. Stylesheet parameters may be passed in the third argument using an XML fragment with the following structure: <parameters><param name="param-name1" value="param-value1"/></parameters></xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>stream-transform</xqdoc:name>
<xqdoc:signature>transform:stream-transform($a as node()?, $b as item(), $c as node()?) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Applies an XSL stylesheet to the node tree passed as first argument. The parameters are the same as for the transform function. stream-transform can only be used within a servlet context. Instead of returning the transformed document fragment, it directly streams its output to the servlet's output stream. It should thus be the last statement in the XQuery.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
-<xqdoc:function>
<xqdoc:name>stream-transform</xqdoc:name>
<xqdoc:signature>transform:stream-transform($a as node()?, $b as item(), $c as node()?, $d as xs:string) empty()</xqdoc:signature>
-<xqdoc:comment>
<xqdoc:description>Applies an XSL stylesheet to the node tree passed as first argument. The parameters are the same as for the transform function. stream-transform can only be used within a servlet context. Instead of returning the transformed document fragment, it directly streams its output to the servlet's output stream. It should thus be the last statement in the XQuery.</xqdoc:description>
</xqdoc:comment>
</xqdoc:function>
</xqdoc:functions>
</xqdoc:xqdoc>