View Full Version : Embedding a couple XHTML dtd modulars in my DTD
12-05-2002, 12:44 AM
I've read through the WC3's modular implentation of xhtml dtds and I'm still a bit in the dark. What I want to do is allow my defined para element to accept elements from the xhtml text dtd & the xhtml hypertext dtd. Can anyone recommend any faqs or docs on the web that discuss this type of implentation explicity?
12-05-2002, 05:30 PM
I've figured this out....this was terriably simple...no need to use the xhtml mods....simply use the xhtml-basic.dtd:
Here's an example:
I'ved included the xhtml 'p' element as a child of my defined 'para' element:
<!-- define para -->
<!ELEMENT para (p)*>
<!ELEMENT xhtml-text (p)*>
<!-- pull in w3c xhtml dtd-->
<!ENTITY % xhtml.mod
SYSTEM "xhtml.mod" >
and in the xhtml.mod file I've placed:
<!ENTITY % xhtml-basic.dtd PUBLIC "-//W3C//DTD XHTML Basic 1.0//EN" "http://www.w3.org/TR/xhtml-basic/xhtml-basic10.dtd" >
Now the 'p' element and it's subelements are avaibable for use in my para element.
Powered by vBulletin® Version 4.2.2 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.