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

RE: Why is there little usage of XML on the "visible Web"?


html visibility

Semantic question, if the XSLT transform is performed on the Web server or other another middle server in the production path of the making the visible page is the XML use Visible or Hidden? The end result is the same visible XHTML.  It is no more hidden from the end user than the HTML is hidden by the rendering of the browser.

 

If the point is that no one hand codes XML, XSLT to produce a static XHTML pages you are probably right, but hand coded static pages are a small percent, by volume, of Visible Web use.

 

On the other hand XML use in the production path of dynamic pages is high.  The vagaries of XSLT support in the browsers limits the usefulness of client side XSLT for wide audiences.

 

The static page use case is limited to cases where there is an XML data source that has multiple uses including a direct browser visibility need.  

 


From: Costello, Roger L. [mailto:costello@m...]
Sent: Sunday, July 16, 2006 8:07 AM
To: xml-dev@l...
Subject: Why is there little usage of XML on the "visible Web"?

 

Hi Folks,

 

DEFINITION - VISIBLE WEB

 

By “visible Web” I mean the portion of the Web that produces information intended for human consumption.  In particular, in this message I will focus on the portion of the Web that produces information to be consumed by humans via a browser. 

 

DEFINITION – HIDDEN WEB

 

The “hidden Web”, on the other hand, is the portion of the Web that produces the information intended to be consumed by machines (i.e., machine-to-machine interaction).

 

USING XML ON THE VISIBLE WEB VERSUS NOT USING XML ON THE VISIBLE WEB

 

Below are two examples to demonstrate what I mean by using XML on the visible Web versus not using XML on the visible Web. 

 

Note: I realize that XHTML is XML, but for this discussion when I refer to “XML” I am not referring to XHTML. 

 

EXAMPLE: USING XML ON THE VISIBLE WEB

 

Suppose that you have a Web site where you make available your grocery list to anyone with a browser.  “Using XML on the visible Web” means that you create an XML document that contains the raw grocery list, and a separate document (e.g., XSLT) which transforms the raw grocery list into a visually appealing form.  Here is grocery.xml:

 

<?xml version=“1.0”?> “

<?xml-stylesheet type=“text/xsl” href="“grocery.xsl”?>

<grocery-list>

    <fruit>Orange</fruit>

    <meat>Chicken</meat>

    <vegetable>Corn</vegetable>

</grocery-list>

 

Here is the URL to your grocery list resource:

 

    http://www.example.org/food/grocery-list

 

A browser client that issues this URL will receive grocery.xml, and then it will dynamically transform the XML into HTML using grocery.xsl 

 

Let’s imagine that grocery.xsl displays the grocery items as an unordered bulleted list, and so the XML is rendered by the browser like this:

 

  • Orange
  • Chicken
  • Corn

 

Your Web site is employing XML on the visible Web!

 

EXAMPLE: NOT USING XML ON THE VISIBLE WEB

 

Now let’s contrast the above example with not using XML on the visible Web, instead, using HTML.  A browser client that issues the above URL will receive from your Web site this HTML:

 

<HTML>

    <body>

        <ul>

            <li>Orange</li>

            <li>Chicken</li>

            <li>Corn</li>

        </ul>

    </body>

</HTML>

 

The browser immediately renders the HTML.  The same bulleted list shown above is displayed.

 

Your Web site is not employing XML on the visible Web!

 

ADVANTAGES OF USING XML ON THE VISIBLE WEB

 

1. The tags <grocery-list>, <fruit>, <meat>, <vegetable> are more “semantically rich” than the tags <ul> and <li>.  Thus, it seems plausible that a search tool could recognize that the above XML document is not relevant to a query for, say, orange cars.  But the search tool would not be able to recognize that the above HTML document is not relevant.  So, using XML on the visible Web has the potential to facilitate more accurate searches.

 

2. The job of styling the information is offloaded to the clients.  The Web server is relieved of the transformation burden and thus can potentially process more requests.

 

ASSERTION #1

 

There is little usage of XML on the visible Web.

 

Below are several assertions which attempt to explain why there is little usage of XML on the visible Web.

 

ASSERTION #2

 

There is not the necessary “critical mass” of browsers which support the styling of XML using either CSS or XSLT.

 

ASSERTION #3

 

Advantage 1 listed above is a myth, i.e., <grocery-list>, <fruit>, <meat>, <vegetable> is not more “semantically rich” than <ul> and <li>.  In fact, the opposite is the case.  The tags <ul> and <li> have clear semantics (i.e., an unordered list of items) that are understood by every browser on the planet.  Conversely,   <grocery-list>, <fruit>, <meat>, <vegetable> have vague semantics, are understood only by English-speaking people, and probably zero applications on the visible Web would be able to do anything useful with the tags or the data within the tags.

 

ASSERTION #4

 

Advantage 2 listed above is also an advantage of HTML, i.e., the data is contained in an HTML document and the presentation instructions are contained in a separate CSS document.

 

ASSERTION #5

 

XML is not appropriate for the visible Web.  XML will continue to have limited usage on the visible Web.  As Len Bullard says, “XML is plumbing”. 

 

ASSERTION #6

 

On the visible Web, HTML will continue to be the primary markup language for the foreseeable future.

 

QUESTION #1

 

Which assertions do you accept, and which do you reject?  For those assertions you reject, why?

 

QUESTION #2

 

Suppose that you are in charge of a Web (you control the funding of all the Web sites).  Would you issue this mandate to all the Web site developers: “All information on the visible Web must be in XML”?  If you would issue this mandate, why?

 

QUESTION #3

 

Do you think that XML should have a more prominent role on the visible Web?  If so, how would you stimulate greater usage of XML on the visible Web?

 

/Roger

 

smime.p7s


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.