W3C home > Mailing lists > Public > www-validator@w3.org > August 1999

Re: ATTLIST Declaration Problem

From: <Jukka.Korpela@hut.fi>
Date: Thu, 12 Aug 1999 22:20:17 +0300 (EET DST)
To: "'www-validator@w3.org'" <www-validator@w3.org>
Message-ID: <Pine.OSF.4.10.9908122211450.15614-100000@beta.hut.fi>
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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:13:52 GMT