Skip to content

Commit

Permalink
docx2mn.xsl updated, ignoring some elements added, #144
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed May 19, 2022
1 parent b037634 commit a93cc02
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions src/main/resources/docx2mn.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@
Note
Example
Source
Tabletitle
Tablebody0
zzCopyright
zzContents
TOC1
TOC2
TOC3
-->


Expand Down Expand Up @@ -85,10 +92,30 @@
</xsl:template>


<!-- ============================= -->
<!-- Ignore processing -->
<!-- ============================= -->

<!-- no need to output term's num (example '3.1') -->
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'TermNum']"/>

<!-- skip copyright information text -->
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'zzCopyright']"/>

<!-- skip 'Contents' title -->
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'zzContents']"/>


<!-- skip ToC items text -->
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'TOC1']"/>
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'TOC2']"/>
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'TOC3']"/>


<!-- ============================= -->
<!-- END Ignore processing -->
<!-- ============================= -->


<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'Terms']">

Expand Down

0 comments on commit a93cc02

Please sign in to comment.