Web Developer's Virtual Library: Encyclopedia of Web Design Tutorials, Articles and Discussions


WDVL Newsletter

Active Server Pages
JSP/Java Servlets
Microsoft SQL Server
Daily Backup
Dedicated Servers
Streaming Audio/Video
24-hour Support    

jobs.webdeveloper.com

Hiermenus


e-commerce
Partner With Us















Developer Channel
FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

internet.com
IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers


Viewing It With IE5, Take 1

April 12, 1999

If you haven't installed the official public release of IE 5.0, now is the time to do so. This may take awhile, especially if the Microsoft site is busy. An alternative is the TUCOWS.com site.

Internet Explorer 5 Public (non-beta) release March 18, 1999. Supports XML, XSL (with exceptions and extensions), CSS1, HTML4, VML, DHTML, MathML, and a variation of DOM.
http://www.microsoft.com/windows/ie/ (Windows) Windows and Unix only. Accepts local XML document or URLs as input. If the XML document references a local or public DTD, IE5 will parse the DTD first.
http://www.microsoft.com/unix/ie/default.asp (Unix) There is also a Mac version of IE 4.5, but it is unlikely that it supports XML and XSL.

As mentioned earlier, XML expert Tim Bray has started a multi-part review of IE 5, XML Support in IE 5.

After you have downloaded and installed IE5, try pasting an URL of an XML document in IE5's Address field, or just click on a link:

For those using IE5, you'll notice how the XML source is rendered in several colors, depending on whether it is a processing instruction, an element or attribute, the value of an attribute, a comment, etc. Minus signs to the left of elements indicate that they are collapsible. Plus signs denote expandable nodes. This is most likely implemented by a combination of CSS and DHTML. For readers that don't have IE5, have a look at this IE5 screen shot. Note that this XML rendering is the default behavior of IE5. As we will see next month, you can use CSS and/or XSL to completely control the appearance and processing of an XML document.

You may have read that, unlike with HTML browsers, XML parsers will not try to recover from incorrect markup. An XML document is either well-formed (and possibly valid), or it is toast. The parser should terminate when the first error is encountered; errors should prevent the document from being displayed.

Let's see what happens with IE5. We'll give it an XML document that contains errors and we'll see if the parser gives us reasonable error messages. Use the file Examples/collection1bugs.xml which contains four errors. Note that only one error is reported since IE5 correctly terminates the parse as soon as the first problem is encountered. You should see the following message for the first error.

The XML page cannot be displayed 
Cannot view XML input using style sheet. 
Please correct the error and then click the 
Refresh button, or try again later. 
-------------------------------------------

The standalone attribute must have the value 
'yes' or 'no'. Line 1, Position 33 

<?xml version="1.0" standalone="YES" ?>
--------------------------------^

Fix the errors one by one until the document is well-formed. (You might want to save a copy of the original bug-ridden document.) The list of bugs and their solutions appears at the end of this article.

To E or Not To E: Elements vs. Attributes
Doing It With XML, Part 1
Generating a DTD the Easy Way


Up to => Home / Authoring / Languages / XML / Tutorials / DoingIt




Jupiter Online Media: internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and Jupiter Online Media

Jupitermedia Corporate Info


Legal Notices, Licensing, & Permissions, Privacy Policy.

Web Hosting | Newsletters | Tech Jobs | Shopping | E-mail Offers