- From: Michael Glavassevich <mrglavas@c...>
- To: xml-dev@l...
- Date: Sun, 8 Aug 2010 00:12:17 -0400
Mukul Gandhi <gandhi.mukul@g...> wrote on 08/07/2010 10:00:56 PM:
> On Sat, Aug 7, 2010 at 11:11 PM, Michael Kay <mike@s...> 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@l...
> subscribe: xml-dev-subscribe@l...
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
Thanks.
[2] http://xerces.apache.org/xerces2-j/features.html#validation.schema-full-checking
Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: mrglavas@c...
E-mail: mrglavas@a...
- References:
- [Summary] Eager and Just-in-Time loading of XML Schema documents,compiled documents, enhancing performance, streaming
- From: "Costello, Roger L." <costello@m...>
- Re: [Summary] Eager and Just-in-Time loading of XML Schema documents, compiled documents, enhancing performance, streaming
- From: Mukul Gandhi <gandhi.mukul@g...>
- Re: [Summary] Eager and Just-in-Time loading of XML Schema documents, compiled documents, enhancing performance, streaming
- From: Michael Glavassevich <mrglavas@c...>
- Re: [Summary] Eager and Just-in-Time loading of XML Schema documents, compiled documents, enhancing performance, streaming
- From: Michael Kay <mike@s...>
- Re: [Summary] Eager and Just-in-Time loading of XML Schema documents, compiled documents, enhancing performance, streaming
- From: Mukul Gandhi <gandhi.mukul@g...>
[Date Prev]
| [Thread Prev]
| [Thread Next]
| [Date Next]
--
[Date Index]
| [Thread Index]
|