[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] what is the most straight forward way to construct and element name for output ??
Subject: RE: [xsl] what is the most straight forward way to construct and element name for output ?? From: Jarno.Elovirta@xxxxxxxxx Date: Thu, 21 Aug 2003 17:00:31 +0300 |
Hi, > Have a need to build the element name and export it. > > <xsl:template name="OutputElement"> > <xsl:param name="elementName" /> > <xsl:variable name="element" > select="normalize-space($elementName)" /> > > If element == "House" how do I export an element name called House > > Desired Output: > > <House> > <cost>100000.00</cost> > </House> Did you see the spec <http://www.w3.org/TR/xslt#section-Creating-Elements-with-xsl:element>? <xsl:element name="{$element}"> <cost>100000.00</cost> </xsl:element> Cheers, Jarno - Aslan Faction: Resurrection XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] what is the most straight, Simon Bretin | Thread | [xsl] text output encoding UTF-16 a, Mulberry Technologie |
[xsl] what is the most straight for, Bill Riegel | Date | Re: [xsl] cannot include global lev, David Carlisle |
Month |