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

Relax-ng test suites & sample data?; Pre-pre-announce: relax-ng subtype

  • To: xml-dev@l...
  • Subject: Relax-ng test suites & sample data?; Pre-pre-announce: relax-ng subtype checker
  • From: Dan Shoutis <dan.shoutis@g...>
  • 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=

test data sample data
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 http://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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

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-2013 All Rights Reserved.