This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Designs for XSLT functions (Was: Re: RE: syntax sugar for call-template)
- To: xsl-list at lists dot mulberrytech dot com
- Subject: Re: Designs for XSLT functions (Was: Re: [xsl] RE: syntax sugar for call-template)
- From: "Clark C. Evans" <cce at clarkevans dot com>
- Date: Wed, 21 Feb 2001 08:04:19 -0500 (EST)
- Reply-To: xsl-list at lists dot mulberrytech dot com
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