Skip to content

Commit

Permalink
xslt update based on metanorma/mn-native-pdf@2f14157
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 authored Jun 28, 2024
1 parent 9ed0f25 commit 099e903
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions lib/isodoc/cc/cc.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -2434,6 +2434,37 @@
</xsl:element>
</xsl:template> <!-- END: insertMainSectionsPageSequences -->

<xsl:template name="insertMainSectionsInSeparatePageSequences">
<xsl:element name="sections" namespace="{$namespace_full}"> <!-- save context element -->
<xsl:for-each select="/*/*[local-name()='sections']/* | /*/*[local-name()='bibliography']/*[local-name()='references'][@normative='true']">
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:element name="page_sequence" namespace="{$namespace_full}">
<xsl:attribute name="main_page_sequence"/>
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>

</xsl:element>
</xsl:for-each>
</xsl:element>

<xsl:for-each select="/*/*[local-name()='annex']">
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:element name="page_sequence" namespace="{$namespace_full}">
<xsl:attribute name="main_page_sequence"/>
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
</xsl:element>
</xsl:for-each>

<xsl:element name="bibliography" namespace="{$namespace_full}"> <!-- save context element -->
<xsl:for-each select="/*/*[local-name()='bibliography']/*[not(@normative='true')] | /*/*[local-name()='bibliography']/*[local-name()='clause'][*[local-name()='references'][not(@normative='true')]]">
<xsl:sort select="@displayorder" data-type="number"/>
<xsl:element name="page_sequence" namespace="{$namespace_full}">
<xsl:attribute name="main_page_sequence"/>
<xsl:apply-templates select="." mode="update_xml_step_move_pagebreak"/>
</xsl:element>
</xsl:for-each>
</xsl:element>
</xsl:template> <!-- END: insertMainSectionsInSeparatePageSequences -->

<xsl:template name="processAllSectionsDefault_items">
<xsl:variable name="updated_xml_step_move_pagebreak">
<xsl:element name="{$root_element}" namespace="{$namespace_full}">
Expand Down

0 comments on commit 099e903

Please sign in to comment.