[TYPO3] MathML as a tt-content

Tyler Kraft headhunterxiii at yahoo.ca
Thu Jan 4 18:22:41 CET 2007


well assuming you don't want all pages to have that doc type, i would 
use the page layout property so that a user can select that type of 
document for pages as and where they need. Then I would use a simple 
conditional in your template typoscript and provide a different doctype 
when ever that was needed

[globalVar = TSFE:page|layout=1]
page.config.doctype = <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus 
MathML 2.0//EN" "http://www.w3.org/TR/MathML2/dtd/xhtml-math11-f.dtd">
[global]

not tested but that should be close ;-) Everything you need to do this 
is in TSref

and if need be you can then also use some typoscript in the page 
properties to re-name the specific layout so it is more user intuitive.



mario wrote:
> On Thu, 2007-01-04 at 16:39 +0100, Martin Kutschker wrote:
>> mario schrieb:
>>> Hi,
>>>
>>> I would like to write a piece of MathML code as a tt-content element
>>> (and within a RTE textarea) and see the nice math output by my Mozilla.
>>> How do I need to do?
>> Besides setting the correct HTML header (doctype) 
> ....
> 
> How? TS? page.config.doctype = ????
> 
> The piece of code has the following header::
> 
> <?xml version="1.0"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN"
> "http://www.w3.org/TR/MathML2/dtd/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">
> 
> help welcome
> thks mario
> 
>> Masi
> 
> 


More information about the TYPO3-english mailing list