Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
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