in reply to Regex et XML
This code does a null transform based on a dataset.
<xsl:template match="@*|node()"> <xsl:copy> <xsl:apply-templates select="@*|node()"/> </xsl:copy> </xsl:template>
Assuming that you want to recurse over a number of top level nodes, you would use a construct like:
<xsl:for-each select="MyNodes"> <xsl:sort select="@title"/><!--optional sort--> <xsl:apply-templates select="."/> <ts><xsl:value-of select="$timestamp"></ts> </xsl:for-each>
Where $timestamp is a parameter that has been passed to the xslt engine by your Perl app.
|
|---|