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

Re: internal DTD subset production

  • From: Thierry Bezecourt <thbz@t...>
  • To: xml-dev@x...
  • Date: Wed, 06 Sep 2000 12:37:46 +0200

internal dtd subset
At 19:06 06/09/2000 +0900, KAZUMI Saito wrote:

>If only string between '[' and ']' is internal DTD subset,
>the "Root Element Type" is not part of DTD too.
>
>[28]  doctypedecl ::=  '<!DOCTYPE' S Name ...
>                                      ~~~~

This name is not part of the DTD, where DTD stands for "document type 
*definition*", but it is a part of the document type *declaration*. It is 
specific to your XML document, because several XML documents may refer to 
the same DTD and have different root element types (as long as they are 
declared somewhere in the DTD).

The doctype *declaration* contains the root element type, may contain a 
pointer to the external subset, and may contain the internal subset. The 
doctype *definition* is an abstraction which contains the external and 
internal subsets.

>Start point of my question is W3C DOM L2's DocumentType.internalSubset
>should include "<!DOCTYPE" or not.

The DOM spec says: "Note: The actual content returned depends on how much 
information is available to the implementation. This may vary depending on 
various parameters, including the XML processor used to build the document."

So I am afraid you need to check what your DOM processor documentation 
says, or simply to try it out on an existing document and see what it 
returns...

Also check that your DOM processor implements DOM Level 2, because this 
feature was not present in Level 1.


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.