diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-11-16 10:18:16 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-11-16 10:18:16 -0500 |
commit | da0ccb51c98bf74d510ee3a07578a67706a067d4 (patch) | |
tree | 7b0d2f43120d5e35d967d5dcde61a3d1aa527fd1 | |
parent | 02369620f7f263ee8e758353311ed9f629889f42 (diff) | |
download | yelp-xsl-da0ccb51c98bf74d510ee3a07578a67706a067d4.tar.gz |
mal2html-links: The link type is "prevnext", not "next"
-rw-r--r-- | xslt/mallard/html/mal2html-links.xsl | 4 | ||||
-rw-r--r-- | xslt/mallard/html/mal2html-page.xsl | 10 |
2 files changed, 7 insertions, 7 deletions
diff --git a/xslt/mallard/html/mal2html-links.xsl b/xslt/mallard/html/mal2html-links.xsl index 34dd056b..9e8e7ce6 100644 --- a/xslt/mallard/html/mal2html-links.xsl +++ b/xslt/mallard/html/mal2html-links.xsl @@ -199,7 +199,7 @@ the links itself. They must be passed in with the ${links} parameter. <!--**========================================================================== -mal2html.links.next +mal2html.links.prevnext Output links to the previous and next pages. :Revision:version="1.0" date="2011-06-15" status="final" $node: A #{links} or #{page} element to link from. @@ -213,7 +213,7 @@ If the #{links} element has the style hint #{top}, it will be inserted before the page title, instead of in its position on the page. This is handled by the calling functions in !{mal2html-page}. --> -<xsl:template name="mal2html.links.next" match="mal:links[@type = 'next']"> +<xsl:template name="mal2html.links.prevnext" match="mal:links[@type = 'prevnext']"> <xsl:param name="node" select="."/> <xsl:variable name="page" select="$node/ancestor-or-self::mal:page[last()]"/> <xsl:variable name="linkid"> diff --git a/xslt/mallard/html/mal2html-page.xsl b/xslt/mallard/html/mal2html-page.xsl index d091b54e..f90bdecc 100644 --- a/xslt/mallard/html/mal2html-page.xsl +++ b/xslt/mallard/html/mal2html-page.xsl @@ -473,12 +473,12 @@ REMARK: Describe this template <xsl:template mode="html.body.mode" match="mal:page"> <xsl:call-template name="mal2html.editor.banner"/> <xsl:choose> - <xsl:when test="not(mal:links[@type = 'next'])"> - <xsl:call-template name="mal2html.links.next"/> + <xsl:when test="not(mal:links[@type = 'prevnext'])"> + <xsl:call-template name="mal2html.links.prevnext"/> </xsl:when> <xsl:otherwise> <xsl:apply-templates - select="mal:links[@type = 'next'][contains(concat(' ', @style, ' '), ' top ')]"> + select="mal:links[@type = 'prevnext'][contains(concat(' ', @style, ' '), ' top ')]"> </xsl:apply-templates> </xsl:otherwise> </xsl:choose> @@ -567,7 +567,7 @@ REMARK: Describe this template <xsl:with-param name="links" select="$seealsonodes"/> </xsl:apply-templates> </xsl:when> - <xsl:when test="self::mal:links[@type = 'next']"> + <xsl:when test="self::mal:links[@type = 'prevnext']"> <xsl:if test="not(contains(concat(' ', @style, ' '), ' top '))"> <xsl:apply-templates select="."/> </xsl:if> @@ -635,7 +635,7 @@ REMARK: Describe this template <xsl:with-param name="links" select="$seealsonodes"/> </xsl:apply-templates> </xsl:when> - <xsl:when test="self::mal:links[@type = 'next']"> + <xsl:when test="self::mal:links[@type = 'prevnext']"> <xsl:if test="not(contains(concat(' ', @style, ' '), ' top '))"> <xsl:apply-templates select="."> <xsl:with-param name="depth" select="$depth + 1"/> |