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

Re: Xml is _not_ self describing


self describing words
> - An XML document without any related DTD is not self-describing. It
merely
> transmit data about a labeled tree, there is no meta-data available. You
can
> check its well-formedness, but for that you just apply external
> well-formedness rules to the document.
> - An XML document with an embedded DTD is self-describing, for computer
that
> know about XML and DTDs, and for validation purposes. The document itself
> provides information on how it has to be processed to be declared valid in
> its own sense.

I've forgotten this :

- An XML document, with or without an associated DTD, tends to be
self-describing for the human eye, provided that the reader understand the
tag and attribute names (which may require a translation work). But then
again, the reader has a human intelligence, and still can be puzzled by some
bad designed XML documents ("I've got two <adress> elements in this
<invoice>. Which one is the billing address, and which one is the delivery
address ?"), or by its sheer complexity (imagine yourself trying to figure
out what a XSL/T stylesheet means without knowing about XSL/T and XPath.
Please, be honest :). Like someone briliantly wrote in this thread, the
meaning does not come from the XML, but from the natural language used in
the tag names. Yet, even for a human mind, XML documents that are truly
self-describing (no "holes", no ambiguity) are a rare thing.

> - However, outside the bounds of very precise algorithms (validation), an
> XML document with an embedded DTD is not self-describing for computers in
a
> more general processing context. Nothing tells the computer about how the
> data should be processed. The document has no control over its own fate.
An
> invoice document is not describing how it should be processed by an
> accounting system. The information comes from elsewhere.



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.