Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Embedding a couple XHTML dtd modulars in my DTD

    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?

  • #2
    New to the CF scene
    Join Date
    Dec 2002
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I've figured this out....this was terriably simple...no need to use the xhtml mods....simply use the xhtml-basic.dtd:

    http://www.w3.org/TR/xhtml-basic/xhtml-basic10.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" >
    %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" >
    %xhtml-basic.dtd;


    Now the 'p' element and it's subelements are avaibable for use in my para element.
    Last edited by MrHyde; 12-05-2002 at 05:33 PM.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •