Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
XSweet
XSweet
Commits
3bb91efa
Commit
3bb91efa
authored
Jan 22, 2019
by
Alex Theg
Browse files
stop scrubbing important info from math tags
parent
c21e8f26
Changes
2
Hide whitespace changes
Inline
Side-by-side
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