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

RE: Variables, Functions and node-set-expression

Subject: RE: Variables, Functions and node-set-expression
From: Mike Brown <mbrown@xxxxxxxxxxxxx>
Date: Mon, 8 Nov 1999 12:44:43 -0700
node set expression
> is something like this allowed?
> 
> <xsl:for-each select="//name($mynode)">
> ...
> </xsl:for-each>

The select argument must identify a node-set. // is a good start,
identifying the descendant-or-self axis. But name($mynode) is a function
that returns a string. It would need to return a node-set. It would be nice
if a string could be something that could be further parsed to help identify
a node-set, but here the data object needs to *be* a node-set.

The axis narrows down the pool of candidates, and what comes after it should
further refine that pool. It's not clear what set of nodes you're trying to
identify for use in your for-each loop. To further advise you, we need you
to complete this sentence: "from the set of nodes along the
descendants-or-self axis, I want nodes that..." (Usually it's something like
"...nodes that are elements named 'foo'").


 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.