OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] Including XHTML into another DTD?

> I tried looking at how MathML is included in XHTML but trying to sort 
> it out is a bit painful. Also they combined all the DTDs and entities 
> together as one file/DTD with namespaces; what I want to do is 
> reference in the XHTML DTD into mine

actually the mathml dtd is written as a separate entity and the expanded
one-file xhtml+mathml dtd is just the result of passing an xml parser
over the driver file which includes xhtml and mathml dtd which then
epands the inclusiions inline.
The driver file is just the following:

<!ENTITY % driver SYSTEM "xhtml-math-svg.dtd">
<--<!ENTITY % plane1D "&amp;#38;#38;#xE">-->
<!ENTITY % SVG.module    "IGNORE" >
<!ENTITY % MATHML.pref.prefixed "INCLUDE" >
<!ENTITY % MATHML.sysid.base "" >
<!ATTLIST %a.qname; target CDATA #IMPLIED>
<!ATTLIST %html.qname; 

There are some notes on this (a bit old) at


> In addition to controlling where the XHTML elements can be placed I'm 
> also trying to not have to prefix the html elements in my XML file. 

The xhtml and mathml dtd follow the xhtml modularisation guidelines
which means that while you can't arbitrarily mix prefixes you can easily
set a parameter entity to specify a prefix for xhtml and/or

If you want all xhtml elements to be prefixed by h then (in a driver
file or local subset) just define

<!ENTITY % XHTML.prefixed       "INCLUDE" >
<!ENTITY % XHTML.prefix  "h" >


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS