TransformXML()

Applies an XSL transform to XML data.

The TreatAsContentArea() function has two parameters:

  • xmlDocument (string): Required. The XML data to transform.
  • xslDocument (string): Required. The XSL document to use to transform the XML data.

To use this function, pass it a source XML document, and the XSL document that you want to use to transform the XML data. This example uses the GetPortfolioItem() function to retrieve the XML and XSL files from Portfolio. The function then applies the XSL file to the XML file as part of the transformation process.