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

RE: non-deterministic simpleContent restriction definition

From: Michael Kay <mike@saxonica.com>
Date: Tue, 25 Nov 2008 10:36:19 -0000
To: "'Tobias Koenig'" <tobias.koenig@trolltech.com>, <xmlschema-dev@w3.org>
Message-ID: <857CEBFEBE0B489A8484FEA39893983C@Sealion>
RE: non-deterministic simpleContent restriction definition

> to validate the occurrence of xml tags for schema input the 
> most elegant way is to use a DFA according to the regular 
> expression given in the XML Representation Summary in the 
> schema spec for every component.

Yes. FYI: I actually compile the schema for schema documents, which creates
a DFA for every complex type; I output an XML serialization of the compiled
schema (which can be used for fast loading of schemas); and then I have an
XSLT stylesheet that generates Java code representing the DFA which gets
copied into the schema processor.

Of course this only works once you've got a working schema processor...

Michael Kay
http://www.saxonica.com/
Received on Tuesday, 25 November 2008 10:36:58 GMT

Subscribe to the Stylus Scoop newsletter for helpful XML tips and tutorials.
Email
First Name
Last Name
Company

Download Stylus Studio 6 XML Enterprise Edition

Subscribe in XML format
RSS 2.0
Atom 0.3
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-2007 All Rights Reserved.