[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: modeling, validating and documenting an xml grammar


generate grammar xml schema
From: "florian" <csshsh@s...>
> why to people like relax ng so much though? what is better
> about it than xml schema?

Here is a personal incomplete list. RELAX NG...

- Has a concise, unambiguous formal specification, so the only errors in
conforming parsers (and there have been darned few) are bugs, not confusion
over what the spec means.
- Treats elements, attributes and values in a uniform way, so you don't have
to learn (and parsers don't have to implement) a long list of special cases.
- Reinstates the interleave operator for unordered items (not quite the same
as SGML interleave, but as useful).
- Largely removes the pesky ambiguity restrictions of XML 1.0 and XML
Schema.
- Permits the use of XML Schema simple datatypes and allows use of other
type systems, as well.
- Has a fine set of free, open source tools (by James Clark and Kohsuke
Kawaguchi) for validation and translation to and from DTD, XML Schema and
RELAX NG.
- Has an alternative non-XML syntax that is concise, pleasant to read and
write and can be easily translated to XML syntax when the need arises.

There is also a list of baggage RELAX NG leaves out and doesn't need,
detailed in http://www.thaiopensource.com/relaxng/design.html.

The only thing I am aware of that XML Schema provides that RELAX NG (with
the DTD extension) does not are identity constraints (unique/key/keyset).
But these (and much more) can be easily done using Schematron in concert
with RELAX NG.

> is there a way to create an end-user documentation
> out of a relax ng schema? (maybe via xslt)

The answer is yes, via XSLT. I don't have a stylesheet handy, but someone
probably does. The question is, what format do you want to see? The ones I
have seen generate the web equivalent of reams of paper. But I don't doubt
that any format that can be generated from XML Schema can be generated from
RELAX NG.

Bob Foster

>
> ciao!
> florian



PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.