summaryrefslogtreecommitdiffstats
path: root/documentation/template
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/template')
-rw-r--r--documentation/template/qa-code-permalinks.xsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/documentation/template/qa-code-permalinks.xsl b/documentation/template/qa-code-permalinks.xsl
new file mode 100644
index 0000000000..a309095c60
--- /dev/null
+++ b/documentation/template/qa-code-permalinks.xsl
@@ -0,0 +1,23 @@
1<!--
2This XSL sheet enables creation of permalinks for <para><code>
3constructs. Right now, this construct occurs only in the ref-manual
4book's qa issues and warnings chapter. However, if the construct
5were to appear anywhere in that ref-manual, a permalink would be
6generated. I don't foresee any <para><code> constructs being used
7in the future but if they are then a permalink with a generically
8numbered permalink would be generated.
9-->
10<xsl:stylesheet version="1.0"
11 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
12 xmlns:d="http://docbook.org/ns/docbook"
13 xmlns="http://www.w3.org/1999/xhtml">
14
15 <xsl:template match="para/code">
16 <xsl:apply-imports/>
17 <xsl:if test="$generate.permalink != 0">
18 <xsl:call-template name="permalink">
19 <xsl:with-param name="node" select=".."/>
20 </xsl:call-template>
21 </xsl:if>
22 </xsl:template>
23</xsl:stylesheet>