Examplotron is an experiment to define a schema language based on sample trees, much like early proposals for XPath. Table A-5 provides the fact sheet for Examplotron.
Author: |
Eric van der Vlist. |
Status: |
Unofficial. |
Location: |
|
Type: |
Grammar-based with native rules support. |
PSVI: |
No. |
Structures: |
Yes. |
Datatypes: |
No (although datatypes can be checked as rules). |
Integrity: |
No (although integrity can be checked as rules). |
Rules: |
Yes. |
Vendor support: |
Low. |
Miscellaneous: |
Schema by example (a sample document is a schema) with rule checking (syntax borrowed from Schematron). |
<library xmlns:eg="http://examplotron.org/0/"> <book id="-0836217462" eg:occurs="+" eg:assert="not(following-sibling::book/@id=@id) and @id=concat('-',isbn)"> <isbn> 0836217462 </isbn> <title> Being a Dog Is a Full-Time Job </title> <author-ref id="Charles-M.-Schulz" eg:occurs="*"/> <character-ref id="Peppermint-Patty" eg:occurs="*"/> </book> <author id="Charles-M.-Schulz" eg:occurs="*"> <name> Charles M. Schulz </name> <nickName> SPARKY </nickName> <born> November 26, 1922 </born> <dead> February 12, 2000 </dead> </author> <character id="Peppermint-Patty" eg:occurs="*"> <name> Peppermint Patty </name> <since> Aug. 22, 1966 </since> <qualification> bold, brash and tomboyish </qualification> </character> </library>
Copyright © 2002 O'Reilly & Associates. All rights reserved.