spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / experts / xml / column4

The Browser War continued: XML support in IE and Mozilla

Information Technology Auditor (PA)
Next Step Systems
US-PA-Wayne

Justtechjobs.com Post A Job | Post A Resume
Developer News
Google Chrome Playing Catch-Up on Extensions
Open Solutions Alliance Gets New Leadership
Red Hat Spacewalk Expands Linux Management

The CSS2 solution for Mozilla

This whole book example was inspired by the Mozilla Amazon Search Example, so if you have a copy of Mozilla handy the link before brings you to a more flashy version of this example. IE5 users will only see a blank page because some of the CSS elements are not understood by this browser or can only be applied to HTML and not XML elements, or both. If you view the source you can at least see the raw XML. Not much of a help, though.

The CSS solution for Both Browsers

Simplifying the Mozilla examples yields some results in both browsers, by sticking to simple CSS1 elements:
Books {
  display: block;
}
Book {
  display: list-item;
  float: none;
  border: none;
  background: inherit;
}
Title {
  display: block;
  font-weight: bold;
  color: blue;
  text-decoration: underline;
  cursor: pointer;
}
Author {
  display: block;
  font-style: italic;
}
Synopsis {
  display: none;
}
ListPrice {
  display: none;
  text-align: right;
  padding-right: 15px;
  text-decoration: line-through;  
}
Price {
  display: block;
  color: rgb(20,100,0);
  font-weight: bold;
  text-align:left; 
}
ISBN {
  display: block;
  font-family: monospace;
  font-size: 8pt;
}
In this style sheet most elements are rendered as block items, the exceptions being Book which is a list item, and ListPrice and Synopsis which will be hidden from the viewer. Simple font attributes are applied to different book elements. See the output. Note that the links are not active in IE because it does not support X-Link. To make this work you would have to replace these links with HTML anchor elements already in the source.

next page

http://www.internet.com

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info

Legal Notices, Licensing, Reprints, Permissions, Privacy Policy.
Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Whitepapers and eBooks

Symantec Whitepaper: Converging System and Data Protection for Complete Disaster Recovery
Intel Whitepaper: Comparing Two- and Four-Socket Platforms for Server Virtualization
IBM Solutions Brief: Go Green With IBM System xTM And Intel
HP eBook: Simplifying SQL Server Management
IBM Contest: Are You the Next Superstar? Join the "Search for the XML Superstar" Contest to Find Out
Intel PDF: Quad-Core Impacts More Than the Data Center
Intel PDF: Virtualization Delivers Data Center Efficiency
Go Parallel Article: PDC 2008 in Review
Avaya Article: Communication-Enabled Mashups: Empowering Both Business Owners and IT
Intel Whitepaper: Building a Real-World Model to Assess Virtualization Platforms
PDF: Intel Centrino Duo Processor Technology with Intel Core2 Duo Processor
Microsoft Article: Build and Run Virtual Machines with Hyper-V Server 2008
  Go Parallel Article: Q&A with a TBB Junkie
IBM Whitepaper: Innovative Collaboration to Advance Your Business
Internet.com eBook: Real Life Rails
IBM eBook: The Pros and Cons of Outsourcing
Internet.com eBook: Best Practices for Developing a Web Site
IBM CXO Whitepaper: The 2008 Global CEO Study "The Enterprise of the Future"
Avaya Article: Call Control XML in Action - A CCXML Auto Attendant
IBM CXO Whitepaper: Unlocking the DNA of the Adaptable Workforce--The Global Human Capital Study 2008
Adobe Acrobat Connect Pro: Web Conferencing and eLearning Whitepapers
Symantec Whitepaper: Comprehensive Backup and Recovery of VMware Virtual Infrastructure
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
webref The latest from WebReference.com Browse >
Popular JavaScript Framework Libraries: An Overview - Part 3 · Accessing Your MySQL Database from the Web with PHP · Working with the DOM Stylesheets Collection
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Review: Lenovo ThinkPad SL300 · OCZ PC3-10666 Gold 2x1GB Review · Apple Recommends Antivirus for Macs


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

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