[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Including XHTML into another DTD?

  • From: Dan Vint <dvint@dvint.com>
  • To: David Carlisle <davidc@nag.co.uk>, dvint@d...
  • Date: Sat, 13 Jun 2009 16:41:43 -0400

Re:  Including XHTML into another DTD?
Even this is more complicated than what I'm trying to determine. All 
these enties are about including or not and changing the prefixes or 
not. I was hoping to find the 2 or 3 lines that just include the 
MathML in HTML and hopefully show how it controls where it can be 
used. That is not allowing MathML to be used everywhere in an html document.

..dan

At 07:27 PM 6/12/2009, David Carlisle wrote:

> > 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 "" >
>%driver;
><!ATTLIST %a.qname; target CDATA #IMPLIED>
><!ATTLIST %html.qname;
>           %Schema.xmlns.attrib;
>           %att-schemalocation;>
>
>There are some notes on this (a bit old) at
>
>http://www.w3.org/Math/characters/
>and
>http://www.w3.org/Math/dtd
>
> > 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
>mathml.
>
>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" >
>
>
>David
>
>________________________________________________________________________
>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.
>________________________________________________________________________

---------------------------------------------------------------------------
Danny Vint

Panoramic Photography
http://www.dvint.com

voice: 502-749-6179
     



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


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.