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

Re: Use XSL:Variable

Subject: Re: Use XSL:Variable
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 1 Feb 2005 15:44:09 GMT
Re:  Use XSL:Variable
     The following should work for you:

	<xsl:param name="fileExtn">
	     <xsl:value-of select="/CONTROL/ObjectFormat[1]/@FileExtension"/>
	</xsl:param>


In almost all circumstances it is better to use


	<xsl:param name="fileExtn"
           select="/CONTROL/ObjectFormat[1]/@FileExtension"/>

as that passes the attribute node itself, which is more efficient and
more useful, rather than using the form with value-of which generates a
result tree fragment consisting of a root node and a text node with the
string value of the attribute.

David


________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.