Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions combine-continued.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,11 @@
)[1]"
/>
<xsl:try>
<xsl:variable name="last" select="index-of(current-group(), $final)[last()]"/>

<xsl:variable name="last" select="let $group := current-group()
return
for $i in 1 to count($group)
return
if ($group[$i] is $final) then $i else ()"/>
<xsl:element name="{local-name()}">
<xsl:apply-templates select="@*" mode="continued" />
<xsl:apply-templates select="current-group()[position() le $last]" mode="rs-continued" />
Expand Down