idxcaption.xsl 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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="/">
  37. <xsl:apply-templates select="//title" mode="include"/>
  38. <xsl:apply-templates select="//paragraph[@role='heading']" mode="include"/>
  39. </xsl:template>
  40. <xsl:template match="*" mode="include">
  41. <xsl:value-of select="."/>
  42. <xsl:text>&#xA;</xsl:text>
  43. </xsl:template>
  44. <xsl:template match="*"/>
  45. </xsl:stylesheet>