Mercurial > dive4elements > gnv-client
annotate gnv-artifacts/contrib/palette2polygonVM.xsl @ 1129:ccfa07b88476
merged geo-backend
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 28 Sep 2012 12:14:01 +0200 |
parents | 2d393d79c097 |
children |
rev | line source |
---|---|
628
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
1115
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
2 |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
3 <!-- |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
4 Copyright (c) 2010 by Intevation GmbH |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
5 |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
6 This program is free software under the LGPL (>=v2.1) |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
7 Read the file LGPL.txt coming with the software for details |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
8 or visit http://www.gnu.org/licenses/ if it does not exist. |
1116
2d393d79c097
Added author names.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1115
diff
changeset
|
9 |
2d393d79c097
Added author names.
Sascha L. Teichmann <sascha.teichmann@intevation.de>
parents:
1115
diff
changeset
|
10 Author: Ingo Weinzierl (ingo.weinzierl@intevation.de) |
1115
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
11 --> |
f953c9a559d8
Added license file and license headers.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
861
diff
changeset
|
12 |
628
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
13 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
14 |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
15 <xsl:output |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
16 method="text" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
17 |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
18 <xsl:template match="*"> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
19 <xsl:apply-templates /> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
20 </xsl:template> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
21 |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
22 <xsl:template match="range"> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
23 CLASS |
861
2ab49a1e29ca
Added units to legend text of a wms layer (issue246).
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
628
diff
changeset
|
24 NAME "<xsl:value-of select="./@description" />" |
628
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
25 EXPRESSION ("[CLASS]"="<xsl:value-of select ="./@index" />") |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
26 STYLE |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
27 COLOR "<xsl:value-of select="./@rgb" />" |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
28 END |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
29 END |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
30 </xsl:template> |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
31 |
bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
Ingo Weinzierl <ingo.weinzierl@intevation.de>
parents:
diff
changeset
|
32 </xsl:stylesheet> |