Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - XSL. howto create an element of a text node? [Thread Next] Re: XSL. howto create an element of a text node?To: NULL Date: 4/3/2006 4:06:00 AM
blabla120@g... wrote:
> I want to transform it to this form:
>
> <car>
> <Mercedes>
> </car>
I think you mean this (note the closure of the empty tag)
<car>
<Mercedes/>
</car>
<xsl:template match="car">
<xsl:element name="{./brand}"/>
</xsl:template>
I wouldn't do this though. Dynamically creating new element names is a
whole can of worms and you really don't want to go there.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
