This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Designs for XSLT functions (Was: Re: RE: syntax sugar for call-template)


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]