Fixed copy-and-paste bug causing incorrect lecture numbering in HTML and removed an obsolete comment.
1 parent f54a8e5 commit bedb1071aabaa1f49adbf3a1de5392410c4f5ec5
Nigel Stanger authored on 5 Jul 2013
Showing 1 changed file
View
7
modules/paper-calendar.xml
<xsl:call-template name="newline-internal" />
</xsl:for-each>
</common>
<common formats="/html/xhtml/">
<!-- Not sure why, but this doesn't work if you just access @current directly in the if below. -->
<!--
<xsl:variable name="current" select="@current" />
-->
<xsl:for-each select="row">
<tr>
<!-- Output the week number and dates columns. -->
<xsl:if test="position() = 1">
<common formats="/html/xhtml/">
<xsl:call-template name="generate-number-cell">
<xsl:with-param name="rows">1</xsl:with-param>
<xsl:with-param name="colour">ltgrey</xsl:with-param>
<xsl:with-param name="number" select="1 + count( preceding::week[not( @holiday )] )" />
<xsl:with-param name="number" select="1 + count( preceding::lecture[node() and not( @holiday )] )" />
</xsl:call-template>
 
<xsl:call-template name="generate-content-cell">
<xsl:with-param name="rows">1</xsl:with-param>