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

Re: Quiz: is this XML well-formed?

  • From: Marcus Reichardt <u123724@gmail.com>
  • To: "C. M. Sperberg-McQueen" <cmsmcq@blackmesatech.com>
  • Date: Fri, 5 Feb 2021 12:33:17 +0100

Re:  Quiz: is this XML well-formed?
Thanks Michael Sperberg-McQueen for sharing that bit of XML/ERB history.

Digging a bit deeper into old posts to this very mailing list, I found
that various whitespace issues were discussed at great length in
http://lists.xml.org/archives/xml-dev/199708/threads.html .
However, these seem to be about whitespace in content rather than
attribute specifications, and in particular about a replacement for
SGML's traditional newline (RE/RS) handling rules consistent with
XML's DTD-lessness/-neutrality (remember traditional SGML considers
whitespace around start-/end-tag elements as non-significant "layout"
if appearing all on a line of it's own, for declared elements ie not
those included via content exceptions). And also, in fact convenience
for line-oriented Unix tools and Perl was hotly debated.

Other than that, the earliest mention of the issue on this mailing
list appears to be in
http://lists.xml.org/archives/xml-dev/199703/msg00083.html where the
relevant BNF grammar rule reads

    Markup ::= '<' Name (S Name Eq QuotedCData)* S? '>'   /* start-tags  */
                 ...

So my guess would be that the requirement for space before an
attribute name simply slipped into a first draft for XML because it
was more compact and unambiguous than, say

    Markup ::= '<' Name (S (Name Eq QuotedCData S?))* S? '>'

and was never much of a topic for discussion thereafter. Notably, it
isn't mentioned in James Clark's "Comparison of SGML and XML"
(http://www.jclark.com/xml/NOTE-sgml-xml.html).

Note that SGML also allows

   <test att =  "x" otheratt = "y">

(ie with spaces before/after "=") and at least libxml2 (xmllint)
happily accepts that syntax without complaining.

From the same era, I'd also like to share Paul Prescott's answer to
"Must XML be SGML-compatible?", as timely as ever:
http://lists.xml.org/archives/xml-dev/199710/msg00189.html

Regards,
M. Reichardt
sgmljs.net


[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.