Re: XPath 2.0+ Compatibility in XForms 2.0 Testsuite

Sounds good to me.

-Erik

On Thu, Apr 22, 2021 at 12:10 AM Alain Couthures <
alain.couthures@agencexml.com> wrote:

> Hello,
>
> The main form of the testsuite does not currently work well with XPath
> 2.0+ (with Compatibility Mode set to false) because of default text
> comparisons even with numeric values.
>
> This is a well-documented difference with XPath 1.0:
> https://www.w3.org/TR/xpath20/#id-incompat-in-false-mode
>
> Adding an explicit number() function call in expressions sounds like a
> good compatibility solution for both XPath 1.0 and XPath 2.0+ engines:
> “. &gt; ../count” to be replaced with “number(.) &gt; number(../count)”
>
> It might be interesting to add a mention to this in XForms 2.0
> specifications. What do you think?
>
> --Alain
>

Received on Thursday, 22 April 2021 17:40:29 UTC