Re: [xsl] transformation problem

Subject: Re: [xsl] transformation problem
From: Jörg Heinicke <joerg.heinicke@xxxxxx>
Date: Sun, 7 Oct 2001 02:20:49 +0200
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: [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


Current Thread