You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

71 lines
2.1 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
  3. <xsl:import href="@DOCBOOK_XSL@/xhtml-1_1/docbook.xsl" />
  4. <!-- Parameters for optimal text output. -->
  5. <xsl:param name="callout.graphics" select="0"/>
  6. <xsl:param name="callout.unicode" select="0"/>
  7. <xsl:param name="section.autolabel" select="1"/>
  8. <xsl:param name="section.label.includes.component.label" select="1"/>
  9. <!-- Centering and aligning title elements. -->
  10. <xsl:template match="/*/title[position()=1]" mode="titlepage.mode">
  11. <br/>
  12. <center>
  13. <xsl:apply-imports/>
  14. </center>
  15. <br/>
  16. <hr/> <!-- No underline, but at least something. -->
  17. </xsl:template>
  18. <xsl:template match="author|editor" mode="titlepage.mode">
  19. <center>
  20. <xsl:apply-imports/>
  21. </center>
  22. </xsl:template>
  23. <xsl:template match="releaseinfo" mode="titlepage.mode">
  24. <center>
  25. <xsl:apply-imports/>
  26. </center>
  27. <hr/>
  28. </xsl:template>
  29. <!-- Dirty hack to get a left margin for paragraphs etc. -->
  30. <xsl:template match="legalnotice/*
  31. |chapter/*[not(name(.)='section') and not(name(.)='title')]
  32. |section/*[not(name(.)='section') and not(name(.)='title')]
  33. |appendix/*[not(name(.)='section') and not(name(.)='title')]
  34. |footnote/*">
  35. <xsl:copy><table><tr><td>&#xa0;&#xa0;&#xa0;</td><td>
  36. <xsl:apply-imports/>
  37. </td></tr></table></xsl:copy>
  38. </xsl:template>
  39. <!-- Skip URLs if it has something to print. -->
  40. <xsl:template match="ulink[.!='']">
  41. <xsl:copy-of select="."/>
  42. </xsl:template>
  43. <!-- Print URLs if nothing to print. -->
  44. <xsl:template match="ulink[.='']">
  45. <xsl:value-of select="@url"/>
  46. </xsl:template>
  47. <!-- Make clear where notes etc. begin and end. -->
  48. <xsl:template match="caution|important|note|tip|warning">
  49. <table width="80%" border="1">
  50. <colgroup>
  51. <col align="justify"/>
  52. </colgroup>
  53. <tbody>
  54. <tr>
  55. <td align="justify">
  56. <xsl:apply-imports/>
  57. </td>
  58. </tr>
  59. </tbody>
  60. </table>
  61. </xsl:template>
  62. </xsl:stylesheet>