XML Schema: how SAXON handles a large value for maxOccurs

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

XML Schema: how SAXON handles a large value for maxOccurs

Costello, Roger L.

Hi Michael,

 

Some questions on how SAXON handles a maxOccurs with a large value, e.g.,

 

<element name=”Book” type=”BookType” maxOccurs=”2500” />

 

1. SAXON does not check, in an instance document, that the number of Book elements is less than or equal to 2500. That is, an instance document containing 3000 Book elements is schema-valid because SAXON treats 2500 and “unbounded” synonymously.

 

True or False?

 

2. SAXON pre-allocates 2500 units of memory for Book elements.

 

True or False?

 

3. SAXON creates 2500 finite-state-machine states for Book elements.

 

True or False?

 

4. Would you summarize how SAXON deals with a large value for maxOccurs, please?

 

Thanks!

 

/Roger


------------------------------------------------------------------------------

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help 
Reply | Threaded
Open this post in threaded view
|

Re: XML Schema: how SAXON handles a large value for maxOccurs

Dan Sullivan
I think the Saxon doc’s on maxOccur/minOccurs will answer your questions  http://www.saxonica.com/html/documentation/schema-processing/min-and-maxoccurs.html

Dan
 

From: "Costello, Roger L."
Reply-To: Mailing list for the SAXON XSLT and XQuery processor
Date: Sunday, September 27, 2015 at 8:02 AM
To: Mailing list for the SAXON XSLT and XQuery processor
Subject: [saxon] XML Schema: how SAXON handles a large value for maxOccurs

Hi Michael,

 

Some questions on how SAXON handles a maxOccurs with a large value, e.g.,

 

<element name=”Book” type=”BookType” maxOccurs=”2500” />

 

1. SAXON does not check, in an instance document, that the number of Book elements is less than or equal to 2500. That is, an instance document containing 3000 Book elements is schema-valid because SAXON treats 2500 and “unbounded” synonymously.

 

True or False?

 

2. SAXON pre-allocates 2500 units of memory for Book elements.

 

True or False?

 

3. SAXON creates 2500 finite-state-machine states for Book elements.

 

True or False?

 

4. Would you summarize how SAXON deals with a large value for maxOccurs, please?

 

Thanks!

 

/Roger


------------------------------------------------------------------------------

_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
[hidden email]
https://lists.sourceforge.net/lists/listinfo/saxon-help