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

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   RE: [xml-dev] Constrain the Number of Occurrences of Elements in your XM

[ Lists Home | Date Index | Thread Index ]

> 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/






 

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

Copyright 2001 XML.org. This site is hosted by OASIS