qa-code-permalinks.xsl 906 B

1234567891011121314151617181920212223
  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. <xsl:template match="para/code">
  15. <xsl:apply-imports/>
  16. <xsl:if test="$generate.permalink != 0">
  17. <xsl:call-template name="permalink">
  18. <xsl:with-param name="node" select=".."/>
  19. </xsl:call-template>
  20. </xsl:if>
  21. </xsl:template>
  22. </xsl:stylesheet>