[Home] [By Thread] [By Date] [Recent Entries]
Peter Desjardins wrote:
I rewrote my stylesheet so it transforms instead of copies. Is this something like what you meant? I would shorten that to <xsl:stylesheet version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://docbook.org/ns/docbook">
<xsl:output method="xml" indent="yes"/> <xsl:template match="*">
<xsl:element name="{local-name()}">
<xsl:copy-of select="@*" />
<xsl:apply-templates />
</xsl:element>
</xsl:template> <xsl:template match="root">
<section version="5.0" xml:id="myIdentifier">
<xsl:apply-templates />
</section>
</xsl:template></xsl:stylesheet> -- Martin Honnen http://msmvps.com/blogs/martin_honnen/
|

Cart



