Skip to content

Commit

Permalink
Merge pull request #343 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Dec 22, 2024
2 parents 2336a6d + d64a25d commit 18139be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/isodoc/cc/cc.standard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@
</xsl:variable>

<xsl:for-each select="xalan:nodeset($updated_xml_with_pages)"> <!-- set context to preface/sections -->
<xsl:for-each select=".//*[local-name() = 'page_sequence'][parent::*[local-name() = 'preface']][normalize-space() != '' or .//image or .//svg]">
<xsl:for-each select=".//*[local-name() = 'page_sequence'][parent::*[local-name() = 'preface']][normalize-space() != '' or .//*[local-name() = 'image'] or .//*[local-name() = 'svg']]">

<!-- Copyright, Content, Foreword, etc. pages -->
<fo:page-sequence master-reference="preface" format="i">
Expand Down Expand Up @@ -306,7 +306,7 @@
</fo:page-sequence>
</xsl:for-each>

<xsl:for-each select=".//*[local-name() = 'page_sequence'][not(parent::*[local-name() = 'preface'])][normalize-space() != '' or .//image or .//svg]">
<xsl:for-each select=".//*[local-name() = 'page_sequence'][not(parent::*[local-name() = 'preface'])][normalize-space() != '' or .//*[local-name() = 'image'] or .//*[local-name() = 'svg']]">

<!-- Document Pages -->
<fo:page-sequence master-reference="document" format="1" force-page-count="no-force">
Expand Down

0 comments on commit 18139be

Please sign in to comment.