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

RE: collecting nodes

Subject: RE: collecting nodes
From: Kay Michael <Michael.Kay@xxxxxxx>
Date: Mon, 17 Jan 2000 09:36:16 -0000
RE: collecting nodes
> Is it possible to "collect" nodes in a variable or param, 
> that can later be processed using <xsl:apply-templates select="$varname">,
without using
> proprietary extensions?
Yes, provided $varname is a node-set. For example, you can write:

<xsl:variable name="v" select="//para[starts-with(., "The ")]"/>
<xsl:apply-templates select="$v">

to process all paragraphs whose text starts with "The ".

You can't do this if $varname is a result tree fragment, except by using an
extension function such as the node-set() function provided by both xt and

Neither of which is proprietary, by the way, they are both open source. But
I know what you mean.

Mike Kay

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.