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

Re: Can XML Schema be compiled to Schematron?


schematron type
Hi all,

Rick Jelliffe wrote:

 >
 > You might start by processing your instance document with Francis
 > Norton's TypeTagger  XSLT scripts, which add the type names (of
 > elements) to an instance. That will simplify life a lot, because
 > then the Schematron schema has access to type information from its
 > XPath 1.0.
 >

Thanks for the mention. I'm afraid that TypeTagger [1] hasn't really
moved on since the announcement - here are the contents of TypeTagger.txt

"Run typeTagger.compiler.xslt over any schema to generate a typeTagger
for that document type, then run the typeTagger instance over a document
instance and you get a fully marked up version of the document.

eg:

--
C:\Projects\typeTagger>msxsl po.xsd typeTagger_0.compiler.xslt>
po.typeTagger.xslt

C:\Projects\typeTagger>msxsl po.xml po.typeTagger.xslt> temp.xml
--

Every element in the document gets marked up with its Universal element
name and Universal element type attributes, a kind of poor-man's PSVI...

[Limitations - no support yet for xs:redefine or base/extends. Probably
lots more too!]

Also, you could use the same process to scan the document and rather
than copying out marked-up markup, apply schematron-type rules that have
been embedded in the schema."


It would be nice to look again at the limitations with Rick's advice in 
mind, but I probably won't have a chance in the near future. But I'd be 
delighted if anyone wants to complete or extend it.

Francis.

[1] 
http://schemavalid.com/utils/typeTagger.zip



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.