|
132 | 132 |
|
133 | 133 | <xsl:variable name="isApplyAutolayoutAlgorithm_">
|
134 | 134 | <xsl:choose>
|
135 |
| - <xsl:when test="$namespace = 'bipm' or $namespace = 'bsi' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'iso' or $namespace = 'itu' or $namespace = 'jcgm' or $namespace = 'jis' or $namespace = 'm3d' or $namespace = 'mpfd' or $namespace = 'nist-sp' or $namespace = 'nist-cswp' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' or $namespace = 'rsd' or $namespace = 'unece' or $namespace = 'unece-rec'">true</xsl:when> |
136 |
| - <xsl:when test="$namespace = 'plateau'">skip</xsl:when> |
| 135 | + <xsl:when test="$namespace = 'bipm' or $namespace = 'bsi' or $namespace = 'csa' or $namespace = 'csd' or $namespace = 'iec' or $namespace = 'ieee' or $namespace = 'iho' or $namespace = 'iso' or $namespace = 'itu' or $namespace = 'jcgm' or $namespace = 'jis' or $namespace = 'm3d' or $namespace = 'mpfd' or $namespace = 'nist-sp' or $namespace = 'nist-cswp' or $namespace = 'ogc' or $namespace = 'ogc-white-paper' or $namespace = 'plateau' or $namespace = 'rsd' or $namespace = 'unece' or $namespace = 'unece-rec'">true</xsl:when> |
| 136 | + <!-- <xsl:when test="$namespace = 'plateau'">skip</xsl:when> --> |
137 | 137 | <xsl:otherwise>false</xsl:otherwise>
|
138 | 138 | </xsl:choose>
|
139 | 139 | </xsl:variable>
|
|
7155 | 7155 | </xsl:for-each>
|
7156 | 7156 | </xsl:template>
|
7157 | 7157 |
|
7158 |
| - <xsl:param name="table_only_with_id"/><!-- Example: table1, for table auto-layout algorithm --> |
| 7158 | + <!-- for table auto-layout algorithm --> |
| 7159 | + <xsl:param name="table_only_with_id"/> <!-- Example: 'table1' --> |
| 7160 | + <xsl:param name="table_only_with_ids"/> <!-- Example: 'table1 table2 table3 ' --> |
7159 | 7161 |
|
7160 | 7162 | <xsl:template match="*[local-name()='table']" priority="2">
|
7161 | 7163 | <xsl:choose>
|
7162 | 7164 | <xsl:when test="$table_only_with_id != '' and @id = $table_only_with_id">
|
7163 | 7165 | <xsl:call-template name="table"/>
|
7164 | 7166 | </xsl:when>
|
7165 | 7167 | <xsl:when test="$table_only_with_id != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
|
| 7168 | + <xsl:when test="$table_only_with_ids != '' and contains($table_only_with_ids, concat(@id, ' '))"> |
| 7169 | + <xsl:call-template name="table"/> |
| 7170 | + </xsl:when> |
| 7171 | + <xsl:when test="$table_only_with_ids != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when> |
7166 | 7172 | <xsl:otherwise>
|
7167 | 7173 | <xsl:call-template name="table"/>
|
7168 | 7174 | </xsl:otherwise>
|
|
9316 | 9322 | <xsl:call-template name="dl"/>
|
9317 | 9323 | </xsl:when>
|
9318 | 9324 | <xsl:when test="$table_only_with_id != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when>
|
| 9325 | + <xsl:when test="$table_only_with_ids != '' and contains($table_only_with_ids, concat(@id, ' '))"> |
| 9326 | + <xsl:call-template name="dl"/> |
| 9327 | + </xsl:when> |
| 9328 | + <xsl:when test="$table_only_with_ids != ''"><fo:block/><!-- to prevent empty fo:block-container --></xsl:when> |
9319 | 9329 | <xsl:otherwise>
|
9320 | 9330 | <xsl:call-template name="dl"/>
|
9321 | 9331 | </xsl:otherwise>
|
|
9550 | 9560 |
|
9551 | 9561 | <!-- create virtual html table for dl/[dt and dd] -->
|
9552 | 9562 | <xsl:variable name="simple-table">
|
9553 |
| - |
| 9563 | + <!-- initial='<xsl:copy-of select="."/>' --> |
9554 | 9564 | <xsl:variable name="dl_table">
|
9555 | 9565 | <tbody>
|
9556 | 9566 | <xsl:apply-templates mode="dl_if">
|
@@ -18087,11 +18097,24 @@
|
18087 | 18097 | <!-- optimization: remove clause if table_only_with_id isn't empty and clause doesn't contain table or dl with table_only_with_id -->
|
18088 | 18098 | <xsl:template match="*[local-name() = 'clause' or local-name() = 'p' or local-name() = 'definitions' or local-name() = 'annex']" mode="update_xml_step1">
|
18089 | 18099 | <xsl:choose>
|
| 18100 | + <xsl:when test="($table_only_with_id != '' or $table_only_with_ids != '') and local-name() = 'p' and (ancestor::*[local-name() = 'table' or local-name() = 'dl' or local-name() = 'toc'])"> |
| 18101 | + <xsl:copy> |
| 18102 | + <xsl:copy-of select="@*"/> |
| 18103 | + <xsl:apply-templates mode="update_xml_step1"/> |
| 18104 | + </xsl:copy> |
| 18105 | + </xsl:when> |
| 18106 | + <!-- for table auto-layout algorithm --> |
18090 | 18107 | <xsl:when test="$table_only_with_id != '' and not(.//*[local-name() = 'table' or local-name() = 'dl'][@id = $table_only_with_id])">
|
18091 | 18108 | <xsl:copy>
|
18092 | 18109 | <xsl:copy-of select="@*"/>
|
18093 | 18110 | </xsl:copy>
|
18094 | 18111 | </xsl:when>
|
| 18112 | + <!-- for table auto-layout algorithm --> |
| 18113 | + <xsl:when test="$table_only_with_ids != '' and not(.//*[local-name() = 'table' or local-name() = 'dl'][contains($table_only_with_ids, concat(@id, ' '))])"> |
| 18114 | + <xsl:copy> |
| 18115 | + <xsl:copy-of select="@*"/> |
| 18116 | + </xsl:copy> |
| 18117 | + </xsl:when> |
18095 | 18118 | <xsl:otherwise>
|
18096 | 18119 | <xsl:copy>
|
18097 | 18120 | <xsl:copy-of select="@*"/>
|
|
0 commit comments