[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: transformation problem

Subject: Re: transformation problem
From: Manu KY <manu_kry@xxxxxxxxx>
Date: Sun, 07 Oct 2001 09:37:01 +0530
Re:  transformation problem
Hello,
Sorry from my side too , Yes your expression was right.
The first node in a node-set is converted to string representing its string value.


Manu

Sorry for the mistake, but <xsl:element> was correct ;-)

Of course it has to be <xsl:element name="{@name}">

Joerg

----- Original Message -----
From: "Trevor Nash" <tcn@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Saturday, October 06, 2001 7:23 PM
Subject: Re:  transformation problem


> On Sat, 06 Oct 2001 19:27:23 +0530, you wrote: > > >Hello all, > >even this doesnt work!! > >here is what you we are doing : > >@name will return a node-set containing the attribute node with name "name". > correct > > > > >possible problems i can think of:( even i am a beginner !!) > >1.can this node be converted to a string(ie will it return the > >string-value of the node).? > Yes > > >2.can we put "variables" in the name attribute of xsl:element tag? > Yes, by means of an 'attribute value template', i.e. putting curly > brackets in it. > > > > >i think more experienced people around would clarify...... > > > > > >Manu > > > > > > > >>Sorry, but this will never, never work! But there is a really easy > >>alternative: > >> > >><xsl:element name="@name"/> > This will never work either ;-)) > Did you try what I posted yesterday? The above will try to create an > element with name @name (literally) which is of course illegal. You > want the value of @name, i.e. as I said before > <xsl:element name="{@name}"/> > with the curly brackets. > >> > >>Joerg


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


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.