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

Re: Variable in XPath...

Subject: Re: Variable in XPath...
From: Alessio Mazzieri <mazzieri@xxxxxxxxxxx>
Date: Fri, 09 Nov 2001 11:05:45 +0100
variable in xpath


Ohh!? The $node_id variable contains a "string"


Not if it's defined by the definition you gave. You defined it by an Xpath that selected element nodes, so it contains a node set.

Ok David, I've understand the difference (that is very very short) between the use I want to do of this variable and the real content of it!
So, I've probably obtained the right behaviour using this


<xsl:variable name="node_id" select="string(document('config_doc.xml')/config/nodename)"/>

It's correct?
Thanks again.


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.