Skip to content

Commit

Permalink
Update keyboard.xsl
Browse files Browse the repository at this point in the history
  • Loading branch information
tboenig committed Jun 27, 2022
1 parent cabfa53 commit 3d9a59e
Showing 1 changed file with 4 additions and 10 deletions.
14 changes: 4 additions & 10 deletions scripts/keyboard.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -341,24 +341,18 @@ Names
</xsl:template>

<xsl:template match="koma">
<xsl:variable name="test">
<xsl:for-each select=".">
<xsl:variable name="test2">
<xsl:value-of select="fn:count(.)"/>
</xsl:variable>
<xsl:value-of select="sum($test2)"/>
</xsl:for-each>
</xsl:variable>
<xsl:message select="$test"/>



<xsl:for-each select=".">
<xsl:variable name="sumKoma" select="count(.)"/>
<xsl:variable name="nrk"><xsl:number format="1" start-at="1"/></xsl:variable>

<xsl:message select="$nrk"/>
<xsl:choose>
<xsl:when test="$nrk = $sumKoma"><xsl:value-of select="$nrk"/>##<xsl:value-of select="$sumKoma"/></xsl:when><xsl:otherwise>,</xsl:otherwise>
</xsl:choose>
</xsl:for-each>

</xsl:template>

<xsl:template match="$MUFIEXPORT//fn:array" name="kb-table">
Expand Down

0 comments on commit 3d9a59e

Please sign in to comment.