This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Re: XHTML Stylesheets


I found that this :

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE html
     PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
            "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd"; [
     <!ENTITY % MATHML.prefixed "INCLUDE">
	<!ENTITY % MATHML.prefix "mml">
]>
<html>
<head><title>Simple test</title></head>
<body>
  <div class="book">
   <div class="titlepage">
	<p>test.</p>
	<div class="informalequation">
	  <mml:math overflow="scroll">
		  <mml:apply>
			  <mml:divide definitionURL="" encoding=""/>
		  </mml:apply>
	  </mml:math>
	</div>
   </div>
  </div>
</body></html>

Is validated using (http://validator.w3.org/)
(Optionnaly, you can use xmlns:mml="..." in the <mml:math ...> tag.)

But the DTD is XHTML 1.1 and MathML. So it doesn't validated Docbook 
output because docbook use "bgcolor" attribute in the body for example.

But it is the only public DTD I found to include XHTML and MathML.

So ... I don't know what to do now.
- Change Docbook output to strict XHTML ?
- Wait for a public XHTML (Transitional) and MathML DTD ?


Here are some source of information I used :
- http://www.w3.org/TR/MathML2/appendixa.html
- http://www.w3.org/TR/MathML2/chapter7
- http://www.mozilla.org/projects/mathml/
- http://www.w3.org/Amaya/Amaya.html#math
- http://www.w3.org/TR/xhtml-modularization/
- http://www.w3.org/TR/xhtml11/


Lars Trieloff wrote:

> Once Again,
> I. I downloaded docbook-1.47 and converted my docbook the result was fine, 
> but without any namespaces.
> II. I added this line to html/docbook.xsl
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>     xmlns:doc="http://nwalsh.com/xsl/documentation/1.0";
>     xmlns:xhtml="http://www.w3.org/1999/xhtml";
>     xmlns="http://www.w3.org/1999/xhtml";
>     exclude-result-prefixes="#default xhtml doc"
>     version="1.0">
> Now there was the correct Namespace attribute in the html element
> <html xmlns="http://www.w3.org/1999/xhtml";>
> but some columns right there was the problem:
> <div xmlns="" class="set">
> A null namespace in a div element which would cause a browser not to render 
> the included content.
> 


*------------------------*
Bruno Mizzi-Vernay
Bruno.Vernay@laposte.net
#ICQ : 1923685
*------------------------*


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]