|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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. |
|
#2
|
|||
|
|||
|
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. |
|
#3
|
|||
|
|||
|
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. |
|
#4
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > XML Programming > Inheriting XHTML dtd into "my.dtd" |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|