[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: 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 "&#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. ________________________________________________________________________
[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! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|