- From: Lauren Wood <lauren@sqwest.bc.ca>
- Date: Mon, 27 Jul 1998 13:55:38 -0700
- To: www-dom@w3.org
At 24/07/98 05:39 AM , Sadao YASHIRO wrote: >Hello, > >I'm now trying to design a DOM builder. >But I have one problem with the attribute value default declaration, >"#IMPLIED". > >For example, some XML document is described like following: > >---in a DTD---- > : ><!ELEMENT elem EMPTY> ><!ATTLIST elem attr CDATA #IMPLIED> > : > >---in a content --- >: ><elem /> >: > >What kind of DOM object should be created for the "elem" element? > > 1) "elem" element object including "attr" attribute object > 2) "elem" element object including no attribute object The elem object should be created with no attr object. If the attribute attr is not in the document instance, and has no default value specified in the DTD, then it is effectively not there at all. Lauren
Received on Monday, 27 July 1998 16:55:24 UTC