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.

reference.xsl 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. version="1.0">
  4. <xsl:import href="../html/docbook.xsl"/>
  5. <xsl:param name="html.stylesheet" select="'reference.css'"/>
  6. <xsl:template match="/legalnotice">
  7. <xsl:apply-templates select="." mode="titlepage.mode"/>
  8. </xsl:template>
  9. <xsl:template match="olink[@type='title']">
  10. <xsl:variable name="xml"
  11. select="document(unparsed-entity-uri(@targetdocent),.)"/>
  12. <xsl:variable name="title" select="($xml/*/title[1]
  13. |$xml/*/bookinfo/title[1]
  14. |$xml/*/referenceinfo/title[1])[1]"/>
  15. <i>
  16. <a href="{@localinfo}">
  17. <xsl:apply-templates select="$title/*|$title/text()"/>
  18. </a>
  19. </i>
  20. </xsl:template>
  21. <xsl:template match="copyright" mode="titlepage.mode">
  22. <xsl:variable name="years" select="year"/>
  23. <xsl:variable name="holders" select="holder"/>
  24. <p class="{name(.)}">
  25. <a href="copyright.html">
  26. <xsl:call-template name="gentext.element.name"/>
  27. </a>
  28. <xsl:call-template name="gentext.space"/>
  29. <xsl:call-template name="dingbat">
  30. <xsl:with-param name="dingbat">copyright</xsl:with-param>
  31. </xsl:call-template>
  32. <xsl:call-template name="gentext.space"/>
  33. <xsl:apply-templates select="$years" mode="titlepage.mode"/>
  34. <xsl:call-template name="gentext.space"/>
  35. <xsl:call-template name="gentext.by"/>
  36. <xsl:call-template name="gentext.space"/>
  37. <xsl:apply-templates select="$holders" mode="titlepage.mode"/>
  38. <xsl:text>. </xsl:text>
  39. <a href="warranty.html">No Warranty</a>
  40. <xsl:text>.</xsl:text>
  41. </p>
  42. </xsl:template>
  43. </xsl:stylesheet>