[Home] [By Thread] [By Date] [Recent Entries]
Frank Marent wrote:
i have to remove namespace declarations in certain elements. i.e. i have this one: xsl:copy copies the namespace nodes that are in scope. Use xsl:element instead e.g. <xsl:template match="Facts"> <xsl:element name="Facts"> <xsl:apply-templates/> </xsl:element> </xsl:template> Or, if you are using XSLT 2.0, I think you can do e.g.
<xsl:template match="Facts">
<xsl:copy copy-namespaces="no">
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>Note that <xsl:apply-templates select="@* | node()"/> would not hurt as in the XPath/XSLT data model namespace declarations are not attribute nodes but rather result in namespace nodes. -- Martin Honnen http://JavaScript.FAQTs.com/
|

Cart



