471,570 Members | 934 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,570 software developers and data experts.

xhtml: adding ELEMENT to dtd

.... or using multiple dtd's for doctype.

sorry if this is an infantile question - scouring an html to xhtml
conversion is not something I often do :-(

QUESTION:

does anyone know how we can add a new ELEMENT to an existing w3
dtd - or tell the doctype to add it or use an additional dtd in
the doctype etc. etc. etc.

BACKGROUND:

anyway - we have a pseudo tag we use for some indexing control on
a site - the tag-set is placed in the head section of an xhtml 1.0
transitional doc.

the w3 validator complains about the tag (and its attribute) when
it appears in the head section of the page - of course - but I
cannot seem to figure out how to add an element such that it will
be allowed in the head section.

have tried things like...

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
[
<!ELEMENT ourtag EMPTY>

<!ATTLIST ourtag
id CDATA #REQUIRED
>
]>

.... and have even tried redefining the head element to include the
ourtag element etc.

nothing seems to work in a way that allows the validator to succeed

thanks!

p.s. - OH!! Hi y'all!! :-))

--
Horace ...once known as "Kicker" :-)
================================================== ==============
....drop by and chat if I'm online http://www.hav.com/chat/
....or chuckle at a little left hand
fingertip torture http://www.hav.com/junk/

After silence, that which comes nearest to expressing the
inexpressible is music - Aldous Huxley, "Music at Night", 1931

.... and that which comes nearest to explaining the inexplicable
is my insistence on trying to play it - hav '06 :-))
================================================== ==============
Horace Vallas hav.Software http://www.hav.com/
4660 Francisco Rd. ha*@hav.com
Pensacola, Fl. 32504
USA 850-207-7009

Thawte Web Of Trust Notary in Pensacola, Fl.
http://www.hav.com/?content=/thawteWOTnotary.htm
================================================== ==============
What is a Vet? ... He is the barroom loudmouth, dumber than five
wooden planks, whose overgrown frat-boy behavior is outweighed a
hundred times in the cosmic scales by four hours of exquisite
bravery near the 38th parallel. ... - Unknown
================================================== ==============
Sep 28 '07 #1
0 1688

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Binesh Bannerjee | last post: by
30 posts views Thread by Patrick | last post: by
47 posts views Thread by Chuck | last post: by
82 posts views Thread by Buford Early | last post: by
reply views Thread by C.W.Holeman II | last post: by
reply views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Vinnie | last post: by
reply views Thread by lumer26 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.