[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Designs for XSLT functions (Was: Re: RE: syntax su

Subject: Re: Designs for XSLT functions (Was: Re: RE: syntax sugar for call-template)
From: "Clark C. Evans" <cce@xxxxxxxxxxxxxx>
Date: Wed, 21 Feb 2001 08:04:19 -0500 (EST)
xsl append variable syntax
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.