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

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