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

Commit

Permalink
annex obligation processing fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed May 25, 2021
1 parent da4cb45 commit eabafb1
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions src/main/resources/mn2sts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -863,13 +863,17 @@
<xsl:variable name="id"><xsl:call-template name="getId"/></xsl:variable>
<xsl:variable name="section" select="$elements//element[@source_id = $current_id]/@section"/>
<app id="{$id}" content-type="inform-annex">
<xsl:attribute name="content-type">
<xsl:choose>
<xsl:when test="@obligation = 'informative'">inform-annex</xsl:when>
<xsl:when test="normalize-space(@obligation) != ''"><xsl:value-of select="@obligation"/></xsl:when>
<!-- <xsl:otherwise></xsl:otherwise> -->
</xsl:choose>
</xsl:attribute>
<xsl:if test="normalize-space(@obligation) != ''">
<xsl:attribute name="content-type">
<xsl:choose>
<xsl:when test="@obligation = 'informative'">inform-annex</xsl:when>
<xsl:otherwise><xsl:value-of select="@obligation"/></xsl:otherwise>
</xsl:choose>
</xsl:attribute>
</xsl:if>
<xsl:if test="$organization = 'BSI' and normalize-space(@obligation) = ''">
<xsl:attribute name="content-type">norm-annex</xsl:attribute>
</xsl:if>
<label>
<xsl:choose>
<xsl:when test="ancestor::*[local-name() = 'amend']/*[local-name() = 'autonumber'][@type = 'annex']">
Expand Down

0 comments on commit eabafb1

Please sign in to comment.