XMLTools - Maple Programming Help

Home : Support : Online Help : Connectivity : Web Features : XMLTools : XMLTools/Transform

XMLTools

 Transform
 apply XSLT transformation to an XML document

 Calling Sequence Transform(xslTransform, xmlDoc)

Parameters

 xslTransform - XSLT transformation, which can be a filename or a Maple XML tree xmlDoc - XML document, which can be a filename or a Maple XML tree

Description

 • The Transform(xslTransform, xmlDoc) command applies the XSLT transformation xslTransform to the XML document xmlDoc.

Examples

 > $\mathrm{with}\left(\mathrm{XMLTools}\right):$
 > $\mathrm{ss}≔"B:":$
 > $\mathrm{doc}≔""$
 ${\mathrm{doc}}{≔}{""}$ (1)
 > $\mathrm{res}≔\mathrm{ToString}\left(\mathrm{Transform}\left(\mathrm{ParseString}\left(\mathrm{ss}\right),\mathrm{ParseString}\left(\mathrm{doc}\right)\right)\right)$
 ${\mathrm{res}}{≔}{" B:foo"}$ (2)
 > $\mathrm{Transform}\left("transform.xsl","doc.xml"\right):$