summaryrefslogtreecommitdiffstats
path: root/documentation/template/permalinks.xsl
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-06-05 13:42:03 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-18 09:30:46 (GMT)
commit90497d8fffb2789b996cff160b2d401126db7151 (patch)
treeb2bc50fd2299cbfd13dbde3cfea1c24c4fb066c8 /documentation/template/permalinks.xsl
parent1f6c99d0b69cf650e5d487bf99b16fc7d6f0bb74 (diff)
downloadpoky-90497d8fffb2789b996cff160b2d401126db7151.tar.gz
template: Added XSL stylesheets to support permalinks.
Fixes [YOCTO #5772] These five style sheets support creation of permalinks in the HTML formatted output. (From yocto-docs rev: 7467ad6518c0fc0eb829b9432dc113bd0cdb6807) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/template/permalinks.xsl')
-rw-r--r--documentation/template/permalinks.xsl25
1 files changed, 25 insertions, 0 deletions
diff --git a/documentation/template/permalinks.xsl b/documentation/template/permalinks.xsl
new file mode 100644
index 0000000..d2a1c14
--- /dev/null
+++ b/documentation/template/permalinks.xsl
@@ -0,0 +1,25 @@
1<?xml version="1.0" encoding="UTF-8"?>
2<xsl:stylesheet version="1.0"
3 xmlns="http://www.w3.org/1999/xhtml"
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
5
6 <xsl:param name="generate.permalink" select="1"/>
7 <xsl:param name="permalink.text">ΒΆ</xsl:param>
8
9 <xsl:template name="permalink">
10 <xsl:param name="node"/>
11
12 <xsl:if test="$generate.permalink != '0'">
13 <span class="permalink">
14 <a alt="Permalink" title="Permalink">
15 <xsl:attribute name="href">
16 <xsl:call-template name="href.target">
17 <xsl:with-param name="object" select="$node"/>
18 </xsl:call-template>
19 </xsl:attribute>
20 <xsl:copy-of select="$permalink.text"/>
21 </a>
22 </span>
23 </xsl:if>
24 </xsl:template>
25</xsl:stylesheet>