Skip to content

Commit

Permalink
Merge pull request #207 from metanorma/feature/xslt-update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored Aug 1, 2023
2 parents 7dcad9c + f8e400f commit 33a9424
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion lib/isodoc/un/un.plenary-attachment.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4628,6 +4628,9 @@
<!-- END Definition List -->
<!-- ===================== -->

<!-- default: ignore title in sections/p -->
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>

<!-- ========================= -->
<!-- Rich text formatting -->
<!-- ========================= -->
Expand Down Expand Up @@ -10380,7 +10383,7 @@
<xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
<xsl:template match="*[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]/*[local-name() = 'span'][@class] | *[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
Expand Down
5 changes: 4 additions & 1 deletion lib/isodoc/un/un.plenary.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4628,6 +4628,9 @@
<!-- END Definition List -->
<!-- ===================== -->

<!-- default: ignore title in sections/p -->
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>

<!-- ========================= -->
<!-- Rich text formatting -->
<!-- ========================= -->
Expand Down Expand Up @@ -10380,7 +10383,7 @@
<xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
<xsl:template match="*[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]/*[local-name() = 'span'][@class] | *[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
Expand Down
5 changes: 4 additions & 1 deletion lib/isodoc/un/un.recommendation.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -4755,6 +4755,9 @@
<!-- END Definition List -->
<!-- ===================== -->

<!-- default: ignore title in sections/p -->
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]" priority="3"/>

<!-- ========================= -->
<!-- Rich text formatting -->
<!-- ========================= -->
Expand Down Expand Up @@ -10508,7 +10511,7 @@
<xsl:template match="*[local-name() = 'span']" mode="update_xml_step1">
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:template>
<xsl:template match="*[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:template match="*[local-name() = 'sections']/*[local-name() = 'p'][starts-with(@class, 'zzSTDTitle')]/*[local-name() = 'span'][@class] | *[local-name() = 'sourcecode']//*[local-name() = 'span'][@class]" mode="update_xml_step1" priority="2">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates mode="update_xml_step1"/>
Expand Down

0 comments on commit 33a9424

Please sign in to comment.