Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] jeuclid-fop and docbook #8

Open
aanno opened this issue Feb 28, 2020 · 0 comments
Open

[Question] jeuclid-fop and docbook #8

aanno opened this issue Feb 28, 2020 · 0 comments

Comments

@aanno
Copy link

aanno commented Feb 28, 2020

Well, I'm trying to use jeuclid-fop (#5) with docbook and the xslt20 stylesheets, but I've problem to pass the MathML unaltered into the fop output.

Consider the snippet:

  <para>
    <math xmlns="http://www.w3.org/1998/Math/MathML">
      <apply>
        <int/>
        <bvar>
          <ci>x</ci>
        </bvar>
        <interval>
          <ci>a</ci>
          <ci>b</ci>
        </interval>
        <apply><cos/>
          <ci>x</ci>
        </apply>
      </apply>
    </math>
  </para>

turns into the following FO:

</fo:block><fo:block space-before.optimum="1em" space-before.minimum="0.8em" space-before.maximum="1.2em"><fo:block font-weight="bold">Declaring the dependency in a Maven build file (i.e., pom.xml)</fo:block>  
    <fo:block><fo:inline color="red">&lt;math&gt;</fo:inline>
      <fo:block><fo:inline color="red">&lt;apply&gt;</fo:inline>
        <fo:block><fo:inline color="red">&lt;int&gt;</fo:inline><fo:inline color="red">&lt;/int&gt;</fo:inline></fo:block>
        <fo:block><fo:inline color="red">&lt;bvar&gt;</fo:inline>
          <fo:block><fo:inline color="red">&lt;ci&gt;</fo:inline>x<fo:inline color="red">&lt;/ci&gt;</fo:inline></fo:block>
        <fo:inline color="red">&lt;/bvar&gt;</fo:inline></fo:block>
        <fo:block><fo:inline color="red">&lt;interval&gt;</fo:inline>
          <fo:block><fo:inline color="red">&lt;ci&gt;</fo:inline>a<fo:inline color="red">&lt;/ci&gt;</fo:inline></fo:block>
          <fo:block><fo:inline color="red">&lt;ci&gt;</fo:inline>b<fo:inline color="red">&lt;/ci&gt;</fo:inline></fo:block>
        <fo:inline color="red">&lt;/interval&gt;</fo:inline></fo:block>
        <fo:block><fo:inline color="red">&lt;apply&gt;</fo:inline><fo:block><fo:inline color="red">&lt;cos&gt;</fo:inline><fo:inline color="red">&lt;/cos&gt;</fo:inline></fo:block>
          <fo:block><fo:inline color="red">&lt;ci&gt;</fo:inline>x<fo:inline color="red">&lt;/ci&gt;</fo:inline></fo:block>
        <fo:inline color="red">&lt;/apply&gt;</fo:inline></fo:block>
      <fo:inline color="red">&lt;/apply&gt;</fo:inline></fo:block>
    <fo:inline color="red">&lt;/math&gt;</fo:inline></fo:block>
  </fo:block></fo:block>

Perhaps this is more a docbook question but what to do the get the MathML to FO unaltered.

Kind regards,

aanno

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant