aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-06-25 09:13:08 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-03 13:58:56 +0100
commitdd09b077c06c68896d6b1c874d852231aeed1e85 (patch)
treeb90d666f706d55b650a27b0355e17956f795a0c2 /bitbake
parentca77f37bf8e77087cedd19e4593aaf6fcef7fe81 (diff)
downloadopenembedded-core-contrib-dd09b077c06c68896d6b1c874d852231aeed1e85.tar.gz
bitbake: template: Added XSL template to support variable glossary permalinks.
Fixes [YOCTO #5772] This file enables creation of permalinks for variables defined in the glossary. (Bitbake rev: 772f2bdc10fa242646e4d09f6bdbaf8558f06b22) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/doc/template/gloss-permalinks.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/bitbake/doc/template/gloss-permalinks.xsl b/bitbake/doc/template/gloss-permalinks.xsl
new file mode 100644
index 0000000000..6bf58116f6
--- /dev/null
+++ b/bitbake/doc/template/gloss-permalinks.xsl
@@ -0,0 +1,14 @@
+<xsl:stylesheet version="1.0"
+ xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ xmlns:d="http://docbook.org/ns/docbook"
+ xmlns="http://www.w3.org/1999/xhtml">
+
+ <xsl:template match="glossentry/glossterm">
+ <xsl:apply-imports/>
+ <xsl:if test="$generate.permalink != 0">
+ <xsl:call-template name="permalink">
+ <xsl:with-param name="node" select=".."/>
+ </xsl:call-template>
+ </xsl:if>
+ </xsl:template>
+</xsl:stylesheet>