RELAX NG by Eric van der Vlist will be published by O'Reilly & Associates (ISBN: 0596004214)
You are welcome to use our annotation system to give your feedback.
RELAX NG won't solve all issues all by itself. It's not designed to solve the every conceivable validation problem. RELAX NG is, however designed to be the best tool to solve two key pieces of the problem: validating the structure of XML document and providing a connection to datatype libraries which validate the content of text nodes and attributes. It's also designed to be used as a part of the ISO DSDL framework, which deals with the larger issues surrounding validation. (DSDL is described in Appendix A: DSDL ).
This tight focus makes RELAX NG so different from its main rival, W3C XML Schema. One of the reasons for the complexity of W3C XML Schema is that it includes many features which have been kept out of RELAX NG. W3C XML Schema doesn't only care about validating the structure of XML documents, but also about validating the content of text nodes and attributes, and checking the integrity between keys and references. More importantly, W3C XML Schema cares about many issues beyond validation. It attempts to be a modeling language which can classify the elements and attributes of XML documents, identify their semantics, use these semantics as extensible object-like models, and perform automatic binding between XML documents and objects. All of these goals are admirable, but too many of them are stuffed into a single technology.
During the development of RELAX NG, XML structure validation remained the focus. No compromises were made in deference to other features. The result is that RELAX NG appears to be the logical successor of XML DTDs and the best tool available to validate the structure of XML documents. RELAX NG's expressive power is such that virtually any XML vocabulary may be described with RELAX NG. That isn't true of W3C XML Schema, nor of DTDs. Perhaps most important for people who have to write schemas, RELAX NG is also very simple: because it does less, the syntax is intuitive. It has been kept simple. It isn't cluttered with complex limitations that take too much time to learn and remember.
You are welcome to use our annotation system to give your feedback.
[Annotations for this page]
All text is copyright Eric van der Vlist, Dyomedea. During development, I give permission for non-commercial copying for educational and review purposes. After publication, all text will be released under the Free Software Foundation GFDL.