Mercurial > dive4elements > river
comparison etl/doc/havel.xsl @ 7256:b8d6aac3acf2
ETL: Added repair XSLT script to rename value of GEWAESSER attribute 'Untere Havel-Wasserstraße (UHW)' with 'Havel'.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Mon, 07 Oct 2013 11:13:40 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
7255:5783bd29de8a | 7256:b8d6aac3acf2 |
---|---|
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 method="xml"/> | |
5 | |
6 <xsl:template match="/DIPSFLYS/STATIONEN/PEGELSTATION[@GEWAESSER='Untere Havel-Wasserstraße (UHW)']"> | |
7 <PEGELSTATION> | |
8 <xsl:attribute name="GEWAESSER">Havel</xsl:attribute> | |
9 <xsl:apply-templates select="@*[local-name() != 'GEWAESSER']"/> | |
10 <xsl:apply-templates select="node()"/> | |
11 </PEGELSTATION> | |
12 </xsl:template> | |
13 | |
14 <xsl:template match="@*|node()"> | |
15 <xsl:copy> | |
16 <xsl:apply-templates select="@*|node()"/> | |
17 </xsl:copy> | |
18 </xsl:template> | |
19 | |
20 </xsl:stylesheet> |