[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

Subject: Re: xsl:element name value with Attribute Value Template at run-time
From: Arvind Bassi <arvind_bassi@xxxxxxxxxxx>
Date: Wed, 29 Oct 2003 09:48:23 +0000 (GMT)
2006 yahoo.co.uk
Sorry, silly mistake on my side.

The reason why l want a global variable for an element name is that the
stylesheet compares two xml documents, and displays the results in an
xml document. A program will read in the xml document, and l would like
to ensure that the elements that it will be looking for exist with the
same name.

Thanks.

Arv'.

 --- David Carlisle <davidc@xxxxxxxxx> wrote: > 
> <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
>  

________________________________________________________________________
Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk

 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.