[TYPO3] MathML as a tt-content

Tyler Kraft headhunterxiii at yahoo.ca
Fri Jan 5 12:49:05 CET 2007


hi no problem I forgot I'mm looking at a download out of tsref from 3.9 
;-) Sorry for the confussion!

To be honest what I suggested is actually really easy to do.

mario wrote:
> Tyler, All,
> 
> On Thu, 2007-01-04 at 18:31 +0000, Tyler Kraft wrote:
>> Well first where did you get config.xhtmlDoctype from? I don't have that 
>> in my copy of TSref.
> 
> http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/7/3/
> search for xhtmlDoctype;
> 
>> 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.
> 
> No, you are a little unfair: I looked at your suggestion, discovered
> doctype which is not on my printed out TSRef (old 3.5b3), so looked at
> the on-line update version (link above), and tried a couple of things. 
> I just did not try your suggestion about condition, it looked somehow an
> extra feature, too difficult for now; The setup is minimal: nothing more
> than what I wrote in th elast msg, plus the basic to get tt-content
> elements. 
> 
>> So I guess the new question is how do you expect help from us?
> 
> some simple advise :-)
> last update:
> I have taken whatever output Typo3 is returning to me and saved as a
> file both .xml and .html. Surprise, Mozilla displays the former very
> fine, the latter as bad as I get from Typo3. Why? Maybe this is not even
> a Typo3 issue, but I have not idea how to reproduce the difference
> within Typo3. 
> your(s) help is welcome
> my best mario
>>
>>
>>
>> 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
>>>>
>>> ......
>>>
>> _______________________________________________
>> TYPO3-english mailing list
>> TYPO3-english at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>>


More information about the TYPO3-english mailing list