Regenerate ch3 from xml and fix tables

This commit is contained in:
Carol (Nichols || Goulding) 2022-09-06 11:03:53 -04:00 committed by Carol (Nichols || Goulding)
parent 4a96535873
commit b65ef142be
2 changed files with 52 additions and 1324 deletions

File diff suppressed because it is too large Load Diff

View File

@ -24,6 +24,7 @@
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'CopyrightHead']" />
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'CopyrightLOC']" />
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'ProductionDirective0']" />
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'ProductionDirective']" />
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'BoxType']" />
<xsl:template match="w:p[w:pPr[not(w:pStyle)]]" />
@ -169,11 +170,6 @@
<xsl:text>&#10;```&#10;&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'ProductionDirective']">
<xsl:apply-templates select="*" />
<xsl:text>&#10;&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:p[w:pPr/w:pStyle[@w:val = 'Caption' or @w:val = 'TableTitle' or @w:val = 'Caption1' or @w:val = 'Listing' or @w:val = 'CodeListingCaption']]">
<xsl:apply-templates select="*" />
<xsl:text>&#10;&#10;</xsl:text>
@ -215,6 +211,31 @@
<xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:tbl">
<xsl:apply-templates select="*" />
<xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:tr[.//w:pStyle/@w:val = 'TableHeader']">
<xsl:apply-templates select="*" />
<xsl:text>|&#10;</xsl:text>
<xsl:for-each select="w:tc">
<xsl:text>|---</xsl:text>
</xsl:for-each>
<xsl:text>|&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:tr">
<xsl:apply-templates select="*" />
<xsl:text>|&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:tc">
<xsl:text>| </xsl:text>
<xsl:apply-templates select=".//w:r" />
<xsl:text> </xsl:text>
</xsl:template>
<xsl:template match="w:p">
Unmatched: <xsl:value-of select="w:pPr/w:pStyle/@w:val" />
<xsl:text>