mirror of
https://github.com/rust-lang/book.git
synced 2026-12-04 11:14:57 -06:00
Regenerate ch3 from xml and fix tables
This commit is contained in:
committed by
Carol (Nichols || Goulding)
parent
4a96535873
commit
b65ef142be
+26
-1319
File diff suppressed because it is too large
Load Diff
+26
-5
@@ -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> ``` </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'ProductionDirective']">
|
||||
<xsl:apply-templates select="*" />
|
||||
<xsl:text> </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> </xsl:text>
|
||||
@@ -215,6 +211,31 @@
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:tbl">
|
||||
<xsl:apply-templates select="*" />
|
||||
<xsl:text> </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:tr[.//w:pStyle/@w:val = 'TableHeader']">
|
||||
<xsl:apply-templates select="*" />
|
||||
<xsl:text>| </xsl:text>
|
||||
<xsl:for-each select="w:tc">
|
||||
<xsl:text>|---</xsl:text>
|
||||
</xsl:for-each>
|
||||
<xsl:text>| </xsl:text>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="w:tr">
|
||||
<xsl:apply-templates select="*" />
|
||||
<xsl:text>| </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>
|
||||
|
||||
Reference in New Issue
Block a user