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

Re: HXTML5

  • From: John Cowan <cowan@mercury.ccil.org>
  • To: Stephen Green <stephengreenubl@gmail.com>
  • Date: Wed, 23 Feb 2011 14:40:59 -0500

Re:  HXTML5
Stephen Green scripsit:

> Elements do not have to have closing tags (rules determine where
> missing tags would have been).

Such rules are *always* going to make the language more complicated, but
no less rigid, than XML is.  In XML the rule is simple: if the tags aren't
matched and balanced, it's not XML.  The HTML rules co-evolved over many
years, depending on the HTML produced by broken tools and naive users,
the rules given by the SGML schema and the basic recovery strategies of
SGML, and the behavior of browsers.  Trying to make up rules to fix XML
today is pretty much trying to invent a kludge in advance of usage.

Show me ill-formed XML plus what the user meant it to mean, and I
can painfully figure out some rules for repairing generic XML, maybe.
Without that, I can't even start, which is why TagSoup has a schema that
defines HTML to it.

> Empty elements do not have to have a backslash e.g. <h> above, in the
> spirit of HTML. They are presumed to be empty as determined by parsing
> rules, as with HTML.

The rule in HTML is that there is a fixed list of element names with
this behavior.  That isn't flexible enough for XML.

> Attribute values do not have be surrounded by quotes.

Except when they do, and that's a more complicated rule than
"they always do", the XML rule.

-- 
John Cowan                                cowan@ccil.org
At times of peril or dubitation,          http://www.ccil.org/~cowan
Perform swift circular ambulation,
With loud and high-pitched ululation.

  • References:
    • HXTML5
      • From: Stephen Green <stephengreenubl@gmail.com>

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