Subject: Re: [xsl] Cannot include namespaces [XSLT 1.0] xsltproc From: David Carlisle <davidc@xxxxxxxxx> Date: Mon, 23 Aug 2010 15:39:51 +0100 |
you have used xsl:copy which copies an element (along with its namespace context) from the source rather than use a literal result element, or xsl:element which generates an element node using the namespace context in the stylesheet.
You mean something like this
<xsl:template match="chapter"> <xsl:element name="chapter">
<xsl:template match="chapter"> <chapter> ...
see above<xsl:attribute name="aid:pstyle"/> <xsl:attribute name="aid:cstyle"/> <xsl:copy-of select="@*"/> <xsl:apply-templates/> </xsl:element> </xsl:template>
I did tried this but do not know what could be the reason for not outputting.
<xsl:template match="/x:book"> <book> Could you be please more clear about this??
________________________________________________________________________ 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] Cannot include namespaces, pankaj . c | Thread | Re: [xsl] Cannot include namespaces, pankaj . c |
Re: [xsl] Cannot include namespaces, pankaj . c | Date | Re: [xsl] Cannot include namespaces, pankaj . c |
Month |