xsl/calendar.xsl: event location in a/@title

This commit is contained in:
Astro 2010-08-01 23:01:34 +02:00
parent 8151f2d940
commit 80fb0fe475
1 changed files with 15 additions and 7 deletions

View File

@ -105,14 +105,22 @@
<xsl:if test="(date:seconds($start) &lt;= date:seconds($date))
and (date:seconds($date) &lt;= date:seconds($end))">
<xsl:variable name="href">
<xsl:call-template name="make-href">
<xsl:with-param name="href" select="link"/>
</xsl:call-template>
</xsl:variable>
<li>
<a href="{$href}">
<a>
<!-- a/@href -->
<xsl:attribute name="href">
<xsl:call-template name="make-href">
<xsl:with-param name="href" select="link"/>
</xsl:call-template>
</xsl:attribute>
<!-- a/@title -->
<xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title">
<xsl:text>Ort: </xsl:text>
<xsl:value-of select="string(location)"/>
</xsl:attribute>
</xsl:if>
<!-- string(a) -->
<xsl:value-of select="title"/>
</a>
</li>