Mercurial > dive4elements > gnv-client
comparison gnv-artifacts/contrib/palette2polygonVM.xsl @ 628:bfe33e658576
Added XSLT sheet to transform palette xml files into a style definition template used for mapfile generation.
gnv-artifacts/trunk@703 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Ingo Weinzierl <ingo.weinzierl@intevation.de> |
---|---|
date | Tue, 23 Feb 2010 15:50:15 +0000 |
parents | |
children | 2ab49a1e29ca |
comparison
equal
deleted
inserted
replaced
627:c009d8df53aa | 628:bfe33e658576 |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | |
2 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
3 | |
4 <xsl:output | |
5 method="text" version="1.0" encoding="UTF-8" omit-xml-declaration="no" /> | |
6 | |
7 <xsl:template match="*"> | |
8 <xsl:apply-templates /> | |
9 </xsl:template> | |
10 | |
11 <xsl:template match="range"> | |
12 CLASS | |
13 NAME "<xsl:value-of select="./@from" /> - <xsl:value-of select="./@to" />" | |
14 EXPRESSION ("[CLASS]"="<xsl:value-of select ="./@index" />") | |
15 STYLE | |
16 COLOR "<xsl:value-of select="./@rgb" />" | |
17 END | |
18 END | |
19 </xsl:template> | |
20 | |
21 </xsl:stylesheet> |