added conditions for time in event-title tag

This commit is contained in:
vv01f 2014-02-08 16:00:35 +01:00
parent 22caeb1aad
commit 658a23cd17
1 changed files with 6 additions and 7 deletions

View File

@ -132,13 +132,12 @@
<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)"/>
<!-- Hier wurde die Zeit ergänzt --> <xsl:if test="string-length(start) &gt; 0">
<xsl:value-of select="concat(' &#xA;Zeit: ', substring(date:time(start),0,6), '&#160;-&#160;', substring(date:time(end),0,6))"/> <xsl:value-of select="concat(' &#xA;Zeit: ', substring(date:time(start),0,6))"/>
<!-- beide versuche werfen Fehler, liegts am namespace oder XSL-Version? --> <xsl:if test="date:seconds(start) != date:seconds(end)">
<!-- <xsl:value-of select="concat('&#160;-&#160;', substring(date:time(end),0,6))"/>
<xsl:value-of select="concat(' &#xA;Zeit: ', date:format-dateTime(start, '[D01]/[M01]/[Y0001]'))"/> </xsl:if>
<xsl:value-of select="concat(' &#xA;Zeit: ', replace(end, '(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})', '$4:$5'))"/> </xsl:if>
-->
</xsl:attribute> </xsl:attribute>
</xsl:if> </xsl:if>
<!-- string(a) --> <!-- string(a) -->