Commit 0dce019 1 parent b5ed485 commit 0dce019 Copy full SHA for 0dce019
File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change 17784
17784
</xsl:if>
17785
17785
</xsl:template>
17786
17786
17787
+ <!-- optimization: remove clause if table_only_with_id isn't empty and clause doesn't contain table or dl with table_only_with_id -->
17788
+ <xsl:template match="*[local-name() = 'clause' or local-name() = 'p' or local-name() = 'definitions' or local-name() = 'annex']" mode="update_xml_step1">
17789
+ <xsl:choose>
17790
+ <xsl:when test="$table_only_with_id != '' and not(.//*[local-name() = 'table' or local-name() = 'dl'][@id = $table_only_with_id])">
17791
+ <xsl:copy>
17792
+ <xsl:copy-of select="@*"/>
17793
+ </xsl:copy>
17794
+ </xsl:when>
17795
+ <xsl:otherwise>
17796
+ <xsl:copy>
17797
+ <xsl:copy-of select="@*"/>
17798
+ <xsl:apply-templates mode="update_xml_step1"/>
17799
+ </xsl:copy>
17800
+ </xsl:otherwise>
17801
+ </xsl:choose>
17802
+ </xsl:template>
17803
+
17804
+
17787
17805
<!-- =========================================================================== -->
17788
17806
<!-- END STEP1: Re-order elements in 'preface', 'sections' based on @displayorder -->
17789
17807
<!-- =========================================================================== -->
You can’t perform that action at this time.
0 commit comments