W3C home > Mailing lists > Public > www-dom@w3.org > April to June 1999

Q: DocType location (Level 1 Core)

From: Sadao YASHIRO <sada@flab.fujitsu.co.jp>
Date: Fri, 07 May 1999 11:08:47 +0900
Message-Id: <9905070208.AA01558@anima.flab.fujitsu.co.jp>
To: www-dom@w3.org
I am now reading "W3C DOM REC-LEVEL-1-CORE" document. 
Then, I have one question about the location of "DocumentType" object.

Could someone show me how "Document" object must hold 
the "DocumentType" object?

In the current DOM spec, we can see two different explanations.

At first, at the DocumentType section, that was written
as follows:

:Each Document has a doctype attribute whose value is either null or
: a DocumentType object.

But, at the "1.1.1. The DOM Structure Model", It tells:

:The node types, and which node types they may have as children,
:  are as follows:
:   Document -- Element (maximum of one), ProcessingInstruction,
:               Comment,  DocumentType
:                         ^^^^^^^^^^^^

So, Should "DocumentType" object be Document's
1)child ?
2)attribute ?
3)both child and attribute ?
4)either child or attribute ?

Thanks in advance.

Best regards,


  ALONE  (株)富士通研究所 情報サービス研究部 屋代 禎夫
+)ALONE   Phone 078-934-8249 / Fax 078-934-3312
 LOVERS   E-mail:sada@flab.fujitsu.co.jp / NIFTY:GDC03471
Received on Thursday, 6 May 1999 22:12:41 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:05 UTC