This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: XSL and Namespaces
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] XSL and Namespaces
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Thu, 8 Mar 2001 16:02:53 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> - This is the XSL file:
> <xsl:stylesheet version='1.0'
> xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
> <xsl:template match="/Schema">
> <xsl:copy>
> <xsl:attribute name="xmlns">
> <xsl:value-of select="@xmlns" />
> </xsl:attribute>
It is an error to use <xsl:attribute> to create an attribute whose name
begins with "xmlns".
It looks as if you are trying to copy namespace nodes; but you don't need to
do this, because <xsl:copy> on the element does it automatically.
Mike Kay
Software AG
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list