[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: "Bjoern Hoehrmann" <derhoermi@g...>
  • Subject: RE: What is the rule for parsing XML in a namespace inside HTML?
  • From: "Dare Obasanjo" <dareo@m...>
  • Date: Tue, 13 Jul 2004 22:58:09 -0700
  • Cc: <xml-dev@l...>
  • Thread-index: AcRpX367Gu4TWjtGSben5Pf8AK3RjgABtylS
  • Thread-topic: What is the rule for parsing XML in a namespace inside HTML?

xslt inside html
The only major benefit people have been able to point to for moving to XHTML is that it makes it easier to screen scrape your site since one can use XML tools like XQuery, XSLT, DOM, SAX, etc. My response and that of Joshua is that in such cases you are better off just exposing the XML data you want people to consume without to "noise" of HTML and styling it for Web browsers. This is the ENTIRE point the of why the W3C created XML. This is the only reason XML is a W3C spec. Go read http://www.sun.com/980310/xml/#SGML%20on%20the%20web and http://xml.coverpages.org/burnardBelux0.html#cznk1. 
 
>GameSiteML for game sites, KitchenML for sites on cooking, FridgeML
if I want to browse the content of my refrigerator, AmazonML for the
Amazon homepage, etc.pp. along with incredible amounts of XSLT
transformations so that my mobile phone's battery is empty after
browsing a few sites? 
 
Yes. Why shouldn't each site provide me with pertinent data in the format that is most useful to it instead of adding the extra envelope of HTML. Also why do you think your mobile phone would apply the same stylesheets? Do you think an RSS reader viewing Mark Pilgrim's feed actually applies the CSS or XSLT stylesheets each time it fetches the feed? 
 
If you just want presentation, use HTML. If you want to provide data for others to consume mechanically then provide them with XML data that best meets their needs instead of munging it into some frankenstein HTML envelope and sprinkling the XML magic pixie dust over it and calling it XHTML. 
 
-- 
PITHY WORDS OF WISDOM
There are always two solutions to the problem: yours and the boss's. 

________________________________

From: Bjoern Hoehrmann [mailto:derhoermi@g...]
Sent: Tue 7/13/2004 10:00 PM
To: Dare Obasanjo
Cc: xml-dev@l...
Subject: Re:  What is the rule for parsing XML in a namespace inside HTML?



* Dare Obasanjo wrote:
>It seems terribly obvious to me. If you want to make your
>site truly machine friendly then just expose XML and style
>it for Web browsers with CSS or XSLT instead of the gross
>hack of munging everything into XHTML. For example, look
>at Mark Pilgrim's Atom feed at http://diveintomark.org/xml/atom.xml.

That also works the other way round, see e.g. the W3C homepage and
<http://www.w3.org/2000/08/w3c-synd/>. So you are saying that we
should author our web pages using Atom documents that include escaped
HTML fragments? Or are you saying that we should have Atom for news,
GameSiteML for game sites, KitchenML for sites on cooking, FridgeML
if I want to browse the content of my refrigerator, AmazonML for the
Amazon homepage, etc.pp. along with incredible amounts of XSLT
transformations so that my mobile phone's battery is empty after
browsing a few sites? Could you then explain how that is machine-
friendly? Or good for authors?



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.