Skip to main content

Xsl Transform

XslTransform Function

Applies XSL transformation on the specified XML data.

Syntax

XslTransform (scalar XML Data, scalar XLS Data)

Arguments

ArgumentDescription
scalar XML DataData to be transformed
scalar XLS DataTransformation to be applied

Examples:
$a =
'<customer>
<name>John Doe</name>
</customer>'
$b =
'<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:template match="customer/name">
<h1><xsl:value-of select="text()"/></h1>
</xsl:template>
</xsl:stylesheet>'
$c = XslTransform($a, $b)

Applies the XSL transformation in $b on the specified XML data in the $a table.