|
Subject: Re: Designs for XSLT functions (Was: Re: [xsl] RE: syntax sugar for call-template) From: Uche Ogbuji <uche.ogbuji@xxxxxxxxxxxxxxx> Date: Tue, 20 Feb 2001 15:42:02 -0700 |
> 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
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Designs for XSLT functions (Was, Clark C. Evans | Thread | Re: Designs for XSLT functions (Was, Clark C. Evans |
| RE: Designs for XSLT functions (Was, Kaganovich, Yevgeniy | Date | [xsl] tutorial xml to xml using xsl, Tom Belich |
| Month |