1 <?xml version=
"1.0" encoding=
"utf-8" standalone=
"yes" ?>
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 <xsl:transform xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
20 xmlns:
xsi=
"http://www.w3.org/2001/XMLSchema-instance"
21 xmlns:
xs=
"http://www.w3.org/2001/XMLSchema"
22 xmlns:
oor=
"http://openoffice.org/2001/registry"
25 <xsl:output method=
"text" indent=
"no" encoding=
"ISO-8859-1"/>
27 <xsl:namespace-alias stylesheet-prefix=
"xs" result-prefix=
"xs"></xsl:namespace-alias>
30 <xsl:template match=
"/">
31 <xsl:apply-templates/>
34 <!-- match all elements that could possibly contain info/desc elements -->
35 <xsl:template match=
"group|set|node-ref|prop|enumeration|length|minLength|maxLength|minInclusive|maxInclusive|minExclusive|maxExclusive|whiteSpace">
37 <xsl:if test=
"1>string-length(info/desc)">
38 <!-- print TPF's path to current node -->
39 <xsl:message terminate=
"yes">
41 <!-- print linefeed -->
42 <xsl:text> </xsl:text>
43 <xsl:text>ERROR: No info/desc element specified or string length of info/desc element is
0.
</xsl:text>
44 <xsl:text> </xsl:text>
45 <xsl:text> There has to be a reasonable description to be specified for any item.
</xsl:text>
46 <xsl:text> </xsl:text>
48 <xsl:text> - path:
</xsl:text>
49 <xsl:for-each select=
"ancestor-or-self::*"><xsl:text>/
</xsl:text>
50 <xsl:value-of select=
"local-name(.)"/>
52 <xsl:when test=
"@oor:name">[
<xsl:value-of select=
"@oor:name"/>]
</xsl:when>
53 <xsl:when test=
"@oor:value">[
<xsl:value-of select=
"@oor:value"/>]
</xsl:when>
57 <xsl:text> </xsl:text>
58 <xsl:text> - author:
</xsl:text>
60 <xsl:for-each select=
"ancestor-or-self::*">
61 <!-- print element name -->
62 <xsl:if test=
"info/author">
64 <xsl:text>-
></xsl:text>
65 <xsl:value-of select=
"info/author"/>
73 <xsl:apply-templates/>