[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: xsl:element name value with Attribute Value Templa
<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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|