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
c793308a
Commit
c793308a
authored
Oct 25, 2018
by
Wendell Piez
Browse files
Some tweaks to support math pipelining
#154
parent
394750bb
Pipeline
#9559
failed with stages
in 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
applications/docx-extract/docx-html-extract.xsl
View file @
c793308a
...
...
@@ -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>
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