The Browser War continued (3/6) - exploring XML | WebReference

The Browser War continued (3/6) - exploring XML

The Browser War continued: XML support in IE and Mozilla

And the rest of the pack?

Opera

I could not find anything related to XML on the Opera Web site. I still have an outstanding request for comment with them, I will keep you posted with the results.

Lynx

The same picture here. XML support shows up on one of the wish lists for Lynx but no concrete plans could be found. I am also waiting for a reply from the maintainer of this wishlist.

Emacs W3

Same here. I have an outstanding request with the maintainer of the Emacs W3 Web site.

The Cross-Browser Challenge

Let us look at how your favorite online book store could put XML to good use for presenting a list of books to your favorite Web browser.

The list of books

First we need to define a set of tags for books, for instance:
<?xml version="1.0"?>
<?xml-stylesheet href="books.css" type="text/css"?>
<Books xmlns:html="http://www.w3.org/TR/REC-html40">
  <Book>
    <BookCover><html:img src="book.gif" width="37" height="30" /></BookCover>
    <Title xml:link="simple" show="replace" href="mybook">My book</Title>
    <Author>Me</Author> <ISBN>1111111111</ISBN>
    <Synopsis>This is my book.</Synopsis>
    <ListPrice>$12.95</ListPrice> <Price>$10.36</Price>
  </Book>
  <Book>
    <BookCover><html:img src="book.gif" width="37" height="30" /></BookCover>
    <Title xml:link="simple" show="replace" href="yourbook">Your book</Title>
    <Author>You</Author> <ISBN>22222222222</ISBN>
    <Synopsis>And this is your book.</Synopsis>
    <ListPrice>$15.95</ListPrice> <Price>$12.76</Price>
  </Book>
  <Book>
    <BookCover><html:img src="book.gif" width="37" height="30" /></BookCover>
    <Title xml:link="simple" show="replace" href="ourbook">Our book</Title>
    <Author>We</Author> <ISBN>3333333333</ISBN>
    <Synopsis>And finally our book.</Synopsis>
    <ListPrice>$12.95</ListPrice> <Price>$10.36</Price>
  </Book>
</Books>
Every book has an image of the cover, and the usual attributes like title, author, ISBN number, synopsis, a list price and the real price. We include the HTML namespace for images, and we use X-Link simple links for referring to (non-existing) detailed book descriptions.

next page

http://www.internet.com


Produced by Michael Claßen
All Rights Reserved. Legal Notices.

URL: http://www.webreference.com/xml/column4/3.html
Created: Jan. 17, 2000
Revised: Jan. 17, 2000