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

[Bug 25874] [XT30TS] error-code-268

From: <bugzilla@jessica.w3.org>
Date: Fri, 23 May 2014 16:30:00 +0000
To: public-qt-comments@w3.org
Message-ID: <bug-25874-523-IINrH1ev61@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=25874

--- Comment #6 from Abel Braaksma <abel.braaksma@xs4all.nl> ---
The problem is not with evaluation the variable: indeed, an optimizing
processor does not need to evaluate a variable that is never referenced.

The issue here is with invoking the template. If the caller does not provide
this parameter, it is in error.

I consider it similar to stylesheet functions. Take for instance:

<xsl:function name="f:foo">
    <xsl:param name="x" />
</xsl:function>

The function body does nothing, $x is never evaluated, however, calling f:foo()
(without a parameter) is illegal and will raise an exception, regardless of any
optimization.

Yes, you never have to evaluate the parameter. No, you must raise an error on
the caller if it does not provide a required parameter. Same goes for xsl:param
with required="yes".

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
Received on Friday, 23 May 2014 16:30:02 UTC

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