W3C home > Mailing lists > Public > xmlschema-dev@w3.org > September 2007

Re: XSV fails on negative regexp (eg mimetype of MPEG7)

From: Henry S. Thompson <ht@inf.ed.ac.uk>
Date: Thu, 13 Sep 2007 11:20:37 +0100
To: Heiko Studt <studt@fmi.uni-passau.de>
Cc: xmlschema-dev@w3.org
Message-ID: <f5bfy1i9896.fsf@hildegard.inf.ed.ac.uk>

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

Heiko Studt writes:

> XSV seems to fail on xsd-allowed 'negated' regular expressions in
> patterns. This breaks the support of
> MPEG7:mimetype. (urn:mpeg:mpeg7:schema:2004) Allthough XSV documents
> lacks functionality in some parts of RegExp, this lack is not
> documented on its project page.

Well, I admit it's pretty obscure, but the project page [1] does say,
in the list of implemented features "pattern (partially)".  The truth
is that XSV uses Python's native regexps if it thinks that will give
the right answer, otherwise just falls back to saying "yes".  Python
regexps don't support subtraction, so the presence of that in your
pattern provokes the fallback.

I'm afraid I can't comment on whether your two regexps are
equivalent. . .

ht

[1] http://www.ltg.ed.ac.uk/~ht/xsv-status.html
- -- 
 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)

iD8DBQFG6Q71kjnJixAXWBoRAntLAJ9d9dbFN0Rh6tW2kEfwtFeY5c6YxQCeODUp
HWiY7Qkur6cSMDNfjI0GOf0=
=TA2R
-----END PGP SIGNATURE-----
Received on Thursday, 13 September 2007 10:20:49 GMT

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