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

Standalone declaration (was Re: diable <!DOCTYPE...>)

  • From: Mike Brown <mike@s...>
  • To: xalan-dev@x...
  • Date: Fri, 24 Aug 2001 11:18:41 -0600 (MDT)

doctype standalone
On xalan-dev, Tom Bradford wrote:
> I thought that if you added standalone="yes" to the <?xml?> prefix, the
> parser is supposed to avoid resolving the DTD.

(I'm cc'ing this to xml-dev, where followups should go)

The XML spec is a little vague on what the parser is supposed to do with
the standalone declaration. The spec doesn't actually say anything about 
parser behavior as far as standalone is concerned.
 
It just says that the document can indicate that declarations in its
external DTD subset will not affect the content of the document
(standalone="yes"), and that it is a validity constraint that this
assertion be true.

One wonders how the validity constraint can be tested without looking at
the external declarations. I'm thinking of how to know about default
attribute values; the presence of references to undeclared entities would
be enough to signal a violation.

Tim Bray's annotated XML spec explains "Neither the presence of the SDD
nor its value has any effect on the required behavior of the XML processor
or the application. (In fact, due to what is probably an error in the
specification, the processor is not even required to inform the app as to
its value). It is merely a statement of fact about the document, so that
if any downstream application needs to be really sure that it is seeing
the document exactly the same way as another application that used the
DTD, it will know when it has to go fetch and read the DTD."

Anyway... topic for another day.

   - Mike
____________________________________________________________________________
  mike j. brown, fourthought.com  |  xml/xslt: http://skew.org/xml/
  denver/boulder, colorado, usa   |  personal: http://hyperreal.org/~mike/

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.