Database Reference
In-Depth Information
transform:stream-transform
works only from within the
REST Server; it does not work in a RESTXQ context. See
“Building Applications with RESTXQ” on page 215
.
transform:transform
Passes the result of the transformation back to you as a node tree.
All functions have the same parameter list:
$node-tree
as
node()*
The node tree to transform.
At present eXist relies on an external XSLT processor, so the
node tree has to be serialized to a byte stream, passed to the
XSLT processor, and reparsed before it can be processed. This
adds some overhead to the transformation and can have an
impact when you're using XSLT on very large documents
from eXist.
$stylesheet
as
item()
The stylesheet to apply. This can be either a node tree containing a valid XSLT
stylesheet, or a URI referencing an XSLT stylesheet. URIs to stylesheets residing
in the database
must
be specified as XMLDB URIs (i.e., start with
xmldb:exist://
).
When you're passing stylesheets by URIs, the stylesheet is cached, speeding up
performance of the invocations that follow.
$parameters as node()
Optional parameters for the stylesheet, as described in the next section.
$serialization-options
as
xs:string
(optional)
Optional serialization options to apply to the result. Must be in the same format
as the
exist:serialize
option (refer to
“Serialization” on page 115
).
There is one additional serialization option:
xinclude-path
. This specifies the
base path for expanding XIncludes (if any). More information about XInclude
can be found in
“XInclude” on page 243
.
Passing XSLT Parameters
You can pass (string) parameters to your stylesheet by constructing an XML frag‐
ment as follows and passing it as the third argument to the
transform
function:
Search WWH ::
Custom Search