Bump version to 4.3-4
[LibreOffice.git] / writerfilter / source / ooxml / resourceids.xsl
blobca5e87a19a738647786961382e2d135cc2cbdfb7
1 <?xml version="1.0" encoding="utf-8"?>
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 -->
19 <xsl:stylesheet
20 version="1.0"
21 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
22 xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
23 xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
24 xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0"
25 xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0"
26 xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
27 xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
28 xmlns:xlink="http://www.w3.org/1999/xlink"
29 xmlns:dc="http://purl.org/dc/elements/1.1/"
30 xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0"
31 xmlns:number="urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0"
32 xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
33 xmlns:chart="urn:oasis:names:tc:opendocument:xmlns:chart:1.0"
34 xmlns:dr3d="urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0"
35 xmlns:math="http://www.w3.org/1998/Math/MathML"
36 xmlns:form="urn:oasis:names:tc:opendocument:xmlns:form:1.0"
37 xmlns:script="urn:oasis:names:tc:opendocument:xmlns:script:1.0"
38 xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0"
39 xmlns:ooo="http://openoffice.org/2004/office"
40 xmlns:ooow="http://openoffice.org/2004/writer"
41 xmlns:oooc="http://openoffice.org/2004/calc"
42 xmlns:dom="http://www.w3.org/2001/xml-events"
43 xmlns:xforms="http://www.w3.org/2002/xforms"
44 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
45 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
46 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
47 xmlns:rng="http://relaxng.org/ns/structure/1.0"
48 xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
49 xmlns:xalan="http://xml.apache.org/xalan"
50 xmlns:UML = 'org.omg.xmi.namespace.UML'
51 exclude-result-prefixes = "xalan"
52 xml:space="default">
53 <xsl:output method="text" />
55 <xsl:include href="factorytools.xsl"/>
57 <!--
58 Generates contant definitions for tokenids.
59 -->
60 <xsl:template name="defineooxmlids">
61 <xsl:text>
62 namespace NS_ooxml
63 {</xsl:text>
64 <xsl:for-each select="//@tokenid|//@sendtokenid">
65 <xsl:if test="contains(., 'ooxml:') and generate-id(.) = generate-id(key('tokenids', .)[1])">
66 <xsl:text>
67 const Id LN_</xsl:text>
68 <xsl:value-of select="substring-after(., 'ooxml:')"/>
69 <xsl:text> = </xsl:text>
70 <xsl:value-of select="90000 + position()"/>
71 <xsl:text>;</xsl:text>
72 </xsl:if>
73 </xsl:for-each>
75 </xsl:template>
77 <xsl:template match="/">
78 <out>
79 <xsl:call-template name="licenseheader"/>
80 <xsl:text>
81 #ifndef INCLUDED_OOXML_RESOURCEIDS_HXX
82 #define INCLUDED_OOXML_RESOURCEIDS_HXX
84 #include &lt;resourcemodel/WW8ResourceModel.hxx&gt;
86 namespace writerfilter {
87 </xsl:text>
88 <xsl:call-template name="defineooxmlids"/>
89 <xsl:text>
92 #endif // INCLUDED_OOXML_RESOURCEIDS_HXX&#xa;</xsl:text></out></xsl:template>
93 </xsl:stylesheet>