2.1 Header

<..configure mathplayer Preamble..>
 \edef\Preamble{\Preamble,xht}
 \Configure{ext}{xht}
-_-_-

<..dtd lang..>
 \expandafter
 \ifx \csname a:dtd-lang\endcsname\relax EN\else
   \csname a:dtd-lang\endcsname
 \fi
-_-_-

<..configure mathplayer tex4ht..>
 \Configure{DOCTYPE}
        {\HCode{<!DOCTYPE html PUBLIC
                 "-//W3C//DTD XHTML 1.1 plus MathML 2.0//<.dtd lang.>"\Hnewline
                 "http://www.w3.org/Math/DTD/mathml2/xhtml-math11-f.dtd"\Hnewline
                  [\Hnewline
                      <!ENTITY \% MATHML.prefixed "INCLUDE">\Hnewline
                      <!ENTITY \% MATHML.prefix "m">\Hnewline
                  ]\Hnewline
                 >\Hnewline }}
 \Configure{@BODY}
    {\ifvmode \EndP\fi \IgnorePar\HCode{<script type="text/javascript">\Hnewline<!--\Hnewline
            <.check for ie 5.5 and mathplayer.>\Hnewline-->\Hnewline
            </script>\Hnewline
    }\par\ShowPar}
    \Configure{@HTML}
      {xmlns:m="http://www.w3.org/1998/Math/MathML"\Hnewline
 %      xmlns:dsi="http://www.dessci.com/mathml" \Hnewline
      }
 %\let\dsi:=\empty
-_-_-

application/xhtml+xml

<..check for ie 5.5 and mathplayer..>
 if(   navigator.appName=="Microsoft Internet Explorer"   \Hnewline
    && navigator.platform=="Win32"                        \Hnewline
 ){                                                       \Hnewline
   if( parseFloat(navigator.appVersion.substr(            \Hnewline
        navigator.appVersion.indexOf("MSIE ")+5))>="5.5"  \Hnewline
   ){
     try {                                                  \Hnewline
       var oMP = new ActiveXObject("MathPlayer.Factory.1"); \Hnewline
     }                                                      \Hnewline
     catch(e) { alert("Can’t find Design Science’s MathPalyer" +  \Hnewline
           "(http://www.dessci.com/webmath/mathplayer)");} \Hnewline
   } else {                                                \Hnewline
     alert("Requires MSIE version 5.5 or later");          \Hnewline
 } }                                                       \Hnewline
-_-_-