teichmann@5454: <?xml version="1.0"?>
teichmann@5454: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:html="http://www.w3.org/1999/xhtml" version="1.0" exclude-result-prefixes="html">
teichmann@5454:   <xsl:output method="html"/>
teichmann@5454:   <xsl:template name="out">
teichmann@5454:     <xsl:param name="value"/>
teichmann@5454:     <xsl:choose>
teichmann@5454:       <xsl:when test="$value = ''">-/-</xsl:when>
teichmann@5454:       <xsl:otherwise>
teichmann@5454:         <xsl:value-of select="$value"/>
teichmann@5454:       </xsl:otherwise>
teichmann@5454:     </xsl:choose>
teichmann@5454:   </xsl:template>
teichmann@5454:   <xsl:template match="PEGELSTATION">
teichmann@5454:     <tr>
teichmann@5454:       <td>
teichmann@5454:         <xsl:value-of select="@NAME"/>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:value-of select="@NUMMER"/>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@HOCHWERT"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@TK_BLATT"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@BETREIBER"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@GEOBREITE"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@GEOLAENGE"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@GEWAESSER"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@GUELTIGAB"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@LAGESTATUS"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@RECHTSWERT"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@ABLESUNGBIS"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@ABLESUNGSEIT"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@STATIONIERUNG"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@EINGERICHTETAM"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@EINZUGSGEBIET_AEO"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@GEBIETSKENNZIFFER"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@KILOMETRIERUNG_AB"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@LAGE_AM_GEWAESSER"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@ENTFERNUNGMUENDUNG"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:       <td>
teichmann@5454:         <xsl:call-template name="out">
teichmann@5454:           <xsl:with-param name="value" select="@KILOMETRIERUNGSRICHTUNG"/>
teichmann@5454:         </xsl:call-template>
teichmann@5454:       </td>
teichmann@5454:     </tr>
teichmann@5454:     <xsl:if test="string-length(@BESCHREIBUNG) &gt; 0">
teichmann@5454:       <tr>
teichmann@5454:         <td/>
teichmann@5454:         <td colspan="21">
teichmann@5454:           <xsl:value-of select="@BESCHREIBUNG"/>
teichmann@5454:         </td>
teichmann@5454:       </tr>
teichmann@5454:     </xsl:if>
teichmann@5454:   </xsl:template>
teichmann@5454:   <xsl:template match="/">
teichmann@5454:     <html>
teichmann@5454:       <head>
teichmann@5454:         <title>DiPs</title>
teichmann@5454:       </head>
teichmann@5454:       <body>
teichmann@5454:         <table border="1" cellspacing="0" width="50%">
teichmann@5454:           <tr>
teichmann@5454:             <th>Name</th>
teichmann@5454:             <th>Nummer</th>
teichmann@5454:             <th>Hochwert</th>
teichmann@5454:             <th>TK-Blatt</th>
teichmann@5454:             <th>Betreiber</th>
teichmann@5454:             <th>Geo-Breite</th>
teichmann@5454:             <th>Geo-L&#xE4;nge</th>
teichmann@5454:             <th>Gew&#xE4;sser</th>
teichmann@5454:             <th>G&#xFC;ltig ab</th>
teichmann@5454:             <th>Lagestatus</th>
teichmann@5454:             <th>Rechtswert</th>
teichmann@5454:             <th>Ablesung seit</th>
teichmann@5454:             <th>Ablesung bis</th>
teichmann@5454:             <th>Stationierung</th>
teichmann@5454:             <th>Eingerichtet am</th>
teichmann@5454:             <th>Einzugsgebiet AEO</th>
teichmann@5454:             <th>Gebietskennziffer</th>
teichmann@5454:             <th>Kilometrierung ab</th>
teichmann@5454:             <th>Lage am Gew&#xE4;sser</th>
teichmann@5454:             <th>Entfernung zu M&#xFC;ndung</th>
teichmann@5454:             <th>Kilometrierungsrichtung</th>
teichmann@5454:           </tr>
teichmann@5454:           <xsl:apply-templates select="/DIPSFLYS/STATIONEN"/>
teichmann@5454:         </table>
teichmann@5454:       </body>
teichmann@5454:     </html>
teichmann@5454:   </xsl:template>
teichmann@5454:   <xsl:template match="text()"/>
teichmann@5454: </xsl:stylesheet>