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


Solutions to Bugs and Preview of Next Month's Part 2

April 12, 1999

Solutions to Bugs

There were four errors in Examples/collection1bugs.xml, all of which are reported clearly by IE5:

  1. The processing instruction attribute standalone only accepts "yes" and "no", not "YES", since XML is case sensitive.
  2. Attribute values must always be quoted, even if numeric: Peak weeks=4 should be Peak weeks="4"
  3. Because XML is case sensitive, <Author> and </author> refer to different elements.
  4. There is a missing end tag: </Notes>

There were three errors in Examples/collection1pubbugs.xml with respect to the Examples/collection1.dtd. If you're using IE5b2 or a validating parser, they will be reported. If you're using IE5 (March 18, 1999), these errors won't be reported.

  1. The Value element is not defined in the DTD, so it is not valid.
  2. The attribute Publisher within the Published element should be publisher (lowercase), as per the DTD.
  3. Although Notes is a valid element within a Book, it is not valid for a CD, according to the DTD.

Note that none of these three errors are related to well-formedness; they all result from validating against the DTD. While IE5 does not report such errors, it will report syntax errors in the DTD itself, as we can see from Examples/collection1bugsdtd.xml:

	Invalid character found in DTD. Line 8, Position 1 

	This line should be flagged as illegal in the DTD.
	^

Doing It with XML, Part 2

We at WDVL hope you enjoyed this different kind of hands-on investigation of XML. Our tentative agenda for next month, subject to change, follows:

  • Editing it the Cheap Way: JUMBO
  • Editing it the Cheap Way: Xeena
  • Editing it the Cheap Way: XML Pro
  • Editing it the Cheap Way: XML Spy
  • DTD, The Enforcer
  • Adding a Touch of Style: CSS
  • Viewing it in IE5, Take 3
  • Adding a Bunch of Style: XSL
  • XSL Basics - a Brief Introduction
  • Viewing it in IE5, Take 4
  • To XT or Not To XT
  • Wrapping it Up: Did We Do it With XML?

Oh Mia, Amaya!
Doing It With XML, Part 1
Doing It With XML, Part 2


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