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

Q: #IMPLIED?

From: Sadao YASHIRO <sada@flab.fujitsu.co.jp>
Date: Fri, 24 Jul 1998 21:39:29 +0900
Message-Id: <9807241239.AA01104@anima.flab.fujitsu.co.jp>
To: www-dom@w3.org
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

If 1) is created, an application can easily understand a existance of 
"IMPLIED" attribute. On the other hand, if 2) is created, an application
need to check a DTD object to know whether any "IMPLIED" attribute is 
specified or not.

Thanks in advance.

Best regards.

  -Sadao Yashio, Fujitsu Laboratories Ltd.
Received on Friday, 24 July 1998 08:44:12 GMT

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