RE: [xsl] xsl:copy and namespaces definitions

Subject: RE: [xsl] xsl:copy and namespaces definitions
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Fri, 24 Jun 2005 15:15:05 +0100
> I don't understand why namespaces definitions get copied.

Because the spec says they should be copied. It says so because this is the
safe option since the system can't know whether the namespace is needed or
not.

XSLT 2.0 allows <xsl:copy copy-namespaces="no"> if this isn't what you want.

Michael Kay
http://www.saxonica.com/

Current Thread