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


insidehtml
Bullard, Claude L (Len) wrote:

> The subject says it.   If HTML has an XML 
> namespace inside it, is the Draconian parse 
> rule still in effect?
> 

Of course, the question is, what is it that you have when you do this? 
Not HTML, although probably most browsers will render the PCDATA in the 
unknown elements.  HTML does not know about namespaces or xml.  If it's 
xhtml, it will not easily accomodate your add-in xml data.

Supposing that you have a way to strip out the xml and feed it to an xml 
parse, all the usual xml parsing rules (draconian, if you like) would 
apply to that parse.

> I can think of some wrinkles here, but they 
> all lead to the conclusion that it is a bad 
> idea to use XML inside HTML because the rules 
> aren't the same.
> 

Not only that, but browsers tend to apply different rule depending on 
what parse mode they are in - like strict or quirks mode.  So you might 
not even get consistent results from the same browser if it got kicked 
into one or the other mode.


> And that could be a reason to deprecate HTML 
> altogether.
> 

Maybe, but it doesn't look like that is going to be happening anytime soon.

Cheers,

Tom P

-- 
Thomas B. Passin
Explorer's Guide to the Semantic Web (Manning Books)
http://www.manning.com/catalog/view.php?book=passin

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.