Re: [xsl] Name function in XSL

Subject: Re: [xsl] Name function in XSL
From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx>
Date: Thu, 08 May 2003 09:49:58 +0200
Molnar Agnes wrote:

I'm a beginner in XSL, and I have a question.
I'd like create a new XML document from an other with XSL. In the new XML
I'd like nodes with name "XMLNode", and the XMLNode have an attribute
named "text", with value of the name of the first XML's nodes.
Like this:

In the original XML:
	<XmlNode1>anyValue</xmlNode1>

It will be in the new XML:
	<XMLNode Text="XmlNode1">anyOtherValue</node>

I think, the name() function can be OK for me, but I don't know, how can
use it. Do you have any idea, or a short code example?

<XMLNode Text="{name()}">anyOtherValue</node>


--
Oleg Tkachenko
http://www.tkachenko.com/blog
Multiconn Technologies, Israel


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list



Current Thread