xhtml: adding ELEMENT to dtd

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Horace A. 'Kicker' Vallas

    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. hav@hav.com
    Pensacola, Fl. 32504
    USA 850-207-7009

    Thawte Web Of Trust Notary in Pensacola, Fl.
    Just a splash page to let folks know that I've retired and that hav.Software is, effectively, closed for business - however, past clients and customers are welcome to contact me. If you're interested in buying either the hav.com or pgp.org domain names, please submit an offer in writing.

    =============== =============== =============== =============== ====
    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
    =============== =============== =============== =============== ====
Working...