fix NaN for entries with no content
This commit is contained in:
parent
eb4ddec66b
commit
731ff4bda7
|
@ -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() <= $limitelements) and ($limitelements > 0)))">
|
||||
<xsl:if test="((count(teaser)>0) or (count(preface)>0)) and (($limitelements = 0) or ((position() <= $limitelements) and ($limitelements > 0)))">
|
||||
|
||||
<xsl:element name="p">
|
||||
<xsl:attribute name="id"><xsl:value-of select="@id"/></xsl:attribute>
|
||||
<xsl:text>
</xsl:text>
|
||||
|
||||
<xsl:if test="count(date)>0">
|
||||
<xsl:element name="time">
|
||||
<xsl:attribute name="datetime">
|
||||
<xsl:if test="count(date) > 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>
</xsl:text>
|
||||
</xsl:if>
|
||||
|
||||
<xsl:if test="count(preface) > 0">
|
||||
<xsl:element name="a">
|
||||
|
|
Loading…
Reference in New Issue