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

Re: "Introducing MicroXML, Part 1: Explore the basicprinciples

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: Peter Flynn <peter@silmaril.ie>
  • Date: Tue, 26 Jun 2012 03:06:26 -0400

Re:  "Introducing MicroXML
Peter Flynn scripsit:

> "Whitespace in attributes is not normalized in MicroXML as it is in
> XML."
>
> While I don't see this as a particular problem (at least for my own
> work), I'm curious as to why this approach was chosen. It certainly
> fits the principle of least interference...was there some idea that
> web designers might want to embed rather more in an attribute than
> most of us would expect?

Since there is no DTD, the only normalization you would get is changing
line endings inside attribute values to spaces.  This was primarily
to allow an attribute with space-separated values to be divided across
multiple lines, back in the day of 80-column maximum lines.

Quoth Tim Bray here on xml-dev in 2003:

"We screwed up in letting attribute normalization into XML.  It still
boggles my mind in retrospect that during the discussions back in 96-97,
nobody piped up to say 'why are you morons doing this?'  Because we
probably would have said 'D'oh, right, lose it.'  Sigh."  said it should
have been removed from XML in the first place.

Quoth James Clark in his blog:

"I think this has to go.  HTML5 does not do attribute value
normalization. This means that it is theoretically possible for a
MicroXML document to be interpreted slightly differently by an XML
processor than by a MicroXML processor.  However, I think this is
unlikely to be a problem in practice.  Do people really put newlines in
attribute values and rely on their being turned into spaces?  I doubt it."
it from MicroXML.

-- 
There is / One art                      John Cowan <cowan@ccil.org>
No more / No less                       http://www.ccil.org/~cowan
To do / All things
With art- / Lessness                     --Piet Hein


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


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.