W3C home > Mailing lists > Public > www-dom@w3.org > July to September 1998

Re: Q: #IMPLIED?

From: Lauren Wood <lauren@sqwest.bc.ca>
Date: Mon, 27 Jul 1998 13:55:38 -0700
Message-Id: <199807272055.NAA15381@sqwest.bc.ca>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:45 GMT