Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame^] | 1 | <!--
|
| 2 | This XSL sheet enables creation of permalinks for <para><code>
|
| 3 | constructs. Right now, this construct occurs only in the ref-manual
|
| 4 | book's qa issues and warnings chapter. However, if the construct
|
| 5 | were to appear anywhere in that ref-manual, a permalink would be
|
| 6 | generated. I don't foresee any <para><code> constructs being used
|
| 7 | in the future but if they are then a permalink with a generically
|
| 8 | numbered 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>
|