Subject: Re: Designs for XSLT functions (Was: Re: [xsl] RE: syntax sugar for call-template) From: "Clark C. Evans" <cce@xxxxxxxxxxxxxx> Date: Wed, 21 Feb 2001 08:04:19 -0500 (EST) |
On Tue, 20 Feb 2001, Uche Ogbuji wrote: > > How do I build-up a node set using this over, say a loop? > > > > <exsl:append select="$header" /> > > <xsl:for-each select="..." > > > ... > > <exsl:append seelct="$more-body" /> > > </xsl:for-each> > > <exsl:append select="$footer" /> > > <xsl:variable name='foo'> > <xsl:for-each select="..." > > ... > <xsl:value-of select="$more-body" /> > </xsl:for-each> > </xsl:variable> > <exsl:result select='exsl:node-set($foo)'> What happens if $more-body was a particular node, say the 4th child, ".[4]" , I'd like the result-set to contain each one of the 4th children. The <xsl:variable approach will build a result-fragment and then convert the fragement to a node-set. This is entirely different. Hmm. How to better explain. Clark XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Designs for XSLT functions (Was, Uche Ogbuji | Thread | [xsl] Bug MSXML3 - xsl:number forge, Paul Terray |
Re: [xsl] thanks, also thoughts on , Steven . C . Kienle | Date | Re: Designs for XSLT functions (Was, Clark C. Evans |
Month |