This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: Generating new element whose name is not known at the stage of XSL composition
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] Generating new element whose name is not known at the stage of XSL composition
- From: "Michael Kay" <michael dot h dot kay at ntlworld dot com>
- Date: Fri, 9 Nov 2001 09:49:15 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> I tried the followings, but failed.
> ...
> <xsl:variable name="elemName" select="@name"/>
> <xsl:element name="$elemName"/>
> ...
>
You need <xsl:element name="{$elemName}">
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list