idxcontent.xsl 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131
  1. <!--
  2. * This file is part of the LibreOffice project.
  3. *
  4. * This Source Code Form is subject to the terms of the Mozilla Public
  5. * License, v. 2.0. If a copy of the MPL was not distributed with this
  6. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
  7. *
  8. * This file incorporates work covered by the following license notice:
  9. *
  10. * Licensed to the Apache Software Foundation (ASF) under one or more
  11. * contributor license agreements. See the NOTICE file distributed
  12. * with this work for additional information regarding copyright
  13. * ownership. The ASF licenses this file to you under the Apache
  14. * License, Version 2.0 (the "License"); you may not use this file
  15. * except in compliance with the License. You may obtain a copy of
  16. * the License at http://www.apache.org/licenses/LICENSE-2.0 .
  17. -->
  18. <xsl:stylesheet version="1.0" encoding="UTF-8"
  19. xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  20. xmlns:office="http://openoffice.org/2000/office"
  21. xmlns:style="http://openoffice.org/2000/style"
  22. xmlns:table="http://openoffice.org/2000/table"
  23. xmlns:draw="http://openoffice.org/2000/drawing"
  24. xmlns:fo="http://www.w3.org/1999/XSL/Format"
  25. xmlns:xlink="http://www.w3.org/1999/xlink"
  26. xmlns:dc="http://purl.org/dc/elements/1.1/"
  27. xmlns:meta="http://openoffice.org/2000/meta"
  28. xmlns:number="http://openoffice.org/2000/datastyle"
  29. xmlns:svg="http://www.w3.org/2000/svg"
  30. xmlns:chart="http://openoffice.org/2000/chart"
  31. xmlns:help="http://openoffice.org/2000/help"
  32. xmlns:index="http://sun.com/2000/XMLSearch"
  33. xmlns:text="http://openoffice.org/2000/text">
  34. <xsl:param name="Language" select="'en-US'"/>
  35. <xsl:output method="text" encoding="UTF-8"/>
  36. <xsl:template match="helpdocument|body">
  37. <xsl:choose>
  38. <xsl:when test="meta/topic[@indexer='exclude']"/>
  39. <xsl:otherwise>
  40. <xsl:apply-templates/>
  41. </xsl:otherwise>
  42. </xsl:choose>
  43. </xsl:template>
  44. <xsl:template match="title">
  45. <xsl:value-of select="."/>
  46. <xsl:text>&#xA;</xsl:text>
  47. </xsl:template>
  48. <xsl:template match="table">
  49. <xsl:apply-templates/>
  50. <xsl:text>&#xA;</xsl:text>
  51. </xsl:template>
  52. <xsl:template match="tablecell">
  53. <xsl:apply-templates/>
  54. <xsl:text>&#xA;</xsl:text>
  55. </xsl:template>
  56. <xsl:template match="tablerow">
  57. <xsl:apply-templates/>
  58. <xsl:text>&#xA;</xsl:text>
  59. </xsl:template>
  60. <xsl:template match="list">
  61. <xsl:apply-templates/>
  62. <xsl:text>&#xA;</xsl:text>
  63. </xsl:template>
  64. <xsl:template match="listitem">
  65. <xsl:apply-templates/>
  66. <xsl:text>&#xA;</xsl:text>
  67. </xsl:template>
  68. <xsl:template match="item">
  69. <xsl:apply-templates/>
  70. <xsl:text>&#xA;</xsl:text>
  71. </xsl:template>
  72. <xsl:template match="emph">
  73. <xsl:apply-templates/>
  74. <xsl:text>&#xA;</xsl:text>
  75. </xsl:template>
  76. <xsl:template match="sub">
  77. <xsl:apply-templates/>
  78. <xsl:text>&#xA;</xsl:text>
  79. </xsl:template>
  80. <xsl:template match="sup">
  81. <xsl:apply-templates/>
  82. <xsl:text>&#xA;</xsl:text>
  83. </xsl:template>
  84. <xsl:template match="paragraph">
  85. <xsl:value-of select="."/>
  86. <xsl:text>&#xA;</xsl:text>
  87. </xsl:template>
  88. <xsl:template match="section">
  89. <xsl:apply-templates/>
  90. <xsl:text>&#xA;</xsl:text>
  91. </xsl:template>
  92. <xsl:template match="bookmark">
  93. <xsl:apply-templates/>
  94. <xsl:text>&#xA;</xsl:text>
  95. </xsl:template>
  96. <xsl:template match="bookmark_value">
  97. <xsl:apply-templates/>
  98. <xsl:text>&#xA;</xsl:text>
  99. </xsl:template>
  100. <xsl:template match="link">
  101. <xsl:apply-templates/>
  102. <xsl:text>&#xA;</xsl:text>
  103. </xsl:template>
  104. <xsl:template match="ahelp[@visibility='visible']">
  105. <xsl:value-of select="."/>
  106. <xsl:text>&#xA;</xsl:text>
  107. </xsl:template>
  108. <xsl:template match="*"/>
  109. </xsl:stylesheet>