This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Creating a node from a variable




Alessio Mazzieri wrote:

> Hi to all,
> is there a method to create a node using the content of an <xsl:variable>?
> 
> Something like this (but, unfortunately, not this!)
> 
>     <xsl:variable name="nodename">
>       SomeName
>     </xsl:variable>
> 
>     <xsl:element name="$nodename"/>
> 
> The desidered output is
> 
>     <SomeName/>
> 
> in the produced document.
> Thanks


<xsl:element name="{$nodename}"/>

Regards,

Joerg

-- 

System Development
VIRBUS AG
Fon  +49(0)341-979-7411
Fax  +49(0)341-979-7409
joerg.heinicke@virbus.de
www.virbus.de

News:
Cocoon-Premiere - Virbus AG setzt bei ShoppingMall-Plattform "Lofex"
auf neueste XML-basierende Technologie
http://www.virbus.de/de/press/pressemitteilung/20011123_lofex/index.html
http://www.lofex.de


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]