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 comm-ref processing, #47
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed May 30, 2021
1 parent 5ffa371 commit 7f76aec
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/main/resources/mn2sts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,13 @@
</xsl:otherwise>
</xsl:choose>

<xsl:variable name="related_comm_ref" select="*[local-name() = 'relation'][@type='related']/*[local-name() = 'bibitem']/*[local-name() = 'docidentifier']"/>
<xsl:variable name="related_comm_ref_text">Committee reference</xsl:variable>
<comm-ref>
<xsl:choose>
<xsl:when test="$organization = 'BSI' and starts-with($related_comm_ref, $related_comm_ref_text)">
<xsl:value-of select="normalize-space(substring-after($related_comm_ref, $related_comm_ref_text))"/>
</xsl:when>
<xsl:when test="*[local-name() = 'ext']/*[local-name() = 'editorialgroup']/*[local-name() = 'technical-committee'] and not(
*[local-name() = 'ext']/*[local-name() = 'editorialgroup']/*[local-name() = 'subcommittee'] and
*[local-name() = 'ext']/*[local-name() = 'editorialgroup']/*[local-name() = 'workgroup'] )">
Expand All @@ -627,7 +632,7 @@

<!-- std-xref -->
<!-- ignoring all instances of .//relation[@type = 'adopted-from']/bibitem -->
<xsl:apply-templates select="*[local-name() = 'relation'][@type != 'adopted-from']" mode="front" /><!-- adopted-from -> to standalone xxx-meta -->
<xsl:apply-templates select="*[local-name() = 'relation'][@type != 'adopted-from' and @type != 'related']" mode="front" /><!-- adopted-from -> to standalone xxx-meta , related -> comm-ref -->


<permissions>
Expand Down

0 comments on commit 7f76aec

Please sign in to comment.