Re: [xml-dev] Need a language whiz: An XML Schema "specifies" howdata is to be structured? "describes"? "constrains"?
exclusion exceptions (i.e. that an <a> could not contain an <a> etc)
without combinatorial explosion. Schematron supported multiple
patterns in parallel from the start. DSDL's NVRL was based on
selecting different sections of documents and running them through
different schemas (including in parallel). Lloyds of London
Financial Markets use of layers of increasing complexity (IIRC a
basic grammar, then a complex grammar, then a Schematron) to weed out
bad transactions efficiently was widely reported. And the idea of a
Bloom filter is basic CS knowledge.
Everybody here is pro-Schematron, but Gerrit's stated reason for using
multiple schema bundled with NVDL is context-aware content completion in
editors.
The other reason was that some problems, such as modeling the permitted
TEI div types after DocBook’s part/chaper/section elements, are more
naturally specified as a grammar than as Schematron rules. Not all XML
grammar languages qualify for modeling it though. You need an anything
pattern that allows exclusions. These are available in Relax NG and XSD 1.1.