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

RE: Constrain the Number of Occurrences of Elements in your XM

  • To: "'Greg Hunt'" <greg@f...>,<xml-dev@l...>
  • Subject: RE: Constrain the Number of Occurrences of Elements in your XML Schema
  • From: "Michael Kay" <mike@s...>
  • Date: Sun, 7 Aug 2005 21:36:30 +0100
  • In-reply-to: <42F574A6.9010702@f...>
  • Thread-index: AcWa+bvn5GWhFpxZQGOJCXc1pZVkKwAlWvMg

RE:  Constrain the Number of Occurrences of Elements in your XM
> If we don't put these limits in the schema, they just have to go 
> somewhere else, somewhere less visible, less maintainable, 
> and with less 
> tool support. How SHOULD we do this if we aren't using the schema for 
> validation of these constraints?

If processing is limited by memory size, then let the limit be enforced by
the memory manager. That way, if you add more memory, the limit goes away.
The concern at higher levels should only be to trap the errors coming from
lower levels and produce meaningful diagnostics and helpful recovery
actions.

I would say it is definitely bad design to try to write a schema that
imposes its own limits solely in order to prevent an "out of memory" error
happening.

Michael Kay
http://www.saxonica.com/



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.