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 ... |
Get JavaServer Pages, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.