Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Julien Tremblay McLellan
XSweet
Commits
3bb91efa
Commit
3bb91efa
authored
Jan 22, 2019
by
Alex Theg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
stop scrubbing important info from math tags
parent
c21e8f26
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
applications/.DS_Store
applications/.DS_Store
+0
-0
applications/docx-extract/scrub.xsl
applications/docx-extract/scrub.xsl
+7
-0
No files found.
applications/.DS_Store
View file @
3bb91efa
No preview for this file type
applications/docx-extract/scrub.xsl
View file @
3bb91efa
...
...
@@ -4,6 +4,7 @@
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"
>
...
...
@@ -60,6 +61,12 @@
<!-- 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"
>
<xsl:copy>
<xsl:apply-templates
select=
"node() | @*"
/>
</xsl:copy>
</xsl:template>
<xsl:template
priority=
"5"
match=
"img | br | hr"
>
<xsl:copy>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment