473,395 Members | 1,649 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 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 1744

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Binesh Bannerjee | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. In another thread, Martin Honnen <mahotrash@yahoo.de> wrote: > XHTML is XML so there is no problem to use it inside of an XML document e.g. > ...
5
by: Sugapablo | last post by:
I'm assuming there's a way to do the following, but I'm having trouble finding good information on it. If someone could point me to a good webpage on it... I want to take a Valid XHTML 1.0 page...
30
by: Patrick | last post by:
Hello, i'm trying to get my page to XHTML 1.1 compliance, i used the validator from validator.w3.org but i still get one error message which i cant explain. Would be nice if someone can take a...
2
by: and | last post by:
Hi I have been validating all day most things are cool but I cant get by this problem. One I have listed the script (JAVASCRIPT ) in all the right placesnot a prob but the validator insists...
47
by: Chuck | last post by:
Is there any logical reason why one should convert if css is already being used? What possible, immediate, benefit would there be? I am at a loss to see what, pragmatic, difference it would make.
82
by: Buford Early | last post by:
I read this in http://annevankesteren.nl/2004/12/xhtml-notes "A common misconception is that XHTML 1.1 is the latest version of the XHTML series. And although it was released a bit more than a...
6
by: Rolf Welskes | last post by:
Hello, if I have for example: <table style="width: 100%; height: 100%;" border="1"> <tr> <td style="width: 100px">k </td> <td style="width: 100px">k </td> </tr>
4
by: Narven | last post by:
Hi, I've been creating a script that dynamic loads js files. but after creating that script, (and i use document.createElement('script');) in that function.. i've realise that the code that...
0
by: C.W.Holeman II | last post by:
As K&R state the hardest part is getting a first instance to work. So I am looking for a "hello, world!" example for adding an additional element to an XHTML file. <html> <head><title>Hello,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.