1790

ID1790
Data2014-09-30
Symbol2014/09/30/1790
InstytucjaWojewódzka Stacja Sanitarno-Epidemiologiczna w Białymstoku
NazwaZlecenie badania wody
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2013/235/16b/1
  • Ustawa z dnia 17 lutego 2005 r. o informatyzacji działalności podmiotów realizujących zadania publiczne

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/11/16/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:wnio="http://crd.gov.pl/wzor/2014/09/30/1790/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" exclude-result-prefixes="adr oso inst meta wnio ds str xsi" version="1.0" xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd">
    <xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN" doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" encoding="UTF-8" indent="yes" method="xml"/>
    <xsl:template match="wnio:Dokument">
    <html>
    <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type"/>
    <title>Zlecenie badania wody</title>
    <style type="text/css">
                        body {
                        margin: 0;
                        padding: 30px 30px 15px 30px;
                        font-family: "Times New Roman", Times, serif;
                        font-size: 1.05em;
                        color: #000;
                        line-height: 1.5em;
                        }
    
                        div.header, div.content {
                        margin-bottom: 15px;
                        overflow: hidden;
                        }
    					
    					div.wideTable {
    					overflow: auto;
    					}
    					
                        p {
                        margin: 0 0 15px 0;
                        }
    
                        p.toRight {
                        float: right;
                        }
    
                        p.toLeft {
                        clear: both;
                        }
    					
    					p.level1 {
    					text-indent: 16px;
    					}
    					
    					p.level2 {
    					text-indent: 32px;
    					}
    					
    					p.level3 {
    					text-indent: 48px;
    					}
    					
    					p.level4 {
    					text-indent: 64px;
    					}
    					
                        span.title {
                        font-weight: bold;
                        }
    
                        span.line {
                        display: block;
                        }
    
                        span.label {
                        color: #555;
                        }
    
                        h1.print {
                        text-align: center;
                        font-size: 140%;
                        margin: 0 0 30px 0;
                        }
    
                        h2.print {
                        font-size: 120%;
                        margin: 0 0 15px 0;
                        }
    
                        ul {
                        margin: 0 0 15px 0;
                        list-style-type: square;
                        }
    
                        ol {
                        margin: 0 0 15px 0;
                        }
    
                        table {
                        border-collapse: collapse;
                        margin: 0 0 15px 0;
                        }
    
                        table th, table td {
                        border: 1px solid #555;
                        padding: 0 7px;
                        }
    					
    					span.formattedText{
                            display: block;
                        }
                    </style>
    </head>
    <body>
    <div class="header">
    <p class="toRight">
    <span>
    <xsl:value-of select="wnio:TrescDokumentu/wnio:MiejscowoscDokumentu"/>,
                            </span>
    <span>
    <xsl:value-of select="wnio:TrescDokumentu/wnio:DataDokumentu"/>
    </span>
    </p>
    <xsl:call-template name="wnioskodawca"/>
    <xsl:if test="count(wnio:DaneDokumentu/str:Adresaci)&gt;0">
    <p class="toRight">
    <xsl:call-template name="adresatInstytucja"/>
    </p>
    </xsl:if>
    </div>
    <div class="content">
    <xsl:call-template name="template_content"/>
    </div>
    <div class="attachments">
    <xsl:call-template name="Zalaczniki"/>
    </div>
    <div class="footer">
    <xsl:call-template name="template_footer"/>
    </div>
    <div class="podpis">
    <xsl:call-template name="Podpis"/>
    </div>
    </body>
    </html>
    </xsl:template>
    <xsl:template name="wnioskodawca">
    <xsl:param name="podmiot" select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot"/>
    <p class="toLeft">
    <span class="title line">Nadawca:</span>
    <xsl:if test="count($podmiot/oso:Osoba)&gt;0">
    <xsl:call-template name="wnioskodawacaOsoba"/>
    </xsl:if>
    <xsl:if test="count($podmiot/inst:Instytucja)&gt;0">
    <xsl:call-template name="wnioskodawcaInstytucja"/>
    </xsl:if>
    </p>
    </xsl:template>
    <xsl:template name="wnioskodawacaOsoba">
    <xsl:param name="osoba" select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/oso:Osoba"/>
    <xsl:param name="adres" select="$osoba/adr:Adres"/>
    <xsl:if test="string-length(normalize-space($osoba/oso:IdOsoby/oso:PESEL)) &gt; 0">
    <span class="line">
    <span class="label">PESEL: </span>
    <span>
    <xsl:value-of select="$osoba/oso:IdOsoby/oso:PESEL"/>
    </span>
    </span>
    </xsl:if>
    <xsl:if test="string-length(normalize-space($osoba/oso:IdOsoby/oso:NIP)) &gt; 0">
    <span class="line">
    <span class="label">NIP: </span>
    <span>
    <xsl:value-of select="$osoba/oso:IdOsoby/oso:NIP"/>
    </span>
    </span>
    </xsl:if>
    <span class="line">
    <span>
    <xsl:value-of select="$osoba/oso:Imie"/>
    </span>
    <span> </span>
    <span>
    <xsl:value-of select="$osoba/oso:Nazwisko"/>
    </span>
    </span>
    <xsl:call-template name="adres">
    <xsl:with-param name="adres" select="$adres"/>
    </xsl:call-template>
    <xsl:if test="string-length(normalize-space($osoba/adr:Kontakt/adr:Email)) &gt; 0">
    <span class="line">
    <span class="label">Adres e-mail:</span>
    <span> </span>
    <span>
    <xsl:element name="a">
    <xsl:attribute name="href">
    <xsl:text>mailto:</xsl:text>
    <xsl:value-of select="$osoba/adr:Kontakt/adr:Email"/>
    </xsl:attribute>
    <xsl:value-of select="$osoba/adr:Kontakt/adr:Email"/>
    </xsl:element>
    </span>
    </span>
    </xsl:if>
    </xsl:template>
    <xsl:template name="wnioskodawcaInstytucja">
    <xsl:param name="instytucja" select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/inst:Instytucja"/>
    <xsl:param name="adres" select="$instytucja/adr:Adres"/>
    <span class="line">
    <span>
    <xsl:value-of select="$instytucja/inst:NazwaInstytucji"/>
    </span>
    </span>
    <xsl:if test="string-length($instytucja/inst:IdInstytucji/inst:NIP) &gt; 0">
    <span class="line">
    <span class="label">NIP: </span>
    <span>
    <xsl:value-of select="$instytucja/inst:IdInstytucji/inst:NIP"/>
    </span>
    </span>
    </xsl:if>
    <xsl:if test="string-length($instytucja/inst:IdInstytucji/inst:REGON) &gt; 0">
    <span class="line">
    <span class="label">REGON: </span>
    <span>
    <xsl:value-of select="$instytucja/inst:IdInstytucji/inst:REGON"/>
    </span>
    </span>
    </xsl:if>
    <xsl:call-template name="adres">
    <xsl:with-param name="adres" select="$adres"/>
    </xsl:call-template>
    <xsl:if test="string-length(normalize-space($instytucja/adr:Kontakt/adr:Email)) &gt; 0">
    <span class="line">
    <span class="label">Adres e-mail:</span>
    <span> </span>
    <span>
    <xsl:element name="a">
    <xsl:attribute name="href">
    <xsl:text>mailto:</xsl:text>
    <xsl:value-of select="$instytucja/adr:Kontakt/adr:Email"/>
    </xsl:attribute>
    <xsl:value-of select="$instytucja/adr:Kontakt/adr:Email"/>
    </xsl:element>
    </span>
    </span>
    </xsl:if>
    </xsl:template>
    <xsl:template name="adresatInstytucja">
    <xsl:param name="instytucja" select="wnio:DaneDokumentu/str:Adresaci/meta:Podmiot/inst:Instytucja"/>
    <xsl:param name="adres" select="$instytucja/adr:Adres"/>
    <span class="title line">
    <xsl:value-of select="$instytucja/inst:NazwaInstytucji"/>
    </span>
    <xsl:call-template name="adres">
    <xsl:with-param name="adres" select="$adres"/>
    </xsl:call-template>
    </xsl:template>
    <xsl:template name="adres">
    <xsl:param name="adres"/>
    <xsl:choose>
    <xsl:when test="string-length($adres/adr:KodPocztowy) &gt; 0 or string-length($adres/adr:Poczta) &gt; 0 or string-length($adres/adr:Miejscowosc) &gt; 0">
    <span class="line">
    <span>
    <xsl:value-of select="$adres/adr:KodPocztowy"/>
    </span>
    <span> </span>
    <span>
    <xsl:choose>
    <xsl:when test="string-length($adres/adr:Poczta) &gt; 0">
    <xsl:value-of select="$adres/adr:Poczta"/>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$adres/adr:Miejscowosc"/>
    </xsl:otherwise>
    </xsl:choose>
    </span>
    </span>
    </xsl:when>
    </xsl:choose>
    <xsl:choose>
    <xsl:when test="string-length($adres/adr:Ulica) &gt; 0 or string-length($adres/adr:Budynek) &gt; 0 or string-length($adres/adr:Lokal) &gt; 0 or string-length($adres/adr:Poczta) &gt; 0 or string-length($adres/adr:Miejscowosc) &gt; 0">
    <span class="line">
    <xsl:choose>
    <xsl:when test="string-length($adres/adr:Ulica) &gt; 0">
    <span>
    <xsl:value-of select="$adres/adr:Ulica"/>
    </span>
    <span> </span>
    <span>
    <xsl:value-of select="$adres/adr:Budynek"/>
    </span>
    <xsl:if test="string-length($adres/adr:Lokal) &gt; 0">
    <span> / </span>
    <span>
    <xsl:value-of select="$adres/adr:Lokal"/>
    </span>
    </xsl:if>
    <xsl:if test="string-length($adres/adr:Poczta) &gt; 0">
    <span>, </span>
    <span>
    <xsl:value-of select="$adres/adr:Miejscowosc"/>
    </span>
    </xsl:if>
    </xsl:when>
    <xsl:otherwise>
    <span>
    <xsl:value-of select="$adres/adr:Miejscowosc"/>
    </span>
    <span> </span>
    <span>
    <xsl:value-of select="$adres/adr:Budynek"/>
    </span>
    <xsl:if test="string-length($adres/adr:Lokal) &gt; 0">
    <span> / </span>
    <span>
    <xsl:value-of select="$adres/adr:Lokal"/>
    </span>
    </xsl:if>
    </xsl:otherwise>
    </xsl:choose>
    </span>
    </xsl:when>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="formattedText">
    <xsl:param name="input"/>
    <xsl:choose>
    <xsl:when test="contains($input, '&#xA;')">
    <xsl:value-of select="substring-before($input, '&#xA;')"/>
    <br/>
    <xsl:call-template name="formattedText">
    <xsl:with-param name="input" select="substring-after($input, '&#xA;')"/>
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$input"/>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="Podpis">
    <div>
    <h2 class="print">Podpisy elektroniczne</h2>
    <ul>
    <li>
    <xsl:choose>
    <xsl:when test="string-length(//wnio:Dokument/ds:Signature/ds:SignatureValue) &gt; 0">
    <xsl:text>Dokument został podpisany, aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu.</xsl:text>
    <xsl:choose>
    <xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) &gt; 1">
    <br/>
    <xsl:text>Daty złożenia podpisu: </xsl:text>
    <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
    <xsl:value-of select="."/>
    </xsl:for-each>
    </xsl:when>
    <xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) = 1">
    <br/>
    <xsl:text>Data złożenia podpisu: </xsl:text>
    <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
    <xsl:value-of select="."/>
    </xsl:for-each>
    </xsl:when>
    <xsl:when test="0 &gt;= count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime'])"/>
    </xsl:choose>
    </xsl:when>
    <xsl:otherwise>
    <xsl:text>Dokument nie zawiera podpisu.</xsl:text>
    </xsl:otherwise>
    </xsl:choose>
    </li>
    </ul>
    </div>
    <div style="clear: both;"/>
    </xsl:template>
    <xsl:template name="Zalaczniki">
    <xsl:param name="zalaczniki" select="wnio:TrescDokumentu/str:Zalaczniki"/>
    <xsl:if test="count($zalaczniki/str:Zalacznik) &gt; 0">
    <div style="text-align: left;">
    <h2 class="print">Załączniki:</h2>
    <ol style="padding-top: 0px;margin-top: 0px;">
    <xsl:for-each select="$zalaczniki/str:Zalacznik[@nazwaPliku != '']">
    <li>
    <xsl:if test="@kodowanie='base64'">
    <xsl:value-of select="@nazwaPliku"/>
    <xsl:if test="string-length(str:OpisZalacznika) &gt; 0"> - </xsl:if>
    <xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
    <xsl:value-of select="str:OpisZalacznika"/>
    </xsl:if>
    </xsl:if>
    <xsl:if test="@kodowanie='URI'">
    <a href="{str:DaneZalacznika}">
    <xsl:value-of select="@nazwaPliku"/>
    </a>
    <xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
                                        (<xsl:value-of select="str:OpisZalacznika"/>)
                                    </xsl:if>
    </xsl:if>
    </li>
    </xsl:for-each>
    </ol>
    </div>
    </xsl:if>
    </xsl:template>
    <xsl:template name="template_content">
    <xsl:call-template name="content"/>
    </xsl:template>
    <xsl:template name="template_footer">
    <xsl:if test="string-length(normalize-space(//wnio:OswiadczenieKorespondencja)) &gt; 0">
    <h2 class="print">Oświadczenie korespondencji</h2>
    <ul>
    <li>
    <xsl:choose>
    <xsl:when test="string-length(normalize-space(//wnio:OswiadczenieKorespondencja)) &gt; 0">
    <p class="matter">
    <xsl:value-of select="//wnio:OswiadczenieKorespondencja"/>
    </p>
    </xsl:when>
    <xsl:otherwise>Brak oświadczenia.</xsl:otherwise>
    </xsl:choose>
    </li>
    </ul>
    </xsl:if>
    </xsl:template>
    <xsl:template name="dictZakresMikro">
    <xsl:param name="key"/>
    <xsl:choose>
    <xsl:when test="$key=01">Wykrywanie i oznaczanie ilościowe bakterii grupy coli i E. coli</xsl:when>
    <xsl:when test="$key=02">Clostridium perfringens (łącznie ze sporami)</xsl:when>
    <xsl:when test="$key=03">Ogólna liczba mikroorg. w 22±2ºC</xsl:when>
    <xsl:when test="$key=04">Liczba paciorkowców kałowych</xsl:when>
    <!-- Łomża -->
    <xsl:when test="$key=10">Ogólna liczba mikroorganizmów na agarze odżywczym w temp. 36ºC po 24h i 48h</xsl:when>
    <xsl:when test="$key=11">Ogólna liczba mikroorganizmów na agarze odżywczym w temp. 22ºC po 72h</xsl:when>
    <xsl:when test="$key=12">Liczba bakterii grupy coli</xsl:when>
    <xsl:when test="$key=13">Liczba bakterii grupy coli termotolerancyjnych </xsl:when>
    <xsl:when test="$key=14">Liczba Escherichia coli </xsl:when>
    <xsl:when test="$key=15">Liczba paciorkowców kałowych (enterokoków)</xsl:when>
    <xsl:when test="$key=16">Liczba Pseudomonas aeruginosa</xsl:when>
    <xsl:when test="$key=17">Liczba gronkowców koagulazododatnich</xsl:when>
    <xsl:when test="$key=18">Liczba Legionella sp.</xsl:when>
    <xsl:when test="$key=19">Identyfikacja potwierdzonych  Legionella sp. w kierunku Legionella pneumophila</xsl:when>
    <!-- Oddział Laboratoryjny PSSE w Suwałkach -->
    <xsl:when test="$key=20">Liczba bakterii grupy coli</xsl:when>
    <xsl:when test="$key=21">Liczba Escherichia coli</xsl:when>
    <xsl:when test="$key=22">Liczba paciorkowców kałowych (enterokoków)</xsl:when>
    <xsl:when test="$key=23">Ogólna liczba mikroorg. w 22±2ºC, w 1 ml wody, po 72h</xsl:when>
    <xsl:when test="$key=24">Ogólna liczba bakterii w 20-22ºC, w 1 ml wody, po 72h</xsl:when>
    <xsl:when test="$key=25">Ogólna liczba bakterii w 37ºC, w 1 ml wody, po 24h* / 48h*</xsl:when>
    <xsl:when test="$key=26">Liczba bakterii grupy coli w 250 ml wody</xsl:when>
    <xsl:when test="$key=27">Liczba Escherichia coli w 250 ml wody</xsl:when>
    <xsl:when test="$key=28">Liczba paciorkowców kałowych  w 250 ml wody (Enterokoków)</xsl:when>
    <xsl:when test="$key=29">Liczba przetrwalników beztlenowców redukujących siarczyny (Clostridia) w  50 ml * /  100 ml*</xsl:when>
    <xsl:when test="$key=30">Liczba Pseudomonas aeruginosa w 250 ml wody</xsl:when>
    <xsl:when test="$key=31">Liczba  Enetrokoków</xsl:when>
    <xsl:when test="$key=32">Ogólna liczba mikroorganizmów w 36±2ºC, w 1 ml wody, po 48h</xsl:when>
    <xsl:when test="$key=33">Liczba gronkowców koagulazododatnich</xsl:when>
    <xsl:when test="$key=34">Liczba bakterii Legionella sp.</xsl:when>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dictZakresMikroInne">
    <xsl:param name="key"/>
    <xsl:choose>
    <xsl:when test="$key=01">Wykrywanie i oznaczanie ilościowe bakterii grupy coli i E. coli</xsl:when>
    <xsl:when test="$key=02">Clostridium perfringens (łącznie ze sporami)</xsl:when>
    <xsl:when test="$key=03">Ogólna liczba mikroorg. w 22±2ºC</xsl:when>
    <xsl:when test="$key=04">Liczba paciorkowców kałowych</xsl:when>
    <xsl:when test="$key=05">Liczba gronkowców koagulazo-dodatnich</xsl:when>
    <xsl:when test="$key=06">Wykrywanie obecności bakterii z rodzaju Salmonella</xsl:when>
    <xsl:when test="$key=07">Liczba bakterii Pseudomonas aeruginosa</xsl:when>
    <xsl:when test="$key=08">Liczba bakterii gr. coli typu kałowego (termotolerancyjne)</xsl:when>
    <xsl:when test="$key=09">Liczba przetrwalników bakterii tlenowych redukujących siarczyny</xsl:when>
    <xsl:when test="$key=10">Liczba bakterii z rodzaju Legionella spp</xsl:when>
    <xsl:when test="$key=11">Liczba bakterii z rodzaju Legionella pneumophila</xsl:when>
    <xsl:when test="$key=12">Ogólna liczba mikroorganizmów w 36±2ºC</xsl:when>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="zakresMikro">
    <xsl:param name="pText"/>
    <xsl:param name="pRP"/>
    <xsl:if test="string-length($pText)">
    <li>
    <xsl:if test="$pRP='woda przeznaczona do spożycia'">
    <xsl:call-template name="dictZakresMikro">
    <xsl:with-param name="key" select="substring-before(concat($pText,' '),' ')"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:if test="$pRP='woda inna'">
    <xsl:call-template name="dictZakresMikroInne">
    <xsl:with-param name="key" select="substring-before(concat($pText,' '),' ')"/>
    </xsl:call-template>
    </xsl:if>
    <!-- <xsl:value-of select="substring-before(concat($pText,' '),' ')"/> -->
    </li>
    <xsl:call-template name="zakresMikro">
    <xsl:with-param name="pText" select="substring-after($pText, ' ')"/>
    <xsl:with-param name="pRP" select="$pRP"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template name="zakresFizyko">
    <xsl:param name="pText"/>
    <xsl:param name="pRP"/>
    <xsl:if test="string-length($pText)">
    <li>
    <xsl:if test="$pRP='woda przeznaczona do spożycia'">
    <xsl:call-template name="dictZakresFizyko">
    <xsl:with-param name="key" select="substring-before(concat($pText,' '),' ')"/>
    </xsl:call-template>
    </xsl:if>
    <xsl:if test="$pRP='woda inna'">
    <xsl:call-template name="dictZakresFizykoInne">
    <xsl:with-param name="key" select="substring-before(concat($pText,' '),' ')"/>
    </xsl:call-template>
    </xsl:if>
    <!-- <xsl:value-of select="substring-before(concat($pText,' '),' ')"/> -->
    </li>
    <xsl:call-template name="zakresFizyko">
    <xsl:with-param name="pText" select="substring-after($pText, ' ')"/>
    <xsl:with-param name="pRP" select="$pRP"/>
    </xsl:call-template>
    </xsl:if>
    </xsl:template>
    <xsl:template name="dictZakresFizyko">
    <xsl:param name="key"/>
    <xsl:choose>
    <xsl:when test="$key=01">1,2-dichloroetan</xsl:when>
    <xsl:when test="$key=02">Amonowy jon</xsl:when>
    <xsl:when test="$key=03">Antymon</xsl:when>
    <xsl:when test="$key=04">Arsen</xsl:when>
    <xsl:when test="$key=05">Azotany</xsl:when>
    <xsl:when test="$key=06">Azotyny</xsl:when>
    <xsl:when test="$key=07">Barwa</xsl:when>
    <xsl:when test="$key=08">Benzen</xsl:when>
    <xsl:when test="$key=09">Bor</xsl:when>
    <xsl:when test="$key=10">Bromiany</xsl:when>
    <xsl:when test="$key=11">Bromodichlorometan</xsl:when>
    <xsl:when test="$key=12">Chlorki</xsl:when>
    <xsl:when test="$key=13">Chloroform</xsl:when>
    <xsl:when test="$key=14">Chrom</xsl:when>
    <xsl:when test="$key=15">Cyjanki</xsl:when>
    <xsl:when test="$key=16">Fluorki</xsl:when>
    <xsl:when test="$key=17">Glin</xsl:when>
    <xsl:when test="$key=18">Kadm</xsl:when>
    <xsl:when test="$key=19">Magnez</xsl:when>
    <xsl:when test="$key=20">Mangan</xsl:when>
    <xsl:when test="$key=21">Mętność</xsl:when>
    <xsl:when test="$key=22">Miedź</xsl:when>
    <xsl:when test="$key=23">Nikiel</xsl:when>
    <xsl:when test="$key=24">Odczyn</xsl:when>
    <xsl:when test="$key=25">Ołów</xsl:when>
    <xsl:when test="$key=26">Pestycydy chlooroganicznie (HCH, dieldryna, endryna, epoksydy heptachloru, linuron, op-DDD)</xsl:when>
    <xsl:when test="$key=27">Przewodność</xsl:when>
    <xsl:when test="$key=28">Rtęć</xsl:when>
    <xsl:when test="$key=29">Selen</xsl:when>
    <xsl:when test="$key=30">Siarczany</xsl:when>
    <xsl:when test="$key=31">Smak</xsl:when>
    <xsl:when test="$key=32">Sód</xsl:when>
    <xsl:when test="$key=33">Suma chloranów i chlorynów</xsl:when>
    <xsl:when test="$key=34">Suma THM-ów</xsl:when>
    <xsl:when test="$key=35">Suma trichloroetylenu i tetrachloroetylenu</xsl:when>
    <xsl:when test="$key=36">Suma WWA+B(a)P</xsl:when>
    <xsl:when test="$key=37">Twardość og.</xsl:when>
    <xsl:when test="$key=38">Utlenialność (z KMnO4)</xsl:when>
    <xsl:when test="$key=39">Zapach</xsl:when>
    <xsl:when test="$key=40">Żelazo</xsl:when>
    <!-- Łomża -->
    <xsl:when test="$key=50">Przewodność elektryczna właściwa</xsl:when>
    <xsl:when test="$key=51">pH</xsl:when>
    <xsl:when test="$key=52">Mętność</xsl:when>
    <xsl:when test="$key=53">Barwa - metoda wizualna</xsl:when>
    <xsl:when test="$key=54">Barwa - metoda spektrofotometryczna</xsl:when>
    <xsl:when test="$key=55">Stężenie azotu amonowego (jonu amonowego)</xsl:when>
    <xsl:when test="$key=56">Stężenie azotu azotanowego (azotanów)</xsl:when>
    <xsl:when test="$key=57">Stężenie azotynów </xsl:when>
    <xsl:when test="$key=58">Stężenie żelaza</xsl:when>
    <xsl:when test="$key=59">Stężenie chlorków</xsl:when>
    <xsl:when test="$key=60">Sumaryczna zawartość wapnia i magnezu (twardość ogólna)</xsl:when>
    <xsl:when test="$key=61">Stężenie siarczanów</xsl:when>
    <xsl:when test="$key=62">Indeks nadmanganianowy (utlenialność z KMnO4)</xsl:when>
    <xsl:when test="$key=63">Stężenie fluorków</xsl:when>
    <xsl:when test="$key=64">Stężenie kadmu</xsl:when>
    <xsl:when test="$key=65">Stężenie miedzi</xsl:when>
    <xsl:when test="$key=66">Stężenie manganu</xsl:when>
    <xsl:when test="$key=67">Stężenie sodu</xsl:when>
    <xsl:when test="$key=68">Stężenie ołowiu</xsl:when>
    <!-- Oddział Laboratoryjny PSSE w Suwałkach -->
    <xsl:when test="$key=70">Amonowy jon</xsl:when>
    <xsl:when test="$key=71">Barwa</xsl:when>
    <xsl:when test="$key=72">Odczyn pH</xsl:when>
    <xsl:when test="$key=73">Mętność</xsl:when>
    <xsl:when test="$key=74">Przewodność  elek. wł. w 25ºC</xsl:when>
    <xsl:when test="$key=75">Smak</xsl:when>
    <xsl:when test="$key=76">Zapach</xsl:when>
    <xsl:when test="$key=77">Azotyny</xsl:when>
    <xsl:when test="$key=78">Azotany</xsl:when>
    <xsl:when test="$key=79">Bor</xsl:when>
    <xsl:when test="$key=80">Chlorki</xsl:when>
    <xsl:when test="$key=81">Cyjanki</xsl:when>
    <xsl:when test="$key=82">Fluorki met. kolorymetryczna</xsl:when>
    <xsl:when test="$key=83">Fluorki met. jonoselektywna</xsl:when>
    <xsl:when test="$key=84">Mangan met. kolorymetryczna</xsl:when>
    <xsl:when test="$key=85">Indeks nadmanganianowy (utlenialność z  KMnO4)</xsl:when>
    <xsl:when test="$key=86">Żelazo</xsl:when>
    <xsl:when test="$key=87">Arsen (ETAAS)</xsl:when>
    <xsl:when test="$key=88">Chrom (ETAAS)</xsl:when>
    <xsl:when test="$key=89">Kadm (ETAAS)</xsl:when>
    <xsl:when test="$key=90">Ołów (ETAAS)</xsl:when>
    <xsl:when test="$key=91">Mangan (ETAAS)</xsl:when>
    <xsl:when test="$key=92">Nikiel (ETAAS)</xsl:when>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="dictZakresFizykoInne">
    <xsl:param name="key"/>
    <xsl:choose>
    <xsl:when test="$key=01">1,2-dichloroetan</xsl:when>
    <xsl:when test="$key=02">Amonowy jon</xsl:when>
    <xsl:when test="$key=03">Antymon</xsl:when>
    <xsl:when test="$key=04">Arsen</xsl:when>
    <xsl:when test="$key=05">Azotany</xsl:when>
    <xsl:when test="$key=06">Azotyny</xsl:when>
    <xsl:when test="$key=07">Barwa</xsl:when>
    <xsl:when test="$key=08">Benzen</xsl:when>
    <xsl:when test="$key=09">Bor</xsl:when>
    <xsl:when test="$key=10">Bromiany</xsl:when>
    <xsl:when test="$key=11">Bromodichlorometan</xsl:when>
    <xsl:when test="$key=12">Chlorki</xsl:when>
    <xsl:when test="$key=13">Chloroform</xsl:when>
    <xsl:when test="$key=14">Chrom</xsl:when>
    <xsl:when test="$key=15">Cyjanki</xsl:when>
    <xsl:when test="$key=16">Fluorki</xsl:when>
    <xsl:when test="$key=17">Glin</xsl:when>
    <xsl:when test="$key=18">Kadm</xsl:when>
    <xsl:when test="$key=19">Magnez</xsl:when>
    <xsl:when test="$key=20">Mangan</xsl:when>
    <xsl:when test="$key=21">Mętność</xsl:when>
    <xsl:when test="$key=22">Miedź</xsl:when>
    <xsl:when test="$key=23">Nikiel</xsl:when>
    <xsl:when test="$key=24">Odczyn</xsl:when>
    <xsl:when test="$key=25">Ołów</xsl:when>
    <xsl:when test="$key=26">Pestycydy chlooroganicznie (HCH, dieldryna, endryna, epoksydy heptachloru, linuron, op-DDD)</xsl:when>
    <xsl:when test="$key=27">Przewodność</xsl:when>
    <xsl:when test="$key=28">Rtęć</xsl:when>
    <xsl:when test="$key=29">Selen</xsl:when>
    <xsl:when test="$key=30">Siarczany</xsl:when>
    <xsl:when test="$key=31">Smak</xsl:when>
    <xsl:when test="$key=32">Sód</xsl:when>
    <xsl:when test="$key=33">Suma chloranów i chlorynów</xsl:when>
    <xsl:when test="$key=34">Suma THM-ów</xsl:when>
    <xsl:when test="$key=35">Suma trichloroetylenu i tetrachloroetylenu</xsl:when>
    <xsl:when test="$key=36">Suma WWA+B(a)P</xsl:when>
    <xsl:when test="$key=37">Twardość og.</xsl:when>
    <xsl:when test="$key=38">Utlenialność (z KMnO4)</xsl:when>
    <xsl:when test="$key=39">Zapach</xsl:when>
    <xsl:when test="$key=40">Żelazo</xsl:when>
    <xsl:when test="$key=41">Wapń</xsl:when>
    <xsl:when test="$key=42">BZT5</xsl:when>
    <xsl:when test="$key=43">Cynk</xsl:when>
    <xsl:when test="$key=44">Detergenty anionowe</xsl:when>
    <xsl:when test="$key=45">Tlen rozpuszczony</xsl:when>
    <xsl:when test="$key=46">Zawiesiny</xsl:when>
    </xsl:choose>
    </xsl:template>
    <xsl:template name="content">
    <h1 class="print">Zlecenie badania wody</h1>
    <h3>Dodatkowe dane wnioskodawcy</h3>
    <xsl:if test="//wnio:Wnioskodawca/wnio:Telefon != ''">
    <p>
    <span class="label">Nr telefonu: </span>
    <span>
    <xsl:value-of select="//wnio:Wnioskodawca/wnio:Telefon"/>
    </span>
    </p>
    </xsl:if>
    <xsl:if test="//wnio:Wnioskodawca/wnio:OsoDoKontaktu != ''">
    <p>
    <span class="label">Osoba do kontaktu: </span>
    <span>
    <xsl:call-template name="formattedText">
    <xsl:with-param name="input" select="//wnio:Wnioskodawca/wnio:OsoDoKontaktu"/>
    </xsl:call-template>
    </span>
    </p>
    </xsl:if>
    <h3>Próbki</h3>
    <xsl:for-each select="//wnio:Probki/wnio:Probka">
    <table style="width:100%;">
    <tr>
    <th colspan="2">
    <span>Próbka, nr <xsl:value-of select="position()"/>
    </span>
    </th>
    </tr>
    <tr>
    <td style="width:20%;">
    <span class="label">Rodzaj próbki: </span>
    </td>
    <td>
    <span>
    <xsl:value-of select="substring(wnio:RodzajProbki,0)"/>
    </span>
    </td>
    </tr>
    <tr>
    <td>
    <span class="label">Badania: </span>
    </td>
    <td>
    <ul>
    <xsl:if test="wnio:ZakresBadan/wnio:Mikrobiologia/@wybrane='tak'">
    <li>
    <b>Mikrobiologia</b>
    </li>
    <xsl:if test="wnio:ZakresMikrobiologia != ''">
    <ul>
    <xsl:call-template name="zakresMikro">
    <xsl:with-param name="pText" select="wnio:ZakresMikrobiologia"/>
    <xsl:with-param name="pRP" select="wnio:RodzajProbki"/>
    </xsl:call-template>
    </ul>
    </xsl:if>
    </xsl:if>
    <xsl:if test="wnio:ZakresBadan/wnio:Fizykochemia/@wybrane='tak'">
    <li>
    <b>Fizykochemia</b>
    </li>
    <xsl:if test="wnio:ZakresFizykochemia != ''">
    <ul>
    <xsl:call-template name="zakresFizyko">
    <xsl:with-param name="pText" select="wnio:ZakresFizykochemia"/>
    <xsl:with-param name="pRP" select="wnio:RodzajProbki"/>
    </xsl:call-template>
    </ul>
    </xsl:if>
    </xsl:if>
    </ul>
    </td>
    </tr>
    <xsl:if test="wnio:MiejscePobrania != ''">
    <tr>
    <td>
    <span class="label">Miejsce pobrania: </span>
    </td>
    <td>
    <span>
    <xsl:value-of select="wnio:MiejscePobrania"/>
    </span>
    </td>
    </tr>
    </xsl:if>
    </table>
    </xsl:for-each>
    <xsl:if test="//wnio:InneUwagi != ''">
    <h3>Dodatkowe informacje</h3>
    <p>
    <span>
    <xsl:call-template name="formattedText">
    <xsl:with-param name="input" select="//wnio:InneUwagi"/>
    </xsl:call-template>
    </span>
    </p>
    </xsl:if>
    </xsl:template>
    </xsl:stylesheet>