83 |
<p>This is a work-in-progress specification for DOM Document Type |
<p>This is a work-in-progress specification for DOM Document Type |
84 |
Definition module, as implemented by manakai and |
Definition module, as implemented by manakai and |
85 |
<a href="http://suika.fam.cx/gate/2005/sw/DOM%20XML%20Document%20Type%20Definition">partially documented in the SuikaWiki</a>.</p> |
<a href="http://suika.fam.cx/gate/2005/sw/DOM%20XML%20Document%20Type%20Definition">partially documented in the SuikaWiki</a>.</p> |
|
|
|
|
<p>...</p> |
|
86 |
</div> |
</div> |
87 |
|
|
88 |
|
<p>The <dfn id=term-dom-dtdef><abbr>DOM</abbr> Document Type Definition</dfn> |
89 |
|
module is a set of <abbr>DOM</abbr> interfaces, including both new |
90 |
|
interfaces and modifications to existing <abbr>DOM</abbr> interfaces, |
91 |
|
over which <abbr>DOM</abbr> applications are able to access to the |
92 |
|
definitions of the document type.</p> |
93 |
|
|
94 |
|
<p>Interfaces defined in this specification are partially modeled from |
95 |
|
early drafts of <abbr>DOM</abbr> level 1 <span class=ed>@@ ref</span>, |
96 |
|
<abbr>DOM</abbr> Abstract Schema level 3 <span class=ed>@@ ref</span>, and |
97 |
|
<abbr>XML</abbr> Schema <abbr>API</abbr>, but are not compatible with |
98 |
|
any of them as a whole.</p> |
99 |
</div> |
</div> |
100 |
|
|
101 |
<div class="section" id="terminology"> |
<div class="section" id="terminology"> |
119 |
<p><span class=ed>Algorithm is normative but non-normative</span>. |
<p><span class=ed>Algorithm is normative but non-normative</span>. |
120 |
In addition, the order in which <a href="#errors">errors</a> are |
In addition, the order in which <a href="#errors">errors</a> are |
121 |
raised is undefined.</p> |
raised is undefined.</p> |
122 |
|
|
123 |
|
<p class=ed><var>A</var> object is an object implementing <var>A</var> |
124 |
|
interface.</p> |
125 |
|
|
126 |
|
<p class=ed>@@ ref to DOM Binding Spec</p> |
127 |
|
</div> |
128 |
|
|
129 |
|
<div class=section id=dom-dtdef> |
130 |
|
<h2><abbr>DOM</abbr> Document Type Definition Module</h2> |
131 |
|
|
132 |
|
<p>The <abbr>DOM</abbr> Document Type Definition module, version 3.0, |
133 |
|
consists of three interfaces:</p> |
134 |
|
<ul> |
135 |
|
<li><a href="#DocumentXDoctype"><code>DocumentXDoctype</code></a></li> |
136 |
|
<li><a href="#DocumentTypeDefinition"><code>DocumentTypeDefinition</code></a></li> |
137 |
|
<li><a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a></li> |
138 |
|
<li><a href="#AttributeDefinition"><code>AttributeDefinition</code></a></li> |
139 |
|
</ul> |
140 |
|
|
141 |
|
<p>In addition, it adds methods, attributes, and/or constants to interfaces |
142 |
|
<a href="#Node"><code>Node</code></a>, |
143 |
|
<a href="#Entity"><code>Entity</code></a>, |
144 |
|
<a href="#EntityReference"><code>EntityReference</code></a>, and |
145 |
|
<a href="#Notation"><code>Notation</code></a>. |
146 |
|
It modifies semantics of some of methods and attributes in |
147 |
|
<a href="#Node"><code>Node</code></a> and |
148 |
|
<a href="#ProcessingInstruction"><code>ProcessingInstruction</code></a> |
149 |
|
interfaces, for the support of new interfaces.</p> |
150 |
|
|
151 |
|
<div class=section id=features> |
152 |
|
<h3>Feature Name</h3> |
153 |
|
|
154 |
|
<p>In a <abbr>DOM</abbr> implementation that supports the version 3.0 of |
155 |
|
the <abbr>DOM</abbr> Document Type Definition module, the |
156 |
|
<code>hasFeature</code> method of a <code>DOMImplementation</code> object |
157 |
|
<em class=rfc2119>MUST</em> return <code>true</code> when the parameters are |
158 |
|
set to <code>http://suika.fam.cx/www/2006/feature/XDoctype</code> and |
159 |
|
<code>3.0</code> respectively.</p> |
160 |
|
|
161 |
|
<p>In such an implementation, the <code>getFeature</code> method of a |
162 |
|
<code>Document</code> object <em class=rfc2119>MUST</em> return the (at least |
163 |
|
conceptually) same object implementing the |
164 |
|
<a href="#DocumentXDoctype"><code>DocumentXDoctype</code></a> interface when |
165 |
|
the parameters are set to |
166 |
|
<code>http://suika.fam.cx/www/2006/feature/XDoctype</code> and |
167 |
|
<code>3.0</code> respectively. Likewise, any method that takes one or more |
168 |
|
feature names with or without version number, including the methods |
169 |
|
<code>hasFeature</code> and <code>getFeature</code>, |
170 |
|
<em class=rfc2119>MUST</em> behave in a manner consistent with the |
171 |
|
aforementioned cases.</p> |
172 |
|
</div> |
173 |
|
|
174 |
</div> |
</div> |
175 |
|
|
176 |
|
|
177 |
|
|
178 |
|
|
179 |
|
|
180 |
<div id="references" class="section reference"> |
<div id="references" class="section reference"> |
181 |
<h2>References</h2> |
<h2>References</h2> |
182 |
|
|