OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] [Summary] Eager and Just-in-Time loading of XML Schema documents, compiled documents, enhancing performance, streaming

Mukul Gandhi <gandhi.mukul@gmail.com> wrote on 08/07/2010 10:00:56 PM:

> On Sat, Aug 7, 2010 at 11:11 PM, Michael Kay <mike@saxonica.com> wrote:
> > (Saxon actually creates the FSA for each complex type in the schema eagerly,
> > rather than waiting until an instance of that type needs to be validated.
> I'm not sure how you model the FSA for a complex type. But I think,
> Xerces-J implements an object model corresponding to [1] for a schema
> complex type.

That's part of Xerces' schema component API. This is for end users. Xerces talks directly to the implementation of XSComplexTypeDefinition which contains a deterministic FSA used for validating instances, checking UPA and possibly also XML Schema 1.1's type restriction rules in the future.

If you turn off UPA checking [2] creation of these FSAs is deferred until the complex types are actually used to validate an instance. Even with UPA checking on sometimes Xerces can build a much smaller FSA which is sufficient for checking UPA and then builds the full one later if it is required for instance validation.

> [1] : http://xerces.apache.org/xerces2-j/javadocs/xs/org/apache/
> xerces/xs/XSComplexTypeDefinition.html
> --
> Regards,
> Mukul Gandhi
> _______________________________________________________________________
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php


[2] http://xerces.apache.org/xerces2-j/features.html#validation.schema-full-checking

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@ca.ibm.com

E-mail: mrglavas@apache.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS