[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Variables, Functions and 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
|
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
|