Subject: Re: [xsl] element name as attribute value From: George Cristian Bina <george@xxxxxxxxxxxxx> Date: Tue, 23 Jan 2007 12:07:17 +0200 |
Best Regards, George --------------------------------------------------------------------- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com
Hi all,
Hope you can help me with this problem (seems easy but somehow i can't figure how to do it :(( ) I have this xml file
<X> <Y/> </X>
I would like to have the output (element Y as attribute value from other element e.g. B)
<A> <B attribute="Y"> </A>
I tried with <xsl:copy-of select="child::node()"/> it worked but only in the element part, can't put it
as attribute value.
It become like
<A> <Y/> </A>
Really appreciate when someone can help this desperate person.
Many thanks before san
____________________________________________________________________________________
Need Mail bonding?
Go to the Yahoo! Mail Q&A for great tips from Yahoo! Answers users.
http://answers.yahoo.com/dir/?link=list&sid=396546091
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] element name as attribute, Andrew Welch | Thread | Re: [xsl] element name as attribute, David Carlisle |
Re: [xsl] element name as attribute, Andrew Welch | Date | Re: [xsl] element name as attribute, David Carlisle |
Month |