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=
"/">
39 <xsl:apply-templates select=
"//title" mode=
"include"/>
40 <xsl:apply-templates select=
"//paragraph[@role='heading']" mode=
"include"/>
43 <xsl:template match=
"*" mode=
"include">
44 <xsl:value-of select=
"."/>
45 <xsl:text>
</xsl:text>
48 <xsl:template match=
"*"/>