0.4 Preamble

<..configure jsml Preamble..>
 <.pre definitions.>
 \Configure{ext}{jsml}
-_-_-

<..configure jsml-math Preamble..>
 \:CheckOption{math-}     \if:Option
     \edef\Preamble{\Preamble,mathml-}
 \else
    \Log:Note{for sources failing to produce
        clean math code, try the command line option ‘math-’}%
 \fi
-_-_-

<..configure jsml Preamble..>+
 \Configure{PROLOG}{JSML,VERSION,DOCTYPE,*XML-STYLESHEET}
 \Configure{JSML}
     {\HCode{<jsml>\Hnewline}}
-_-_-

<..configure jsml tex4ht..>
 \Configure{HTML}
   {\IgnorePar\HCode{<html \a:@HTML
        <.xmlns.>\Hnewline>\Hnewline}}
   {\ifvmode\IgnorePar\fi\HCode{</html>\Hnewline
    </jsml>\Hnewline}}
-_-_-

<..xmlns..>
 xmlns="http://www.w3.org/1999/xhtml"
-_-_-

The XML definition and DOCTYPE elements are not accepted by the browser.

<..configure jsml tex4ht..>+
 \Configure{VERSION}
     {\HCode{\Hnewline<!--?xml version="1.0" <.xml encoding.> ?-->\Hnewline
             <?xtpipes file="jsml.4xt" ?>\Hnewline}}
-_-_-

<..xml encoding..>
 encoding="\expandafter\ifx \csname a:charset\endcsname\relax
          \expandafter\:encoding\A:charset
    \else \expandafter\:encoding\a:charset\fi"
-_-_-

<..configure jsml tex4ht..>+
 \Configure{DOCTYPE}
   {\HCode{% <!DOCTYPE html \xhtml:DOCTYPE>            \Hnewline
           <!--http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd-->
           \Hnewline}}
 \def\xhtml:DOCTYPE{PUBLIC
      "-//W3C//DTD XHTML 1.0 Transitional//<.dtd lang.>"\Hnewline
     \space\space "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"}
-_-_-