summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefanor <defanor@uberspace.net>2020-05-03 20:17:27 +0300
committerdefanor <defanor@uberspace.net>2020-05-03 20:17:27 +0300
commitcdfd9faa5c085fd6e2e0b4e335f92d51d46c0f68 (patch)
tree7a4c32658e2832d84d7821ce4bcd8261d40fafd5
parentcd3af799d770b752ea9f168d2b5266c85dafb6ec (diff)
Check for presence of @created and @modified
-rw-r--r--tools/xml-to-html.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index 440fc4d..aa8e343 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -82,7 +82,7 @@
<body>
<xsl:apply-templates mode="body" select="xhtml:body/*" />
<footer>
- <xsl:if test="not(//notes)">
+ <xsl:if test="not(//notes) and @created and @modified">
<a href="https://defanor.uberspace.net/">defanor</a>,
<time><xsl:copy-of select="substring(@created,0,8)" /></time>
<xsl:if test="substring(@created,0,8) != substring(@modified,0,8)"> to <time><xsl:copy-of select="substring(@modified,0,8)" /></time></xsl:if>