[TYPO3] MathML as a tt-content

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Jan 5 09:58:35 CET 2007


mario schrieb:
> Hi
> 
> nope, it does not work.
> 
> I tried the following setup:
> --------------
> config.xmlprologue = <?xml version="1.0"?>

Should be set autmatically, you need it only if you want to change the default.

> 
> config.doctype =  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus
> MathML 2.0//EN" "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">

Is this in one line in your TS?

config.doctype (
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
  "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
)

> (#) config.doctypeSwitch = 1

I wouldn't use this one.

> The final output is:
> 
> ---------------
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
> "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd">
> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:math="http://www.w3.org/1998/Math/MathML" xmlns:xlink="http://www.w3.org/1999/xlink">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
> ---------
> 
> The MathML is there (twice) but is not rendered.

Can you provide a link to your page?

> Note that <?xml version="1.0"?> is not there, why?

Probably the doctypSwitch.

> Also, do I need to change <meta ... content="text/html; ...> to something else? is so, how?

You have to hack class.tslib_pagegen.php. Simply comment the line out where 
this header is set or change it. I'll see if I can do something for TYPO3 
4.1. But what? How abou this:

We could add a config.contentType config. If set, would change from the 
default. And the special word "none" would remove it altogether (like for 
xmlprologe)

Masi


More information about the TYPO3-english mailing list