html.common.xsl 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?xml version='1.0'?>
  2. <!-- Common settings for generating XHTML output -->
  3. <xsl:stylesheet
  4. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  5. xmlns:xi="http://www.w3.org/2003/XInclude"
  6. version="1.0">
  7. <!-- Stylesheets that override this one must import either onechunk.xsl
  8. or chunk.xsl
  9. -->
  10. <!-- Stylesheets common for all transformations (xhtml, txt, fo) -->
  11. <xsl:import href="common.xsl"/>
  12. <xsl:param name="html.embedded.stylesheet"/>
  13. <xsl:output method="xml"/>
  14. <!-- HTML Customization -->
  15. <xsl:param name="html.cleanup" select="1"/>
  16. <xsl:param name="html.stylesheet">ser.css</xsl:param>
  17. <xsl:param name="section.autolabel">1</xsl:param>
  18. <!-- Needed for strict XHTML -->
  19. <xsl:param name="css.decoration">0</xsl:param>
  20. <xsl:param name="html.longdesc">0</xsl:param>
  21. <xsl:param name="ulink.target"/>
  22. <xsl:param name="use.viewport">0</xsl:param>
  23. <!-- Output format -->
  24. <xsl:param name="chunker.output.encoding">UTF-8</xsl:param>
  25. <xsl:param name="chunker.output.indent">yes</xsl:param>
  26. <xsl:param name="chunker.output.doctype-public">-//W3C//DTD XHTML 1.0 Strict//EN</xsl:param>
  27. <xsl:param name="chunker.output.doctype-system">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</xsl:param>
  28. <xsl:template name="user.head.content">
  29. <xsl:if test="$html.embedded.stylesheet != ''">
  30. <xsl:text disable-output-escaping="yes">&lt;style type="text/css"&gt;</xsl:text>
  31. <xsl:value-of select="$html.embedded.stylesheet"/>
  32. <xsl:text disable-output-escaping="yes">&lt;style&gt;</xsl:text>
  33. </xsl:if>
  34. </xsl:template>
  35. </xsl:stylesheet>