Re: xsl:function with optional parameters

On Thu, Sep 29, 2022 at 9:52 AM Michael Kay <mike@saxonica.com> wrote:

>
> which then leaves the question of whether the names of the parameters and
> their default values can differ. I don't see a problem with allowing the
> default values to differ. Allowing the names to differ is problematic
> because the overriding function is no longer substitutable, as the names
> are now visible as keywords in a function call. But disallowing name
> changes is difficult because it's allowed in 3.0. The only solution I can
> think of is to allow name changes, but disregard them: the overriding
> function is treated "as if" it used the same parameter names as the
> overridden function.
>

I proposed using a "Standard Keyword Naming" convention just for cases like
this in my comment here: https://github.com/qt4cg/qtspecs/issues/160


Thanks,
Dimitre

Received on Thursday, 29 September 2022 19:21:34 UTC