Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Helman2014-11-20 12:23:48 +0000
committerSebastian Helman2014-11-21 12:20:34 +0000
commitded13161f6366713d91c66f453c47be205b1ad85 (patch)
tree7cde4950df64014694146da47f153f5ef64b385a /org.eclipse.jubula.documentation.xsl
parentb573097dd2f8a4843dbc4298c52a33073117ab83 (diff)
downloadorg.eclipse.jubula.core-ded13161f6366713d91c66f453c47be205b1ad85.tar.gz
org.eclipse.jubula.core-ded13161f6366713d91c66f453c47be205b1ad85.tar.xz
org.eclipse.jubula.core-ded13161f6366713d91c66f453c47be205b1ad85.zip
Added breadcrumbs to the documentation
Change-Id: Ia7edc0e10e66be602118331a40fc7e2381da8708 Signed-off-by: Sebastian Helman <Sebastian.Helman@bredex.de>
Diffstat (limited to 'org.eclipse.jubula.documentation.xsl')
-rw-r--r--org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl38
1 files changed, 38 insertions, 0 deletions
diff --git a/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl b/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl
index 2f1acb016..652202d33 100644
--- a/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl
+++ b/org.eclipse.jubula.documentation.xsl/custom/jubulatemplates.xsl
@@ -16,6 +16,44 @@
<xsl:import href="generatecontexts.xsl"/>
+<!--
+Generates a path navigation to see where you are in the document. For more information, see:
+
+http://www.sagehill.net/docbookxsl/HTMLHeaders.html#BreadCrumbs
+-->
+
+<xsl:param name="breadcrumbs.separator" select="' > '"/>
+
+<xsl:template name="generate.breadcrumbs">
+ <xsl:param name="current.node" select="."/>
+ <div class="breadcrumbs">
+ <xsl:for-each select="$current.node/ancestor::*">
+ <span class="breadcrumb-link">
+ <a>
+ <xsl:attribute name="href">
+ <xsl:call-template name="href.target">
+ <xsl:with-param name="object" select="."/>
+ <xsl:with-param name="context" select="$current.node"/>
+ </xsl:call-template>
+ </xsl:attribute>
+ <xsl:apply-templates select="." mode="title.markup"/>
+ </a>
+ </span>
+ <xsl:copy-of select="$breadcrumbs.separator"/>
+ </xsl:for-each>
+ <!-- Display the current node if it isn't the first node, but not as a link -->
+ <xsl:if test="$current.node/ancestor::*">
+ <span class="breadcrumb-node">
+ <xsl:apply-templates select="$current.node" mode="title.markup"/>
+ </span>
+ </xsl:if>
+ </div>
+</xsl:template>
+
+<xsl:template name="user.header.content">
+ <xsl:call-template name="generate.breadcrumbs"/>
+</xsl:template>
+
<xsl:template match="d:para[@role='warning']">
<xsl:variable name="href">
<xsl:call-template name="relative.path.link">

Back to the top