dita-community / dita13-dita-ot-1.x-support

Plugins that add support for DITA 1.3 vocabularies to the 1.x version of the DITA Open Toolkit.
Apache License 2.0
0 stars 1 forks source link

dita-ot 3.6.1 and mathml issue #9

Open ldt opened 3 years ago

ldt commented 3 years ago

Hello,

I would like to transform DITA content with mathml equations into html5 but I can't make it work. I might miss a simple step, here's what I did:

After reading https://www.oxygenxml.com/doc/versions/21.1/ug-editor/topics/whr-mathml-support-x-2.html, I installed the plugins of this repo.

$ dita --version
DITA-OT version 3.6.1
$ dita plugins
org.dita-community.common.xslt
org.dita-community.dita13.html
org.dita.base
org.dita.eclipsehelp
org.dita.html5
org.dita.htmlhelp
org.dita.index
org.dita.normalize
org.dita.pdf2
org.dita.pdf2.axf
org.dita.pdf2.fop
org.dita.pdf2.xep
org.dita.specialization.dita11
org.dita.xhtml
org.lwdita
org.oasis-open.dita.techcomm.v2_0
org.oasis-open.dita.v1_2
org.oasis-open.dita.v1_3
org.oasis-open.dita.v2_0
org.oasis-open.xdita.v0_2_2

and I tried to transform the sample dita content:

$ dita -i 1.3domains-tests.ditamap -o output -f html5

but the generated html content does not the equations:

image
<!DOCTYPE html
  SYSTEM "about:legacy-compat">
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta charset="UTF-8"><meta name="copyright" content="(C) Copyright 2021"><meta name="generator" content="DITA-OT"><link rel="stylesheet" type="text/css" href="../commonltr.css"><title>MathML and Equation Domain Tests</title></head><body id="topic_xrh_d43_bs"><main role="main"><article role="article" aria-labelledby="ariaid-title1">
  <h1 class="title topictitle1" id="ariaid-title1"> MathML and Equation Domain Tests</h1>
  <div class="body">
    <p class="p">This topic exercises the various ways to embed or refer to MathML and also exercises the equation domain elements.</p>

      <figure class="fig equation-figure fignone" id="topic_xrh_d43_bs__equation-figure_yzd_h43_bs"><figcaption><span class="fig--title-label">Figure 1. </span>Inline MathML Within an <code class="keyword markupname xmlelement">&lt;equation-figure&gt;</code></figcaption></figure>
      <figure class="fig equation-figure fignone" id="topic_xrh_d43_bs__equation-figure_zzd_h43_bs"><figcaption><span class="fig--title-label">Figure 2. </span>Mathref Within an <code class="keyword markupname xmlelement">&lt;equation-figure&gt;</code>. <span class="desc figdesc">Direct reference to the MathML document. Empty equation-number element</span></figcaption>

        <div class="div equation-block"> <span class="ph equation-number"></span>  </div>
      </figure>
      <figure class="fig equation-figure fignone" id="topic_xrh_d43_bs__equation-figure_a12_h43_bs"><figcaption><span class="fig--title-label">Figure 3. </span>Mathref Within an <code class="keyword markupname xmlelement">&lt;equation-figure&gt;</code>. <span class="desc figdesc">Direct reference to the MathML document. Equation-number element with content</span></figcaption>

        <div class="div equation-block"> <span class="ph equation-number">3.2</span>  </div>
      </figure>
      <figure class="fig equation-figure fignone" id="topic_xrh_d43_bs__equation-figure_b12_h43_bs"><figcaption><span class="fig--title-label">Figure 4. </span>Mathref Within an <code class="keyword markupname xmlelement">&lt;equation-figure&gt;</code>. <span class="desc figdesc">Key reference to the MathML document.</span></figcaption></figure>
      <figure class="fig equation-figure fignone" id="topic_xrh_d43_bs__equation-figure_c12_h43_bs"><figcaption><span class="fig--title-label">Figure 5. </span>Equation figure containing a definition list</figcaption>

        <dl class="dl">

            <dt class="dt dlterm"></dt>
            <dd class="dd"> This is the definition of the symbol. </dd>

        </dl>
      </figure>
    <p class="p">Block equation inline within a paragraph. The equation has leading and trailing punctuation that should be rendered on the same line.</p>
    <p class="p">This is before the equation<span class="ph equation-inline">. After the equation. There is a period (.) immediately following the equation.</span></p>

  </div>
<nav role="navigation" class="related-links"><div class="familylinks"><div class="parentlink"><strong>Parent topic:</strong> <a class="link" href="../topics/dita13-domain-tests.html" title="Tests for the XML Domain">DITA 1.3 Domain Tests</a></div></div></nav></article></main></body></html>