RELAX NG

RELAX NG

4.0 1
by Eric van der Vlist
     
 

View All Available Formats & Editions

As developers know, the beauty of XML is that it is extensible, even to the point that you can invent new elements and attributes as you write XML documents. Then, however, you need to define your changes so that applications will be able to make sense of them and this is where XML schema languages come into play. RELAX NG (pronounced relaxing), the Regular

Overview

As developers know, the beauty of XML is that it is extensible, even to the point that you can invent new elements and attributes as you write XML documents. Then, however, you need to define your changes so that applications will be able to make sense of them and this is where XML schema languages come into play. RELAX NG (pronounced relaxing), the Regular Language Description for XML Core--New Generation is quickly gaining momentum as an alternative to other schema languages. Designed to solve a variety of common problems raised in the creation and sharing of XML vocabularies, RELAX NG is less complex than The W3C's XML Schema Recommendation and much more powerful and flexible than DTDs.RELAX NG is a grammar-based schema language that's both easy to learn for schema creators and easy to implement for software developers In RELAX NG, developers are introduced to this unique language and will learn a no-nonsense method for creating XML schemas. This book offers a clear-cut explanation of RELAX NG that enables intermediate and advanced XML developers to focus on XML document structures and content rather than battle the intricacies of yet another convoluted standard.RELAX NG covers the following topics in depth:

  • Introduction to RELAX NG
  • Building RELAX NG schemas using XML syntax
  • Building RELAX NG schemas using compact syntax, an alternative non-XML syntax
  • Flattening schemas to limit depth and provide reusability
  • Using external datatype libraries with RELAX NG
  • W3C XML Schema regular expressions
  • Writing extensible schemas
  • Annotating schemas
  • Generating schemas form different sources
  • Determinism and datatype assignment
and much more.If you're looking for a schema language that's easy to use and won't leave you in a labyrinth of obscure limitations, RELAX NG is the language you should be using. And only O'Reilly's RELAX NG gives you the straightforward information and everything else you'll need to take advantage of this powerful and intelligible language.

Product Details

ISBN-13:
9781449315405
Publisher:
O'Reilly Media, Incorporated
Publication date:
12/15/2003
Sold by:
Barnes & Noble
Format:
NOOK Book
Pages:
508
File size:
2 MB

Customer Reviews

Average Review:

Write a Review

and post it to your social network

     

Most Helpful Customer Reviews

See all customer reviews >

RELAX NG 4 out of 5 based on 0 ratings. 1 reviews.
Guest More than 1 year ago
By now, XML is entrenched as the most common and flexible standard for data interchange. There is no real dispute over this. But in the quick uptake of XML, the DTDs rapidly showed their shortcomings. So a more expressive schematic standard was hurriedly put together, under the generic name of XML Schema. But, as van der List points out, some users took issue with the complexity and verbosity of XML Schema. An alternative emerged, Relax NG, which is described in detail here. The author's assessment that Relax is in fact cleaner and simpler to use than XML Schema seems correct. I cannot find technical flaws in his argument. There are two problems, though. XML Schema has greater acceptance. Certainly aided by the very generic and definitive nature of its name. While this may not be quantifiable, it certainly does not help Relax. For example, think of 'Microsoft Windows'. In common parlance, this is elided to 'Windows'. So if you say the latter, in referring to any computer GUI, some might assume you mean the Microsoft version. Very aggravating! There is some of this going on here. The other problem is that both approaches have essentially the same functionality. While there may be some things you can do in Relax that are not possible in the other, this may not be enough. Ditto for the simpler syntax of Relax. Remember IBM's OS/2 versus Microsoft Windows? Most observers with no pony in that race gave an overall technical advantage to OS/2. But it was driven to extinction. A similar fate might befall Relax.