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

Re: Online validator - "." matches \r

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 16 Mar 2006 09:36:37 +0000
To: "Dave Evans" <dme@sirius-software.com>
Cc: xmlschema-dev@w3.org
Message-ID: <f5blkvau3x6.fsf@erasmus.inf.ed.ac.uk>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Evans writes:

> Hi, I have tried to use the online schema validator:
>
>    http://www.w3.org/2001/03/webdata/xsv
>
> 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.

That's a bug in XSV, which will not be fixed, sorry.  XSV uses
Python's native regexp mechanism if the pattern doesn't use mechanisms
Python doesn't implement, and Python '.' matches everything except \n.

XSV's support for pattern is not intended to be complete, as stated in
the documentation.  Sorry if this is a problem for you.

ht
- -- 
 Henry S. Thompson, HCRC Language Technology Group, University of Edinburgh
                     Half-time member of W3C Team
    2 Buccleuch Place, Edinburgh EH8 9LW, SCOTLAND -- (44) 131 650-4440
            Fax: (44) 131 650-4587, e-mail: ht@inf.ed.ac.uk
                   URL: http://www.ltg.ed.ac.uk/~ht/
[mail really from me _always_ has this .sig -- mail without it is forged spam]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (GNU/Linux)

iD8DBQFEGTGlkjnJixAXWBoRAu9OAJ4rOAdxT++aDoIjjqwFHdgygo6QJgCdEYA5
C3xXDbMvjOWjiMqw8yixzOo=
=IL+B
-----END PGP SIGNATURE-----
Received on Thursday, 16 March 2006 09:36:49 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:54 GMT