xml editor

Supported platforms

Compatible with Windows7 & Mac OS X Snow Leopard

Ready for data server software
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] question about xsl:element names


Subject: Re: [xsl] question about xsl:element names
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Thu, 17 Apr 2003 00:00:06 +0200

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
Keywords
XML Editor | XML Author | WYSIWYG Editors | Schema Editor | XSD Documentation | XSL/XSLT Editor | XQuery | XML Databases | SVN Client
© 2002-2011 SyncRO Soft Ltd. All rights reserved. | Sitemap | Privacy Policy | This website was created & generated with <oXygen/>®XML Editor