bump product version to 4.1.6.2
[LibreOffice.git] / officecfg / util / schema_trim.xsl
blob4f75348b2ecba5a01d30732c9067d14defffe9a7
1 <?xml version="1.0" encoding="utf-8" standalone="yes" ?>
2 <!--
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 .
18 -->
20 <xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
21 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
22 xmlns:xs="http://www.w3.org/2001/XMLSchema"
23 xmlns:oor="http://openoffice.org/2001/registry"
24 version="1.0">
26 <!-- Get the correct format -->
27 <xsl:output method="xml" indent="yes"/>
28 <xsl:namespace-alias stylesheet-prefix="xs" result-prefix="xs"></xsl:namespace-alias>
31 <!-- Remove all comments from the schema files -->
32 <xsl:template match="*|@*">
33 <xsl:copy>
34 <xsl:apply-templates select="*|@*"/>
35 </xsl:copy>
36 </xsl:template>
38 <!-- suppress the location of the schema -->
39 <xsl:template match = "@xsi:schemaLocation"/>
41 <!-- suppress the constraints of the schema
42 <xsl:template match = "constraints"/> -->
44 <!-- suppress all documentation items
45 <xsl:template match = "info"/> -->
47 <!-- suppress constraints for deprecated items -->
48 <xsl:template match = "constraints[../info/deprecated]"/>
50 <!-- suppress all documentation for deprecated items -->
51 <xsl:template match = "desc[../deprecated]"/>
52 <xsl:template match = "label[../deprecated]"/>
54 <!-- copy all other documentation with content -->
55 <xsl:template match="desc|label">
56 <xsl:copy>
57 <xsl:apply-templates select="@*"/>
58 <xsl:value-of select="."/>
59 </xsl:copy>
60 </xsl:template>
62 <!-- suppress all author items -->
63 <xsl:template match = "author"/>
65 <!-- suppress values, which are marked as nil -->
66 <xsl:template match="value[@xsi:nil='true']" />
68 <!-- copy all other values with content -->
69 <xsl:template match="value">
70 <xsl:copy>
71 <xsl:apply-templates select="@*"/>
72 <xsl:copy-of select="node()"/>
73 </xsl:copy>
74 </xsl:template>
76 </xsl:transform>