Go Back   CodingForums.com > :: Client side development > XML

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 12-05-2002, 12:44 AM   PM User | #1
MrHyde
New to the CF scene

 
Join Date: Dec 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
MrHyde is an unknown quantity at this point
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?
MrHyde is offline   Reply With Quote
Old 12-05-2002, 05:30 PM   PM User | #2
MrHyde
New to the CF scene

 
Join Date: Dec 2002
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
MrHyde is an unknown quantity at this point
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..
MrHyde is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:37 AM.


Advertisement
Log in to turn off these ads.