[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: question about xsl:element names

Subject: Re: question about xsl:element names
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 17 Apr 2003 00:00:06 +0200
element name for j
Calvin Smith wrote:
How can one create an element with a name that is not determined until
runtime? I tried assigning to a variable and putting the variable in the
name attribute of xsl:element, but that doesn't work, and I tried using
the name function within the name attribute, since the name of the element
should be the name of another element, but that doesn't work either.

It would be easier if you've showd us a code snippet. I guess you didn't take into account that the name attribute of xsl:element doesn't take an XPath expression. You have to use an AVT: <xsl:variable name="foo" select="'bar'"/> <xsl:element name="{$foo}"/>

J.Pietschmann


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



Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.