<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" type="guide" style="xslt-stylesheet" id="db2html-math">
 <info>
  <link type="guide" xref="stylesheets" group="db2html"/>
  <desc>Handle MathML in DocBook documents.</desc>
  <revision version="3.8" date="2012-11-13" status="final"/>
 </info>
 <title>DocBook to HTML - MathML</title>
 <p>This stylesheet matches embedded MathML and processes it in <code xref="db2html.math.mode">db2html.math.mode</code>.
 The matched templates for the <sys>mml:math</sys> element automatically set the <sys>display</sys>
 attribute based on whether the element is in block or inline context.</p>
 <links type="topic" groups="imports" style="linklist">
  <title>Imports Stylesheets</title>
 </links>
 <links type="topic" groups="includes" style="linklist">
  <title>Includes Stylesheets</title>
 </links>
 <links type="topic" groups="params" style="linklist">
  <title>Defines Parameters</title>
 </links>
 <links type="topic" groups="keys" style="linklist">
  <title>Defines Keys</title>
 </links>
 <links type="topic" groups="templates" style="linklist">
  <title>Defines Templates</title>
 </links>
 <links type="topic" groups="modes" style="linklist">
  <title>Defines Modes</title>
 </links>
 <list style="compact">
  <title>Calls Templates</title>
  <item>
   <p><link xref="html.class.attr"/></p>
  </item>
  <item>
   <p><link xref="html.lang.attrs"/></p>
  </item>
 </list>
 <list style="compact">
  <title>Calls Modes</title>
  <item>
   <p><link xref="db2html.math.mode"/></p>
  </item>
 </list>
 <table rules="rows">
  <title>Implements Templates</title>
  <thead>
   <tr>
    <th>
     <p>Mode</p>
    </th>
    <th>
     <p>Match</p>
    </th>
   </tr>
  </thead>
  <tbody>
   <tr>
    <td/>
    <td>
     <p><code>equation/mml:math | informalequation/mml:math |                      db:equation/mml:math | db:informalequation/mml:math</code></p>
    </td>
   </tr>
   <tr>
    <td/>
    <td>
     <p><code>inlineequation/mml:math | db:inlineequation/mml:math</code></p>
    </td>
   </tr>
   <tr>
    <td/>
    <td>
     <p><code>db:imagedata[@format='mathml']/mml:math</code></p>
    </td>
   </tr>
   <tr>
    <td>
     <p><code xref="db2html.math.mode">db2html.math.mode</code></p>
    </td>
    <td>
     <p><code>mml:*</code></p>
    </td>
   </tr>
   <tr>
    <td>
     <p><code xref="db2html.math.mode">db2html.math.mode</code></p>
    </td>
    <td>
     <p><code>text()</code></p>
    </td>
   </tr>
   <tr>
    <td>
     <p><code xref="db2html.math.mode">db2html.math.mode</code></p>
    </td>
    <td>
     <p><code>*</code></p>
    </td>
   </tr>
  </tbody>
 </table>
</page>
