diff options
-rw-r--r-- | source/99_result/article/article.xsl | 1 | ||||
-rw-r--r-- | source/99_result/tag/tag.xsl | 5 | ||||
-rw-r--r-- | utility/master.xsl | 16 |
3 files changed, 20 insertions, 2 deletions
diff --git a/source/99_result/article/article.xsl b/source/99_result/article/article.xsl index 69ddf09..8801a60 100644 --- a/source/99_result/article/article.xsl +++ b/source/99_result/article/article.xsl @@ -20,6 +20,7 @@ <xsl:variable name="meta"> <datasource type="main" mode="iterate" source="target/02_data/articles.xml" target="article"/> <datasource type="support" mode="full" source="source/00_content/meta.xml" target="meta"/> + <datasource type="support" mode="full" source="target/02_data/tags.xml" target="tags"/> <target mode="xpath" value="xalan:nodeset($datasource)/datasource/article/entry/@handle"/> </xsl:variable> diff --git a/source/99_result/tag/tag.xsl b/source/99_result/tag/tag.xsl index 45cb247..6ab11bf 100644 --- a/source/99_result/tag/tag.xsl +++ b/source/99_result/tag/tag.xsl @@ -20,6 +20,7 @@ <xsl:variable name="meta"> <datasource type="main" mode="iterate" source="target/03_meta/tags.xml" target="tag"/> <datasource type="support" mode="full" source="source/00_content/meta.xml" target="meta"/> + <datasource type="support" mode="full" source="target/02_data/tags.xml" target="tags"/> <target mode="xpath" value="xalan:nodeset($datasource)/datasource/tag/entry/@handle"/> </xsl:variable> @@ -31,12 +32,12 @@ <div class="archiv left articlelist archivlist"> All articles tagged as »<xsl:value-of select="@handle"/>« <ol> - <xsl:apply-templates select="article"/> + <xsl:apply-templates /> </ol> </div> </xsl:template> -<xsl:template match="article"> +<xsl:template match="tag/entry/article"> <li> <xsl:call-template name="format-date"> <xsl:with-param name="date" select="date"/> diff --git a/utility/master.xsl b/utility/master.xsl index e9e2661..da4343b 100644 --- a/utility/master.xsl +++ b/utility/master.xsl @@ -18,6 +18,18 @@ <xsl:variable name="url" select="datasource/meta/url"/> +<xsl:template name="list_tags"> + <ul> + <xsl:for-each select="datasource/tags/entry"> + <li> + <a href="{$url}/tag/{@handle}"> + <xsl:value-of select="@handle"/> + </a> + </li> + </xsl:for-each> + </ul> +</xsl:template> + <xsl:template match="/"> <html> <head> @@ -48,6 +60,10 @@ <xsl:apply-templates /> </div> <div id="footer_wrap"> + <div class="right taglist"> + Tags: + <xsl:call-template name="list_tags"/> + </div> </div> <div id="last_line"> <a href="https://github.com/KnairdA/InputXSLT">Made with XSLT</a> |