summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-06-25 05:58:14 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-07-03 12:57:09 (GMT)
commitf47e967f50331571553707f1df7cdbaee1b707ce (patch)
tree3fe847cb3180445116de900e3c05d84ed7ea1f09
parentc13d40a91a27868fc74b3c69b5b274dfaa113aa9 (diff)
downloadpoky-f47e967f50331571553707f1df7cdbaee1b707ce.tar.gz
template: Added an XSL template to support glossary variable permalinks
Fixes [YOCTO #5772] With this template, all that is necessary to trigger permalink generation for variable entries in a manual's glossary is to update the customization layer to include the gloss-permalinks.xsl file. (From yocto-docs rev: aebe1a727be7921fe9bc26101b670d5fdc1670e4) Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--documentation/template/gloss-permalinks.xsl14
1 files changed, 14 insertions, 0 deletions
diff --git a/documentation/template/gloss-permalinks.xsl b/documentation/template/gloss-permalinks.xsl
new file mode 100644
index 0000000..6bf5811
--- /dev/null
+++ b/documentation/template/gloss-permalinks.xsl
@@ -0,0 +1,14 @@
1<xsl:stylesheet version="1.0"
2 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
3 xmlns:d="http://docbook.org/ns/docbook"
4 xmlns="http://www.w3.org/1999/xhtml">
5
6 <xsl:template match="glossentry/glossterm">
7 <xsl:apply-imports/>
8 <xsl:if test="$generate.permalink != 0">
9 <xsl:call-template name="permalink">
10 <xsl:with-param name="node" select=".."/>
11 </xsl:call-template>
12 </xsl:if>
13 </xsl:template>
14</xsl:stylesheet>