From 299dbbb58f9b6c6c85563bba4d1e43ae514a7949 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Tue, 9 Dec 2014 19:03:28 +0100 Subject: Replaced function-like data resolution with template applications * e.g. article and tag support data is now fetched through direct _XPath_ template applications ** this required the introduction of a special `resolve` mode to prevent interaction between support and main content resolution ** in most cases arguments had to be wrapped inside helper constants to enable selection of e.g. article support data via the `@handle` attribute using the current elements `@handle` attribute * analogously to the recent changes in _StaticXSLT_ this commit aims to improve the XSLT code style used in generating this static website --- utility/master.xsl | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) (limited to 'utility') diff --git a/utility/master.xsl b/utility/master.xsl index 84ecfe7..cb9e025 100644 --- a/utility/master.xsl +++ b/utility/master.xsl @@ -16,6 +16,14 @@ + +
  • + + + +
  • +
    + @@ -26,7 +34,7 @@ - + <xsl:call-template name="title-text"/> @ <xsl:value-of select="$root/meta/title"/> @@ -65,13 +73,7 @@ <div id="tags"> <ul> - <xsl:for-each select="datasource/meta/tags/entry"> - <li> - <a href="/tag/{@handle}"> - <xsl:value-of select="@handle"/> - </a> - </li> - </xsl:for-each> + <xsl:apply-templates select="datasource/meta/tags/entry" mode="master"/> </ul> </div> -- cgit v1.2.3