On 9 Feb 2004, at 03:16, Ugo Cei wrote:
Stefano Mazzocchi wrote:Yeah, well, that doesn't help me because I have the namespace declarations already there in the document I want to process and it appears that xsl:copy copies over the namespace declarations everytime and it's not influenced by exclude-result-prefixes.
<!-- - Namespace removing templates - from http://outerthought.net/wiki/Wiki.jsp?page=RemoveNamespaces
uh, wow, the wiki contains all sort of things! gosh, too bad that it's like hidden overthere :-/
--> <xsl:template match="*" priority="-1" mode="copy"> <xsl:element name="{local-name()}"> <xsl:copy-of select="@*"/> <xsl:apply-templates mode="copy"/> </xsl:element> </xsl:template>
<xsl:template match="text()" mode="copy"> <xsl:value-of select="."/> </xsl:template>
yeah, I ended up doing something similar, thanks.
-- Stefano.
