121

ID121
Data2009-04-14
Symbol2009/04/14/121
InstytucjaMinisterstwo Spraw Wewnętrznych i Administracji
NazwaWniosek o udzielenie koncesji (promesy) na prowadzenie działalności gospodarczej w zakresie: wytwarzania i obrotu materiałami wybuchowymi, bronią, amunicją oraz wyrobami i technologią o przeznaczeniu wojskowym lub policyjnym. O wymianę koncesji nr......
Czy Aktualny1

Ustawy (1)

  • URI://Dziennik_Ustaw/2002/4/44
  • Rozporządzenie Ministra Spraw Wewnętrznych i Administracji z dnia 7 stycznia 2002 r. w sprawie wzoru wniosku o udzielenie koncesji na prowadzenie działalności gospodarczej w zakresie wytwarzania i obrotu materiałami wybuchowymi, bronią, amunicją oraz...

    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/03/06/" xmlns:dok="http://crd.gov.pl/wzor/2009/04/14/121/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/03/06/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/03/06/" xmlns:mswia="http://crd.gov.pl/xml/schematy/dziedzinowe/mswia/meldunek/2009/03/06/" xmlns:mswia1="http://crd.gov.pl/xml/schematy/dziedzinowe/mswia/koncesja/2009/03/06/" xmlns:mswia2="http://crd.gov.pl/xml/schematy/dziedzinowe/mswia/paszport/2009/03/06/" xmlns:ns="http://www.unece.org/etrades/unedocs/repository/codelists/xml/CountryCode.xsd" xmlns:ns1="http://lcweb.loc.gov/standards/iso639-2/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/03/06/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/03/06/" xmlns:typy="http://crd.gov.pl/xml/schematy/typy/2009/03/06/" xmlns:xades="http://uri.etsi.org/01903/v1.3.2#" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0" xsi:schemaLocation="http://www.w3.org/1999/XSL/Transform http://www.w3.org/2005/02/schema-for-xslt20.xsd">
    
    	<xsl:output encoding="UTF-8" indent="yes" media-type="text/html" method="xml" version="1.0"/>
    	
    	<xsl:template match="/dok:Dokument">
    		<html xml:lang="pl">
    			<head>
    				<meta content="text/html; charset=UTF-8" http-equiv="content-type"/>
    				<title>
    					Wniosek o udzielenie koncesji (promesy) na prowadzenie działalności gospodarczej w zakresie: wytwarzania i obrotu materiałami wybuchowymi, bronią, amunicją oraz wyrobami i technologią o przeznaczeniu wojskowym lub policyjnym. O wymianę koncesji nr.../...w trybie Art.41 Ustawy z dnia 22 czerwca 2001 r. O wykonywaniu działalności gosposarczej w zakresie wytwarzania i obrotu materiałami wybuchowymi, bronią, amunicją oraz wyrobami i technologią o przeznaczeniu wojskowym lub policyjnym.
    					<xsl:text> (</xsl:text>
    					MSWIA-UK
    					<xsl:text>)</xsl:text>
    				</title>
    				<style type="text/css">
    					<xsl:text>.fform { font-family: sans-serif; font-size: 10pt; color: black; } </xsl:text>
    					<xsl:text>.fform * { font-family: inherit; font-size: inherit; color: inherit; } </xsl:text>
    					<xsl:text>.fform p { margin: 0 0 0.2em 0; } </xsl:text>
    					<xsl:text>.fform p.title { text-align: center; font-size: 1.2em; font-weight: bold; margin-top: 1em; margin-bottom: 1em; } </xsl:text>
    					<xsl:text>.fform p.title .symbol { color: Gray; } </xsl:text>
    					<xsl:text>.fform div.trescDok { margin-top: 1em; margin-bottom: 1em; border: solid 1px Gray; background-color: WhiteSmoke; } </xsl:text>
    					<xsl:text>.fform div.trescDok table td { padding: 3px 0px 4px 15px; } </xsl:text>
    					<xsl:text>.fform div.trescDok table table td.sublevel, .fform div.trescDok table table table { background-color: WhiteSmoke; } </xsl:text>
    					<xsl:text>.fform div.daneDok { margin-top: 1em; margin-bottom: 1em; border: solid 1px #7099c5; background-color: #f0f0ff; } </xsl:text>
    					<xsl:text>.fform div.daneDok table td { padding: 3px 0px 4px 15px; } </xsl:text>
    					<xsl:text>.fform div.daneDok table table td.sublevel, .fform div.daneDok table table table { background-color: #f0f0ff; } </xsl:text>
    					<xsl:text>.fform div.sigInfo { margin-top: 1em; margin-bottom: 1em; border: solid 1px #7099c5; background-color: #f0f0ff; } </xsl:text>
    					<xsl:text>.fform div.sigInfo table td { padding: 3px 0px 4px 15px; } </xsl:text>
    					<xsl:text>.fform td.label { width: 20%; color: Gray; } </xsl:text>
    					<xsl:text>.fform div.label { color: Gray; } </xsl:text>
    					<xsl:text>.fform td.value { font-weight: bold; width: 80%; } </xsl:text>
    					<xsl:text>.fform td.value2 { width: 80%; } </xsl:text>
    					<xsl:text>.fform table { width: 100%; } </xsl:text>
    					<xsl:text>.fform table td.sublevel, .fform table table { background-color: White; } </xsl:text>
    					<xsl:text>.fform table table table td.sublevel, .fform table table table table { background-color: White; } </xsl:text>
    				</style>
    			</head>
    			<body class="fform">
    				<div class="trescDok">
    					<p class="title">Wniosek o udzielenie koncesji (promesy) na prowadzenie działalności gospodarczej w zakresie: wytwarzania i obrotu materiałami wybuchowymi, bronią, amunicją oraz wyrobami i technologią o przeznaczeniu wojskowym lub policyjnym. O wymianę koncesji nr.../...w trybie Art.41 Ustawy z dnia 22 czerwca 2001 r. O wykonywaniu działalności gospodarczej w zakresie wytwarzania i obrotu materiałami wybuchowymi, bronią, amunicją oraz wyrobami i technologią o przeznaczeniu wojskowym lub policyjnym. <span class="symbol">(MSWIA-UK)</span></p>
    					<table>
    						<xsl:apply-templates select="dok:TrescDokumentu/*"/>
    					</table>
    				</div>
    				
    				<div class="daneDok">
    					<p class="title">Metryka dokumentu</p>
    					<table>
    						<xsl:apply-templates select="dok:DaneDokumentu"/>
    					</table>
    				</div>
    				<div class="sigInfo">
    					<p class="title">Podpis elektroniczny</p>
    					<xsl:choose>
    						<xsl:when test="ds:Signature">
    							<p><xsl:text>Dokument został podpisany</xsl:text>
    							<xsl:choose>
    							<xsl:when test="ds:Signature/ds:Object/xades:QualifyingProperties/xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime">
    								<xsl:text> w formacie XAdES v1.3.2 w dniu </xsl:text>
    								<b><xsl:value-of select="substring-before(ds:Signature/ds:Object/xades:QualifyingProperties/xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime, 'T')"/></b>
    								<xsl:text> o godzinie </xsl:text> 
    								<b><xsl:value-of select="substring-before(substring-after(ds:Signature/ds:Object/xades:QualifyingProperties/xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime, 'T'), 'Z')"/></b>
    								<xsl:text> czasu uniwersalnego UTC</xsl:text>
    							</xsl:when>
    							<xsl:otherwise>
    								<xsl:text> w formacie XML DSig</xsl:text>
    							</xsl:otherwise>
    							</xsl:choose>
    							<xsl:text> - aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu.</xsl:text></p>
    							<xsl:if test="ds:Signature/ds:KeyInfo/ds:X509Data/ds:X509SubjectName">
    								<p>Dokument podpisany przy pomocy klucza weryfikowanego certyfikatem X.509 wystawionym dla <b><xsl:value-of select="ds:Signature/ds:KeyInfo/ds:X509Data/ds:X509SubjectName"/></b>.</p> 
    							</xsl:if>
    	  						<p>Lista podpisanych elementów (referencji)</p>
    							<table>
    								<tr><th>Id obiektu</th><th>Adres URI obiektu</th><th>Skrót podpisanego obiektu</th></tr>
    								<xsl:for-each select="ds:Signature/ds:SignedInfo/ds:Reference">
    									<tr><td>
    										<xsl:choose>
    											<xsl:when test="@Id!=''"><xsl:value-of select="@Id"/></xsl:when>
    											<xsl:otherwise>brak</xsl:otherwise>
    										</xsl:choose>
    									</td><td>
    										<xsl:choose>
    											<xsl:when test="@URI!=''"><xsl:value-of select="@URI"/></xsl:when>
    											<xsl:otherwise>referencja do tego samego dokumentu</xsl:otherwise>
    										</xsl:choose>
    									</td><td>
    										<xsl:choose>
    											<xsl:when test="ds:DigestValue"><xsl:value-of select="ds:DigestValue"/></xsl:when>
    											<xsl:otherwise>Brak skrótu!!!</xsl:otherwise>
    										</xsl:choose>
    									</td></tr>
    								</xsl:for-each>
    							</table>
    						</xsl:when>
    						<xsl:otherwise>
    							<p>Dokument nie zawiera podpisu elektronicznego.</p>
    						</xsl:otherwise>
    					</xsl:choose>
    				</div>
    			</body>
    		</html>
    	</xsl:template>
    
    	<xsl:template match="dok:DaneDokumentu">
    		<xsl:if test="str:Naglowek/str:NazwaDokumentu">
    			<tr><td class="label">Nazwa dokumentu</td><td class="value"><xsl:value-of select="str:Naglowek/str:NazwaDokumentu"/></td></tr>
    		</xsl:if>
    		<xsl:apply-templates select="meta:Identyfikator"/>
    		<xsl:for-each select="str:Adresaci">
    			<tr><td class="sublevel" colspan="2">Adresat<br/>
    				<table class="level2">
    					<xsl:apply-templates select="meta:Podmiot"/>
    				</table>
    			</td></tr>
    		</xsl:for-each>
    		<xsl:for-each select="str:Nadawcy">
    			<tr><td class="sublevel" colspan="2">Nadawca<br/>
    				<table>
    					<xsl:apply-templates select="meta:Podmiot"/>
    				</table>
    			</td></tr>
    		</xsl:for-each>
    	</xsl:template>
    
    	<!-- Adres -->
    	<xsl:template match="adr:Adres">
    		<xsl:apply-templates select="adr:KodPocztowy"/>
    		<xsl:apply-templates select="adr:Poczta"/>
    		<xsl:apply-templates select="adr:Miejscowosc"/>
    		<xsl:apply-templates select="adr:Ulica"/>
    		<xsl:apply-templates select="adr:Budynek"/>
    		<xsl:apply-templates select="adr:Lokal"/>
    		<xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    		<xsl:apply-templates select="adr:Kraj"/>
    		<xsl:apply-templates select="adr:TERC"/>
    		<xsl:apply-templates select="adr:SIMC"/>
    		<xsl:apply-templates select="adr:ULIC"/>
    		<xsl:apply-templates select="adr:Wojewodztwo"/>
    		<xsl:apply-templates select="adr:Powiat"/>
    		<xsl:apply-templates select="adr:Gmina"/>
    		<xsl:apply-templates select="adr:Uwagi"/>
    	</xsl:template>
    	
    	<xsl:template match="adr:KodPocztowy">
    		<tr><td class="label">Kod pocztowy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Poczta">
    		<tr><td class="label">Poczta</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Miejscowosc">
    		<tr><td class="label">Miejscowość</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Ulica">
    		<tr><td class="label">Ulica</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Budynek">
    		<tr><td class="label">Nr budynku</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Lokal">
    		<tr><td class="label">Nr lokalu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:SkrytkaPocztowa">
    		<tr><td class="label">Nr skrytki pocztowej</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Kraj">
    		<tr><td class="label">Kod kraju</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:TERC">
    		<tr><td class="label">Kod TERC</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:SIMC">
    		<tr><td class="label">Kod SIMC</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:ULIC">
    		<tr><td class="label">Kod ULIC</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Wojewodztwo">
    		<tr><td class="label">Województwo</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Powiat">
    		<tr><td class="label">Powiat</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Gmina">
    		<tr><td class="label">Gmina</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Uwagi">
    		<tr><td class="label">Uwagi dotyczące adresu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<xsl:template match="adr:Kontakt">
    		<xsl:apply-templates select="adr:Telefon|adr:Faks|adr:Email|adr:URIKontakt|adr:InnyKontakt"/>
    	</xsl:template>
    	
    	<xsl:template match="adr:Telefon">
    		<tr><td class="label">Telefon</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Faks">
    		<tr><td class="label">Faks</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:Email">
    		<tr><td class="label">E-mail</td><td class="value"><a href="mailto:{text()}"><xsl:value-of select="text()"/></a></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:URIKontakt">
    		<tr><td class="label">Kontakt URI</td><td class="value"><a href="{text()}"><xsl:value-of select="text()"/></a></td></tr>
    	</xsl:template>
    	<xsl:template match="adr:InnyKontakt">
    		<tr><td class="label">Inny kontakt</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	
    	<!-- Osoba -->
    	<xsl:template match="oso:Osoba">
    		<xsl:apply-templates select="oso:IdOsoby"/>
    		<xsl:apply-templates select="oso:Imie"/>
    		<xsl:apply-templates select="oso:ImieDrugie"/>
    		<xsl:if test="oso:Nazwisko">
    			<tr><td class="label">Nazwisko</td><td class="value">
    				<xsl:if test="oso:Nazwisko[@rodzajCzlonu='pierwszy']">
    					<xsl:value-of select="oso:Nazwisko[@rodzajCzlonu='pierwszy']"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    				<xsl:if test="oso:Nazwisko[@rodzajCzlonu='drugi']">
    					<xsl:value-of select="oso:Nazwisko[@rodzajCzlonu='drugi']"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    				<xsl:if test="oso:Nazwisko[@rodzajCzlonu='trzeci']">
    					<xsl:value-of select="oso:Nazwisko[@rodzajCzlonu='trzeci']"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    				<xsl:if test="oso:Nazwisko[not(@rodzajCzlonu)]">
    					<xsl:value-of select="oso:Nazwisko[not(@rodzajCzlonu)]"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    			</td></tr>
    		</xsl:if>
    		<xsl:apply-templates select="adr:Adres"/>
    		<xsl:apply-templates select="adr:Kontakt"/>
    	</xsl:template>
    		
    	<xsl:template match="oso:IdOsoby">
    		<xsl:apply-templates select="oso:PESEL"/>
    		<xsl:apply-templates select="oso:NIP"/>
    		<xsl:apply-templates select="oso:InnyIdentyfikator"/>
    	</xsl:template>
    	<xsl:template match="oso:PESEL">
    		<tr><td class="label">Numer PESEL</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:NIP">
    		<tr><td class="label">Numer NIP</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:InnyIdentyfikator">
    		<tr><td class="label">Identyfikator <xsl:value-of select="oso:TypIdentyfikatora"/></td><td class="value"><xsl:value-of select="oso:WartoscIdentyfikatora"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Imie">
    		<tr><td class="label">Imię</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:ImieDrugie">
    		<tr><td class="label">Imię drugie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:ImieOjca">
    		<tr><td class="label">Imię ojca</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:ImieMatki">
    		<tr><td class="label">Imię matki</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Nazwisko[not(@rodzajCzlonu)]">
    		<tr><td class="label">Nazwisko</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Nazwisko[@rodzajCzlonu='pierwszy']">
    		<tr><td class="label">Nazwisko - człon pierwszy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Nazwisko[@rodzajCzlonu='drugi']">
    		<tr><td class="label">Nazwisko - człon drugi</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Nazwisko[@rodzajCzlonu='trzeci']">
    		<tr><td class="label">Nazwisko - człon trzeci</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:NazwiskoRodowe">
    		<tr><td class="label">Nazwisko rodowe</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:NazwiskoRodoweOjca">
    		<tr><td class="label">Nazwisko rodowe ojca</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:NazwiskoRodoweMatki">
    		<tr><td class="label">Nazwisko rodowe matki</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:NazwiskoPoprzednie">
    		<tr><td class="label">Nazwisko poprzednie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<xsl:template match="oso:MiejsceUrodzenia">
    		<tr><td class="label">Miejsce urodzenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:DataUrodzenia">
    		<tr><td class="label">Data urodzenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Plec">
    		<tr><td class="label">Płeć</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:RodzajDowoduTozsamosci">
    		<tr><td class="label">Rodzaj dowodu tożsamości</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:NrDowoduTozsamosci">
    		<tr><td class="label">Nr dowodu tożsamości</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:DataWydaniaDowoduTozsamosci">
    		<tr><td class="label">Data wydania dowodu tożsamości</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Obywatelstwo">
    		<tr><td class="label">Obywatelstwo</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Narodowosc">
    		<tr><td class="label">Narodowość</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:StopienPokrewienstwa">
    		<tr><td class="label">Stopień pokrewieństwa</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:StanCywilny">
    		<tr><td class="label">Stan cywilny</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:WyksztalceniePoziom">
    		<tr><td class="label">Poziom wykształcenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:WyksztalcenieOpis">
    		<tr><td class="label">Opis wykształcenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="oso:Zawod">
    		<tr><td class="label">Zawód</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<!-- Instytucja -->
    	<xsl:template match="inst:Instytucja">
    		<xsl:apply-templates select="inst:IdInstytucji/inst:KRS"/>
    		<xsl:apply-templates select="inst:IdInstytucji/inst:NIP"/>
    		<xsl:apply-templates select="inst:IdInstytucji/inst:REGON"/>
    		<xsl:apply-templates select="inst:IdInstytucji/inst:InnyIdentyfikator"/>
    		<xsl:apply-templates select="inst:NazwaInstytucji"/>
    		<xsl:if test="adr:Adres">
    			<tr><td class="sublevel" colspan="2">Adres<br/>
    				<table>
    					<xsl:apply-templates select="adr:Adres"/>
    				</table>
    			</td></tr>
    		</xsl:if>
    		<xsl:if test="adr:Kontakt">
    			<tr><td class="sublevel" colspan="2">Kontakt<br/>
    				<table>
    					<xsl:apply-templates select="adr:Kontakt"/>
    				</table>
    			</td></tr>
    		</xsl:if>
    		<xsl:apply-templates select="inst:Jednostka"/>
    		<xsl:apply-templates select="inst:Pracownik"/>
    	</xsl:template>
    
    	<xsl:template match="inst:Jednostka">
    		<tr><td class="sublevel" colspan="2">Jednostka organizacyjna<br/>
    		<table>
    		<xsl:apply-templates select="inst:NazwaInstytucji"/>
    		<xsl:if test="adr:Adres">
    			<tr><td class="sublevel" colspan="2">Adres<br/>
    				<table>
    					<xsl:apply-templates select="adr:Adres"/>
    				</table>
    			</td></tr>
    		</xsl:if>
    		<xsl:if test="adr:Kontakt">
    			<tr><td class="sublevel" colspan="2">Kontakt<br/>
    				<table>
    					<xsl:apply-templates select="adr:Kontakt"/>
    				</table>
    			</td></tr>
    		</xsl:if>
    		<xsl:apply-templates select="inst:Jednostka"/>
    		<xsl:apply-templates select="inst:Poziom"/>
    		<xsl:apply-templates select="inst:Pracownik"/>
    		</table>
    		</td></tr>
    	</xsl:template>
    
    	<xsl:template match="inst:KRS">
    		<tr><td class="label">Numer KRS</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="inst:NIP">
    		<tr><td class="label">Numer NIP</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="inst:REGON">
    		<tr><td class="label">Numer REGON</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="inst:InnyIdentyfikator">
    		<tr><td class="label">Identyfikator <xsl:value-of select="inst:TypIdentyfikatora"/></td><td class="value"><xsl:value-of select="inst:WartoscIdentyfikatora"/></td></tr>
    	</xsl:template>
    	<xsl:template match="inst:NazwaInstytucji">
    		<tr><td class="label">Nazwa</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="inst:Poziom">
    		<tr><td class="label">Poziom w strukturze organizacyjnej</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<xsl:template match="inst:Pracownik">
    		<tr><td class="sublevel" colspan="2">Pracownik<br/>
    		<table>
    		<xsl:apply-templates select="oso:IdOsoby"/>
    		<xsl:apply-templates select="oso:Imie"/>
    		<xsl:apply-templates select="oso:ImieDrugie"/>
    		<xsl:if test="oso:Nazwisko">
    			<tr><td class="label">Nazwisko</td><td class="value">
    				<xsl:if test="oso:Nazwisko[@rodzajCzlonu='pierwszy']">
    					<xsl:value-of select="oso:Nazwisko[@rodzajCzlonu='pierwszy']"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    				<xsl:if test="oso:Nazwisko[@rodzajCzlonu='drugi']">
    					<xsl:value-of select="oso:Nazwisko[@rodzajCzlonu='pierwszy']"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    				<xsl:if test="oso:Nazwisko[@rodzajCzlonu='trzeci']">
    					<xsl:value-of select="oso:Nazwisko[@rodzajCzlonu='pierwszy']"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    				<xsl:if test="oso:Nazwisko[not(@rodzajCzlonu)]">
    					<xsl:value-of select="oso:Nazwisko[not(@rodzajCzlonu)]"/>
    					<xsl:text> </xsl:text>
    				</xsl:if>
    			</td></tr>
    		</xsl:if>
    		<xsl:apply-templates select="adr:Kontakt"/>
    		<xsl:apply-templates select="inst:Funkcja"/>
    		</table>
    		</td></tr>
    	</xsl:template>
    
    	<xsl:template match="inst:Funkcja">
    		<tr><td class="label">Funkcja</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<!-- Meta -->
    	<xsl:template match="meta:Data">
    		<tr><td class="label">
    			<xsl:choose>
    				<xsl:when test="@typDaty='dostepnyPo'">
    					Data udostępnienia
    				</xsl:when>
    				<xsl:when test="@typDaty='opublikowany'">
    					Data opublikowania
    				</xsl:when>
    				<xsl:when test="@typDaty='stworzony'">
    					Data stworzenia
    				</xsl:when>
    				<xsl:when test="@typDaty='uzyskany'">
    					Data uzyskania
    				</xsl:when>
    				<xsl:when test="@typDaty='otrzymany'">
    					Data otrzymania
    				</xsl:when>
    				<xsl:when test="@typDaty='wyslany'">
    					Data wysłania
    				</xsl:when>
    				<xsl:when test="@typDaty='zaakceptowany'">
    					Data zaakceptowania
    				</xsl:when>
    				<xsl:when test="@typDaty='zatwierdzony'">
    					Data zatwierdzenia
    				</xsl:when>
    				<xsl:when test="@typDaty='zmodyfikowany'">
    					Data zmodyfikowania
    				</xsl:when>
    				<xsl:when test="@typDaty='datySkrajne'">
    					Daty skrajne
    				</xsl:when>
    				<xsl:when test="@typDaty='zdarzenia'">
    					Data zdarzenie
    				</xsl:when>
    				<xsl:when test="@typDaty='waznosci'">
    					Data ważności
    				</xsl:when>
    				<xsl:when test="@typDaty='odrzucony'">
    					Data odrzucenia
    				</xsl:when>
    				<xsl:when test="@typDaty='inna'">
    					Inna data
    				</xsl:when>
    			</xsl:choose>
    		</td><td class="value">
    			<xsl:if test="meta:Czas">
    				<xsl:value-of select="meta:Czas"/>
    				<xsl:text> </xsl:text>
    			</xsl:if>
    			<xsl:if test="meta:Od">
    				<xsl:text>od </xsl:text>
    				<xsl:value-of select="meta:Od"/>
    				<xsl:text> </xsl:text>
    			</xsl:if>
    			<xsl:if test="meta:Do">
    				<xsl:text>do </xsl:text>
    				<xsl:value-of select="meta:Do"/>
    				<xsl:text> </xsl:text>
    			</xsl:if>
    			<xsl:if test="@typDatyUzupelnienie">
    				<br/><xsl:value-of select="@typDatyUzupelnienie"/>
    			</xsl:if>
    		</td></tr>
    	</xsl:template>
    	<xsl:template match="meta:Od">
    		<tr><td class="label">Od</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="meta:Do">
    		<tr><td class="label">Do</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	<xsl:template match="meta:Opis">
    		<tr><td class="label">Opis</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<xsl:template match="meta:Identyfikator">
    		<tr><td class="label">Identyfikator <xsl:value-of select="@typIdentyfikatora"/></td><td class="value">
    			<xsl:value-of select="meta:Wartosc"/>
    			<xsl:if test="meta:Podmiot/inst:Instytucja/inst:NazwaInstytucji">
    				<br/>Rejestr prowadzony przez <xsl:value-of select="meta:Podmiot/inst:Instytucja/inst:NazwaInstytucji"/>
    			</xsl:if>
    		</td></tr>
    	</xsl:template>
    
    	<xsl:template match="meta:Podmiot">
    		<xsl:apply-templates select="inst:Instytucja"/>
    		<xsl:apply-templates select="oso:Osoba"/>
    	</xsl:template>
    	
    	<xsl:template match="meta:ZnakSprawy">
    		<tr><td class="label">Znak sprawy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<!-- Struktura -->
    	<xsl:template match="str:Zalaczniki">
    		<xsl:apply-templates select="str:Zalacznik"/>
    	</xsl:template>
    	<xsl:template match="str:Zalacznik">
    		<tr><td class="label">Załącznik</td><td class="value2">
    		<xsl:call-template name="str_ZalacznikTypValue"/>
    		</td></tr>		
    	</xsl:template>
    	<xsl:template name="str_ZalacznikTypValue">
    		<xsl:choose>
    			<xsl:when test="@kodowanie='URI'">
    				<xsl:text>Załącznik zewnętrzny w formacie </xsl:text>
    				<b><xsl:value-of select="@format"/></b>
    				<xsl:text> dostępny pod adresem URI: </xsl:text>
    				<b><xsl:value-of select="str:DaneZalacznika"/></b>
    			</xsl:when>
    			<xsl:when test="@kodowanie='base64'">
    				<xsl:text>Załącznik w formacie </xsl:text>
    				<b><xsl:value-of select="@format"/></b>
    				<xsl:text> zapisany wewnątrz treści dokumentu.</xsl:text>
    			</xsl:when>
    		</xsl:choose>
    		<xsl:if test="@nazwaPliku">
    			<br/>Nazwa pliku: <b><xsl:value-of select="@nazwaPliku"/></b>
    		</xsl:if>
    		<xsl:if test="str:OpisZalacznika">
    			<br/>Opis załącznika:<br/>
    			<xsl:value-of select="str:OpisZalacznika"/>
    		</xsl:if>
    	</xsl:template>
    	<xsl:template match="str:OpisZalacznika">
    		<tr><td class="label">Opis załącznika</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    	
    	<xsl:template match="str:NumerDokumentu">
    		<tr><td class="label">Numer dokumentu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    	</xsl:template>
    
    	<!-- DSig -->
    	<xsl:template match="ds:Signature">
    		<tr><td class="label">Podpis elektroniczny</td><td class="value2">
    		<xsl:text>Złożony </xsl:text>
    		<xsl:choose>
    		<xsl:when test="ds:Object/xades:QualifyingProperties/xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime">
    			<xsl:text> w formacie XAdES v1.3.2 w dniu </xsl:text>
    			<b><xsl:value-of select="substring-before(ds:Object/xades:QualifyingProperties/xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime, 'T')"/></b>
    			<xsl:text> o godzinie </xsl:text> 
    			<b><xsl:value-of select="substring-before(substring-after(ds:Object/xades:QualifyingProperties/xades:SignedProperties/xades:SignedSignatureProperties/xades:SigningTime, 'T'), 'Z')"/></b>
    			<xsl:text> czasu uniwersalnego UTC</xsl:text>
    		</xsl:when>
    		<xsl:otherwise>
    			<xsl:text> w formacie XML DSig</xsl:text>
    		</xsl:otherwise>
    		</xsl:choose>
    		<xsl:text> - aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu. </xsl:text><br/>
    		<xsl:if test="ds:KeyInfo/ds:X509Data/ds:X509SubjectName">
    			<xsl:text>Złożony przy pomocy klucza weryfikowanego certyfikatem X.509 wystawionym dla </xsl:text><b><xsl:value-of select="ds:KeyInfo/ds:X509Data/ds:X509SubjectName"/></b><xsl:text>.</xsl:text><br/> 
    		</xsl:if>
    		<xsl:text>Lista podpisanych elementów (referencji): </xsl:text> 
    		<xsl:for-each select="ds:SignedInfo/ds:Reference">
    			<xsl:if test="position()!=1"><xsl:text>, </xsl:text></xsl:if>
    			<xsl:choose>
    				<xsl:when test="@URI!=''"><xsl:value-of select="@URI"/></xsl:when>
    				<xsl:otherwise>referencja do tego samego dokumentu<br/></xsl:otherwise>
    			</xsl:choose>
    		</xsl:for-each>
    		<xsl:text>.</xsl:text> 
    		</td></tr>		
    	</xsl:template>
    	
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek">
    <tr><td class="sublevel" colspan="2">Wniosek<br/>
    <table>
    <xsl:apply-templates select="dok:DataWplywu"/>
    <xsl:apply-templates select="dok:NrAktSprawy"/>
    <xsl:apply-templates select="dok:WniosekTyp"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:DataWplywu">
    <tr><td class="label">Data wpływu wniosku</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:NrAktSprawy">
    <tr><td class="label">Nr akt sprawy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:WniosekTyp">
    <tr><td class="sublevel" colspan="2">Typ wniosku<br/>
    <table>
    <xsl:apply-templates select="dok:UdzielenieKoncesji"/>
    <xsl:apply-templates select="dok:UdzieleniePromesy"/>
    <xsl:apply-templates select="dok:WymianaKoncesji"/>
    <xsl:apply-templates select="dok:NumerKoncesji"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:WniosekTyp/dok:UdzielenieKoncesji">
    <tr><td class="label">Typ wniosku</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:WniosekTyp/dok:UdzieleniePromesy">
    <tr><td class="label">Typ wniosku</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:WniosekTyp/dok:WymianaKoncesji">
    <tr><td class="label">Typ wniosku</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Wniosek/dok:WniosekTyp/dok:NumerKoncesji">
    <tr><td class="label">Numer wymienianej koncesji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Przedsiebiorca">
    <tr><td class="sublevel" colspan="2">Przedsiębiorca<br/>
    <table>
    <xsl:apply-templates select="mswia1:FormaPrawna"/>
    <xsl:apply-templates select="dok:InnyPrzedsiebiorca"/>
    <xsl:apply-templates select="dok:NazwaPrzedsiebiorcy"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="dok:RejestrPrzedsiebiorcowNumer"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Przedsiebiorca/dok:InnyPrzedsiebiorca">
    <tr><td class="label">Jaki</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Przedsiebiorca/dok:NazwaPrzedsiebiorcy">
    <tr><td class="label">Nazwa przedsiębiorcy (firma)</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Przedsiebiorca/dok:RejestrPrzedsiebiorcowNumer">
    <tr><td class="label">Numer w rejestrze przedsiębiorców</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Siedziba">
    <tr><td class="sublevel" colspan="2">Siedziba<br/>
    <table>
    <xsl:apply-templates select="mswia1:DzialalnoscAdres"/>
    <xsl:apply-templates select="dok:NumerTelefonu"/>
    <xsl:apply-templates select="dok:NumerFaksu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Siedziba/dok:NumerTelefonu">
    <tr><td class="label">Nr telefonu przedsiębiorcy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Siedziba/dok:NumerFaksu">
    <tr><td class="label">Nr faksu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci">
    <tr><td class="sublevel" colspan="2">Zakres wnioskowanej działalności gospodarczej<br/>
    <table>
    <xsl:apply-templates select="dok:MaterialyWybuchoweWytwarzanie"/>
    <xsl:apply-templates select="dok:BronWytwarzanie"/>
    <xsl:apply-templates select="dok:AmunicjaWytwarzanie"/>
    <xsl:apply-templates select="dok:RusznikarstwoUslugi"/>
    <xsl:apply-templates select="dok:WyrobyWojskowePolicyjneWytwarzanie"/>
    <xsl:apply-templates select="dok:MaterialyWybuchoweObrot"/>
    <xsl:apply-templates select="dok:BronObrot"/>
    <xsl:apply-templates select="dok:AmunicjaObrot"/>
    <xsl:apply-templates select="dok:WyrobyWojskowePolicyjneObrot"/>
    <xsl:apply-templates select="dok:TechnologieWojskowePolicyjneObrot"/>
    <xsl:apply-templates select="dok:RodzajeMaterialowWybuchowych"/>
    <xsl:apply-templates select="dok:RodzajeBroni"/>
    <xsl:apply-templates select="dok:RodzajAmunicji"/>
    <xsl:apply-templates select="dok:ZakresUslugRusznikarskich"/>
    <xsl:apply-templates select="dok:RodzajeWyrobowWojskowych"/>
    <xsl:apply-templates select="dok:RodzajTechnologiiWojskowych"/>
    </table><div class="label"><br/><sup>1</sup> Rozporządzenie Rady Ministrów z dnia 3 grudnia 2001 r. w sprawie rodzajów broni i amunicji oraz wykazu wyrobów technologii o przeznaczeniu wojskowym lub policyjnym, na których wytwarzanie lub obrót jest wymagana koncesja (Dz.U. Nr 145, poz. 1625)</div>
    </td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:MaterialyWybuchoweWytwarzanie">
    <tr><td class="label">Wytwarzanie materiałów wybuchowych</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:BronWytwarzanie">
    <tr><td class="label">Wytwarzanie broni</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:AmunicjaWytwarzanie">
    <tr><td class="label">Wytwarzanie amunicji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:RusznikarstwoUslugi">
    <tr><td class="label">Usługi rusznikarskie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:WyrobyWojskowePolicyjneWytwarzanie">
    <tr><td class="label">Wytwarzanie wyrobów o przeznaczeniu wojskowym lub policyjnym</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:MaterialyWybuchoweObrot">
    <tr><td class="label">Obrót materiałami wybuchowymi</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:BronObrot">
    <tr><td class="sublevel" colspan="2">Obrót bronią<br/>
    <table>
    <xsl:apply-templates select="mswia1:CzyWystepuje"/>
    <xsl:apply-templates select="mswia1:Detal"/>
    <xsl:apply-templates select="mswia1:Hurt"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:BronObrot/mswia1:CzyWystepuje">
    <tr><td class="label">Czy występuje</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:BronObrot/mswia1:Detal">
    <tr><td class="label">detal</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:BronObrot/mswia1:Hurt">
    <tr><td class="label">hurt</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:AmunicjaObrot">
    <tr><td class="sublevel" colspan="2">Obrót amunicją<br/>
    <table>
    <xsl:apply-templates select="mswia1:CzyWystepuje"/>
    <xsl:apply-templates select="mswia1:Detal"/>
    <xsl:apply-templates select="mswia1:Hurt"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:AmunicjaObrot/mswia1:CzyWystepuje">
    <tr><td class="label">Czy występuje</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:AmunicjaObrot/mswia1:Detal">
    <tr><td class="label">detal</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:AmunicjaObrot/mswia1:Hurt">
    <tr><td class="label">hurt</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:WyrobyWojskowePolicyjneObrot">
    <tr><td class="sublevel" colspan="2">Obrót wyrobami o przeznaczeniu wojskowym lub policyjnym<br/>
    <table>
    <xsl:apply-templates select="mswia1:CzyWystepuje"/>
    <xsl:apply-templates select="mswia1:Detal"/>
    <xsl:apply-templates select="mswia1:Hurt"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:WyrobyWojskowePolicyjneObrot/mswia1:CzyWystepuje">
    <tr><td class="label">Czy występuje</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:WyrobyWojskowePolicyjneObrot/mswia1:Detal">
    <tr><td class="label">detal</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:WyrobyWojskowePolicyjneObrot/mswia1:Hurt">
    <tr><td class="label">hurt</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:TechnologieWojskowePolicyjneObrot">
    <tr><td class="sublevel" colspan="2">Obrót technologią o przeznaczeniu wojskowym lub policyjnym<br/>
    <table>
    <xsl:apply-templates select="mswia1:CzyWystepuje"/>
    <xsl:apply-templates select="mswia1:Detal"/>
    <xsl:apply-templates select="mswia1:Hurt"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:TechnologieWojskowePolicyjneObrot/mswia1:CzyWystepuje">
    <tr><td class="label">Czy występuje</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:TechnologieWojskowePolicyjneObrot/mswia1:Detal">
    <tr><td class="label">detal</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:TechnologieWojskowePolicyjneObrot/mswia1:Hurt">
    <tr><td class="label">hurt</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:RodzajeMaterialowWybuchowych">
    <tr><td class="label">Rodzaje materiałów wybuchowych</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:RodzajeBroni">
    <tr><td class="label">Rodzaje broni <br/>(zgodnie z rozporządzeniem)<sup>1</sup></td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:RodzajAmunicji">
    <tr><td class="label">Rodzaj amunicji <br/>(zgodnie z rozporządzeniem)<sup>1</sup></td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:ZakresUslugRusznikarskich">
    <tr><td class="label">Zakres usług rusznikarskich i rodzaj broni, których dotyczą <br/>(zgodnie z rozporządzeniem)<sup>1</sup></td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:RodzajeWyrobowWojskowych">
    <tr><td class="label">Rodzaje wyrobów o przeznaczeniu wojskowym lub policyjnym <br/>(zgodnie z rozporządzeniem)<sup>1</sup></td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZakresDzialalnosci/dok:RodzajTechnologiiWojskowych">
    <tr><td class="label">Rodzaj technologii o przeznaczeniu wojskowym lub policyjnym <br/>(zgodnie z rozporządzeniem)<sup>1</sup></td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:MiejscaWykonywaniaDzialanosci">
    <tr><td class="sublevel" colspan="2">Adresy miejsc wykonywania działalności gospodarczej (biuro, zakład produkcyjny, magazyn, sklep)<br/>
    <table>
    <xsl:apply-templates select="mswia1:IloscMiejsc"/>
    <xsl:apply-templates select="mswia1:DzialalnoscAdres"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:KoncesjaWaznosc">
    <tr><td class="sublevel" colspan="2">Ważność koncesji<br/>
    <table>
    <xsl:apply-templates select="dok:CzasWaznosciKoncesji"/>
    <xsl:apply-templates select="dok:PlanowanaDataDzialanosci"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:KoncesjaWaznosc/dok:CzasWaznosciKoncesji">
    <tr><td class="label">Określenie czasu ważności koncesji (od 2 do 50 lat)</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:KoncesjaWaznosc/dok:PlanowanaDataDzialanosci">
    <tr><td class="label">Planowana data rozpoczęcia działalności gospodarczej w zakresie objętym koncesją</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:UprzedniaKoncesja">
    <tr><td class="sublevel" colspan="2">Uprzednia koncesja<br/>
    <table>
    <xsl:apply-templates select="dok:CzyUbiegalSieoKoncesje"/>
    <xsl:apply-templates select="dok:Kiedy"/>
    <xsl:apply-templates select="dok:NumerSprawy"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:UprzedniaKoncesja/dok:CzyUbiegalSieoKoncesje">
    <tr><td class="label">Czy wnioskodawca ubiegał się uprzednio o koncesję</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:UprzedniaKoncesja/dok:Kiedy">
    <tr><td class="label">Kiedy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:UprzedniaKoncesja/dok:NumerSprawy">
    <tr><td class="label">Nr sprawy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby">
    <tr><td class="sublevel" colspan="2">Osoba<br/>
    <table>
    <xsl:apply-templates select="dok:DaneOsobowe"/>
    <xsl:apply-templates select="dok:AdresZameldowaniaStaly"/>
    <xsl:apply-templates select="dok:AdresZameldowaniaCzasowy"/>
    <xsl:apply-templates select="dok:WyksztalcenieZawod"/>
    <xsl:apply-templates select="dok:Oswiadczenie1"/>
    <xsl:apply-templates select="dok:PotwierdzajacyDane"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:DaneOsobowe">
    <tr><td class="sublevel" colspan="2">Dane osobowe<br/>
    <table>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="oso:NazwiskoRodowe"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:ImieDrugie"/>
    <xsl:apply-templates select="oso:ImieOjca"/>
    <xsl:apply-templates select="oso:ImieMatki"/>
    <xsl:apply-templates select="oso:DataUrodzenia"/>
    <xsl:apply-templates select="oso:MiejsceUrodzenia"/>
    <xsl:apply-templates select="dok:SeriaNumerDowodu"/>
    <xsl:apply-templates select="oso:PESEL"/>
    <xsl:apply-templates select="oso:Obywatelstwo"/>
    <xsl:apply-templates select="dok:SeriaNumerPaszportu"/>
    <xsl:apply-templates select="mswia1:PozwolenieNaBron"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:DaneOsobowe/dok:SeriaNumerDowodu">
    <tr><td class="label">Seria i nr dowodu osobistego (dot. obywateli polskich)</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:DaneOsobowe/oso:PESEL">
    <tr><td class="label">Nr ewidencyjny PESEL (dot. obywateli polskich)</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:DaneOsobowe/dok:SeriaNumerPaszportu">
    <tr><td class="label">Seria i numer paszportu (dot. osoby zagranicznej)</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:AdresZameldowaniaStaly">
    <tr><td class="sublevel" colspan="2">Adres zameldowania - pobyt stały<br/>
    <table>
    <xsl:apply-templates select="dok:Adres"/>
    <xsl:apply-templates select="dok:NumerTelefonu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:AdresZameldowaniaStaly/dok:Adres">
    <tr><td class="sublevel" colspan="2">Adres<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:AdresZameldowaniaStaly/dok:NumerTelefonu">
    <tr><td class="label">Telefon</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:AdresZameldowaniaCzasowy">
    <tr><td class="sublevel" colspan="2">Adres zameldowania - pobyt czasowy<br/>
    <table>
    <xsl:apply-templates select="dok:Adres"/>
    <xsl:apply-templates select="dok:NumerTelefonu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:AdresZameldowaniaCzasowy/dok:Adres">
    <tr><td class="sublevel" colspan="2">Adres<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:AdresZameldowaniaCzasowy/dok:NumerTelefonu">
    <tr><td class="label">Telefon</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:WyksztalcenieZawod">
    <tr><td class="sublevel" colspan="2">Określić posiadane wykształcenie<br/>
    <table>
    <xsl:apply-templates select="oso:WyksztalcenieOpis"/>
    <xsl:apply-templates select="dok:ZawodWyluczony"/>
    <xsl:apply-templates select="dok:ZawodWykonywany"/>
    <xsl:apply-templates select="mswia1:PrzygotowanieZawodowe"/>
    <xsl:apply-templates select="mswia1:PracaZawodowa"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:WyksztalcenieZawod/oso:WyksztalcenieOpis">
    <tr><td class="label">Określić posiadane wykształcenie (dot. osób kierujących działalnością objętą koncesją - art. 8 ustawy)</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:WyksztalcenieZawod/dok:ZawodWyluczony">
    <tr><td class="label">Zawód wyuczony</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:WyksztalcenieZawod/dok:ZawodWykonywany">
    <tr><td class="label">Zawód wykonywany</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:Oswiadczenie1">
    <tr><td class="label">Oświadczenie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Osoby/dok:PotwierdzajacyDane">
    <tr><td class="sublevel" colspan="2">Podpisujący<br/>
    <table>
    <xsl:apply-templates select="oso:IdOsoby"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Kontakt"/>
    <xsl:apply-templates select="inst:Funkcja"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ZnaczekOplatySkarbowej">
    <tr><td class="sublevel" colspan="2">Miejsce na znaki opłaty skarbowej<br/>
    <table>
    <xsl:apply-templates select="str:Zalacznik"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow">
    <tr><td class="sublevel" colspan="2">Wykaz załączników<br/>
    <table>
    <xsl:apply-templates select="dok:FormaPrawna"/>
    <xsl:apply-templates select="dok:RejestrPrzedsiebiorcowOdpis"/>
    <xsl:apply-templates select="dok:OsobyUstanowione"/>
    <xsl:apply-templates select="dok:OswiadczeniaOsobUprawnionych"/>
    <xsl:apply-templates select="dok:UdzialowcyAkcjonariusze"/>
    <xsl:apply-templates select="dok:InformacjazKRK"/>
    <xsl:apply-templates select="dok:RejestrDluznikowOdpis"/>
    <xsl:apply-templates select="dok:PrzygotowanieZawodoweDokument"/>
    <xsl:apply-templates select="dok:OrzeczenieLekarszkie"/>
    <xsl:apply-templates select="dok:WarunkiOpinia"/>
    <xsl:apply-templates select="dok:WymaganiaZaswiadczenia"/>
    <xsl:apply-templates select="dok:Inne"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:FormaPrawna">
    <tr><td class="label">dokument określający formę prawną wnioskodawcy, w szczególności statut lub umowa spółki albo inny dokument dotyczący ustanowienia działalności gospodarczej i organizacji przedsiębiorcy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:RejestrPrzedsiebiorcowOdpis">
    <tr><td class="label">odpis z rejestru przedsiębiorców</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:OsobyUstanowione">
    <tr><td class="label">oświadczenie przedsiębiorcy wskazujące osoby ustanowione do wykonywania (kierowania) działalnością gospodarczą określoną w koncesji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:OswiadczeniaOsobUprawnionych">
    <tr><td class="label">oświadczenia osób uprawnionych do wykonywania lub kierowania działalnością objętą koncesją o posiadanej pełnej zdolności do czynności prawnych</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:UdzialowcyAkcjonariusze">
    <tr><td class="label">lista udziałowców lub akcjonariuszy oraz wielkość znacznych pakietów akcji w rozumieniu rozdziału 9 ustawy z dnia 21 sierpnia 1997 r. - Prawo o publicznym obrocie papierami wartościowymi</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:InformacjazKRK">
    <tr><td class="label">informacja z Krajowego Rejestru Karnego o przedsiębiorcy - osobie fizycznej albo członkach organu zarządzającego przedsiębiorstwa, prokurentach, pełnomocnikach, udziałowcach lub akcjonariuszach, posiadających co najmniej 20% udziałów lub akcji, oraz oświadczenia tych osób, że nie są prowadzone przeciwko nim postępowania w sprawach o przestępstwa lub wykroczenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:RejestrDluznikowOdpis">
    <tr><td class="label">odpis z rejestru dłużników niewypłacalnych Krajowego Rejestru Sądowego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:PrzygotowanieZawodoweDokument">
    <tr><td class="label">dokument potwierdzający przygotowanie zawodowe</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:OrzeczenieLekarszkie">
    <tr><td class="label">orzeczenie lekarskie i psychologiczne, stwierdzające brak przeciwwskazań do wykonywania lub kierowania działalnością gospodarczą określoną w koncesji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:WarunkiOpinia">
    <tr><td class="label">opinia potwierdzająca możliwości spełnienia warunków technicznych i organizacyjnych, zapewniających prawidłowe wykonywanie działalności gospodarczej objętej koncesją</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:WymaganiaZaswiadczenia">
    <tr><td class="label">zaświadczenia: komendanta powiatowego Państwowej Straży Pożarnej, powiatowego inspektora sanitarnego oraz wojewódzkiego inspektora ochrony środowiska, stwierdzające, że obiekty budowlane i urządzenia techniczne przeznaczone do wykonywania działalności gospodarczej spełniają wymagania określone odpowiednio w przepisach o ochronie przeciwpożarowej, sanitarnych i ochronie środowiska</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:WykazZalacznikow/dok:Inne">
    <tr><td class="label">Inne załączniki</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/str:Zalaczniki">
    <tr><td class="sublevel" colspan="2">Załączniki<br/>
    <table>
    <xsl:apply-templates select="str:Zalacznik"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:Oswiadczenie2">
    <tr><td class="label">Oświadczenie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="dok:Dokument/dok:TrescDokumentu/dok:ReprezentantPrzedsiebiorcy">
    <tr><td class="sublevel" colspan="2">Reprezentant przedsiębiorcy<br/>
    <table>
    <xsl:apply-templates select="oso:IdOsoby"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Kontakt"/>
    <xsl:apply-templates select="inst:Funkcja"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:Dziecko">
    <tr><td class="sublevel" colspan="2">Dziecko<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="oso:Plec"/>
    <xsl:apply-templates select="oso:DataUrodzenia"/>
    <xsl:apply-templates select="oso:MiejsceUrodzenia"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:PoprzedniAdres">
    <tr><td class="sublevel" colspan="2">PoprzedniAdres<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:KodTerytorialnyPoprzedni">
    <tr><td class="label">Kod terytorialny poprzedniego miejsca pobytu stałego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:KodObywatelstwa">
    <tr><td class="label">Kod obywatelstwa</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:KodTerytorialnyNowy">
    <tr><td class="label">Kod terytorialny nowego miejsca pobytu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:AdresStaly">
    <tr><td class="sublevel" colspan="2">AdresStaly<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:AdresCzasowy">
    <tr><td class="sublevel" colspan="2">AdresCzasowy<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentUprawniajacyDoPobytu">
    <tr><td class="sublevel" colspan="2">Dokument uprawniający do pobytu na terytorium RP<br/>
    <table>
    <xsl:apply-templates select="mswia:RodzajDokumentu"/>
    <xsl:apply-templates select="mswia:SeriaNumerDokumentu"/>
    <xsl:apply-templates select="mswia:DataWydania"/>
    <xsl:apply-templates select="mswia:OrganWydajacy"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentUprawniajacyDoPobytu/mswia:RodzajDokumentu">
    <tr><td class="label">Nazwa</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentUprawniajacyDoPobytu/mswia:DataWydania">
    <tr><td class="label">Data wydania</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentUprawniajacyDoPobytu/mswia:OrganWydajacy">
    <tr><td class="label">Oznaczenie organu wydającego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:Pobyt">
    <tr><td class="label">Pobyt</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentOsobaMeldujaca">
    <tr><td class="sublevel" colspan="2">Dokument stwierdzający tożsamość osoby meldującej<br/>
    <table>
    <xsl:apply-templates select="mswia:RodzajDokumentu"/>
    <xsl:apply-templates select="mswia:SeriaNumerDokumentu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentOsobaMeldujaca/mswia:RodzajDokumentu">
    <tr><td class="label">Nazwa</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy">
    <tr><td class="sublevel" colspan="2">Stosunek do służby wojskowej<br/>
    <table>
    <xsl:apply-templates select="mswia:CzyPodlega"/>
    <xsl:apply-templates select="mswia:StopienWojskowy"/>
    <xsl:apply-templates select="mswia:NazwaDokumentu"/>
    <xsl:apply-templates select="mswia:SeriaNumerDokumentu"/>
    <xsl:apply-templates select="mswia:PoswiadczenieOZgloszeniu"/>
    <xsl:apply-templates select="mswia:WKU"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy/mswia:CzyPodlega">
    <tr><td class="label">Obowiązkowi wojskowemu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy/mswia:StopienWojskowy">
    <tr><td class="label">Stopień wojskowy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy/mswia:NazwaDokumentu">
    <tr><td class="label">Nazwa wojskowego dokumentu osobistego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy/mswia:SeriaNumerDokumentu">
    <tr><td class="label">Seria i nr wojskowego dokumentu osobistego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy/mswia:PoswiadczenieOZgloszeniu">
    <tr><td class="label">Poświadczenie o zgłoszeniu się do rejestracji przedpoborowych</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ObowiazekWojskowy/mswia:WKU">
    <tr><td class="label">WKU, w której ewidencji osoba pozostaje</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:SeriaNumerDokumentu">
    <tr><td class="label">Seria i numer dokumentu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:WyjazdZaGranice">
    <tr><td class="sublevel" colspan="2">WyjazdZaGranice<br/>
    <table>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="mswia:DataWyjazdu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:WyjazdZaGranice/mswia:DataWyjazdu">
    <tr><td class="label">Data wyjazdu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DaneOsobowe">
    <tr><td class="sublevel" colspan="2">DaneOsobowe<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:ImieDrugie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="oso:NazwiskoRodowe"/>
    <xsl:apply-templates select="mswia:ImiePoprzednie"/>
    <xsl:apply-templates select="oso:NazwiskoPoprzednie"/>
    <xsl:apply-templates select="oso:ImieOjca"/>
    <xsl:apply-templates select="oso:NazwiskoRodoweOjca"/>
    <xsl:apply-templates select="oso:ImieMatki"/>
    <xsl:apply-templates select="oso:NazwiskoRodoweMatki"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DaneOsobowe/mswia:ImiePoprzednie">
    <tr><td class="label">Imię poprzednie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataZgloszenia">
    <tr><td class="label">Data zgłoszenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:OsobaProcedujaca">
    <tr><td class="sublevel" colspan="2">OsobaProcedujaca<br/>
    <table>
    <xsl:apply-templates select="mswia:DataProcedowania"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:OsobaProcedujaca/mswia:DataProcedowania">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:NowyAdres">
    <tr><td class="sublevel" colspan="2">NowyAdres<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataOpuszczeniaPobytuCzasowego">
    <tr><td class="label">Data opuszczenia miejsca pobytu czasowego ponad 2 miesiące</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:OsobaPrzyjmujaca">
    <tr><td class="sublevel" colspan="2">OsobaPrzyjmujaca<br/>
    <table>
    <xsl:apply-templates select="mswia:DataPrzyjecia"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:OsobaPrzyjmujaca/mswia:DataPrzyjecia">
    <tr><td class="label">Data przyjęcia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataPodpisPracownika">
    <tr><td class="sublevel" colspan="2">Pracownik<br/>
    <table>
    <xsl:apply-templates select="typy:Data"/>
    <xsl:apply-templates select="typy:Potwierdzajacy"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataPodpisPracownika/typy:Data">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataPodpisPracownika/typy:Potwierdzajacy">
    <tr><td class="sublevel" colspan="2">Podpisujący<br/>
    <table>
    <xsl:apply-templates select="oso:IdOsoby"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Kontakt"/>
    <xsl:apply-templates select="inst:Funkcja"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:OsobaPotwierdzajacaPobyt">
    <tr><td class="sublevel" colspan="2">Stwierdzam, że wyżej wymieniona osoba przebywa pod wskazanym adresem<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:ImieDrugie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="oso:NrDowoduTozsamosci"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:OsobaPotwierdzajacaPobyt/oso:NrDowoduTozsamosci">
    <tr><td class="label">Seria i numer dowodu osobistego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataMiejsceUrodzenia">
    <tr><td class="sublevel" colspan="2">Data i miejsce urodzenia<br/>
    <table>
    <xsl:apply-templates select="oso:DataUrodzenia"/>
    <xsl:apply-templates select="oso:MiejsceUrodzenia"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ZgloszeniePrzyjeto">
    <tr><td class="sublevel" colspan="2">Zgłoszenie przyjęto<br/>
    <table>
    <xsl:apply-templates select="typy:Data"/>
    <xsl:apply-templates select="typy:Potwierdzajacy"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ZgloszeniePrzyjeto/typy:Data">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:ZgloszeniePrzyjeto/typy:Potwierdzajacy">
    <tr><td class="sublevel" colspan="2">Podpisujący<br/>
    <table>
    <xsl:apply-templates select="oso:IdOsoby"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Kontakt"/>
    <xsl:apply-templates select="inst:Funkcja"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentTozsamosci">
    <tr><td class="sublevel" colspan="2">Dokument stwierdzający tożsamość<br/>
    <table>
    <xsl:apply-templates select="mswia:RodzajDokumentu"/>
    <xsl:apply-templates select="mswia:SeriaNumerDokumentu"/>
    <xsl:apply-templates select="mswia:WydanyPrzez"/>
    <xsl:apply-templates select="mswia:DataWaznosci"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentTozsamosci/mswia:RodzajDokumentu">
    <tr><td class="label">Rodzaj dokumentu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentTozsamosci/mswia:WydanyPrzez">
    <tr><td class="label">Przez kogo wydany</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DokumentTozsamosci/mswia:DataWaznosci">
    <tr><td class="label">Data ważności</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DaneMalzonka">
    <tr><td class="sublevel" colspan="2">Dane małżonka<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:ImieDrugie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="oso:NazwiskoRodowe"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia:DataZameldowania">
    <tr><td class="label">Data zameldowania na pobyt stały</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:DataWszczeciaEgzekucji">
    <tr><td class="label">Data wszczęcia egzekucji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:Rok">
    <tr><td class="label">Rok</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:NumerSystemowyOsoby">
    <tr><td class="label">Numer systemowy osoby</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:RodzajDecyzji">
    <tr><td class="label">Rodzaj decyzji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:NumerDecyzji">
    <tr><td class="label">Numer decyzji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:OznaczenieWaluty">
    <tr><td class="label">Waluta</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:NumerSystemowyWniosku">
    <tr><td class="label">Numer systemowy wniosku</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:OdbiorDecyzji">
    <tr><td class="sublevel" colspan="2">Osoba odbierająca decyzję<br/>
    <table>
    <xsl:apply-templates select="typy:Data"/>
    <xsl:apply-templates select="typy:Potwierdzajacy"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="typy:OdbiorDecyzji/typy:Data">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:OdbiorDecyzji/typy:Potwierdzajacy">
    <tr><td class="sublevel" colspan="2">Podpisujący<br/>
    <table>
    <xsl:apply-templates select="oso:IdOsoby"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Kontakt"/>
    <xsl:apply-templates select="inst:Funkcja"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="typy:OkresZlozenia">
    <tr><td class="label">Okres złożenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:DataWniosku">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:Decyzja">
    <tr><td class="sublevel" colspan="2">Decyzja<br/>
    <table>
    <xsl:apply-templates select="typy:RodzajDecyzji"/>
    <xsl:apply-templates select="typy:DataWydaniaDecyzji"/>
    <xsl:apply-templates select="typy:NumerDecyzji"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="typy:NumerTytuluWykonawczego">
    <tr><td class="label">Numer tytułu wykonawczego</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:SeriaNumerDokumentu">
    <tr><td class="label">Seria i numer dokumentu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:SygnaturaSprawy">
    <tr><td class="label">Sygnatura sprawy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:OsobyObjeteDecyzjaLiczba">
    <tr><td class="label">Liczba osób objętych decyzją</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:DataWydaniaDecyzji">
    <tr><td class="label">Data wydania decyzji</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:PodpisWnioskodawcy">
    <tr><td class="sublevel" colspan="2">Podpis  wnioskodawcy<br/>
    <table>
    <xsl:apply-templates select="typy:Data"/>
    <xsl:apply-templates select="typy:Potwierdzajacy"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="typy:PodpisWnioskodawcy/typy:Data">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="typy:PodpisWnioskodawcy/typy:Potwierdzajacy">
    <tr><td class="sublevel" colspan="2">Podpisujący<br/>
    <table>
    <xsl:apply-templates select="oso:IdOsoby"/>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Kontakt"/>
    <xsl:apply-templates select="inst:Funkcja"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PrzygotowanieZawodowe">
    <tr><td class="sublevel" colspan="2">Przygotowanie zawodowe do wykonywania lub kierowania działalnością gospodarczą określoną w koncesji<br/>
    <table>
    <xsl:apply-templates select="mswia1:Lp"/>
    <xsl:apply-templates select="mswia1:NazwaUczelni"/>
    <xsl:apply-templates select="mswia1:UzyskaneKwalifikacje"/>
    <xsl:apply-templates select="mswia1:RokUkonczenia"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PrzygotowanieZawodowe/mswia1:Lp">
    <tr><td class="label">Lp.</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PrzygotowanieZawodowe/mswia1:NazwaUczelni">
    <tr><td class="label">Nazwa uczelni, szkoły, ośrodka, kursu, szkolenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PrzygotowanieZawodowe/mswia1:UzyskaneKwalifikacje">
    <tr><td class="label">Uzyskane kwalifikacje</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PrzygotowanieZawodowe/mswia1:RokUkonczenia">
    <tr><td class="label">Rok ukończenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PozwolenieNaBron">
    <tr><td class="sublevel" colspan="2">Pozwolenie na broń<br/>
    <table>
    <xsl:apply-templates select="mswia1:PosiadaPozwolenieNaBron"/>
    <xsl:apply-templates select="mswia1:NumerPozwolenia"/>
    <xsl:apply-templates select="mswia1:WydanePrzez"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PozwolenieNaBron/mswia1:PosiadaPozwolenieNaBron">
    <tr><td class="label">Czy posiada pozwolenie na broń</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PozwolenieNaBron/mswia1:NumerPozwolenia">
    <tr><td class="label">Nr pozwolenia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PozwolenieNaBron/mswia1:WydanePrzez">
    <tr><td class="label">Przez kogo wydane</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:DzialalnoscAdres">
    <tr><td class="sublevel" colspan="2">Adres<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:FormaPrawna">
    <tr><td class="label">Forma prawna przedsiębiorcy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa">
    <tr><td class="sublevel" colspan="2">Praca zawodowa - dane o pracy zawodowej mającej związek z wykonywaniem planowanej działalności<br/>
    <table>
    <xsl:apply-templates select="mswia1:Lp"/>
    <xsl:apply-templates select="mswia1:NazwaZakladu"/>
    <xsl:apply-templates select="mswia1:AdresZakladu"/>
    <xsl:apply-templates select="mswia1:StanowiskoSluzbowe"/>
    <xsl:apply-templates select="mswia1:ZatrudnienieOkres"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:Lp">
    <tr><td class="label">Lp.</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:NazwaZakladu">
    <tr><td class="label">Nazwa zakładu pracy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:AdresZakladu">
    <tr><td class="sublevel" colspan="2">Adres zakładu pracy<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:StanowiskoSluzbowe">
    <tr><td class="label">Stanowisko służbowe</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:ZatrudnienieOkres">
    <tr><td class="sublevel" colspan="2">Okres zatrudnienia<br/>
    <table>
    <xsl:apply-templates select="meta:Od"/>
    <xsl:apply-templates select="meta:Do"/>
    <xsl:apply-templates select="meta:Opis"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:ZatrudnienieOkres/meta:Od">
    <tr><td class="label">Od</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:ZatrudnienieOkres/meta:Do">
    <tr><td class="label">Do</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:PracaZawodowa/mswia1:ZatrudnienieOkres/meta:Opis">
    <tr><td class="label">Opis</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:IloscMiejsc">
    <tr><td class="sublevel" colspan="2">Miejsca<br/>
    <table>
    <xsl:apply-templates select="mswia1:Ilosc"/>
    <xsl:apply-templates select="mswia1:LiczbaMiejsc"/>
    <xsl:apply-templates select="mswia1:AdresyMiejsc"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:IloscMiejsc/mswia1:Ilosc">
    <tr><td class="label">Ilość</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:IloscMiejsc/mswia1:LiczbaMiejsc">
    <tr><td class="label">Podać ile</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia1:IloscMiejsc/mswia1:AdresyMiejsc">
    <tr><td class="label">Adresy pozostałych miejsc</td><td class="value"><xsl:call-template name="str_ZalacznikTypValue"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Wydanie">
    <tr><td class="label">Wydanie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:PoprzedniAdres">
    <tr><td class="sublevel" colspan="2">Poprzednie miejsce stałego pobytu<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:SeriaNumerPaszportu">
    <tr><td class="label">SeriaNumerPaszportu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Rysopis">
    <tr><td class="sublevel" colspan="2">Rysopis<br/>
    <table>
    <xsl:apply-templates select="mswia2:WzrostwCm"/>
    <xsl:apply-templates select="mswia2:KolorOczu"/>
    <xsl:apply-templates select="mswia2:ZnakiSzczegolne"/>
    <xsl:apply-templates select="mswia2:DodatkowyOpis"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Rysopis/mswia2:WzrostwCm">
    <tr><td class="label">Wzrost w cm</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Rysopis/mswia2:KolorOczu">
    <tr><td class="label">Kolor oczu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Rysopis/mswia2:ZnakiSzczegolne">
    <tr><td class="label">Znaki szczególne</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Rysopis/mswia2:DodatkowyOpis">
    <tr><td class="label">Dodatkowy opis</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DataWaznosci">
    <tr><td class="label">Data ważności</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:EA">
    <tr><td class="sublevel" colspan="2">EA<br/>
    <table>
    <xsl:apply-templates select="mswia2:NrAktwKraju"/>
    <xsl:apply-templates select="mswia2:NrAktwKonsulacie"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:EA/mswia2:NrAktwKraju">
    <tr><td class="label">Nr akt w kraju</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:EA/mswia2:NrAktwKonsulacie">
    <tr><td class="label">Nr akt w konsulacie</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Numer">
    <tr><td class="label">Numer</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:WydajacyPaszport">
    <tr><td class="sublevel" colspan="2">Wydający paszport<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="mswia2:StanowiskoSluzbowe"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:WydajacyPaszport/mswia2:StanowiskoSluzbowe">
    <tr><td class="label">Stanowisko służbowe</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:MiejscowoscData">
    <tr><td class="sublevel" colspan="2">Miejscowość/Data<br/>
    <table>
    <xsl:apply-templates select="mswia2:Miejscowosc"/>
    <xsl:apply-templates select="mswia2:Data"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:MiejscowoscData/mswia2:Miejscowosc">
    <tr><td class="label">Miejscowość</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:MiejscowoscData/mswia2:Data">
    <tr><td class="label">Data</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Seria">
    <tr><td class="label">Seria</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DaneWspolmalzonka">
    <tr><td class="sublevel" colspan="2">Dane współmałżonka<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="oso:Obywatelstwo"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:Paszport">
    <tr><td class="label">Paszport</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DokumentTozsamosci">
    <tr><td class="sublevel" colspan="2">Dokument tożsamości<br/>
    <table>
    <xsl:apply-templates select="mswia:SeriaNumerDokumentu"/>
    <xsl:apply-templates select="mswia2:DataWydania"/>
    <xsl:apply-templates select="mswia2:NazwaUrzedu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DokumentTozsamosci/mswia2:DataWydania">
    <tr><td class="label">Data wydania</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DokumentTozsamosci/mswia2:NazwaUrzedu">
    <tr><td class="label">Nazwa urzędu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:KogoPowiadomic">
    <tr><td class="sublevel" colspan="2">Kogo powiadomić w razie konieczności<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="adr:Adres"/>
    <xsl:apply-templates select="adr:Telefon"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:KogoPowiadomic/adr:Adres">
    <tr><td class="sublevel" colspan="2">Miejsce zamieszkania<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DataWystawienia">
    <tr><td class="label">Data wystawienia</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:DataOdbioru">
    <tr><td class="label">Data odbioru paszportu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:MiejsceStalegoPobytu">
    <tr><td class="sublevel" colspan="2">Miejsce stałego pobytu<br/>
    <table>
    <xsl:apply-templates select="adr:Adres"/>
    <xsl:apply-templates select="mswia2:NumerTelefonu"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:MiejsceStalegoPobytu/adr:Adres">
    <tr><td class="sublevel" colspan="2">Dokładny adres<br/>
    <table>
    <xsl:apply-templates select="adr:KodPocztowy"/>
    <xsl:apply-templates select="adr:Poczta"/>
    <xsl:apply-templates select="adr:Miejscowosc"/>
    <xsl:apply-templates select="adr:Ulica"/>
    <xsl:apply-templates select="adr:Budynek"/>
    <xsl:apply-templates select="adr:Lokal"/>
    <xsl:apply-templates select="adr:SkrytkaPocztowa"/>
    <xsl:apply-templates select="adr:Kraj"/>
    <xsl:apply-templates select="adr:TERC"/>
    <xsl:apply-templates select="adr:SIMC"/>
    <xsl:apply-templates select="adr:ULIC"/>
    <xsl:apply-templates select="adr:Wojewodztwo"/>
    <xsl:apply-templates select="adr:Powiat"/>
    <xsl:apply-templates select="adr:Gmina"/>
    <xsl:apply-templates select="adr:Uwagi"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:MiejsceStalegoPobytu/mswia2:NumerTelefonu">
    <tr><td class="label">Nr telefonu</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:PodejmujacyDecyzje">
    <tr><td class="sublevel" colspan="2">Podejmujący decyzję<br/>
    <table>
    <xsl:apply-templates select="oso:Imie"/>
    <xsl:apply-templates select="oso:Nazwisko"/>
    <xsl:apply-templates select="mswia2:StanowiskoSluzbowe"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:PodejmujacyDecyzje/mswia2:StanowiskoSluzbowe">
    <tr><td class="label">Stanowisko służbowe</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:ObecneMiejscePracy">
    <tr><td class="sublevel" colspan="2">ObecneMiejscePracy<br/>
    <table>
    <xsl:apply-templates select="mswia2:MiejscePracy"/>
    <xsl:apply-templates select="mswia2:Stanowisko"/>
    </table></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:ObecneMiejscePracy/mswia2:MiejscePracy">
    <tr><td class="label">Obecne miejsce pracy</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    <xsl:template match="mswia2:ObecneMiejscePracy/mswia2:Stanowisko">
    <tr><td class="label">Stanowisko</td><td class="value"><xsl:value-of select="text()"/></td></tr>
    </xsl:template>
    </xsl:stylesheet>