summaryrefslogtreecommitdiff
path: root/tools/xml-to-html.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'tools/xml-to-html.xsl')
-rw-r--r--tools/xml-to-html.xsl6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/xml-to-html.xsl b/tools/xml-to-html.xsl
index f6aac5b..d317688 100644
--- a/tools/xml-to-html.xsl
+++ b/tools/xml-to-html.xsl
@@ -119,7 +119,11 @@
<dd>
<xsl:value-of select="document/@description" />
(<time><xsl:copy-of select="substring(document/@created,0,8)" /></time>
- <xsl:if test="substring(document/@created,0,8) != substring(document/@modified,0,8)"> to <time><xsl:copy-of select="substring(document/@modified,0,8)" /></time></xsl:if>)
+ <xsl:if test="substring(document/@created,0,8) != substring(document/@modified,0,8)"> to <time><xsl:copy-of select="substring(document/@modified,0,8)" /></time></xsl:if>,
+ <xsl:value-of select=
+ "string-length(normalize-space(document)) -
+ string-length(translate(normalize-space(document), ' ', '')) +
+ 1" /> words)
</dd>
</xsl:template>