Name
<x:transform>
Synopsis
The <x:transform>
action transforms an XML document using an XSLT stylesheet. The
result is added to the current response buffer
(JspWriter), saved in a scoped variable, or
captured or processed further by a
javax.xml.transform.Result object. Nested
<x:param> actions can supply values for
parameters used in the stylesheet.
Syntax 1: Without a body
<x:transform xml="XMLDocument" xslt="XSLTStylesheet" [xmlSystemId="systemId"] [xsltSystemId="systemId"] [var="var" [scope="page|request|session|application"] | result="resultObject"] />
Syntax 2: With a body for parameter values
<x:transform xml="XMLDocument" xslt="XSLTStylesheet" [xmlSystemId="systemId"] [xsltSystemId="systemId"] [var="var" [scope="page|request|session|application"] | result="resultObject"]><x:param> actions</x:transform>
Syntax 2: With a body for the XML document and parameter values
<x:transform xslt="XSLTStylesheet" [xmlSystemId="systemId"] [xsltSystemId="systemId"] [var="var" [scope="page|request|session|application"] | result="resultObject"]>XMLDocument<x:param> actions</x:transform>
Attributes
|
Attribute name |
Java type |
Dynamic value accepted |
Description |
|---|---|---|---|
xml |
|
Yes |
The XML document. |
xslt |
|
Yes |
The XSLT stylesheet. |
xmlSystemId |
|
Yes |
A URI to use as a base for relative references in the document, as an absolute URL or as ... |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access