"Edouard Mercier" <th*****************@free.fr> wrote in message
news:ab**************************@posting.google.c om...
Could you please provide a good URL concerning the main differences
between XSD and Relax NG ?
I can't think of one off the top of my head. The main positive differences
are:
RELAX NG:
Ambiguous content models allowed
Choices may depend on attributes and values, not just elements
General "define" mechanism
Datatype libraries (no special "blessed" types)
(XSD simple types supported by library)
Formal definition
Very easy to learn
Conformant implementations (Jing and MSV)
Both XML and compact syntax
Oasis/ISO draft standard
"The fastest way to write an XSD schema is to write a RELAX NG compact
syntax schema and use Trang to convert it to XSD."
XSD:
unique, key, keyref
Substitution groups
Named type derivation
W3 recommendation
Used in XQuery/XSLT 2.0/XPath 2.0
Used in WSDL
If a plus appears in one list, it is a minus in the other. Both have a
number of free tools available. Trang is an especially interesting tool, as
it converts between various schema formats with good fidelity.
Bob Foster
http://www.xmlbuddy.com/