469,568 Members | 1,401 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,568 developers. It's quick & easy.

Modularization using modularized xhtml

Hi,

I have a few simple questions in order to use modularized xhtml and
getting it to work.

A simple example may make this obviouse:

Lets say we want to create a simple xml-file to reflect a
faq-structure.

For example:

--------------------------------------------
<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE faqs SYSTEM "faqs.dtd">

<xmlns:xhtml="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

<faqs>
<faq>
<question>
<xhtml:p>
How to get this thing to work?
</xhtml:p>
</question>

<answer>
<xhtml:p>
..put the files into your home-directory and...
</xhtml:p>
</answer>
</faq>
</faqs>
-------------------------------------------

What I want to do is to use a subset of xhtml-tags(from the text- and
list-Module) inside the question- and answer-tags.

Having taken a look at the paper
http://www.w3.org/TR/xhtml-modularization/
and having stored the "xhtml11-list-1.mod"- and
"xhtml11-text-1.mod"-Modules in the current directory a DTD like the
following one seems to be appropriate:

----------------------------------------------------
<!ENTITY xhtml.mod PUBLIC "-//W3C/DTD XHTML 1.1//EN" "xhtml11.dtd">

<!ENTITY % XHTML.ns "http://www.w3.org/1999/xhtml" >
<!ENTITY % xhtml-text.module "INCLUDE" >
<![%xhtml-text.module;[
<!ENTITY % xhtml-text.mod
PUBLIC "-//W3C//ELEMENTS XHTML 1.1 Text 1.0//EN"
"xhtml11-text-1.mod" >
%xhtml-text.mod;]]>
<!ENTITY % xhtml-list.module "INCLUDE" >
<![%xhtml-list.module;[
<!ENTITY % xhtml-list.mod
PUBLIC "-//W3C//ELEMENTS XHTML 1.1 Lists 1.0//EN"
"xhtml11-list-1.mod" >
%xhtml-list.mod;]]>
<!ELEMENT faqs (faq)*>

<!ELEMENT faq (question, answer)>

<!ELEMENT question (#PCDATA | %xhtml-text.mod; | %xhtml-list.mod;)>
<!ELEMENT answer (#PCDATA | %xhtml-text.mod; | %xhtml-list.mod;)>
-----------------------------------------------------

But this xml-file doesn't validate against this DTD.

Does anybody have a simple self made DTD- and XML-File which itsself
makes use of one or more xhtml-Modules which validates?

Thanks in advance

Peter Rohleder
Jul 20 '05 #1
0 1490

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Peter C. Chapin | last post: by
1 post views Thread by Eric Anderson | last post: by
4 posts views Thread by Binesh Bannerjee | last post: by
5 posts views Thread by Ben Jessel | last post: by
5 posts views Thread by rengaw03 | last post: by
reply views Thread by C.W.Holeman II | last post: by
reply views Thread by suresh191 | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.