Solutions to Bugs and Preview of Next Month's Part 2
April 12, 1999
There were four errors in
Examples/collection1bugs.xml,
all of which are reported clearly by IE5:
- The processing instruction attribute
standalone
only accepts "yes" and "no",
not "YES", since XML is case sensitive.
- Attribute values must always be quoted, even if numeric:
Peak weeks=4 should be Peak weeks="4"
- Because XML is case sensitive,
<Author>
and </author> refer to different elements.
- 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.
- The
Value element is not defined in the DTD,
so it is not valid.
- The attribute
Publisher within the
Published element should be publisher
(lowercase), as per the DTD.
- 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
|