473,915 Members | 6,883 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.dt d"
[
<!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 1774

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

Similar topics

4
3077
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. > <root> > <description> > <p xmlns="http://www.w3.org/1999/xhtml">description goes here</p> > </description>
5
1198
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 and add some elements to it. Example: Let's say I want to add the elements "DATE" and "TEXT" to an XHTML page as in the following: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
30
2295
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 look on it: http://validator.w3.org/check?uri=http%3A%2F%2Fsnafu.is-a-geek.net%2Findex.html It tells me: Line 6, column 62: character data is not allowed here
2
5117
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 on going through t findind < (less than) in the code. why is it going through the script the scripts been tagged correctly? Also in the body where the link to the script is there is a table givng
47
10342
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
5756
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 year later then the first version of XHTML 1.0, the second edition is actually newer. Furthermore, XHTML 1.1 is not really the follow-up of XHTML 1.0" I thought that XHTML 1.1 was the follow-up to XHTML 1.0 and that XHTML 2.0 will someday be the...
6
7887
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
3048
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 shows up in the browser is: <script type="text/javascript">
0
2199
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, World</title> <body> <h1>Hello, World</h1> <myHello> <p>My hello.</p>
0
9881
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11354
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10923
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
11066
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10542
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
8100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5943
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4778
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4344
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.