Martin Probst's weblog

More proof that XML Schema is A Bad Thing (tm)

Wednesday, July 12, 2006, 09:41 — 0 comments Edit

I’m currently converting the XQuery Update Facility Use Cases into our XML format to use them as preliminary test cases for X-Hive’s implementation.

The use cases include several tow test documents that have schema information. Both are invalid in my schema editor (<oXygen/> XML editor) - one because of the order of elements (attribute definitions after sequence in a complexType), the other because something doesn’t work with qualified element names and “ref”erences to elements in the schema. I’m not an expert on XML Schema (thank God) so I don’t know whether it’s my processor that’s wrong or the documents.

The error messages of the tool were something like “there is something wrong here”, or alternatively misleading (“components without a namespace cannot be imported from document ….xsd”, but it’s not at all about the document, apparently), so it’s been quite annoying to fix.

The same document set includes three files with a DTD, all of them work.

X-Hive 8.0 will probably have support for RELAX NG, so there is some bright light at the end of the tunnel.


No comments.