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

Re: Non-infoset

  • To: xml-dev@l...
  • Subject: Re: Non-infoset
  • From: Alessandro Triglia <sandro@m...>
  • Date: Sun, 10 Apr 2005 21:54:51 +0200 (CEST)

Re: Non-infoset

Perhaps one key aspect of the debate on "binary XML" is which stage of the document lifecycle one looks at.  

The XML syntax has a lot of options and requires the creator to make certain choices (for example, one must choose the attribute value delimiter; one must decide whether and where to use CDATA sections; one must decide whether and where to use general entity references).  Some of those choices carry information that is relevant to the creator, others don't.  

However, a reader cannot always tell which of those choices are relevant and which aren't.  I think this is one big reason for the opposition to the concept of "binary XML".  (If you don't know which information is relevant in a document, you should assume that all the bits are relevant, no?)  

However, the creator of an XML document is supposed to know (because she's the creator) which of those choices convey relevant information and which don't, and therefore, if given an alternative representation of the Infoset (such as Fast Infoset), she may be totally happy with it, despite the fact that it prevents the use of general entities and the choice between apostrophe and quote, etc.

I think I am not referring to the original creator only.  Much of the above applies to a "transformer" of a document as well.  A transformer needs to have an understanding of which information in an XML document is relevant and which isn't.  (For example:  Am I allowed to change the use of whitespace in start tags when I transform the document?  Am I allowed to change the use of numeric character references?  Am I allowed to change the way general entities are used?  Am I allowed to reorder the existing attributes of an existing element?)  

In case a transformer knows that she *is* allowed to make those changes (to the non-infoset), the infoset is all that matters to her, whether or not she calls it that way.  If this is the case, the output of the transformation might as well be a fast infoset document -- the "stripping of the non-infoset" would cause no loss of (relevant) information.  

Alessandro





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.