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

Re: Goodbye to textual applications?


Re:  Goodbye to textual applications?
Andrew Kuchling wrote:


> But is a DTD-less XML still good for writing up novels and recipes?
> DTDs provide just about the right level of strictness for textual
> data, where ordering of elements is often all that you need and the
> readability of the schema matters.  I'm a bit concerned that dropping
> DTDs will mean the end of such applications.  If you take away DTDs,
> what is there to replace them? 


<rave>
The RELAX NG schema language is a very suitable substitute for
DTDs in such applications.

RNG provides a much richer degree of structural validation:
it can easily handle things like "either an attribute or a child
element, but not both", or multiple content models for elements
depending on their context of occurrence, and it resuscitates the SGML
"&" connector in a new and greatly improved flavor.  RNG uses a "plug-in
datatypes" metamodel for applications that care about datatypes.

There are in practice three surface syntaxes for RNG: the official one,
which is a quite readable XML instance; an informal BNF-like one, which
is even easier for humans to read and write; and XML DTD syntax :-).
The last two syntaxes are supported by open-source converters to
the official syntax.

More at http://www.relaxng.org .  Read the tutorial, not the
specification, unless you enjoy formalisms.
</rave>

-- 
Not to perambulate             || John Cowan <jcowan@r...>
    the corridors               || http://www.reutershealth.com
during the hours of repose     || http://www.ccil.org/~cowan
    in the boots of ascension.  \\ Sign in Austrian ski-resort hotel


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.