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