W3C home > Mailing lists > Public > xmlschema-dev@w3.org > March 2006

Online validator - "." matches \r

From: Dave Evans <dme@sirius-software.com>
Date: Wed, 15 Mar 2006 14:39:06 EST
To: xmlschema-dev@w3.org
Message-ID: <E1FJc0M-0000Is-EO@maggie.w3.org>

Hi, I have tried to use the online schema validator:


I am trying to validate an instance document.  In the "Address(es):"
input area, I have entered two URLs, separated by a space:


I think that this instance document should fail, because it has
a carriage return between the characters "A" and "B", which the
"." in the pattern "A.*B" should not match.  At the end of appendix
F in part 2 of the schema recommendation, it clearly states that
"." does not match CarriageReturn:

  sequence:   Equivalent character class:
  ---------   ---------------------------
  .           [^\n\r]

(The assessment was for the document "<t>A&#x0D;B</t>" against a
schema which restricted the string content of element "t" to
match the pattern "A.*B".  (Note that testing with "&#x0A;"
between "A" and "B" fails, as expected.)

Can you please let me know whether this validation should
succeed or fail?

Thank you.  Dave Evans, Sirius Software Inc., Cambridge MA USA
617-876-6677 ext. 204
Received on Wednesday, 15 March 2006 19:50:03 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:33 UTC