1 <?xml version=
"1.0" encoding=
"UTF-8"?>
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 .
20 <xsl:stylesheet version=
"1.0"
21 xmlns:
xsl=
"http://www.w3.org/1999/XSL/Transform"
22 xmlns:
rng=
"http://relaxng.org/ns/structure/1.0">
24 <xsl:output method=
"text"/>
26 <xsl:template match=
"/">
27 <xsl:text>Namespace,Define,Name,Tag,Done,Planned,qname-count

</xsl:text>
28 <xsl:for-each select=
"/todo/attribute|/todo/element">
29 <xsl:variable name=
"namespace" select=
"@namespace"/>
30 <xsl:variable name=
"define" select=
"@define"/>
31 <xsl:variable name=
"name" select=
"@name"/>
32 <xsl:variable name=
"tag" select=
"@tag"/>
34 <xsl:for-each select=
".//status">
35 <xsl:value-of select=
"$namespace"/>
36 <xsl:text>,
</xsl:text>
37 <xsl:value-of select=
"$define"/>
38 <xsl:text>,
</xsl:text>
39 <xsl:value-of select=
"$name"/>
40 <xsl:text>,
</xsl:text>
41 <xsl:value-of select=
"$tag"/>
42 <xsl:text>,
</xsl:text>
43 <xsl:value-of select=
"@done"/>
44 <xsl:text>,
</xsl:text>
45 <xsl:value-of select=
"@planned"/>
46 <xsl:text>,
</xsl:text>
47 <xsl:value-of select=
"@qname-count"/>
48 <xsl:text>
</xsl:text>
50 <xsl:if test=
"not(.//status)">
51 <xsl:value-of select=
"$namespace"/>
52 <xsl:text>,
</xsl:text>
53 <xsl:value-of select=
"$define"/>
54 <xsl:text>,
</xsl:text>
55 <xsl:value-of select=
"$name"/>
56 <xsl:text>,
</xsl:text>
57 <xsl:value-of select=
"$tag"/>
58 <xsl:text>,
0,
0.5,
1
</xsl:text>