Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


XML Schemas to Schematron beta release

From: Rick Jelliffe <rjelliffe@-------.---.-->
To: xmlschema-dev@--.---
Date: 3/10/2009 6:11:00 AM
The initial beta release of my open source XML Schema validator is 
available now, from Schematron.com 
<http://www.schematron.com/resource/XSD2SCH.zip>.

I will put out a fresh version with explicit licenses in a couple of 
days, pending any immediate bug reports. The release is strictly beta, 
prompted by several requests. Improvements are highly welcome!

This implementation takes the approach of converting the XML Schema to 
Schematron code using a pipeline of XSLT2 scripts. The methods used have 
been explored and documented in this blog series 
http://broadcast.oreilly.com/2009/03/post-1.html 

The coverage is approximately:

    * *simple datatypes:* believed to be 100%
    * *list and union datatypes:* not supported
    * *structural constraints on elements and attributes:* supported*
    * *multiple namespaces, import and include:* supported
    * *identity constraints:* not supported
    * *dynamic constraints:* (xsi:type, xsi:nill) not supported
    * *tricky prefixes:* (elementFormDefault) not supported

* Content model validation is implemented by a series of finer sieves, 
which combine
to provide most of the capabilities of a full grammar checker. If a 
grammar has repeated
particules or complex nested occurrence constraints, there may be some 
false positives where our sieves are not fine enough, however there are 
never false negatives.

At some stage in the next few months, a proper open source home will be 
found for this project. In the meantime, please report any bug fixes to 
me. (I probably don't have time to fix bugs or gaps in any timely 
fashion, but of course you can send bug reports too. But fixes will get 
everyone further.)

For announcement details and documentation, see 
http://broadcast.oreilly.com/2009/03/post-1.html

The current version is a validator developed with sponsorship from 
JSTOR, whom I would like to thank.

The advantage of the Schematron schema is that it may be easier to allow 
user messages to be customized than with a compiled validator, however 
because grammars don't give away anything with respect to the intention 
of the schema-creator, the validation messages are still limited to 
fairly generic messages, unlike a specific Schematron schema. If ISO 
Schematron gets the mooted "properties" features, then it would be 
possible to generate a version of the PSVI, with type annotations, 
defaults and so on in an SVRL document linking to each element. There 
are no plans to do this, as it seem it would be very heavyweight, unless 
there is some demand.

Cheers
Rick Jelliffe



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent