docbook-html-style.xsl 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3. <!-- Import our base stylesheet -->
  4. <xsl:import href="/usr/share/xml/docbook/stylesheet/docbook-xsl/xhtml-1_1/chunk.xsl" />
  5. <!-- Since we use xsltproc (not saxon), add a workaround to ensure UTF-8 -->
  6. <xsl:template xmlns="http://www.w3.org/1999/xhtml" name="head.content.generator">
  7. <xsl:param name="node" select="."/>
  8. <meta name="generator" content="DocBook {$DistroTitle} V{$VERSION}"/>
  9. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
  10. </xsl:template>
  11. <xsl:template name="generate.html.title"/>
  12. <xsl:template match="releaseinfo" mode="titlepage.mode">
  13. <xsl:apply-imports/>
  14. <hr/>
  15. </xsl:template>
  16. <xsl:param name="root.filename">index</xsl:param>
  17. <!-- We do not want a title in HTML. -->
  18. <xsl:param name="generate.meta.abstract" select="0"/>
  19. <!-- We do not want the first subsection on the same page as content. -->
  20. <xsl:param name="chunk.first.sections" select="0"/>
  21. <xsl:param name="chunk.section.depth" select="0"/>
  22. <xsl:param name="chunker.output.indent" select="'yes'"/>
  23. <xsl:param name="use.id.as.filename" select="1"/>
  24. <xsl:param name="toc.section.depth" select="1"/>
  25. <xsl:param name="generate.section.toc.level" select="0"/>
  26. <xsl:param name="section.label.includes.component.label" select="1"/>
  27. <xsl:param name="section.autolabel" select="1"/>
  28. <xsl:param name="generate.css.header" select="1"/>
  29. </xsl:stylesheet>