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: RE: syntax sugar for call-template


> 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


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