diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/02_data/articles.xsl | 2 | ||||
-rw-r--r-- | source/03_meta/tags.xsl | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/02_data/articles.xsl b/source/02_data/articles.xsl index 7547cc7..bc41137 100644 --- a/source/02_data/articles.xsl +++ b/source/02_data/articles.xsl @@ -25,7 +25,7 @@ <xsl:template name="list_tags"> <xsl:param name="path"/> - <xsl:for-each select="../../tags/*[./file/full = $path]"> + <xsl:for-each select="$root/files/tags/*[./file/full = $path]"> <tag><xsl:value-of select="name()"/></tag> </xsl:for-each> </xsl:template> diff --git a/source/03_meta/tags.xsl b/source/03_meta/tags.xsl index 4bed65c..f51f91a 100644 --- a/source/03_meta/tags.xsl +++ b/source/03_meta/tags.xsl @@ -25,7 +25,7 @@ <xsl:template name="get_article_data"> <xsl:param name="handle"/> - <xsl:copy-of select="ancestor::node()[4]/articles/entry[@handle = $handle]/*[self::title | self::date]"/> + <xsl:copy-of select="$root/articles/entry[@handle = $handle]/*[self::title | self::date]"/> </xsl:template> <xsl:template match="files/tags/*"> |