map-elements.xsl 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. This file is part of the DITA Open Toolkit project.
  4. See the accompanying license.txt file for applicable licenses.
  5. -->
  6. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  7. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  8. version="2.0">
  9. <xsl:template match="*[contains(@class,' map/topicmeta ')]/*[contains(@class,' map/searchtitle ')]"/>
  10. <xsl:template match="*[contains(@class, ' map/topicmeta ')]">
  11. <!--
  12. <fo:block xsl:use-attribute-sets="topicmeta">
  13. <xsl:apply-templates/>
  14. </fo:block>
  15. -->
  16. </xsl:template>
  17. <xsl:template match="*[contains(@class, ' map/map ')]/*[contains(@class, ' map/reltable ')]">
  18. <fo:table-and-caption>
  19. <fo:table-caption>
  20. <fo:block xsl:use-attribute-sets="reltable__title">
  21. <xsl:value-of select="@title"/>
  22. </fo:block>
  23. </fo:table-caption>
  24. <fo:table xsl:use-attribute-sets="reltable">
  25. <xsl:call-template name="topicrefAttsNoToc"/>
  26. <xsl:call-template name="selectAtts"/>
  27. <xsl:call-template name="globalAtts"/>
  28. <xsl:apply-templates select="relheader"/>
  29. <fo:table-body>
  30. <xsl:apply-templates select="relrow"/>
  31. </fo:table-body>
  32. </fo:table>
  33. </fo:table-and-caption>
  34. </xsl:template>
  35. <xsl:template match="*[contains(@class, ' map/relheader ')]">
  36. <fo:table-header xsl:use-attribute-sets="relheader">
  37. <xsl:call-template name="globalAtts"/>
  38. <xsl:apply-templates/>
  39. </fo:table-header>
  40. </xsl:template>
  41. <xsl:template match="*[contains(@class, ' map/relcolspec ')]">
  42. <fo:table-cell xsl:use-attribute-sets="relcolspec">
  43. <xsl:apply-templates/>
  44. </fo:table-cell>
  45. </xsl:template>
  46. <xsl:template match="*[contains(@class, ' map/relrow ')]">
  47. <fo:table-row xsl:use-attribute-sets="relrow">
  48. <xsl:call-template name="globalAtts"/>
  49. <xsl:apply-templates/>
  50. </fo:table-row>
  51. </xsl:template>
  52. <xsl:template match="*[contains(@class, ' map/relcell ')]">
  53. <fo:table-cell xsl:use-attribute-sets="relcell">
  54. <xsl:call-template name="globalAtts"/>
  55. <xsl:call-template name="topicrefAtts"/>
  56. <xsl:apply-templates/>
  57. </fo:table-cell>
  58. </xsl:template>
  59. </xsl:stylesheet>