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

RE: Syntax Sugar and XML information models

  • From: John Aldridge <john.aldridge@i...>
  • To: xml-dev <xml-dev@l...>
  • Date: Thu, 29 Mar 2001 11:34:38 +0100

RE: Syntax Sugar and XML information models
At 21:13 28/03/2001 -0500, Michael Champion wrote:
>So, does ANYBODY care about round-tripping a) the specific quote characters
>around attribute values, b) the order of attributes; c) character entity
>references for characters that are in the specified character set d) the two
>diferent syntaxes for empty elements, .... ?

Yes, but only sometimes.  I _do_ mind if editors unpredictably change these 
things, because I'm going to store XML data in RCS, and expect rcsdiff, 
rcsmerge & the like to do sensible things.

Actually, from this point of view, there are two workable solutions:

(a) Editors don't change syntax sugar, except when the user edits something 
at or near the place in question, or
(b) Editors all write a _standard_ normal form (i.e. not just a normal form 
of their own choosing)

I've been here with HTML before, for example:  the HTML editors AOLpress 
and FrontPage Express both normalise the HTML they write in some respects, 
but to different rules.  So if some developers edit technical documentation 
using AOLpress and others prefer FrontPage Express, this makes the RCS 
differencing tools essentially useless.

Whatever, I prefer (a), for much the same reasons as I wouldn't want to use 
a "C" source code editor which always pretty-printed its 
output.  Indentation and the like should be under my control.

You said it yourself...

>So, there seem to be two classes of things that the InfoSet doesn't cover:
>the "mere syntax" that no reasonable application (except maybe a "diff")
>would care about

except that I think this is an important application, not one which should 
be swept under the carpet.

However...

I'm in full support of the goals of the infoset:  I want agreement on the 
significant information content of an XML file.  The XML spec itself 
started on this road in various areas, such as attribute value 
normalization -- the infoset is finishing the job.

It's just that some applications need to operate directly on the 
representation, and not just on the information.

-- 
Cheers,
John


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.