xsl-list
[Top] [All Lists]

Re: [XSL] copying namesapces with prefix "xmlns:".

2005-08-25 23:20:58
I have tried the following and which will give error  "Illegal value 
used for attribute name: xmlns: ".
............
<definitions> 
    <xsl:for-each select="namespace::*">
          <xsl:attribute name="xmlns:{$NameSpace}"><xsl:value-of
select="$Location"/></xsl:attribute>
    </xsl:for-each> 
</definitions>

Namespace declarations are not considered to be attributes, so you cannot 
using xsl:attribute to create them.  This is a FAQ:

http://www.dpawson.co.uk/xsl/sect2/N5536.html#d6629e946
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d6629e1429
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d6629e1471
http://www.dpawson.co.uk/xsl/sect2/N5536.html#d6629e1510

Dave

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--