Xsl Transform
XslTransform Function
Applies XSL transformation on the specified XML data.
Syntax
XslTransform (scalar XML Data, scalar XLS Data)
Arguments
| Argument | Description |
|---|---|
scalar XML Data | Data to be transformed |
scalar XLS Data | Transformation 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.