[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 namespaceinside HTML


svg inside html
At 10:06 PM -0700 7/13/04, Joshua Allen wrote:

>Well, the "enforced by the browser" is what I'm having trouble with.
>Most XML is not intended to be processed by a web browser.  HTML is for
>rendering in user-agents, XML is for processing by some data interchange
>program without even a UI, importing into a contacts database, consuming
>in a news aggregator, etc.  I think it would be overkill to expect a web
>browser to enforce my PurchaseOrder schema just as it would be overkill
>to expect the Biztalk app to enforce HTML rules on a payload.

You persist in seeing this as two different things, which is twice as 
much work.  People want to read web pages in their browsers. They 
also want to be able to process it with off-the-shelf and custom 
tools. It's very useful to import web pages into contacts databases, 
consume web pages in a contacts database, and more. There's no reason 
web poages should be limited to human browsing exclusively. Machine 
processing is greatly facilitated if the web pages are well-formed. 
Validity is not required though. I agree there's no reason for the 
browser to enforce some purchase order schema. That doesn't mean the 
purchase order document, in either XML or XHTML, shouldn't be 
well-formed.

>In cases where you have something like VML or SVG which actually *is*
>intended to be rendered in a user agent, then I agree.  (And I realize
>this is your specific case -- I am just arguing against the general
>case)  But I don't see why an actual HTML *envelope* would have to be
><?xml...?> in order to embed payloads that were intended to be pulled
>out and parsed with an XML processor.  I think something like the <xml>
>tag hack that IE uses is just fine, and it would be ideal if all XML
>payloads such as SVG and VML are embedded in HTML 4.x using this
>convention.  You could additionally stipulate that the browser should
>enforce wellformedness inside the <xml> tags.  That would be a good
>convention and would deserve support, IMO.

The problem here is you're assuming only some of the content should 
be made accessible to XML parsers and machines. It's far more useful 
to make all of it accessible. Don't place arbitrary limitations on 
what the machines can consume. Don't require page authors to provide 
the same information twice, once for humans and once for machines. 
Let both the humans and machines consume the same data.

-- 

   Elliotte Rusty Harold
   elharo@m...
   Effective XML (Addison-Wesley, 2003)
   http://www.cafeconleche.org/books/effectivexml
   http://www.amazon.com/exec/obidos/ISBN%3D0321150406/ref%3Dnosim/cafeaulaitA

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.