2 * This file is part of the LibreOffice project.
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/.
8 * This file incorporates work covered by the following license notice:
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 .
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">
35 <xsl:param name=
"Language" select=
"'en-US'"/>
36 <xsl:output method=
"text" encoding=
"UTF-8"/>
38 <xsl:template match=
"helpdocument|body">
40 <xsl:when test=
"meta/topic[@indexer='exclude']"/>
42 <xsl:apply-templates/>
47 <xsl:template match=
"title">
48 <xsl:value-of select=
"."/>
49 <xsl:text>
</xsl:text>
52 <xsl:template match=
"table">
53 <xsl:apply-templates/>
54 <xsl:text>
</xsl:text>
57 <xsl:template match=
"tablecell">
58 <xsl:apply-templates/>
59 <xsl:text>
</xsl:text>
62 <xsl:template match=
"tablerow">
63 <xsl:apply-templates/>
64 <xsl:text>
</xsl:text>
67 <xsl:template match=
"list">
68 <xsl:apply-templates/>
69 <xsl:text>
</xsl:text>
72 <xsl:template match=
"listitem">
73 <xsl:apply-templates/>
74 <xsl:text>
</xsl:text>
77 <xsl:template match=
"item">
78 <xsl:apply-templates/>
79 <xsl:text>
</xsl:text>
82 <xsl:template match=
"emph">
83 <xsl:apply-templates/>
84 <xsl:text>
</xsl:text>
87 <xsl:template match=
"sub">
88 <xsl:apply-templates/>
89 <xsl:text>
</xsl:text>
92 <xsl:template match=
"sup">
93 <xsl:apply-templates/>
94 <xsl:text>
</xsl:text>
97 <xsl:template match=
"paragraph">
98 <xsl:value-of select=
"."/>
99 <xsl:text>
</xsl:text>
102 <xsl:template match=
"section">
103 <xsl:apply-templates/>
104 <xsl:text>
</xsl:text>
107 <xsl:template match=
"bookmark">
108 <xsl:apply-templates/>
109 <xsl:text>
</xsl:text>
112 <xsl:template match=
"bookmark_value">
113 <xsl:apply-templates/>
114 <xsl:text>
</xsl:text>
117 <xsl:template match=
"link">
118 <xsl:apply-templates/>
119 <xsl:text>
</xsl:text>
122 <xsl:template match=
"ahelp[@visibility='visible']">
123 <xsl:value-of select=
"."/>
124 <xsl:text>
</xsl:text>
127 <xsl:template match=
"*"/>