XMLTools - Maple Programming Help

Online Help

All Products    Maple    MapleSim


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

XMLTools

  

Transform

  

apply XSLT transformation to an XML document

 

Calling Sequence

Parameters

Description

Examples

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

withXMLTools:

ss<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"><xsl:output method="xml" indent="yes"/><xsl:template match="a"><A><xsl:apply-templates select="b"/></A></xsl:template><xsl:template match="b">B:<xsl:value-of select="@d"/></xsl:template></xsl:stylesheet>&colon;

doc<a><b d="foo"/></a>

doc<a><b d="foo"/></a>

(1)

resToStringTransformParseStringss&comma;ParseStringdoc

res<?xml version='1.0' encoding='ISO-8859-1'?> <A>B:foo</A>

(2)

Transformtransform.xsl&comma;doc.xml&colon;

See Also

XMLTools

XMLTools[ParseFile]

XMLTools[ParseString]