OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] External subset processing by browsers

Andrew Welch wrote:

> Should this work? (maybe a problem with that verison of Xerces)   Or
> will it never work because of some fundamental dtd concept that
> sgml'ers all treat as common knowledge?    :)

No, it shouldn't. The relevant spec text is:

In a document without any DTD, a document with only an internal DTD 
subset which contains no parameter entity references, or a document with 
"standalone='yes'", for an entity reference that does not occur within 
the external subset or a parameter entity, the Name given in the entity 
reference MUST match that in an entity declaration that does not occur 
within the external subset or a parameter entity, except that 
well-formed documents need not declare any of the following entities: 
amp, lt, gt, apos, quot. The declaration of a general entity MUST 
precede any reference to it which appears in a default value in an 
attribute-list declaration.

Your document doesn't have a DTD so it's malformed, no matter what 
parser reads it. :-(

Elliotte Rusty Harold  elharo@metalab.unc.edu
Refactoring HTML Just Published!

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS