# xml.transform() 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. ``` xml.transform( xsl=string, parameters=struct ) ``` **Returns:** string # Arguments | Argument | Type | Required | Description | Default | |----------|------|----------|-------------|---------| | xsl | string | Yes | A string containing XSL text *Alias: xslString, xslText* | | | 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. *Alias: params* | | # Examples ```cfml styles = '
From:
To:
'; xml_stream = ' Alice Bob Reminder Here is the message you requested. '; xml_document = XmlParse(xml_stream); echo(xml_document.Transform(styles)); ``` # Categories [XML](../../../categories/xml.md), [Strings](../../../categories/string.md) # See Also [XmlTransform()](../../functions/xmltransform.md), [Xml](../xml.md)