Subject: RE: collecting nodes From: Kay Michael <Michael.Kay@xxxxxxx> Date: Mon, 17 Jan 2000 09:36:16 -0000 |
> 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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: collecting nodes, Steve Tinney | Thread | announce: XML Tips, Eric van der Vlist |
RE: help with numbering (xsl:number, Kay Michael | Date | RE: beginner problem with attlist, Kay Michael |
Month |