Skip to content

Commit

Permalink
tr:list-number-to-integer: repaired correct recognition of upperalpha…
Browse files Browse the repository at this point in the history
… lists
  • Loading branch information
polypunkt committed Jan 20, 2022
1 parent 89fd132 commit d0d8887
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion conf/conf.xml
Original file line number Diff line number Diff line change
Expand Up @@ -1207,9 +1207,12 @@
<xsl:when test="$list-type = ('upperroman', 'lowerroman')">
<xsl:value-of select="tr:roman-to-int($counter)"/>
</xsl:when>
<xsl:when test="$list-type = ('upperalpha', 'loweralpha')">
<xsl:when test="$list-type = 'loweralpha'">
<xsl:value-of select="string-length(substring-before('abcdefghijklmnopqrstuvwxyz', $counter)) + 1"/>
</xsl:when>
<xsl:when test="$list-type = 'upperalpha'">
<xsl:value-of select="string-length(substring-before('ABCDEFGHIJKLMNOPQRSTUVWXYZ', $counter)) + 1"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="xs:integer(normalize-space($counter))"/>
</xsl:otherwise>
Expand Down

0 comments on commit d0d8887

Please sign in to comment.