annotate gnv-artifacts/contrib/palette2qgis.xsl @ 516:4f2a18abc780

Added little XSL tranformation to turn palette XML files into QGIS style definitions. Useful to display "Horizontalschnitte" in correct colors. gnv-artifacts/trunk@610 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Sat, 23 Jan 2010 14:03:26 +0000
parents
children a8f6ca59b26e
rev   line source
516
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
2 <xsl:stylesheet
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
3 version="1.0"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
4 xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
5 xmlns:html="http://www.w3.org/1999/xhtml"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
6 xmlns="http://www.w3.org/1999/xhtml" >
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
7 <!--
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
8 palette2qgis.xsl
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
9 ================
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
10 Transforms palette XML files into QGIS style files. Useful
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
11 to display "Horizontalschnitte" with the right colors.
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
12
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
13 Tested with Quantum GIS 1.4.0-Enceladus.
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
14
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
15 usage: xsltproc palette2qgis.xsl palette.xml > style.qml
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
16
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
17 Author: Sascha L. Teichmann (sascha.teichmann@intevation.de)
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
18 -->
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
19
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
20 <xsl:output
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
21 method="xml"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
22 doctype-system="PUBLIC 'http://mrcc.com/qgis.dtd' 'SYSTEM'"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
23
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
24 <xsl:template name="hex">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
25 <xsl:param name="value"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
26 <xsl:variable name="x" select="translate(substring($value, string-length($value), 1), 'ABCDEF', 'abcdef')"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
27 <xsl:variable name="result">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
28 <xsl:choose>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
29 <xsl:when test="$x = 'a'">10</xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
30 <xsl:when test="$x = 'b'">11</xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
31 <xsl:when test="$x = 'c'">12</xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
32 <xsl:when test="$x = 'd'">13</xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
33 <xsl:when test="$x = 'e'">14</xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
34 <xsl:when test="$x = 'f'">15</xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
35 <xsl:otherwise><xsl:value-of select="$x"/></xsl:otherwise>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
36 </xsl:choose>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
37 </xsl:variable>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
38 <xsl:variable name="rest">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
39 <xsl:choose>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
40 <xsl:when test="string-length($value) > 1">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
41 <xsl:call-template name="hex">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
42 <xsl:with-param name="value" select="substring($value, 1, string-length($value)-1)"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
43 </xsl:call-template>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
44 </xsl:when>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
45 <xsl:otherwise><xsl:value-of select="0"/></xsl:otherwise>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
46 </xsl:choose>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
47 </xsl:variable>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
48 <xsl:value-of select="number($result) + 16*$rest"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
49 </xsl:template>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
50
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
51 <xsl:template match="/ranges/range">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
52 <symbol>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
53 <lowervalue><xsl:value-of select="@index"/></lowervalue>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
54 <uppervalue><xsl:value-of select="@index"/></uppervalue>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
55 <label><xsl:value-of select="@description"/></label>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
56 <pointsymbol>hard:circle</pointsymbol>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
57 <pointsize>2</pointsize>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
58 <pointsizeunits>pixels</pointsizeunits>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
59 <rotationclassificationfieldname></rotationclassificationfieldname>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
60 <scaleclassificationfieldname></scaleclassificationfieldname>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
61 <symbolfieldname></symbolfieldname>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
62 <outlinecolor red="0" blue="0" green="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
63 <outlinestyle>NoPen</outlinestyle>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
64 <outlinewidth>0.26</outlinewidth>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
65 <xsl:variable name="rgb">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
66 <xsl:call-template name="hex">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
67 <xsl:with-param name="value" select="substring(@rgb, 2)"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
68 </xsl:call-template>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
69 </xsl:variable>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
70 <xsl:variable name="red" select="floor(($rgb div (256*256)) mod 256)"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
71 <xsl:variable name="green" select="floor(($rgb div 256) mod 256)"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
72 <xsl:variable name="blue" select="floor($rgb mod 256)"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
73 <fillcolor red="{$red}" blue="{$blue}" green="{$green}"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
74 <fillpattern>SolidPattern</fillpattern>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
75 <texturepath null="1" ></texturepath>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
76 </symbol>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
77 </xsl:template>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
78
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
79 <xsl:template match="/">
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
80 <qgis version="1.4.0-Enceladus"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
81 minimumScale="1"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
82 maximumScale="1e+08"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
83 minLabelScale="1"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
84 maxLabelScale="1e+08"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
85 hasScaleBasedVisibilityFlag="0"
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
86 scaleBasedLabelVisibilityFlag="0" >
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
87 <transparencyLevelInt>255</transparencyLevelInt>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
88 <classificationattribute>CLASS</classificationattribute>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
89 <symbol>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
90 <lowervalue null="1" ></lowervalue>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
91 <uppervalue null="1" ></uppervalue>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
92 <label>Andere</label>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
93 <pointsymbol>hard:circle</pointsymbol>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
94 <pointsize>2</pointsize>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
95 <pointsizeunits>pixels</pointsizeunits>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
96 <rotationclassificationfieldname></rotationclassificationfieldname>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
97 <scaleclassificationfieldname></scaleclassificationfieldname>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
98 <symbolfieldname></symbolfieldname>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
99 <outlinecolor red="0" blue="0" green="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
100 <outlinestyle>DashDotDotLine</outlinestyle>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
101 <outlinewidth>0.26</outlinewidth>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
102 <fillcolor red="59" blue="81" green="179" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
103 <fillpattern>SolidPattern</fillpattern>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
104 <texturepath null="1" ></texturepath>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
105 </symbol>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
106 <uniquevalue>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
107 <classificationfield>CLASS</classificationfield>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
108 <xsl:apply-templates/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
109 </uniquevalue>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
110 <edittypes>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
111 <edittype type="0" name="CLASS" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
112 <edittype type="0" name="DATE" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
113 <edittype type="0" name="LAYER" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
114 <edittype type="0" name="PARAMETER" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
115 </edittypes>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
116 <editform></editform>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
117 <editforminit></editforminit>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
118 <displayfield>PARAMETER</displayfield>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
119 <label>0</label>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
120 <attributeactions/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
121 <labelattributes>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
122 <label fieldname="" text="Beschriftung" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
123 <family fieldname="" name="Sans Serif" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
124 <size fieldname="" units="pt" value="12" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
125 <bold fieldname="" on="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
126 <italic fieldname="" on="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
127 <underline fieldname="" on="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
128 <color fieldname="" red="0" blue="0" green="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
129 <x fieldname="" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
130 <y fieldname="" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
131 <offset x="0" y="0" units="pt" yfieldname="" xfieldname="" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
132 <angle fieldname="" value="0" auto="0" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
133 <alignment fieldname="" value="center" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
134 <buffercolor fieldname="" red="255" blue="255" green="255" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
135 <buffersize fieldname="" units="pt" value="1" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
136 <bufferenabled fieldname="" on="" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
137 <multilineenabled fieldname="" on="" />
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
138 </labelattributes>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
139 </qgis>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
140 </xsl:template>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
141
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
142 <xsl:template match="text()"/>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
143 </xsl:stylesheet>
4f2a18abc780 Added little XSL tranformation to turn palette XML files into QGIS style definitions.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
diff changeset
144

http://dive4elements.wald.intevation.org