A.9. ExamplotronExamplotron 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. Table A-5. Examplotron fact sheet
A.9.1. Example<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. |
|