W3C home > Mailing lists > Public > public-qt-comments@w3.org > May 2003

Re: xsl:function: removal of xsl:result

From: Tobias Reif <tobiasreif@pinkjuice.com>
Date: Fri, 09 May 2003 11:28:25 +0200
Message-ID: <3EBB74B9.7040505@pinkjuice.com>
To: Jeni Tennison <jeni@jenitennison.com>
CC: public-qt-comments@w3.org

Hi Jeni

>>The xsl:result inside functions added a lot of expressive clarity,
>>which the current replacement xsl:sequence doesn't offer, IMHO.
>>Why the change?
> Now that we have sequence construction in XSLT 2.0 (rather than just
> in XPath 2.0), there's no longer a technical requirement for
> <xsl:result> -- the same effect can be achieved using <xsl:sequence>.

Yes I know (already updated my XSLTs). I just miss the expressive 
clarity: When reading a func def, one could look for the xsl:result 
element to see which result the function returns.

> In addition, we don't have an <xsl:result> in template definitions, so
> it seemed consistent to remove it from function definitions as well.

You could just as well have added xsl:result to templates as well :)
(except for backwards compatibility)

Anyways: It's just a minor point regarding readability of code, not one 
regarding functionality.


Received on Friday, 9 May 2003 05:41:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:45:12 UTC