[TYPO3] MathML as a tt-content

Tyler Kraft headhunterxiii at yahoo.ca
Thu Jan 4 19:31:15 CET 2007


Well first where did you get config.xhtmlDoctype from? I don't have that 
in my copy of TSref.

And as far as I an tell you didn't do anything that I mentioned, and you 
didn't post your setup at all either.

So I guess the new question is how do you expect help from us?




mario wrote:
> Hi
> 
> nope, it does not work.
> 
> I tried the following setup:
> --------------
> config.xmlprologue = <?xml version="1.0"?>
> 
> 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.xhtmlDoctype = xhtml_11
> 
> config.htmlTag_setParams =  xmlns="http://www.w3.org/1999/xhtml"
> xmlns:math="http://www.w3.org/1998/Math/MathML"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> 
> (#) config.doctypeSwitch = 1
> 
> # Default PAGE object:
> page = PAGE
> page.20 = CONTENT
> page.20.table = tt_content
> page.20.orderby = sorting
> page.30 = HTML
> page.30.value = --- <math xmlns='http://www.w3.org/1998/Math/MathML'>
> bla bla bla </math>
> ------------------- 
> and I have the MathML under page.30 as a html tt-content too.
> 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.
> Note that <?xml version="1.0"?> is not there, why?
> Also, do I need to change <meta ... content="text/html; ...> to something else? is so, how?
> 
> thanks to all
> mario
> 
> 
> 
> 
> 
> On Thu, 2007-01-04 at 17:22 +0000, Tyler Kraft wrote:
>> 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
>>
> ......
> 


More information about the TYPO3-english mailing list