Skip to content

Commit

Permalink
#2650 adds support for JATS continued-from. Credit to @mauromsl
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrbyers authored and mauromsl committed Jun 7, 2022
1 parent 0e07015 commit 2c77f80
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/transform/xsl/default.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -3360,11 +3360,11 @@
<xsl:template match="app//sec//title">
<h3>
<xsl:if test="preceding-sibling::label"><xsl:value-of select="preceding-sibling::label"/>&#160;</xsl:if>

</h3>
</xsl:template>


<!-- START - general format -->

<!-- list elements start-->
Expand All @@ -3391,8 +3391,17 @@
<xsl:when test="@list-type = 'order'">
<ol>
<xsl:attribute name="class">
<xsl:value-of select="'list-ord'"/>
<xsl:value-of select="'list-order'"/>
</xsl:attribute>

<xsl:if test="@continued-from">
<xsl:variable name="count-list-items">
<xsl:number count="list-item" from="list[@id=@continued-from]" level="any"/>
</xsl:variable>
<xsl:attribute name="start">
<xsl:value-of select="$count-list-items + 1"/>
</xsl:attribute>
</xsl:if>
<xsl:apply-templates/>
</ol>
</xsl:when>
Expand Down

0 comments on commit 2c77f80

Please sign in to comment.