dita-ot.plugins.org.dita.pdf2.cfg.fo.xsl.custom.xsl.map.shortdesc.xsl 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  3. xmlns:xs="http://www.w3.org/2001/XMLSchema"
  4. xmlns:dita-ot="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/dita-ot/dita-ot.xsd"
  5. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  6. exclude-result-prefixes="xs"
  7. version="2.0">
  8. <xsl:output indent="yes"/>
  9. <xsl:strip-space elements="*"/>
  10. <xsl:template match="xsl:stylesheet" mode="dita-ot:plugins.org.dita.pdf2.cfg.fo.xsl.custom.xsl.map.shortdesc.xsl">
  11. <xsl:copy copy-namespaces="yes">
  12. <xsl:copy-of select="@*"/>
  13. <xsl:apply-templates mode="#current"/>
  14. </xsl:copy>
  15. </xsl:template>
  16. <xsl:template mode="dita-ot:plugins.org.dita.pdf2.cfg.fo.xsl.custom.xsl.map.shortdesc.xsl" match="*">
  17. <xsl:copy-of select="."/>
  18. </xsl:template>
  19. <xsl:template mode="dita-ot:plugins.org.dita.pdf2.cfg.fo.xsl.custom.xsl.map.shortdesc.xsl" match="comment()|text()">
  20. <xsl:copy-of select="."/>
  21. </xsl:template>
  22. <!-- MATTER -->
  23. <xsl:template match="xsl:stylesheet" mode="dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl">
  24. <xsl:copy copy-namespaces="yes">
  25. <xsl:copy-of select="@*"/>
  26. <xsl:apply-templates mode="#current"/>
  27. <xsl:choose>
  28. <xsl:when test="not(xsl:template[@mode='dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl'][@match='text()|comment()'])">
  29. <xsl:text>
  30. </xsl:text>
  31. <xsl:element name="xsl:template">
  32. <xsl:attribute name="match">text()|comment()</xsl:attribute>
  33. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  34. </xsl:element>
  35. <xsl:text>
  36. </xsl:text>
  37. </xsl:when>
  38. </xsl:choose>
  39. <xsl:choose>
  40. <xsl:when test="not(xsl:template[@mode='dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl'][@match='*'])">
  41. <xsl:message>#57 [INF][Detected][modifing][adding][template][*]</xsl:message>
  42. <xsl:text>
  43. </xsl:text>
  44. <xsl:element name="xsl:template">
  45. <xsl:attribute name="match">*</xsl:attribute>
  46. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  47. </xsl:element>
  48. <xsl:text>
  49. </xsl:text>
  50. </xsl:when>
  51. </xsl:choose>
  52. <xsl:choose>
  53. <xsl:when test="not(xsl:template[@mode='dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl'][@match='topicmeta[parent::opentopic:map]'])">
  54. <xsl:message>#74 [INF][Detected][modifing][adding][template][topicmeta[parent::opentopic:map]]</xsl:message>
  55. <xsl:text>
  56. </xsl:text>
  57. <xsl:element name="xsl:template">
  58. <xsl:attribute name="match">topicmeta[parent::opentopic:map]</xsl:attribute>
  59. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  60. <xsl:element name="xsl:message">#78 [CUST][fo][dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl]</xsl:element>
  61. <xsl:element name="xsl:apply-templates">
  62. <xsl:attribute name="mode">#current</xsl:attribute>
  63. </xsl:element>
  64. </xsl:element>
  65. <xsl:text>
  66. </xsl:text>
  67. </xsl:when>
  68. </xsl:choose>
  69. <xsl:choose>
  70. <xsl:when test="not(xsl:template[@mode='dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl'][@match='author'])">
  71. <xsl:message>#96 [INF][Detected][modifing][adding][template][author]</xsl:message>
  72. <xsl:text>
  73. </xsl:text>
  74. <xsl:element name="xsl:template">
  75. <xsl:attribute name="match">author</xsl:attribute>
  76. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  77. <xsl:element name="fo:block">
  78. <!--<xsl:attribute name="xsl:use-attribute-sets">__frontmatter__owner</xsl:attribute>-->
  79. <xsl:attribute name="space-before">5pt</xsl:attribute>
  80. <xsl:attribute name="font-size">11pt</xsl:attribute>
  81. <xsl:attribute name="font-weight">bold</xsl:attribute>
  82. <xsl:attribute name="line-height">normal</xsl:attribute>
  83. <xsl:element name="xsl:value-of">
  84. <xsl:attribute name="select">.</xsl:attribute>
  85. </xsl:element>
  86. </xsl:element>
  87. </xsl:element>
  88. <xsl:text>
  89. </xsl:text>
  90. </xsl:when>
  91. </xsl:choose>
  92. <xsl:choose>
  93. <xsl:when test="not(xsl:template[@mode='dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl'][@match='critdates[created[@date]]'])">
  94. <xsl:message>#123 [INF][Detected][modifing][adding][template][critdates[created[@date]]]</xsl:message>
  95. <xsl:text>
  96. </xsl:text>
  97. <xsl:element name="xsl:template">
  98. <xsl:attribute name="match">critdates[created[@date]]</xsl:attribute>
  99. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  100. <xsl:element name="fo:block">
  101. <!--<xsl:attribute name="xsl:use-attribute-sets">__frontmatter__owner</xsl:attribute>-->
  102. <xsl:attribute name="space-before">5pt</xsl:attribute>
  103. <xsl:attribute name="font-size">11pt</xsl:attribute>
  104. <xsl:attribute name="font-weight">bold</xsl:attribute>
  105. <xsl:attribute name="line-height">normal</xsl:attribute>
  106. <xsl:element name="xsl:value-of">
  107. <xsl:attribute name="select">created/@date</xsl:attribute>
  108. </xsl:element>
  109. </xsl:element>
  110. </xsl:element>
  111. <xsl:text>
  112. </xsl:text>
  113. </xsl:when>
  114. </xsl:choose>
  115. <xsl:choose>
  116. <xsl:when test="not(xsl:template[@mode='dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl'][@match='prodinfo'])">
  117. <xsl:message>#149 [INF][Detected][modifing][adding][template][prodinfo]</xsl:message>
  118. <xsl:text>
  119. </xsl:text>
  120. <xsl:element name="xsl:template">
  121. <xsl:attribute name="match">prodinfo</xsl:attribute>
  122. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  123. <xsl:element name="fo:block">
  124. <!--<xsl:attribute name="xsl:use-attribute-sets">__frontmatter__owner</xsl:attribute>-->
  125. <xsl:attribute name="space-before">5pt</xsl:attribute>
  126. <xsl:attribute name="font-size">11pt</xsl:attribute>
  127. <xsl:attribute name="font-weight">bold</xsl:attribute>
  128. <xsl:attribute name="line-height">normal</xsl:attribute>
  129. <xsl:element name="xsl:value-of">
  130. <xsl:attribute name="select">prodname</xsl:attribute>
  131. </xsl:element>
  132. <xsl:element name="xsl:value-of">
  133. <xsl:attribute name="select">' '</xsl:attribute>
  134. </xsl:element>
  135. <xsl:element name="xsl:value-of">
  136. <xsl:attribute name="select">prognum</xsl:attribute>
  137. </xsl:element>
  138. </xsl:element>
  139. </xsl:element>
  140. <xsl:text>
  141. </xsl:text>
  142. </xsl:when>
  143. </xsl:choose>
  144. </xsl:copy>
  145. </xsl:template>
  146. <xsl:template mode="dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl" match="*">
  147. <xsl:copy-of select="."/>
  148. </xsl:template>
  149. <xsl:template mode="dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl" match="comment()|text()">
  150. <xsl:copy-of select="."/>
  151. </xsl:template>
  152. <xsl:template mode="dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl" match="xsl:template[@name='createFrontCoverContents'][not(xsl:apply-templates[contains(@mode,'dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl')])]">
  153. <xsl:message>#54 [INF][Detected][modifing][adding][template]</xsl:message>
  154. <xsl:copy>
  155. <xsl:copy-of select="@*"/>
  156. <xsl:copy-of select="*"/>
  157. <xsl:comment>#57 adding mode dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl bookmap/bookmeta</xsl:comment>
  158. <xsl:element name="xsl:apply-templates">
  159. <xsl:attribute name="select">$map//*[contains(@class,' map/topicmeta ')]</xsl:attribute>
  160. <xsl:attribute name="mode">dita-ot:plugins.org.dita.pdf2.xsl.fo.front-matter.xsl</xsl:attribute>
  161. </xsl:element>
  162. </xsl:copy>
  163. </xsl:template>
  164. </xsl:stylesheet>