Commit c793308a authored by Wendell Piez's avatar Wendell Piez

Some tweaks to support math pipelining #154

parent 394750bb
Pipeline #9559 failed with stages
in 24 seconds
......@@ -10,8 +10,11 @@
xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main"
xmlns="http://www.w3.org/1999/xhtml" xmlns:xsw="http://coko.foundation/xsweet"
exclude-result-prefixes="#all">
exclude-result-prefixes="#all"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xmlns:mml="http://www.w3.org/1998/Math/MathML"
>
<!-- XSweet: step 1 of docx extraction - pulling the main text, notes and styles.... [3a] -->
<!-- Input: a WordML document.xml file as extracted from .docx input, with its related (neighbor) files in place -->
<!-- Output: Spammy HTML, pretty cruddy, expect to perform cleanup ... -->
......@@ -774,7 +777,29 @@
</img>
</xsl:template>
<!-- Tables -->
<xsl:include href="docx-table-extract.xsl"/>
<!-- Math -->
<xsl:template match="m:oMathPara">
<p>
<xsl:apply-templates/>
</p>
</xsl:template>
<xsl:template match="m:oMath">
<math xmlns="http://www.w3.org/1998/Math/MathML">
<xsl:apply-templates/>
</math>
</xsl:template>
<xsl:template match="mml:* | m:*">
<xsl:copy copy-namespaces="no">
<xsl:copy-of select="@*" copy-namespaces="no"/>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment