# 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. ``` XmlTransform( xml=any, xsl=string, parameters=struct ); ``` **Returns:** string # Arguments | Argument | Type | Required | Description | Default | |----------|------|----------|-------------|---------| | xml | any | Yes | An XML document in string format, or an XML document object *Alias: xmlNode, xmlObj, xmlDoc, node* | | | xsl | string | Yes | A string containing XSL text *Alias: xslString, xslText* | | # Examples ```cfml styles = '
From:
To:
'; xml_stream = ' Alice Bob Reminder Here is the message you requested. Bob Alice Your request I got your message; all is well. '; xml_document = XmlParse(xml_stream); echo(xmlTransform(xml_document,styles)); ``` # Categories [XML](../../categories/xml.md), [Strings](../../categories/string.md) # See Also [xml.transform()](../objects/xml/transform.md)