Frank;
The line you are missing is:
<xsl:copy-of select="@*" />
It copies all the current attributes and values of the current tag. Don't
think of xmlns as a 'namespace', but rather just an attribute of the tag
'xsl:stylesheet'.
Try this:
TRANSFORM.XSL
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*"/>
<xsl:copy-of select="@*" />
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Alternatively, you could match on just that node:
<xsl:template match="//xsl:stylesheet">
</xsl:template>
-----Original Message-----
From: Frank Vene [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 16, 2001 8:09 AM
To: Sablotron Mailing List
Subject: [Sab] Namespace
Hi,
The name space xmlns:xsl="http://www.w3.org/1999/XSL/Transform" is lost when
I transform a XSL stylesheet to another XSL stylesheet using an XSL
stylesheet.
How I can preserve the xsl name spaces?