[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: Re: XHTML Stylesheets
Concerning Mozilla and MathML, I found that : Mozilla needs : - An .xml extention (It cares only for the mime type and not for the DOCTYPE !) - a namespace in the <math> tag as well as in the html tag ! So : the only modification you need is : - in the myDocBook.xsl : add this <xsl:param name="html.ext" select="'.xml'"/> - mannualy add the html namespace in the result : <html xmlns="http://www.w3.org/1999/xhtml"> I get this example working : <?xml version='1.0' encoding='UTF-8'?> <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook MathML Module V1.0//EN" "file:/D:/Down/Res/DocBook/mathml/1.0/dbmathml.dtd"> <book> <chapter> <title>Introduction</title> <para>test </para> <informalequation> <mml:math> <mml:mrow> <mml:mo>det</mml:mo> <mml:mo symmetric="false" lspace="0" rspace="0">|</mml:mo> <mml:mfrac linethickness="0"> <mml:mi>a</mml:mi><mml:mi>c</mml:mi> </mml:mfrac> <mml:mfrac linethickness="0"> <mml:mi>b</mml:mi><mml:mi>d</mml:mi> </mml:mfrac> <mml:mo symmetric="false" lspace="0" rspace="0">|</mml:mo> <mml:mo>=</mml:mo><mml:mi>a</mml:mi> <mml:mi>d</mml:mi><mml:mo>-</mml:mo> <mml:mi>b</mml:mi><mml:mi>c</mml:mi> <mml:mo>,</mml:mo> </mml:mrow> </mml:math> </informalequation> </chapter> </book> (I am using SAXON 6.5 and the docbook xsl 1.47) Conserning docbook - it would be great to have xhtml strict. - if there is a namespace in the html tag (line 206 of the docbook.xsl) it should not propagate xmlns="" in some tags. but this may be less important : Mozilla could take a default namespace as xhtml or find it out from the DOCTYPE. Norman Walsh wrote: > / Lars Trieloff <lars@trieloff.net> was heard to say: > | I. I downloaded docbook-1.47 and converted my docbook the result was fine, > | but without any namespaces. > > Yes, I've taken a quick look at that problem and it's a bit deeper > than I expected. Getting the chunks in XML was pretty easy, but > getting the namespaces to propagate through may be a lot harder. > > Be seeing you, > norm > > -- *------------------------* Bruno Mizzi-Vernay Bruno.Vernay@laposte.net #ICQ : 1923685 *------------------------*
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC