Commit 2edfadb9 authored by Alex Theg's avatar Alex Theg

Refactor scrub.xsl to copy all ooxml math

parent 3bb91efa
......@@ -4,7 +4,6 @@
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xpath-default-namespace="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="#all">
......@@ -61,8 +60,9 @@
<!-- Matching b, i and u if they have only whitespace text content w/ other formatting properties
this includes <b> </b> and <b><tab/></b> -->
<!-- copy all descendents of math tags unchanged, as they contain info for xsweet_tei_omml2mml.xsl -->
<xsl:template match="math:*//*" priority="15">
<!-- copy everything in the ooxml math namespace -->
<xsl:template xmlns:oom="http://schemas.openxmlformats.org/officeDocument/2006/math"
match="oom:*" priority="10">
<xsl:copy>
<xsl:apply-templates select="node() | @*"/>
</xsl:copy>
......
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