This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: RE: syntax sugar for call-template
- To: "'Clark C. Evans'" <cce at clarkevans dot com>, <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] RE: syntax sugar for call-template
- From: "Michael Kay" <mhkay at iclway dot co dot uk>
- Date: Sat, 17 Feb 2001 23:59:00 -0000
- Reply-To: xsl-list at lists dot mulberrytech dot com
> From: Clark C. Evans [mailto:cce@clarkevans.com]
> > <xsl:template name="foo">
> > <bar>
> > <xsl:return select="'bar'" />
> > </bar>
> > </xsl:template>
>
> I must say that I really do not like the "return" idea.
>
Then how else do you write a function equivalent, say, to distinct() or
intersection() or max()? Named templates can only return trees, you need
something that can return arbitrary node-sets, numbers, strings, or
booleans.
Mike Kay
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list