Skip to content

Commit

Permalink
#22 count better
Browse files Browse the repository at this point in the history
  • Loading branch information
Yegor Bugayenko committed Nov 20, 2016
1 parent 267ddb4 commit 4ac2fcb
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/xsl/domains.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,14 @@
</form>
<xsl:if test="domains/domain">
<p>
<xsl:text>There are </xsl:text>
<xsl:value-of select="count(domains/domain)"/>
<xsl:text> domains registered:</xsl:text>
<xsl:if test="count(domains/domain) = 1">
<xsl:text>There is just one domain:</xsl:text>
</xsl:if>
<xsl:if test="count(domains/domain) &gt; 1">
<xsl:text>There are </xsl:text>
<xsl:value-of select="count(domains/domain)"/>
<xsl:text> domains registered:</xsl:text>
</xsl:if>
</p>
<xsl:apply-templates select="domains"/>
<form action="{links/link[@rel='invalidate']/@href}" method="get">
Expand Down

0 comments on commit 4ac2fcb

Please sign in to comment.