Re: XML Schema 1.1 xpath 2.0 regex question

From
Mukul Gandhi <>
To
XML Developers List <>
Date
2021-12-22T09:11:47Z
ID
<CANGHzgAuHspawt4Cbwp12-+M1+1=>
Thread
Re: XML Schema 1.1 xpath 2.0 regex question
Hi all,
   I've following question, related to this topic.

Within an XSD 1.1 schema, I've following asserts,

<xs:assert test="matches('j', '.')"/>
<xs:assert test="matches('\n', '.')"/>
<xs:assert test="matches('\r', '.')"/>

Both Xerces, and Saxon say that the asserts above return true result (i.e all the matches succeed).

The XSD 1.1 data types spec within the section "G.4.2.5 Multi-character escapes" says,

For character sequence . , the equivalent character class is [^\n\r] (which as I can understand means, any character except \n and \r). Therefore, shouldn't the 2nd and 3rd asserts above return false result?


--
Regards,
Mukul Gandhi