Probably the simplest way (for me, at least) is to point you to the XML Schema test suite; there is an information page at http://www.w3.org/XML/2004/xml-schema-test-suite/index.html which includes directions for getting and unpacking the test suite (it is, unfortunately, not just a simple case of unzipping the thing).
A quick examination of the test suite with the command
find . | while read f; do grep xmlns $f | tr ' ' '\n' | tr '>' '\n' | grep xmlns; done | sort | uniq -c | wc -l
suggests that there are a few more than 7000 distinct namespaces (or, strictly speaking, namespace/prefix pairs) in the test suite.
If downloading the schema test suite is more trouble than you want to get into, I'll see if I can replicate the problem with a smaller set of documents.
Thank you!
Michael
On Nov 13, 2011, at 2:15 PM, Christian GrĂ¼n wrote:
Dear Michael,
thanks for your e-mail - which reminds me of another issue you came up some time ago.. Do you have some sample files that allow us to reproduce the behavior?
All the best, Christian ___________________________
On Sun, Nov 13, 2011 at 10:12 PM, C. M. Sperberg-McQueen cmsmcq@blackmesatech.com wrote:
Greetings!
I've just downloaded BaseX 7.0.2, and was very happy to see the checkbox for "Skip corrupt (non-well-formed) files", since it makes it much much easier to create a BaseX database of the XSD test suite.
But my attempt to build the database still fails with the message
"idI001.xsd" (Line 2): Too many different namespaces (limit: 256).
Since document idI001.xsd only declares 5 namespaces, I guess the 256-namespace limit is for the database, not for an individual document.
Is there any way to ease the limit, or do I have to contemplate making multiple databases, each covering just part of the test suite?
Thank you!
Michael Sperberg-McQueen