Schemas
Examplotron debuts
23:33, 25 Mar 2001 UTC | Simon St.Laurent

Eric van der Vlist announced the release of Examplotron, a schema-by-example approach built using XSLT.

Examplotron uses sample XML documents to generate XSLT style sheets which may then be used to compare other XML documents to the example:

"Many tools (including popular XML editors) are able to generate various flavors of XML schemas from instance documents, but these schemas do not find enough information in the documents to be directly useable leaving the need for human tweaking and the need to fully understand the schema language. Examplotron may then be used either as a validation language by itself, or to improve the generation of schemas expressed using other XML schema languages by providing more information to the schema translators."

Examplotron documents provide examples by definition, and may also use an extra attribute, eg:occurs, which provides additional information about how instances may vary from the example.

The current version of Examplotron uses the saxon:distinct() function of the SAXON XSLT processor, but "examplotron might be easily ported to other XSLT processors assuming they fully support namespaces nodes."

Examplotron itself is written as a RDDL document, and includes both an Examplotron compiler and an W3C XML Schema documenting its single attribute.

Eric van der Vlist is an editor of xmlhack.

Related stories:

Re: Examplotron debuts (Cyril Jandia - 15:16, 26 Mar 2001)

Thanx Eric ;o) for the Examplotron [1] : the simpler the better !

No doubt Examplotron **actually is** one of the best ideas related to the validation-oriented class of XML schema languages - so that I **do** look forward to experiment with it (*) and examplotron-to-schematron [2] infoset mappings to identify as many practical use cases as possible. Maybe TREX [3] folks could have a look at it, also ;o) ?

(*) Eric : I'll most likely start with stuff of my own and then even with, if I can, a toughtful selection of our home-brewed XML applications developped here at Cross-Systems ( http://www.cross-systems.com/ ) - be sure of my personal feedback anyway.

[1] http://examplotron.org/ [2] http://www.ascc.net/xml/resource/schematron/schematron.html [3] http://www.thaiopensource.com/trex/

Regards, Cyril http://www.cjandia.com/ mailto:Cyril@cjandia.com

  
xmlhack: developer news from the XML community

Front page | Search | Find XML jobs

Related categories
Schemas
XSLT