Commit 3678d7da authored by Alex Theg's avatar Alex Theg
Browse files

never join math

parent 1192dd4d
......@@ -5,6 +5,8 @@
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsw="http://coko.foundation/xsweet"
xmlns="http://www.w3.org/1999/xhtml"
xmlns:math="http://www.w3.org/1998/Math/MathML"
xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math"
xpath-default-namespace="http://www.w3.org/1999/xhtml"
exclude-result-prefixes="#all">
......@@ -15,7 +17,7 @@
<!-- XSweet: Further reduces haphazard redundancy in markup by joining adjacent elements with similar properties .... [3d] -->
<!-- Input: A messy noisy HTML document needing (yet more) streamlining and cleanup. -->
<!-- Output: A copy, with improvements. -->
<!-- Copy everything by default. -->
<xsl:template match="node() | @*">
<xsl:copy>
......@@ -87,7 +89,7 @@
</xsl:template>
<!-- These guys should never collapse so their hash is always unique to them.-->
<xsl:template mode="signature" match="div | p | tab">
<xsl:template mode="signature" match="div | p | tab | math:* | m:*">
<xsl:value-of select="local-name(.)"/>
<xsl:value-of select="generate-id(.)"/>
</xsl:template>
......
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