- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
<!-- Подготавливаем счётчик для цикла -->
<xsl:variable name="i-tree">
<i/><i/><i/><i/><i/><i/>
<i/><i/> <i/><i/> <i/><i/>
<i/><i/><i/> <i/><i/><i/> <i/>
<i/><i/><i/><i/><i/><i/><i/>
<i/> <i/>
<i/><i/><i/><i/><i/><i/>
</xsl:variable>
<xsl:variable name="i" select="exslt:node-set($i-tree)/i" />
<!-- Подготавливаем параметр ссылок -->
<xsl:variable name="links">
<links next="0" previous="1">
<xsl:for-each select="$i[position() <= $date/@mday]">
<link mday="{position()}" />
</xsl:for-each>
</links>
</xsl:variable>
<div id="archive">
<xsl:call-template name="calendar">
<xsl:with-param name="title" select="'Архив'" />
<xsl:with-param name="url" select="concat($url_path,'%date%/')" />
<xsl:with-param name="links" select="exslt:node-set($links)/links" />
</xsl:call-template>
</div>