Tags · Functions · Objects
Lucee Function Reference
Choose a function:

Function XMLTRANSFORM

Applies an Extensible Stylesheet Language Transformation (XSLT)
to an XML document object that is represented as a string
variable. An XSLT converts an XML document to another format
or representation by applying an Extensible Stylesheet
Language (XSL) stylesheet to it.

Example

xmltransform(any xml,string xsl,[struct parameters]):string

Arguments

The arguments for this function are set. You can not use other arguments except the following ones.
Name Type Required Description
xml any  Yes An XML document in string format, or an XML document object  
xsl string  Yes  
parameters struct  No A structure containing XSL template parameter name-value
pairs to use in transforming the document. The XSL transform
defined in the xslString parameter uses these parameter values
in processing the xml.