XQuery Function Documentation
http://exist-db.org/xquery/transform
java:org.exist.xquery.functions.transform.TransformModule
A module for dealing with XSL transformations.
transform:stream-transform
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.
- Parameters:
-
$node-tree* The source-document (node tree) $stylesheet The XSL stylesheet $parameters? The transformer parameters - Returns:
- item()
transform:stream-transform
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.
- Parameters:
-
$node-tree* The source-document (node tree) $stylesheet The XSL stylesheet $parameters? The transformer parameters $serialization-options The serialization options - Returns:
- item()
transform:transform
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>. There are two special parameters named "exist:stop-on-warn" and "exist:stop-on-error". If set to value "yes", eXist will generate an XQuery error if the XSL processor reports a warning or error.
- Parameters:
-
$node-tree* The source-document (node tree) $stylesheet The XSL stylesheet $parameters? The transformer parameters - Returns:
- node()? : the transformed result (node tree)
transform:transform
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>. There are two special parameters named "exist:stop-on-warn" and "exist:stop-on-error". If set to value "yes", eXist will generate an XQuery error if the XSL processor reports a warning or error. The fourth argument specifies serialization options in the same way as if they were passed to "declare option exist:serialize" expression. An additional serialization option, xinclude-path, is supported, which specifies a base path against which xincludes will be expanded (if there are xincludes in the document). A relative path will be relative to the current module load path.
- Parameters:
-
$node-tree* The source-document (node tree) $stylesheet The XSL stylesheet $parameters? The transformer parameters $attributes? Attributes to pass to the transformation factory $serialization-options? The serialization options - Returns:
- node()? : the transformed result (node tree)