|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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 Saxon. 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
|
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
|

Cart








