Skip to content

Commit

Permalink
JCGM xslt updated for fmt-stem, metanorma/isodoc#645
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Feb 10, 2025
1 parent 5299217 commit 29bac37
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions xslt_src/jcgm.standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1779,6 +1779,22 @@
</xsl:template>

<xsl:template match="*[local-name() = 'fmt-xref-label']" mode="flatxml_step1"/>

<xsl:template match="*[local-name() = 'stem']" mode="flatxml_step1"/>

<xsl:template match="*[local-name() = 'fmt-stem'][not(.//*[local-name() = 'passthrough']) and not(.//*[@linebreak])]" mode="flatxml_step1">
<xsl:element name="stem" namespace="{$namespace_full}">
<xsl:copy-of select="@*"/>
<xsl:choose>
<xsl:when test="*[local-name() = 'semx'] and count(node()) = 1">
<xsl:copy-of select="*[local-name() = 'semx']/node()"/>
</xsl:when>
<xsl:otherwise>
<xsl:copy-of select="node()"/>
</xsl:otherwise>
</xsl:choose>
</xsl:element>
</xsl:template>

<xsl:template name="setCrossAlignAttributes">
<xsl:variable name="is_cross_aligned">
Expand Down

0 comments on commit 29bac37

Please sign in to comment.