|
Relax-ng test suites & sample data?; Pre-pre-announce: relax-ng subtype
|
[
Lists Home |
Date Index |
Thread Index
]
- To: xml-dev@lists.xml.org
- Subject: Relax-ng test suites & sample data?; Pre-pre-announce: relax-ng subtype checker
- From: Dan Shoutis <dan.shoutis@gmail.com>
- Date: Thu, 20 Oct 2005 19:48:12 -0600
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=lu0SDVCNli9utzhrDnq4W1EiyMciJ/D+Zd1tzNji2mx1A9c9YmHGynJw70BAvPaHh8zvLMGTfZ/lZA2EOLqXflrpV+SRysk26sOt8DbE3pi4owdd75k5azizEvdFhnGlOjkB7mqIIpl4CIa7V4JNyVySY9I0jIY3fqALoZVwRaE=
Hello to all,
First: This is my first post here so apologies in advance for any breaches of etiquette.
I was wondering if someone could point me at any repositories of schemas
accompanied by valid & invalid instances, with emphasis on relax-ng
validation and preferably leaving out extra complexities such as
external (even xsd) datatype validation. The test suite put together by James
Clark & linked from relaxng.org is a decent start, but focuses
fairly heavily on parsing/normalization, and I'm targeting only the
simplified syntax.
Additionally, I'd like to let anyone who is interested know that I'm
in the process of building a (toy) relax-ng subtype checker: given two simple-syntax grammars a and b, it can check that all
instances matched by a will also be matched by b (that is, a <= b).
(Since it's trivial to construct a grammar that matches only a specific
instance document, it can also perform validation ... hence, the first part of this message!)
Current status:
- regular hedge grammar subtype prover roughed-out and tested against toy examples; needs lots of refinement.
- simplified rng parser 70% or so. (It's parsing the grammars that I'm using in my job.)
- lots of longer range stuff in "idea" form (there's nothing preventing
an implementation of subtype relations on xml schema part II, for
example);
however to be completely honest I probably won't have any more time for
this project once it works well enough for my needs :)
The usefulness of such a thing, at least for me, is in constructing
"toy languages" for producing/processing XML that can be proved to
always work with valid instances. My working example, and the prime
motivator of this whole ball of pasta, is a simple DB->XML mapping
template language.
A few closing bits:
a) Has anyone done anything similar (not counting internal
type-checking of XDuce & co.)? If it's more ready for prime-time,
I'd be happy to drop this and use that!
b) This is unlikely, but if not (a) does anyone have a collection of
test examples of grammars that should satisfy a subtype relation?
c) If anyone wants to contribute, either with test cases, code (Full
disclosure: I'm using ocaml) or even doing a formal verification of the prover, they are very, very welcome to.
If I ever release anything, it will be under a suitably hippy license.
Thanks to all for the time & tips.
-- Dan
|
|
|
|
|