[Home] [By Thread] [By Date] [Recent Entries]

  • From: Mukul Gandhi <mukulg@s...>
  • To: XML Developers List <xml-dev@l...>
  • Date: Wed, 22 Dec 2021 14:41:47 +0530

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


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member