calendar: don't linkify event w/o <link/>

This commit is contained in:
Astro 2011-11-02 02:01:04 +01:00
parent be6530b45f
commit c1e75c7cb5
2 changed files with 13 additions and 6 deletions

View File

@ -114,11 +114,13 @@
<li> <li>
<a> <a>
<!-- a/@href --> <!-- a/@href -->
<xsl:attribute name="href"> <xsl:if test="string-length(link) &gt; 0">
<xsl:call-template name="make-href"> <xsl:attribute name="href">
<xsl:with-param name="href" select="link"/> <xsl:call-template name="make-href">
</xsl:call-template> <xsl:with-param name="href" select="link"/>
</xsl:attribute> </xsl:call-template>
</xsl:attribute>
</xsl:if>
<!-- a/@title --> <!-- a/@title -->
<xsl:if test="string-length(location) &gt; 0"> <xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title"> <xsl:attribute name="title">

View File

@ -232,7 +232,12 @@
<xsl:with-param name="start" select="start"/> <xsl:with-param name="start" select="start"/>
<xsl:with-param name="end" select="end"/> <xsl:with-param name="end" select="end"/>
</xsl:call-template>: </xsl:call-template>:
<a href="{$href}"> <a>
<xsl:if test="string-length($href) &gt; 0">
<xsl:attribute name="href">
<xsl:value-of select="$href"/>
</xsl:attribute>
</xsl:if>
<xsl:if test="string-length(location) &gt; 0"> <xsl:if test="string-length(location) &gt; 0">
<xsl:attribute name="title"> <xsl:attribute name="title">
<xsl:value-of select="concat('Ort: ', location)"/> <xsl:value-of select="concat('Ort: ', location)"/>