fix NaN for entries with no content

This commit is contained in:
vv01f 2019-06-13 13:06:10 +02:00
parent eb4ddec66b
commit 731ff4bda7
Signed by untrusted user who does not match committer: vv01f
GPG Key ID: 02625A16AC1D1FF6
1 changed files with 3 additions and 1 deletions

View File

@ -113,12 +113,13 @@ time { font-family: Arial, sans-serif; font-size: 10pt; }</xsl:text>
</xsl:if>
<!-- limit on last n elements -->
<xsl:if test="(($limitelements = 0) or ((position() &lt;= $limitelements) and ($limitelements &gt; 0)))">
<xsl:if test="((count(teaser)&gt;0) or (count(preface)&gt;0)) and (($limitelements = 0) or ((position() &lt;= $limitelements) and ($limitelements &gt; 0)))">
<xsl:element name="p">
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
<xsl:text>&#xa;</xsl:text>
<xsl:if test="count(date)&gt;0">
<xsl:element name="time">
<xsl:attribute name="datetime">
<xsl:if test="count(date) &gt; 0">
@ -139,6 +140,7 @@ time { font-family: Arial, sans-serif; font-size: 10pt; }</xsl:text>
</xsl:call-template>
</xsl:if>
</xsl:element><br/><xsl:text>&#xa;</xsl:text>
</xsl:if>
<xsl:if test="count(preface) &gt; 0">
<xsl:element name="a">