XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old November 27th, 2002, 01:10 PM
MrHyde MrHyde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 15 MrHyde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Inheriting XHTML dtd into "my.dtd"

Hello,

I'm wondering if there's an elegant way to inherit the XHTML dtd w/in a custom dtd. Bascially, what I'd like to do is to be able to use xhtml tags w/in my xml docs w/o having to explictity declare each tag. Has anyone done this? Can you throw some useful links my way and maybe even an example?

Thanks.

Reply With Quote
  #2  
Old November 30th, 2002, 08:13 PM
jkd jkd is offline
CF sMod
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2000
Location: Maine, USA (a.k.a. Boonies)
Posts: 242 jkd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 43 sec
Reputation Power: 9
Send a message via ICQ to jkd Send a message via AIM to jkd Send a message via Yahoo to jkd
I'd look into Modular XHTML at www.w3.org

They've created XHTML+MathML+SVG profiles using it, I don't see why you couldn't do the same.
__________________
Jason Contact Me
Super moderator @ CodingForums

Reply With Quote
  #3  
Old December 4th, 2002, 06:37 PM
MrHyde MrHyde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 15 MrHyde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thx for the reply jkd.

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. Cam you recommend any faqs or docs on the web that discuss this type of implentation explicity?

Thank you Again.

Reply With Quote
  #4  
Old December 5th, 2002, 11:33 AM
MrHyde MrHyde is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2001
Posts: 15 MrHyde User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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 elelments 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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Inheriting XHTML dtd into "my.dtd"


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway