lfs-legalnotice.xsl 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <?xml version='1.0' encoding='ISO-8859-1'?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns="http://www.w3.org/1999/xhtml"
  4. version="1.0">
  5. <!-- Generating the page -->
  6. <xsl:template match="legalnotice" mode="titlepage.mode">
  7. <xsl:variable name="id"><xsl:call-template name="object.id"/></xsl:variable>
  8. <xsl:variable name="filename" select="concat($base.dir, 'prologue/legalnotice.html')"/>
  9. <xsl:variable name="title">
  10. <xsl:apply-templates select="." mode="title.markup"/>
  11. </xsl:variable>
  12. <xsl:call-template name="write.chunk">
  13. <xsl:with-param name="filename" select="$filename"/>
  14. <xsl:with-param name="quiet" select="$chunk.quietly"/>
  15. <xsl:with-param name="content">
  16. <html>
  17. <head>
  18. <xsl:call-template name="system.head.content"/>
  19. <xsl:call-template name="head.content"/>
  20. <xsl:call-template name="user.head.content"/>
  21. </head>
  22. <body>
  23. <xsl:call-template name="body.attributes"/>
  24. <div class="{local-name(.)}">
  25. <xsl:apply-templates mode="titlepage.mode"/>
  26. </div>
  27. <div class="navfooter">
  28. <ul class="footerlinks">
  29. <li class="home">
  30. <a accesskey="h">
  31. <xsl:attribute name="href">
  32. <xsl:text>../index.html</xsl:text>
  33. </xsl:attribute>
  34. <xsl:attribute name="title">
  35. <xsl:value-of select="/book/bookinfo/title"/>
  36. <xsl:text> - </xsl:text>
  37. <xsl:value-of select="/book/bookinfo/subtitle"/>
  38. </xsl:attribute>
  39. <xsl:call-template name="navig.content">
  40. <xsl:with-param name="direction" select="'home'"/>
  41. </xsl:call-template>
  42. </a>
  43. </li>
  44. </ul>
  45. </div>
  46. </body>
  47. </html>
  48. </xsl:with-param>
  49. </xsl:call-template>
  50. </xsl:template>
  51. <!-- Making the link-->
  52. <xsl:template match="copyright" mode="titlepage.mode">
  53. <p class="{name(.)}">
  54. <a>
  55. <xsl:attribute name="href">
  56. <xsl:value-of select="'prologue/legalnotice.html'"/>
  57. </xsl:attribute>
  58. <xsl:call-template name="gentext">
  59. <xsl:with-param name="key" select="'Copyright'"/>
  60. </xsl:call-template>
  61. </a>
  62. <xsl:call-template name="gentext.space"/>
  63. <xsl:call-template name="dingbat">
  64. <xsl:with-param name="dingbat">copyright</xsl:with-param>
  65. </xsl:call-template>
  66. <xsl:call-template name="gentext.space"/>
  67. <xsl:call-template name="copyright.years">
  68. <xsl:with-param name="years" select="year"/>
  69. <xsl:with-param name="print.ranges" select="$make.year.ranges"/>
  70. <xsl:with-param name="single.year.ranges" select="$make.single.year.ranges"/>
  71. </xsl:call-template>
  72. <xsl:call-template name="gentext.space"/>
  73. <xsl:apply-templates select="holder" mode="titlepage.mode"/>
  74. </p>
  75. </xsl:template>
  76. </xsl:stylesheet>