%D \module
%D   [       file=x-newmmo,
%D        version=2006.05.17,
%D          title=\CONTEXT\ XML Modules,
%D       subtitle=MathML Renderer/Open Math Extensions,
%D         author=Hans Hagen,
%D           date=\currentdate,
%D      copyright={PRAGMA ADE}]
%C
%C This module is part of the \CONTEXT\ macro||package and is
%C therefore copyrighted by \PRAGMA. See mreadme.pdf for
%C details.

%D Strange things, why not mapped onto normal content MathML and/or
%D onto processing instructions.

\unprotect

%D \startbuffer
%D <math xmlns="http://www.w3.org/1998/Math/MathML">
%D     <vector>
%D         <apply>
%D             <csymbol definitionURL="http://www.openmath.org/cd/nums1#rational"/>
%D             <ci>a</ci>
%D             <cn type="integer">2</cn>
%D         </apply>
%D         <ci>a</ci>
%D     </vector>
%D </math>
%D \stopbuffer
%D
%D \typebuffer \processXMLbuffer

\startsetups mmc:csymbol:http://www.openmath.org/cd/nums1\string#rational
    \MMLcreset
    \getXMLstackdata\plustwo/\getXMLstackdata\plusthree
\stopsetups

%D \startbuffer
%D <math xmlns="http://www.w3.org/1998/Math/MathML">
%D     <apply>
%D         <csymbol definitionURL="http://www.openmath.org/cd/math4all#diffquot"/>
%D         <ci>y</ci>
%D         <ci>x</ci>
%D     </apply>
%D </math>
%D \stopbuffer
%D
%D \typebuffer \processXMLbuffer

\startsetups mmc:csymbol:http://www.openmath.org/cd/mathadore\string#diffquot
    \MMLcreset
    \frac {
        \Delta\getXMLstackdata\plustwo
    } {
        \Delta\getXMLstackdata\plusthree
    }
\stopsetups

%D \startbuffer
%D <math xmlns="http://www.w3.org/1998/Math/MathML">
%D     <apply>
%D         <csymbol definitionURL="http://www.openmath.org/cd/math4all#difference"/>
%D         <ci>y</ci>
%D     </apply>
%D </math>
%D \stopbuffer
%D
%D \typebuffer \processXMLbuffer
%D
%D \startbuffer
%D <math xmlns="http://www.w3.org/1998/Math/MathML">
%D     <apply>
%D         <csymbol definitionURL="http://www.openmath.org/cd/math4all#difference"/>
%D         <apply>
%D             <eq/>
%D             <ci>y</ci>
%D             <apply>
%D                 <minus/>
%D                 <apply>
%D                     <ci>f</ci>
%D                     <ci>x</ci>
%D                 </apply>
%D                 <apply>
%D                     <ci>f</ci>
%D                 <apply>
%D                     <minus/>
%D                     <ci>x</ci>
%D                     <cn type="integer">1</cn>
%D                 </apply>
%D             </apply>
%D         </apply>
%D     </apply>
%D </apply>
%D </math>
%D \stopbuffer
%D
%D \typebuffer \processXMLbuffer

\startsetups mmc:csymbol:http://www.openmath.org/cd/mathadore\string#difference
    \MMLcreset
    \Delta\getXMLstackdata\plustwo
\stopsetups

%D \startbuffer
%D <math xmlns="http://www.w3.org/1998/Math/MathML">
%D     <apply>
%D         <csymbol definitionURL="http://www.openmath.org/cd/math4all#diff"/>
%D         <ci>s</ci>
%D         <ci>t</ci>
%D     </apply>
%D </math>
%D \stopbuffer
%D
%D \typebuffer \processXMLbuffer

\startsetups mmc:csymbol:http://www.openmath.org/cd/mathadore\string#diff
    \MMLcreset
    \frac {
        \mfunction{\getXMLentity{mathematicald}}\getXMLstackdata\plustwo
    } {
        \mfunction{\getXMLentity{mathematicald}}\getXMLstackdata\plusthree
    }
\stopsetups

\protect \endinput
