A RESTful browser for eXist Java-Based Function Modules


http://exist-db.org/xquery/transform
A module for dealing with XSL transformations.

transform:stream-transform($node-tree as node()?, $stylesheet as item(), $parameters as node()?) empty()
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.
$node-treeThe source-document (node tree)
$stylesheetThe XSL stylesheet
$parametersThe transformer parameters

transform:stream-transform($node-tree as node()?, $stylesheet as item(), $parameters as node()?, $serialization-options as xs:string) empty()
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.
$node-treeThe source-document (node tree)
$stylesheetThe XSL stylesheet
$parametersThe transformer parameters
$serialization-optionsThe serialization options

transform:transform($node-tree as node()?, $stylesheet as item(), $parameters as node()?) node()?
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.
$node-treeThe source-document (node tree)
$stylesheetThe XSL stylesheet
$parametersThe transformer parameters

Returns the transformed result (node tree)

transform:transform($node-tree as node()?, $stylesheet as item(), $parameters as node()?, $serialization-options as xs:string) node()?
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.
$node-treeThe source-document (node tree)
$stylesheetThe XSL stylesheet
$parametersThe transformer parameters
$serialization-optionsThe serialization options

Returns the transformed result (node tree)
Return to list of all modules