[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] MathML XHTML howto
hello again, since now I have solved the problem on my own, I decided to post the solution in case s.b. is interested: > -there is the possibility to use XSL files in > combination with XHTML, see > http://www.w3.org/Math/XSL/ > > this seems the correct solution yes, this is the state of the art > is the XHTML output > <mml:math > xmlns:mml="http://www.w3.org/1998/Math/MathML" > overflow="scroll"> > <mml:mrow>... > </mml:math> > > ok, or did I miss a > configuration so that this gets transformed to > <math xmlns="...">? no, this mml namespace can stay as it is. > and is there a need for a customization layer such > that the resulting XHTML contains the additional > line > <?xml-stylesheet type="text/xsl" > href="http://www.w3.org/Math/XSL/mathml.xsl"?> yes, for example use the following layer: <?xml version='1.0'?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> <xsl:import href="xhtml/chunk.xsl"/> <xsl:template name="user.preroot"> <xsl:text disable-output-escaping="yes"><?xml-stylesheet type="text/xsl" href="xsl/mathml.xsl"?> </xsl:text> </xsl:template> <xsl:param name="html.ext" select="'.xhtml'"/> </xsl:stylesheet> thereby not only the additional line is there, but also the files are renamed to .xhtml (the latter could also be achieved by --stringparam html.ext .xhtml of course). files with .html don't work, you need .xhtml or .xml (unless there is some other configuration in your browser) > and what are the most recent (free) XSL files for > MathML? the four .xsl files from the w3.org URL mentioned above seem to be one of the most recent free ones, but perhaps there are others. > I can put them on the same server as the > XHTML files yes, do this. it won't harm. and btw. it seems the stuff is only working when served by a webserver (no file:/// local browsing worked for me), perhaps because of some MIME type setting?! > Is it possible to get firefox display MathML content markup within XHTML as of today (and not only presentation markup)? yes (and perhaps IE works as well, I don't know and who cares) > btw. the PDF output works already perfectly using > dblatex. that's true. you are a friend of advocacy. > thanx for your time and effort, no problem __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]