Re: Online validator - "." matches \r

-----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 UTC