Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
xslt updated for metanorma/mn-samples-bsi#37
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jun 15, 2021
1 parent b100158 commit 14527be
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/main/resources/mn2sts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -1806,12 +1806,17 @@
<xsl:variable name="reference" select="@bibitemid"/>
<!-- <xsl:variable name="docidentifier_URN" select="//*[local-name() = 'bibitem'][@id = $reference]/*[local-name() = 'docidentifier'][@type = 'URN']"/> -->
<xsl:variable name="docidentifier_URN" select="$bibitems_URN/bibitem[@id = $reference]/urn"/>
<xsl:if test="$docidentifier_URN != ''">
<xsl:attribute name="std-id">
<xsl:value-of select="$docidentifier_URN"/>
</xsl:attribute>
</xsl:if>

<xsl:attribute name="std-id">
<xsl:choose>
<xsl:when test="$docidentifier_URN != ''">
<xsl:value-of select="$docidentifier_URN"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$reference"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>

<std-ref>

<xsl:choose>
Expand Down

0 comments on commit 14527be

Please sign in to comment.