472,374 Members | 1,367 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,374 software developers and data experts.

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 1578

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter C. Chapin | last post by:
I have a need to include Greek letters in some of my XML documents (the documents contain astronomical information and many stars are named using Greek letters). Following some earlier postings on...
1
by: Eric Anderson | last post by:
I am trying to use XSLT to extend XHTML so that I can have custom widgets. For example I have a calendar control. Whenever I put the following in the psudo-XHTML doc: <calendarbox name="mycal"/>...
4
by: Binesh Bannerjee | last post by:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi. In another thread, Martin Honnen <mahotrash@yahoo.de> wrote: > XHTML is XML so there is no problem to use it inside of an XML document e.g. > ...
5
by: Ben Jessel | last post by:
I am in the process of converting my site to using XHTML and CSS. A lot of my sites include tables of data, which are highlighted using javascript rollovers. I have converted my a lot of my...
32
by: Protoman | last post by:
I have a function that calculates the mean of the some numbers; I need it to accept any number of parameters (one needs to be the number of the other parameters) Can you help me out here? Here's...
5
by: rengaw03 | last post by:
How do I center a HTML login form horizontally on a page? I can't find anything useful on the web -- no shortage of sites offering to sell me three-column layouts with a flexible center column, or...
5
by: sniper | last post by:
hi ; i have this small code that consist in taking the name of the user and writing it in the same form as an output.the name is relative to /data/valid/string1 In my Js code i want to access the...
0
by: C.W.Holeman II | last post by:
As K&R state the hardest part is getting a first instance to work. So I am looking for a "hello, world!" example for adding an additional element to an XHTML file. <html> <head><title>Hello,...
0
by: mk189 | last post by:
Hi, I am trying to create XML schema of custom markup language, enriched by XHTML. In simplified version, the XML documet could look like that: <a:alarm-manual xmlns:a="alarm-manual"...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge required to effectively administer and manage Oracle...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific technical details, Gmail likely implements measures...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
BLUEPANDA
by: BLUEPANDA | last post by:
At BluePanda Dev, we're passionate about building high-quality software and sharing our knowledge with the community. That's why we've created a SaaS starter kit that's not only easy to use but also...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
1
by: Johno34 | last post by:
I have this click event on my form. It speaks to a Datasheet Subform Private Sub Command260_Click() Dim r As DAO.Recordset Set r = Form_frmABCD.Form.RecordsetClone r.MoveFirst Do If...
0
DizelArs
by: DizelArs | last post by:
Hi all) Faced with a problem, element.click() event doesn't work in Safari browser. Tried various tricks like emulating touch event through a function: let clickEvent = new Event('click', {...
0
by: F22F35 | last post by:
I am a newbie to Access (most programming for that matter). I need help in creating an Access database that keeps the history of each user in a database. For example, a user might have lesson 1 sent...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.