Re: ATTLIST Declaration Problem

On Thu, 12 Aug 1999, Ahmad, B. wrote:

> I want to allow the <img> element to take an additional attribute called
> "name". I have set the following declaration,
> 
> <!attlist img name cdata #implied>

Find the <!attlist> for IMG in a DTD and add the NAME thing _inside_
it alongside with other attributes. For an example, see
http://www.hut.fi/u/jkorpela/html/ext.dtd

(Note: You need to modify the DTD referred to in your document,
not your document itself. This is explained well at
http://www.htmlhelp.com/tools/validator/customdtd.html )

See http://www.hut.fi/u/jkorpela/forms/javascript.html#nameattr
for a short discussion of this problem. (It actually discusses
NAME for FORM, but that's very analogous.) 

-- 
Yucca, http://www.hut.fi/u/jkorpela/ or http://yucca.hut.fi/yucca.html

Received on Thursday, 12 August 1999 15:20:22 UTC