Subject: Re: [xsl] xsl:element name value with Attribute Value Template at run-time From: David Carlisle <davidc@xxxxxxxxx> Date: Wed, 29 Oct 2003 02:07:57 GMT |
<xsl:variable name="elementName" value="foo"/> That selects the foo child element of the current node (which is teh document node of your input document) so unless the top level element in your input is foo this will be empty. It sounds like you want the string foo which is <xsl:variable name="elementName" value="'foo'"/> But there isn't a lot of point using a global variable witha fixed string definition like that in <xsl:element name="{$elementName}"> As it could more easily be written <foo> David -- http://www.dcarlisle.demon.co.uk/matthew XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:element name value with A, Arvind Bassi | Thread | Re: [xsl] xsl:element name value wi, Arvind Bassi |
[xsl] Displaying and using huge nod, Tristan Stark | Date | [xsl] How to compare the attributes, Arvind Bassi |
Month |