Skip to content

Commit

Permalink
JIS xslt updated for example title rendering, metanorma/mn-samples-ji…
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Aug 18, 2024
1 parent 09f7fcd commit e54e3dc
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion xslt_src/jis.international-standard.core.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1528,11 +1528,18 @@
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:element name="p" namespace="https://www.metanorma.org/ns/jis">
<xsl:value-of select="substring-after(jis:name/text(), ' — ')"/>
<xsl:value-of select="substring-after(jis:name/text()[1], ' — ')"/>
<xsl:apply-templates select="jis:name/text()[1]/following-sibling::node()" mode="update_xml_step1"/>
</xsl:element>
<xsl:apply-templates mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<xsl:template match="jis:example/jis:name[contains(text(), ' — ')]" mode="update_xml_step1">
<xsl:copy>
<xsl:copy-of select="@*"/>
<xsl:apply-templates select="text()[1]" mode="update_xml_step1"/>
</xsl:copy>
</xsl:template>
<xsl:template match="jis:example/jis:name/text()" mode="update_xml_step1">
<xsl:variable name="example_name">
<xsl:choose>
Expand Down

0 comments on commit e54e3dc

Please sign in to comment.