[XMLSCHEMA-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

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>
xml online validator

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

   http://www.w3.org/2001/03/webdata/xsv

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

  http://sirius-software.com/daveweb/resources/schtst03.xml
  http://sirius-software.com/daveweb/resources/schtst03.xsd

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:

  Character
  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 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.