|
[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
> On Tue, 20 Feb 2001, Uche Ogbuji wrote:
> > > 3. Create a new tag, <exsl:append select="xpath" /> which will:
> > >
> > > (a) if the xpath type is a node-set, then it appends each
> > > element of the node set onto the result-set.
> > >
> > > (b) otherwise, a text node is appended with the string-value
> > > of the path expression.
> >
> > I don't think this is necessary with an exsl:node-set().
>
> 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)'>
That's why I said it's only unnecessary is we have exsl:node-set.
--
Uche Ogbuji Principal Consultant
uche.ogbuji@xxxxxxxxxxxxxxx +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








