|
1666 | 1666 | <xsl:variable name="title-table">
|
1667 | 1667 |
|
1668 | 1668 | <xsl:text>Table </xsl:text>
|
1669 |
| - |
| 1669 | + |
1670 | 1670 |
|
1671 | 1671 | </xsl:variable><xsl:variable name="title-note">
|
1672 | 1672 |
|
|
1683 | 1683 | <xsl:text>EXAMPLE </xsl:text>
|
1684 | 1684 |
|
1685 | 1685 |
|
1686 |
| - </xsl:variable><xsl:variable name="title-annex"> |
| 1686 | + </xsl:variable><xsl:variable name="title-inequality">Inequality </xsl:variable><xsl:variable name="title-equation">Equation </xsl:variable><xsl:variable name="title-annex"> |
1687 | 1687 |
|
1688 | 1688 | <xsl:text>Annex </xsl:text>
|
1689 | 1689 |
|
|
1699 | 1699 | <xsl:text>Edition </xsl:text>
|
1700 | 1700 | </xsl:variable><xsl:variable name="title-toc">
|
1701 | 1701 | Contents
|
1702 |
| - </xsl:variable><xsl:variable name="title-key">Key</xsl:variable><xsl:variable name="title-where">where</xsl:variable><xsl:variable name="title-descriptors">Descriptors</xsl:variable><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'
'"/><xsl:attribute-set name="link-style"> |
| 1702 | + |
| 1703 | + </xsl:variable><xsl:variable name="title-page">Page</xsl:variable><xsl:variable name="title-key">Key</xsl:variable><xsl:variable name="title-where">where</xsl:variable><xsl:variable name="title-descriptors">Descriptors</xsl:variable><xsl:variable name="title-part-en">Part </xsl:variable><xsl:variable name="title-part-fr">Partie </xsl:variable><xsl:variable name="title-note-to-entry">Note # to entry: </xsl:variable><xsl:variable name="title-modified">modified</xsl:variable><xsl:variable name="title-source">SOURCE</xsl:variable><xsl:variable name="title-keywords">Keywords</xsl:variable><xsl:variable name="lower">abcdefghijklmnopqrstuvwxyz</xsl:variable><xsl:variable name="upper">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable><xsl:variable name="en_chars" select="concat($lower,$upper,',.`1234567890-=~!@#$%^*()_+[]{}\|?/')"/><xsl:variable name="linebreak" select="'
'"/><xsl:attribute-set name="link-style"> |
1703 | 1704 |
|
1704 | 1705 | <xsl:attribute name="color">blue</xsl:attribute>
|
1705 | 1706 | <xsl:attribute name="text-decoration">underline</xsl:attribute>
|
|
2019 | 2020 | </xsl:template><xsl:template match="*[local-name()='link']" mode="td_text">
|
2020 | 2021 | <xsl:value-of select="@target"/>
|
2021 | 2022 | </xsl:template><xsl:template match="*[local-name()='table2']"/><xsl:template match="*[local-name()='thead']"/><xsl:template match="*[local-name()='thead']" mode="process">
|
| 2023 | + <xsl:param name="cols-count"/> |
2022 | 2024 | <!-- font-weight="bold" -->
|
2023 |
| - <fo:table-header> |
| 2025 | + <fo:table-header> |
| 2026 | + |
2024 | 2027 | <xsl:apply-templates/>
|
2025 | 2028 | </fo:table-header>
|
2026 | 2029 | </xsl:template><xsl:template match="*[local-name()='tfoot']"/><xsl:template match="*[local-name()='tfoot']" mode="process">
|
2027 | 2030 | <xsl:apply-templates/>
|
2028 | 2031 | </xsl:template><xsl:template name="insertTableFooter">
|
| 2032 | + <xsl:param name="cols-count"/> |
2029 | 2033 | <xsl:variable name="isNoteOrFnExist" select="../*[local-name()='note'] or ..//*[local-name()='fn'][local-name(..) != 'name']"/>
|
2030 | 2034 | <xsl:if test="../*[local-name()='tfoot'] or $isNoteOrFnExist = 'true'">
|
2031 | 2035 |
|
|
2036 | 2040 | <!-- if there are note(s) or fn(s) then create footer row -->
|
2037 | 2041 | <xsl:if test="$isNoteOrFnExist = 'true'">
|
2038 | 2042 |
|
2039 |
| - <xsl:variable name="cols-count"> |
2040 |
| - <xsl:choose> |
2041 |
| - <xsl:when test="../*[local-name()='thead']"> |
2042 |
| - <!-- <xsl:value-of select="count(../*[local-name()='thead']/*[local-name()='tr']/*[local-name()='th'])"/> --> |
2043 |
| - <xsl:call-template name="calculate-columns-numbers"> |
2044 |
| - <xsl:with-param name="table-row" select="../*[local-name()='thead']/*[local-name()='tr'][1]"/> |
2045 |
| - </xsl:call-template> |
2046 |
| - </xsl:when> |
2047 |
| - <xsl:otherwise> |
2048 |
| - <!-- <xsl:value-of select="count(./*[local-name()='tr'][1]/*[local-name()='td'])"/> --> |
2049 |
| - <xsl:call-template name="calculate-columns-numbers"> |
2050 |
| - <xsl:with-param name="table-row" select="./*[local-name()='tr'][1]"/> |
2051 |
| - </xsl:call-template> |
2052 |
| - </xsl:otherwise> |
2053 |
| - </xsl:choose> |
2054 |
| - </xsl:variable> |
| 2043 | + |
2055 | 2044 |
|
2056 | 2045 | <fo:table-row>
|
2057 | 2046 | <fo:table-cell border="solid black 1pt" padding-left="1mm" padding-right="1mm" padding-top="1mm" number-columns-spanned="{$cols-count}">
|
|
2081 | 2070 | </xsl:if>
|
2082 | 2071 | </xsl:template><xsl:template match="*[local-name()='tbody']">
|
2083 | 2072 |
|
2084 |
| - <xsl:apply-templates select="../*[local-name()='thead']" mode="process"/> |
| 2073 | + <xsl:variable name="cols-count"> |
| 2074 | + <xsl:choose> |
| 2075 | + <xsl:when test="../*[local-name()='thead']"> |
| 2076 | + <xsl:call-template name="calculate-columns-numbers"> |
| 2077 | + <xsl:with-param name="table-row" select="../*[local-name()='thead']/*[local-name()='tr'][1]"/> |
| 2078 | + </xsl:call-template> |
| 2079 | + </xsl:when> |
| 2080 | + <xsl:otherwise> |
| 2081 | + <xsl:call-template name="calculate-columns-numbers"> |
| 2082 | + <xsl:with-param name="table-row" select="./*[local-name()='tr'][1]"/> |
| 2083 | + </xsl:call-template> |
| 2084 | + </xsl:otherwise> |
| 2085 | + </xsl:choose> |
| 2086 | + </xsl:variable> |
| 2087 | + |
| 2088 | + <xsl:apply-templates select="../*[local-name()='thead']" mode="process"> |
| 2089 | + <xsl:with-param name="cols-count" select="$cols-count"/> |
| 2090 | + </xsl:apply-templates> |
2085 | 2091 |
|
2086 |
| - <xsl:call-template name="insertTableFooter"/> |
| 2092 | + <xsl:call-template name="insertTableFooter"> |
| 2093 | + <xsl:with-param name="cols-count" select="$cols-count"/> |
| 2094 | + </xsl:call-template> |
2087 | 2095 |
|
2088 | 2096 | <fo:table-body>
|
2089 | 2097 | <xsl:apply-templates/>
|
|
2158 | 2166 | </xsl:attribute>
|
2159 | 2167 | </xsl:if>
|
2160 | 2168 | <fo:block>
|
| 2169 | + |
2161 | 2170 | <xsl:apply-templates/>
|
2162 | 2171 | </fo:block>
|
2163 | 2172 | <!-- <xsl:choose>
|
|
2336 | 2345 |
|
2337 | 2346 |
|
2338 | 2347 | <fo:block margin-bottom="12pt" text-align="left">
|
2339 |
| - |
| 2348 | + |
2340 | 2349 | <xsl:value-of select="$title-where"/><xsl:text> </xsl:text>
|
2341 | 2350 | <xsl:apply-templates select="*[local-name()='dt']/*"/>
|
2342 | 2351 | <xsl:text/>
|
|
2349 | 2358 |
|
2350 | 2359 |
|
2351 | 2360 |
|
2352 |
| - |
| 2361 | + |
2353 | 2362 | <xsl:value-of select="$title-where"/>
|
2354 | 2363 | </fo:block>
|
2355 | 2364 | </xsl:when>
|
|
2495 | 2504 |
|
2496 | 2505 | <fo:table-row>
|
2497 | 2506 | <fo:table-cell>
|
| 2507 | + |
2498 | 2508 | <fo:block margin-top="6pt">
|
2499 | 2509 |
|
2500 | 2510 |
|
|
2508 | 2518 | <xsl:attribute name="margin-top">0pt</xsl:attribute>
|
2509 | 2519 | <xsl:attribute name="margin-bottom">12pt</xsl:attribute>
|
2510 | 2520 |
|
| 2521 | + |
| 2522 | + |
2511 | 2523 | <xsl:apply-templates/>
|
2512 |
| - |
| 2524 | + |
2513 | 2525 | </fo:block>
|
2514 | 2526 | </fo:table-cell>
|
2515 | 2527 | <fo:table-cell>
|
|
0 commit comments