Re: Including the DTD for HTML TABLE (from strict html dtd) in my own dtd

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Fri, 15 Feb 2002, GEOFF DUCK wrote:

> Can anyone tell me how i can include the DTD for an HTML TAble and it's
> elements into my own dtd that also includes an HTML Table element?

Add

<!ENTITY % HtmlDtd PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
%HtmlDtd;

to your DTD.  Now you can use all the HTML 4.0 elements.

I do something similar for my Schedule DTD:
<!DOCTYPE schedule [
<!ENTITY % HTMLDTD PUBLIC "-//W3C//DTD HTML 4.01//EN">

%HTMLDTD;

<!ELEMENT schedule - - (event*)>
<!ELEMENT event - - (time*, data)>
<!ELEMENT data O O (%flow;)>
<!ELEMENT time - O EMPTY>
<!ATTLIST time
                  day (Monday | Tuesday | Wednesday | Thursday | Friday) #REQUIRED
          from CDATA #REQUIRED
          to CDATA #REQUIRED>
]>

- -- 
Russell O'Connor                           roconnor@math.berkeley.edu
           <http://www.math.berkeley.edu/~roconnor/>
``This is not a time, as it is never a time, to seek vengeance, but a
time to seek the courage to forgive'' -- George W. Bush
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (SunOS)
Comment: For info see http://www.gnupg.org

iD8DBQE8dKrzuZUa0PWVyWQRAkVKAJ4xrRIeyhuq15e6V+z/7VX1AA5+3gCcDwhJ
vJgM3Myh1k3vqyk8a0lN1PA=
=DBBe
-----END PGP SIGNATURE-----

Received on Thursday, 21 February 2002 03:08:22 UTC