XML Torture Test: Parsers Fail
David Brownell
db at eng.sun.com
Wed Apr 7 00:56:34 BST 1999
Chris, these aren't errors ... unless there are references
to those entities (&baseball; and &season;) in the document,
which is not currently done.
If IE5 is treating those as errors, it shouldn't.
- Dave
Chris Lovett wrote:
>
> The problem appears to be in braves.dtd. You have the following:
>
> <!ENTITY baseball SYSTEM "braves/baseball.dtd">
> <!ENTITY season SYSTEM "braves/season.dtd">
>
> and these DTD's exist - so you have general parsed entities pointing to DTD
> information which is not right.
>
> Once these two lines are removed from braves.dtd everything loads fine in
> IE5.
>
> -----Original Message-----
> From: David Brownell [mailto:db at eng.sun.com]
> Sent: Monday, April 05, 1999 11:27 AM
> To: Elliotte Rusty Harold
> Cc: xml-dev at ic.ac.uk
> Subject: Re: XML Torture Test: Parsers Fail
>
> For some reason I've seen three followups to this note, but
> not the original note ...
>
> Elliotte Rusty Harold wrote:
> >
> > >>Without intending to do so, I have devised an XML document that exposes
> > >>many problems in almost all XML validating parsers and non-validating
> > >>parsers that resolve external entity references. You will find this
> > >>torture test at
> >
> > http://metalab.unc.edu/xml/examples/players/index.xml
>
> I ran Sun's parsers and they warned of a variety of redefined
> entities ... for example, "&AaronSmall;" defined in two
> files, both "athletics.dtd" and "diamondbacks.dtd". (See
> the list below.)
>
> I did notice that this relies on correct interpretation of
> relative URIs, which I know have been handled incorrectly
> by at least two other "validating" parsers (perhaps not in
> their current releases though).
>
> - Dave
>
> ** Warning, line 1, uri
> http://metalab.unc.edu/xml/examples/players/diamondbacks.dtd
> Using original entity definition for "&AaronSmall;".
> ** Warning, line 21, uri
> http://metalab.unc.edu/xml/examples/players/indians.dtd
> Using original entity definition for "&JimPoole;".
> ** Warning, line 16, uri
> http://metalab.unc.edu/xml/examples/players/mariners.dtd
> Using original entity definition for "&GlenallenHill;".
> ** Warning, line 1, uri
> http://metalab.unc.edu/xml/examples/players/marlins.dtd
> Using original entity definition for "&AlexGonzalez;".
> ** Warning, line 20, uri
> http://metalab.unc.edu/xml/examples/players/padres.dtd
> Using original entity definition for "&KevinBrown;".
> ** Warning, line 11, uri
> http://metalab.unc.edu/xml/examples/players/pirates.dtd
> Using original entity definition for "&FreddyGarcia;".
> ** Warning, line 9, uri http://metalab.unc.edu/xml/examples/players/reds.dtd
> Using original entity definition for "&DennisReyes;".
> ** Warning, line 2, uri
> http://metalab.unc.edu/xml/examples/players/rockies.dtd
> Using original entity definition for "&BobbyJones;".
> ** Warning, line 33, uri
> http://metalab.unc.edu/xml/examples/players/tigers.dtd
> Using original entity definition for "&ScottSanders;".
> ** Warning, line 22, uri
> http://metalab.unc.edu/xml/examples/players/whitesox.dtd
> Using original entity definition for "&MarkJohnson;".
>
xml-dev: A list for W3C XML Developers. To post, mailto:xml-dev at ic.ac.uk
Archived as: http://www.lists.ic.ac.uk/hypermail/xml-dev/ and on CD-ROM/ISBN 981-02-3594-1
To (un)subscribe, mailto:majordomo at ic.ac.uk the following message;
(un)subscribe xml-dev
To subscribe to the digests, mailto:majordomo at ic.ac.uk the following message;
subscribe xml-dev-digest
List coordinator, Henry Rzepa (mailto:rzepa at ic.ac.uk)
More information about the Xml-dev
mailing list