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

Re: RE: syntax sugar for call-template

Subject: Re: RE: syntax sugar for call-template
From: "Clark C. Evans" <cce@xxxxxxxxxxxxxx>
Date: Sat, 17 Feb 2001 12:43:45 -0500 (EST)
Re:  RE: syntax sugar for call-template
On Sat, 17 Feb 2001, Jeni Tennison wrote:
> <xsl:template name="foo">
>    <bar>
>       <xsl:return select="'bar'" />
>    </bar>
> </xsl:template>

I must say that I really do not like the "return" idea.

The output of the template is the result-fragment it
generates.  If one wanted to call templates from XPath,
then, one could have the result-fragment returned as a node-set.  
Simple.  All of this "return" stuff gives me a headache,
why is it necessary?  If a <xsl:return> is necessary (evidence 
please), then I vote for Kay's <xsl:function>.  The *worst*
case is having both an output fragment _and_ a return statement.
This combination makes no sense whatsoever.

Best,

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.