<xsl:text>)</xsl:text>
</xsl:message>
-->
-
+
<xsl:choose>
<xsl:when test="$print.ranges = 0 and count($years) > 0">
<xsl:choose>
<xsl:when test="$firstyear = 0">
<!-- there weren't any years at all -->
</xsl:when>
+ <!-- Just output a year with range in its text -->
+ <xsl:when test="contains($firstyear, '-') or contains($firstyear, ',')">
+ <xsl:value-of select="$firstyear"/>
+ </xsl:when>
<xsl:when test="$firstyear = $lastyear">
<xsl:value-of select="$firstyear"/>
</xsl:when>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
+ <xsl:when test="contains($firstyear, '-') or contains($firstyear, ',')">
+ <!-- Just output a year with range in its text -->
+ <xsl:value-of select="$firstyear"/>
+ <xsl:if test="count($years) != 0">
+ <xsl:text>, </xsl:text>
+ </xsl:if>
+ <xsl:call-template name="copyright.years">
+ <xsl:with-param name="years"
+ select="$years[position() > 1]"/>
+ <xsl:with-param name="firstyear" select="$years[1]"/>
+ <xsl:with-param name="nextyear" select="$years[1] + 1"/>
+ <xsl:with-param name="print.ranges" select="$print.ranges"/>
+ <xsl:with-param name="single.year.ranges"
+ select="$single.year.ranges"/>
+ </xsl:call-template>
+ </xsl:when>
<xsl:when test="$firstyear = 0">
<xsl:call-template name="copyright.years">
<xsl:with-param name="years"