|
[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: internal DTD subset production
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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|
|||||||||

Cart








