diff options
author | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2014-06-25 09:13:08 +0300 |
---|---|---|
committer | Scott Rifenbark <scott.m.rifenbark@intel.com> | 2014-06-25 09:18:09 +0300 |
commit | 772f2bdc10fa242646e4d09f6bdbaf8558f06b22 (patch) | |
tree | b41429c466ea6f1644150682d03cdc0a597e343e /doc/template | |
parent | a2a3b534871aa23a5d442b93dd9660d5f9e27536 (diff) | |
download | bitbake-772f2bdc10fa242646e4d09f6bdbaf8558f06b22.tar.gz |
template: Added XSL template to support variable glossary permalinks.
Fixes [YOCTO #5772]
This file enables creation of permalinks for variables defined
in the glossary.
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
Diffstat (limited to 'doc/template')
-rw-r--r-- | doc/template/gloss-permalinks.xsl | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/doc/template/gloss-permalinks.xsl b/doc/template/gloss-permalinks.xsl new file mode 100644 index 000000000..6bf58116f --- /dev/null +++ b/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>
|