xsl-list
[Top] [All Lists]

problem adding namespace node

2006-02-28 08:39:20
Hi all,
Should anyone knows how to add a namespace to a node?
i have tried the following approach:
first, i create a dummy attribute;
<xsl:variable name="dummy">
 <xsl:element name="p:a" namespace="http://majirus.org"/>
</xsl:variable>

From an xml node <a>, i write the following instruction:
<a><xsl:copy-of select="xalan:nodeset($dummy)/*/namespace::*[2]"/><a>
but, as a result tree i have got only the <a/> element without namespace, although the instruction <xsl:value-of select="xalan:nodeset($dummy)/*/namespace::*[2]"/> returns http://majirus.org whereas <xsl:value-of select="xalan:nodeset($dummy)/*/namespace::*[1]"/> returns http://www.w3.org/XML/1998/namespace.

Should anyone have an idea about what is happening and what's wrong?
I am using xalan 2.6.0 as xslt processor.

I thank all of you in advance.

Kind regards.

Majirus

_________________________________________________________________
http://desktop.msn.fr/


--~------------------------------------------------------------------
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>
--~--



<Prev in Thread] Current Thread [Next in Thread>