This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
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@melvaig.co.uk>
>To: <xsl-list@lists.mulberrytech.com>
>Sent: Saturday, October 06, 2001 7:23 PM
>Subject: Re: [xsl] 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