html-single-custom.xsl 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xslthl="http://xslthl.sf.net"
  4. exclude-result-prefixes="xslthl"
  5. version='1.0'>
  6. <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/docbook.xsl"/>
  7. <xsl:import href="http://docbook.sourceforge.net/release/xsl-ns/current/html/highlight.xsl"/>
  8. <!-- Use code syntax highlighting -->
  9. <xsl:param name="highlight.source">1</xsl:param>
  10. <xsl:param name="table.borders.with.css" select="1"/>
  11. <xsl:param name="html.stylesheet">css/faq.css</xsl:param>
  12. <xsl:param name="html.stylesheet.type">text/css</xsl:param>
  13. <xsl:param name="generate.toc">
  14. article toc
  15. qandaset toc
  16. </xsl:param>
  17. <xsl:param name="toc.section.depth" select="5"/>
  18. <!--
  19. <xsl:param name="admonition.title.properties">text-align: left</xsl:param>
  20. <xsl:param name="section.label.includes.component.label" select="1"/>
  21. <xsl:param name="table.footnote.number.format" select="'1'"/>
  22. -->
  23. <xsl:template match='xslthl:keyword' mode="xslthl">
  24. <span class="hl-keyword"><xsl:apply-templates mode="xslthl"/></span>
  25. </xsl:template>
  26. <xsl:template match='xslthl:comment' mode="xslthl">
  27. <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
  28. </xsl:template>
  29. <xsl:template match='xslthl:oneline-comment' mode="xslthl">
  30. <span class="hl-comment"><xsl:apply-templates mode="xslthl"/></span>
  31. </xsl:template>
  32. <xsl:template match='xslthl:multiline-comment' mode="xslthl">
  33. <span class="hl-multiline-comment"><xsl:apply-templates mode="xslthl"/></span>
  34. </xsl:template>
  35. <xsl:template match='xslthl:tag' mode="xslthl">
  36. <span class="hl-tag"><xsl:apply-templates mode="xslthl"/></span>
  37. </xsl:template>
  38. <xsl:template match='xslthl:attribute' mode="xslthl">
  39. <span class="hl-attribute"><xsl:apply-templates mode="xslthl"/></span>
  40. </xsl:template>
  41. <xsl:template match='xslthl:value' mode="xslthl">
  42. <span class="hl-value"><xsl:apply-templates mode="xslthl"/></span>
  43. </xsl:template>
  44. <xsl:template match='xslthl:string' mode="xslthl">
  45. <span class="hl-string"><xsl:apply-templates mode="xslthl"/></span>
  46. </xsl:template>
  47. <!-- Google Analytics -->
  48. <xsl:template name="user.head.content">
  49. <xsl:comment>Begin Google Analytics code</xsl:comment>
  50. <script type="text/javascript">
  51. var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
  52. document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
  53. </script>
  54. <script type="text/javascript">
  55. var pageTracker = _gat._getTracker("UA-2728886-3");
  56. pageTracker._setDomainName("none");
  57. pageTracker._setAllowLinker(true);
  58. pageTracker._trackPageview();
  59. </script>
  60. <xsl:comment>End Google Analytics code</xsl:comment>
  61. </xsl:template>
  62. <!-- Loopfuse -->
  63. <xsl:template name="user.footer.content">
  64. <xsl:comment>Begin LoopFuse code</xsl:comment>
  65. <script src="http://loopfuse.net/webrecorder/js/listen.js" type="text/javascript">
  66. </script>
  67. <script type="text/javascript">
  68. _lf_cid = "LF_48be82fa";
  69. _lf_remora();
  70. </script>
  71. <xsl:comment>End LoopFuse code</xsl:comment>
  72. </xsl:template>
  73. </xsl:stylesheet>