Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

glossary.xsl 2.3KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xsl:stylesheet
  3. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  4. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  5. version="1.0">
  6. <xsl:template match="glossary">
  7. <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
  8. <fo:layout-master-set>
  9. <fo:simple-page-master master-name="all"
  10. page-height="11.5in"
  11. page-width="8.5in"
  12. margin-top="1in"
  13. margin-bottom="1in"
  14. margin-left="0.75in"
  15. margin-right="0.75in">
  16. <fo:region-body margin-top="1in" margin-bottom="0.75in"/>
  17. <fo:region-before extent="0.75in"/>
  18. <fo:region-after extent="0.5in"/>
  19. </fo:simple-page-master>
  20. </fo:layout-master-set>
  21. <fo:page-sequence master-reference="all" format="i">
  22. <!-- header with running glossary entries -->
  23. <fo:static-content flow-name="xsl-region-before">
  24. <fo:block text-align="start"
  25. font-size="10pt" font-family="serif" line-height="1em + 2pt">
  26. <fo:retrieve-marker retrieve-class-name="term"
  27. retrieve-boundary="page"
  28. retrieve-position="first-starting-within-page"/>
  29. <fo:leader leader-alignment="reference-area" leader-pattern="dots"
  30. leader-length="4in"/>
  31. <fo:retrieve-marker retrieve-class-name="term"
  32. retrieve-boundary="page"
  33. retrieve-position="last-ending-within-page"/>
  34. </fo:block>
  35. </fo:static-content>
  36. <fo:static-content flow-name="xsl-region-after">
  37. <fo:block text-align="start"
  38. font-size="10pt" font-family="serif" line-height="1em + 2pt">
  39. Page (<fo:page-number/>)
  40. </fo:block>
  41. </fo:static-content>
  42. <fo:flow flow-name="xsl-region-body">
  43. <xsl:apply-templates select="term-entry"/>
  44. </fo:flow>
  45. </fo:page-sequence>
  46. </fo:root>
  47. </xsl:template>
  48. <xsl:template match="term-entry">
  49. <fo:block text-align="start" font-size="12pt" font-family="sans-serif">
  50. <xsl:apply-templates select="term"/>
  51. <xsl:apply-templates select="definition"/>
  52. </fo:block>
  53. </xsl:template>
  54. <xsl:template match="term">
  55. <fo:block color="blue" space-before.optimum="3pt"><fo:marker
  56. marker-class-name="term"><xsl:value-of select="."/></fo:marker>
  57. <xsl:value-of select="."/>
  58. </fo:block>
  59. </xsl:template>
  60. <xsl:template match="definition">
  61. <fo:block text-align="start" start-indent="2em">
  62. <xsl:value-of select="."/>
  63. </fo:block>
  64. </xsl:template>
  65. </xsl:stylesheet>