summaryrefslogtreecommitdiffstats
path: root/import-layers/yocto-poky/documentation/template/qa-code-permalinks.xsl
diff options
context:
space:
mode:
Diffstat (limited to 'import-layers/yocto-poky/documentation/template/qa-code-permalinks.xsl')
-rw-r--r--import-layers/yocto-poky/documentation/template/qa-code-permalinks.xsl23
1 files changed, 23 insertions, 0 deletions
diff --git a/import-layers/yocto-poky/documentation/template/qa-code-permalinks.xsl b/import-layers/yocto-poky/documentation/template/qa-code-permalinks.xsl
new file mode 100644
index 000000000..a309095c6
--- /dev/null
+++ b/import-layers/yocto-poky/documentation/template/qa-code-permalinks.xsl
@@ -0,0 +1,23 @@
+<!--
+This XSL sheet enables creation of permalinks for <para><code>
+constructs. Right now, this construct occurs only in the ref-manual
+book's qa issues and warnings chapter. However, if the construct
+were to appear anywhere in that ref-manual, a permalink would be
+generated. I don't foresee any <para><code> constructs being used
+in the future but if they are then a permalink with a generically
+numbered permalink would be generated.
+-->
+<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="para/code">
+ <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>
OpenPOWER on IntegriCloud