Skip to content

Commit

Permalink
fix: counting of nested AIS details in HTML export (#40)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarstenWickner committed Jun 13, 2023
1 parent decca29 commit 6cc49e7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ span.detail-end { float: right; }
</xsl:if>
</td>
<td class="number">
<xsl:value-of select="count(.//ais:Detail//ais:Token)" />
<xsl:value-of select="count(.//ais:Detail[@code]/ais:Token)" />
</td>
<xsl:variable name="interview" select="." />
<xsl:for-each select="//ais:Categories/ais:Category">
Expand Down Expand Up @@ -241,7 +241,7 @@ span.detail-end { float: right; }
<xsl:value-of select="concat(' ',@code,' ')" />
</xsl:for-each>
</xsl:variable>
<xsl:value-of select="count($interview//ais:Detail[contains($childCodes,concat(' ',@code,' '))])" />
<xsl:value-of select="count($interview//ais:Detail[@code and contains($childCodes,concat(' ',@code,' '))])" />
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="count($interview//ais:Detail[@code=$category/@code])" />
Expand Down

0 comments on commit 6cc49e7

Please sign in to comment.