[TYPO3] MathML as a tt-content
mario
chiari.hm at flashnet.it
Thu Jan 4 20:17:03 CET 2007
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