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 #49
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jun 12, 2021
1 parent 85c340c commit 3ec57ea
Showing 1 changed file with 27 additions and 5 deletions.
32 changes: 27 additions & 5 deletions src/main/resources/mn2sts.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@
<xsl:apply-templates select="*[local-name() = 'annex']" mode="back"/>
</app-group>
</xsl:if>
<xsl:apply-templates select="*[local-name() = 'bibliography']/*[local-name() = 'references'][not(@normative='true')]" mode="back"/>
<xsl:apply-templates select="*[local-name() = 'bibliography']/*[local-name() = 'references'][not(@normative='true')] | *[local-name() = 'bibliography']/*[local-name() = 'clause'][*[local-name() = 'references'][not(@normative='true')]]" mode="back"/>
<xsl:apply-templates select="*[local-name() = 'indexsect']"/>
</back>
</xsl:if>
Expand Down Expand Up @@ -1128,9 +1128,11 @@
<xsl:number format="_1" count="*[local-name() = 'references'][not(@normative='true')]"/>
</xsl:if>
</xsl:attribute>
<xsl:apply-templates select="*[local-name() = 'title'][1]" mode="back"/>
<!-- <xsl:apply-templates select="*[local-name() = 'title'][1]" mode="back"/> -->

<xsl:choose>
<xsl:apply-templates/>

<!-- <xsl:choose>
<xsl:when test="*[local-name() = 'title'][2]">
<ref-list>
<xsl:apply-templates select="*[local-name() = 'title'][2]" mode="back"/>
Expand All @@ -1140,14 +1142,34 @@
<xsl:otherwise>
<xsl:apply-templates/>
</xsl:otherwise>
</xsl:choose>
</xsl:choose> -->
</ref-list>
</xsl:template>
<xsl:template match="*[local-name() = 'bibliography']/*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'title']" priority="2"/>

<!-- <xsl:template match="*[local-name() = 'bibliography']/*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'title']" priority="2"/>
<xsl:template match="*[local-name() = 'bibliography']/*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'title']" mode="back">
<title><xsl:apply-templates /></title>
</xsl:template> -->

<xsl:template match="*[local-name() = 'bibliography']/*[local-name() = 'references'][not(@normative='true')]/*[local-name() = 'title']">
<title><xsl:apply-templates /></title>
</xsl:template>

<xsl:template match="*[local-name() = 'bibliography']/*[local-name() = 'clause'][*[local-name() = 'references'][not(@normative='true')]]" mode="back">
<ref-list content-type="bibl">
<xsl:copy-of select="@id"/>
<xsl:apply-templates/>
</ref-list>
</xsl:template>

<xsl:template match="*[local-name() = 'bibliography']/*[local-name() = 'clause']/*[local-name() = 'references'][not(@normative='true')]">
<ref-list>
<xsl:copy-of select="@id"/>
<xsl:apply-templates/>
</ref-list>
</xsl:template>


<xsl:template match="*[local-name() = 'bibitem'][1][ancestor::*[local-name() = 'references'][@normative='true']]" priority="2">
<ref-list content-type="norm-refs">
<xsl:for-each select="../*[local-name() = 'bibitem']">
Expand Down

0 comments on commit 3ec57ea

Please sign in to comment.