Subject: Re: [xsl] Controlling namespace in output From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 17 Dec 2010 09:30:56 +0000 |
That sounds like an excellent solution. Can you give an example of how I can add the namespace to the stylesheet so that all elements are generated in the DocBook namespace?
Thanks.
<xsl:element name="section"> <xsl:attribute name="version">5.0</xsl:attribute> <xsl:attribute name="xml:id">myIdentifier</xsl:attribute>
<xsl:template match="*"> <xsl:element name="{local-name()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:element> </xsl:template>
________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Controlling namespace in , Peter Desjardins | Thread | Re: [xsl] Controlling namespace in , G. Ken Holman |
Re: [xsl] Controlling namespace in , Peter Desjardins | Date | [xsl] Christmas reading, David Carlisle |
Month |