10 |
|
|
11 |
<div class="header"> |
<div class="header"> |
12 |
<h1>DOM Document Type Definition Module</h1> |
<h1>DOM Document Type Definition Module</h1> |
13 |
<h2>Working Draft <time datetime=2007-12-08>8 December 2007</time></h2> |
<h2><!-- First Edition -->Working Draft |
14 |
|
<time datetime=2008-06-15>15 June 2008</time></h2> |
15 |
|
|
16 |
<dl class="versions-uri"> |
<dl class="versions-uri"> |
17 |
<dt>This Version</dt> |
<dt>This Version</dt> |
18 |
|
<!-- |
19 |
|
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-20071209" |
20 |
|
>http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-20071209</a>></code></dd> |
21 |
|
--> |
22 |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work" |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work" |
23 |
>http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work</a>></code></dd> |
>http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work</a>></code></dd> |
24 |
<dt>Latest Version</dt> |
<dt>Latest Version</dt> |
27 |
<dt>Latest Working Draft</dt> |
<dt>Latest Working Draft</dt> |
28 |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work" |
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work" |
29 |
>http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work</a>></code></dd> |
>http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-work</a>></code></dd> |
30 |
<!-- <dt>Previous Version</dt> --> |
<dt>Previous Stable Version</dt> |
31 |
|
<dd><code class="URI"><<a href="http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-20071209" |
32 |
|
>http://suika.fam.cx/www/markup/xml/domdtdef/domdtdef-20071209</a>></code></dd> |
33 |
<dt>Version History</dt> |
<dt>Version History</dt> |
34 |
<dd><code class=URI><<a href="http://suika.fam.cx/gate/cvs/markup/xml/domdtdef/domdtdef-work.en.html">http://suika.fam.cx/gate/cvs/markup/xml/domdtdef/domdtdef-work.en.html</a>></code></dd> |
<dd><code class=URI><<a href="http://suika.fam.cx/gate/cvs/markup/xml/domdtdef/domdtdef-work.en.html">http://suika.fam.cx/gate/cvs/markup/xml/domdtdef/domdtdef-work.en.html</a>></code></dd> |
35 |
<dt id=author>Author</dt> |
<dt id=author>Author</dt> |
39 |
>w@suika.fam.cx</a>></code></dd> |
>w@suika.fam.cx</a>></code></dd> |
40 |
</dl> |
</dl> |
41 |
|
|
42 |
<p class="copyright" lang="en">© <time>2007</time> <a |
<p class="copyright" lang="en">© <time>2007</time>$B!>(B<time>2008</time> <a |
43 |
href="http://suika.fam.cx/~wakaba/who?" rel="author">Wakaba</a>. |
href="http://suika.fam.cx/~wakaba/who?" rel="author">Wakaba</a>. |
44 |
Permission is granted to copy, distribute and/or modify this document |
Permission is granted to copy, distribute and/or modify this document |
45 |
under the terms of the <a rel="license" |
under the terms of the <a rel="license" |
69 |
<p class=section-info>This section describes the status of this document at the |
<p class=section-info>This section describes the status of this document at the |
70 |
time of its publication. Other documents might supersede this document.</p> |
time of its publication. Other documents might supersede this document.</p> |
71 |
|
|
72 |
<p>This document is a working draft, produced as part of the |
<p>This document is a specification<!-- working draft -->, |
73 |
<a href="http://suika.fam.cx/www/manakai-core/doc/web/">manakai</a> |
produced as part of the |
74 |
project. It might be updated, replaced, or obsoleted by |
<a href="http://suika.fam.cx/www/manakai-core/doc/web/">manakai</a> project. |
75 |
other documents at any time. It is inappropriate to |
It might be updated, replaced, or obsoleted by other documents at any time. |
76 |
cite this document as other than <q>work in progress</q>.</p> |
<!-- It is inappropriate to cite this document as other than |
77 |
|
<q>work in progress</q>. --></p> |
78 |
|
|
79 |
<p>Comments on this document are welcome and |
<p>Comments on this document are welcome and |
80 |
may be sent to the <a href="#author">author</a>.</p> |
may be sent to the <a href="#author">author</a>.</p> |
81 |
|
|
82 |
<p>Translations of thie document might be available. |
<p>Translations of this document might be available. |
83 |
The English version of the document is the only |
The English version of the document is the only |
84 |
normative version.</p> |
normative version.</p> |
85 |
</div> |
</div> |
112 |
<h3>Terminology</h3> |
<h3>Terminology</h3> |
113 |
|
|
114 |
<p>All examples and notes in this specification are non$B!>(Bnormative, |
<p>All examples and notes in this specification are non$B!>(Bnormative, |
115 |
as are all sections explicitly marked non$B!>(Bnormative. Everything |
as are all sections explicitly marked non$B!>(Bnormative.</p> |
116 |
else in this specification is normative.</p> |
|
117 |
|
<p class=ed>Known issues are marked like this. They are non$B!>(Bnormative. <!-- |
118 |
|
However, this paragraph itself is normative. One may argue that this paragraph |
119 |
|
is non$B!>(Bnormative, because this paragraph is marked as an editor's note. |
120 |
|
Anyway, the other editor's notes are non$B!>(Bnormative. --></p> |
121 |
|
|
122 |
|
<p>Everything else in this document is normative.</p> |
123 |
|
|
124 |
<p>The key words <q><em class="rfc2119">MUST</em></q>, |
<p>The key words <q><em class="rfc2119">MUST</em></q>, |
125 |
<q><em class="rfc2119">MUST NOT</em></q>, and <q><em class=rfc2119>MAY</em></q> |
<q><em class="rfc2119">MUST NOT</em></q>, and <q><em class=rfc2119>MAY</em></q> |
184 |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#proddef-InterfaceMember"><code>InterfaceMember</code></a> |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#proddef-InterfaceMember"><code>InterfaceMember</code></a> |
185 |
with same |
with same |
186 |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#prod-identifier"><code>identifier</code></a> |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#prod-identifier"><code>identifier</code></a> |
187 |
part as that of any instance of |
part as that of an instance of |
188 |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#proddef-InterfaceMember"><code>InterfaceMember</code></a> |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#proddef-InterfaceMember"><code>InterfaceMember</code></a> |
189 |
in the <i>patch</i>, then the former instance of |
in the <i>patch</i>, then the former instance of |
190 |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#proddef-InterfaceMember"><code>InterfaceMember</code></a> |
<a href="http://www.w3.org/TR/2007/WD-DOM-Bindings-20071017/#proddef-InterfaceMember"><code>InterfaceMember</code></a> |
237 |
<abbr>DOM</abbr> Tree Converter</dt> |
<abbr>DOM</abbr> Tree Converter</dt> |
238 |
<dd>A software component that converts an <abbr>XML</abbr> information set |
<dd>A software component that converts an <abbr>XML</abbr> information set |
239 |
<cite class="bibref normative">[<a href="#ref-INFOSET">INFOSET</a>]</cite> |
<cite class="bibref normative">[<a href="#ref-INFOSET">INFOSET</a>]</cite> |
240 |
into a <abbr>DOM</abbr> tree. Note that this documetn does not define |
into a <abbr>DOM</abbr> tree. Note that this document does not define |
241 |
any particular way for the convertion, but it defines constraints for |
any particular way for the conversion, but it defines constraints for |
242 |
such processing.</dd> |
such processing.</dd> |
243 |
<dt id=category-dom-infoset><abbr>DOM</abbr> Tree to <abbr>XML</abbr> |
<dt id=category-dom-infoset><abbr>DOM</abbr> Tree to <abbr>XML</abbr> |
244 |
Information Set Converter</dt> |
Information Set Converter</dt> |
245 |
<dd>A software component that converts a <abbr>DOM</abbr> tree into |
<dd>A software component that converts a <abbr>DOM</abbr> tree into |
246 |
an <abbr>XML</abbr> information set. Note that this documetn does not define |
an <abbr>XML</abbr> information set. Note that this document does not define |
247 |
any particular way for the convertion, but it defines constraints for |
any particular way for the conversion, but it defines constraints for |
248 |
such processing.</dd> |
such processing.</dd> |
249 |
</dl> |
</dl> |
250 |
</div> |
</div> |
402 |
the values of the <code>DOMStringList</code> objects in the |
the values of the <code>DOMStringList</code> objects in the |
403 |
<a href="#allowedTokens"><code>allowedTokens</code></a> attributes |
<a href="#allowedTokens"><code>allowedTokens</code></a> attributes |
404 |
are equal, i.e. their <code>length</code> attribute values are equal and |
are equal, i.e. their <code>length</code> attribute values are equal and |
405 |
each string exists in a list is contained in another list (their indeces |
each string exists in a list is contained in another list (their indecies |
406 |
may be different), with an additional constraint that the number of the |
may be different), with an additional constraint that the number of the |
407 |
items that are equal to a string in a list is equal to the number |
items that are equal to a string in a list is equal to the number |
408 |
of the items equal to the string in another list.</p></li> |
of the items equal to the string in another list.</p></li> |
850 |
<a href="#read-only">read$B!>(Bonly</a>. Otherwise, it <em class=rfc2119>MUST</em> |
<a href="#read-only">read$B!>(Bonly</a>. Otherwise, it <em class=rfc2119>MUST</em> |
851 |
set the specified value as the value associated to the attribute. No |
set the specified value as the value associated to the attribute. No |
852 |
normalization, relative reference resolution, or lexical validation is |
normalization, relative reference resolution, or lexical validation is |
853 |
performed. <span class=ed>@@ If the new value is <code>null</code>, should an e |
performed. <span class=ed>@@ If the new value is <code>null</code>, should an |
854 |
mpty string be set?</span></p> |
empty string be set?</span></p> |
855 |
|
|
856 |
<div class="note memo"> |
<div class="note memo"> |
857 |
<p>Setting an invalid identifier might make the node unserializable. |
<p>Setting an invalid identifier might make the node unserializable. |
858 |
Setting a public identifier while leaveing system identifier unspecified |
Setting a public identifier while leaving system identifier unspecified |
859 |
would also make the <a href="#DocumentType"><code>DocumentType</code></a> |
would also make the <a href="#DocumentType"><code>DocumentType</code></a> |
860 |
or <a href="#Entity"><code>Entity</code></a> node unserializable.</p> |
or <a href="#Entity"><code>Entity</code></a> node unserializable.</p> |
861 |
</div> |
</div> |
991 |
reflected by that of the object. |
reflected by that of the object. |
992 |
--> |
--> |
993 |
<dt><dfn id=notations class=dom-attr><code>notations</code></dfn> of type |
<dt><dfn id=notations class=dom-attr><code>notations</code></dfn> of type |
994 |
<code>notations</code>, read$B!>(Bonly</code> |
<code>NamedNodeMap</code>, read$B!>(Bonly</code> |
995 |
<dd><p>A <a href="#live">live</a> <code>NamedNodeMap</code> object that |
<dd><p>A <a href="#live">live</a> <code>NamedNodeMap</code> object that |
996 |
contains all the notations belonging to the |
contains all the notations belonging to the |
997 |
<a href="#DocumentType"><code>DocumentType</code></a> node.</p> |
<a href="#DocumentType"><code>DocumentType</code></a> node.</p> |
1263 |
a <a href="#DocumentType"><code>DocumentType</code></a> node, |
a <a href="#DocumentType"><code>DocumentType</code></a> node, |
1264 |
then <code>null</code> <em class=rfc2119>MUST</em> be returned.</p></dd> |
then <code>null</code> <em class=rfc2119>MUST</em> be returned.</p></dd> |
1265 |
<dt><dfn id=attributeDefinitions class=dom-attr><code>attributeDefinitions</code></dfn> |
<dt><dfn id=attributeDefinitions class=dom-attr><code>attributeDefinitions</code></dfn> |
1266 |
of type NamedNodeMap, read$B!>(Bonly</dt> |
of type <code>NamedNodeMap</code>, read$B!>(Bonly</dt> |
1267 |
<dd><p>A <a href="#live">live</a> <code>NamedNodeMap</code> object that |
<dd><p>A <a href="#live">live</a> <code>NamedNodeMap</code> object that |
1268 |
contains all the attribute definitions belonging to the |
contains all the attribute definitions belonging to the |
1269 |
<a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a> |
<a href="#ElementTypeDefinition"><code>ElementTypeDefinition</code></a> |
1621 |
<p>The definition group |
<p>The definition group |
1622 |
<dfn id=DefaultValueType><code>DefaultValueType</code></dfn> |
<dfn id=DefaultValueType><code>DefaultValueType</code></dfn> |
1623 |
contains integers indicating the type of the default for the attribute. |
contains integers indicating the type of the default for the attribute. |
1624 |
The definition group contains the following constans:</p> |
The definition group contains the following constants:</p> |
1625 |
|
|
1626 |
<table> |
<table> |
1627 |
<thead> |
<thead> |
1699 |
|
|
1700 |
<dl> |
<dl> |
1701 |
<dt><dfn id=hasReplacementTree class=dom-attr><code>hasReplacementTree</code></dfn> |
<dt><dfn id=hasReplacementTree class=dom-attr><code>hasReplacementTree</code></dfn> |
1702 |
of type boolean</dt> |
of type <code>boolean</code></dt> |
1703 |
<dd><p>Whether the structure of the replacement text of the entity |
<dd><p>Whether the structure of the replacement text of the entity |
1704 |
is available via the <code>NodeList</code> object in the |
is available via the <code>NodeList</code> object in the |
1705 |
<code>childNodes</code> attribute of the entity.</p> |
<code>childNodes</code> attribute of the entity.</p> |
1743 |
attribute set to <code>false</code>.</p> |
attribute set to <code>false</code>.</p> |
1744 |
</div></dd> |
</div></dd> |
1745 |
<dt><dfn id=isExternallyDeclared class=dom-attr><code>isExternallyDeclared</code></dfn> |
<dt><dfn id=isExternallyDeclared class=dom-attr><code>isExternallyDeclared</code></dfn> |
1746 |
of type boolean</dt> |
of type <code>boolean</code></dt> |
1747 |
<dd><p>Whether the entity is declared by an external entity declaration or |
<dd><p>Whether the entity is declared by an external entity declaration or |
1748 |
not. If the value is <code>true</code>, the entity is declared in an entity |
not. If the value is <code>true</code>, the entity is declared in an entity |
1749 |
declaration in the external subset entity or in an external parameter entity. |
declaration in the external subset entity or in an external parameter entity. |
1860 |
<dt id=ref-DOM1WD>DOM1WD</dt> |
<dt id=ref-DOM1WD>DOM1WD</dt> |
1861 |
<dd><cite><a href="http://www.w3.org/TR/WD-DOM-971209/">Document Object |
<dd><cite><a href="http://www.w3.org/TR/WD-DOM-971209/">Document Object |
1862 |
Model Specification</a></cite>, <abbr>W3C</abbr> Working Draft, |
Model Specification</a></cite>, <abbr>W3C</abbr> Working Draft, |
1863 |
<time datetime=1997-12-09>9 December 1998</time>.</dd> |
<time datetime=1997-12-09>9 December 1997</time>.</dd> |
1864 |
<dd><cite><a href="http://www.w3.org/TR/WD-DOM-19980318/">Document Object |
<dd><cite><a href="http://www.w3.org/TR/WD-DOM-19980318/">Document Object |
1865 |
Model Specification</a></cite>, <abbr>W3C</abbr> Working Draft, |
Model Specification</a></cite>, <abbr>W3C</abbr> Working Draft, |
1866 |
<time datetime=1998-03-18>18 March 1998</time>.</dd> |
<time datetime=1998-03-18>18 March 1998</time>.</dd> |