[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: External subset processing by browsers

  • From: Elliotte Harold <elharo@m...>
  • To: Andrew Welch <andrew.j.welch@g...>
  • Date: Mon, 08 Dec 2008 06:49:49 -0800

Re:  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@m...
Refactoring HTML Just Published!
http://www.amazon.com/exec/obidos/ISBN=0321503635/ref=nosim/cafeaulaitA


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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.