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

RE: What is the rule for parsing XML in a namespace inside HTM

  • To: "Bullard, Claude L \(Len\)" <len.bullard@i...>,"Bjoern Hoehrmann" <derhoermi@g...>
  • Subject: RE: What is the rule for parsing XML in a namespace inside HTML?
  • From: "Joshua Allen" <joshuaa@m...>
  • Date: Wed, 14 Jul 2004 10:20:06 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcRpqRop7n5tCjidQCSq668vOw42hwAGvg5g
  • Thread-topic: What is the rule for parsing XML in a namespace inside HTML?

parsing xml in html
> VML doesn't use the <xml> tag.  It uses the namespace decl 
> and a behavior CSS decl.  
> The solution needs to work from
> those declarations, not a tag.  OTW, the right way would be 

Well, this is why I think the <xml> tag is a better solution, though.  I
don't see why VML could not have done that.  Specifying namespaced
markup (or really, any XML) directly in an HTML 4.x document is a design
flaw, IMO.

> to insist when a namespace is embedded, that the wrapper 
> document (HTML in this case) be conformant XML even if it 
> isn't XHTML should the developer insist on 
> well-formedness.   We don't need more hacks. 

This is not a bad idea.  The main issues I see here are:
A) It's a retroactive spec change for HTML user agents.  As far as HTML
4.x spec is concerned, a namespace decl is no different from any other
attribute.  So you would either have to change the spec, or come up with
a new spec for a class of "xml-aware HTML user-agents".
B) It's quite likely that the majority of web pages that contain VML are
*not* wellformed.  For example, people use <link> tags or <p> tags that
are not closed.  So even a change to the "xml-aware HTML user-agent"
behavior could be a breaking change for many users.

Also, if I were to write a spec for a class of "xml-aware HTML
user-agents", my strong preference would be to go with the <xml>
convention.  Then from that, spec how user-agents validate the contents
of <xml> block.  I think the <xml> block could have been a really nice
convention for plugging in extra validation, registering plugins based
on namespace, etc.

> What happens when we get to XAML?

This is the other side of the coin.  In the case of XAML and WordML,
both of which can contain VML, the envelope already *is* XML, and is not
processed by an HTML browser.  The user-agent is already operating in
draconian mode.  So in that case, the <sml> convention would be
unnecessary (and in fact non-wellformed).

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.