4796

ID4796
Data2017-12-08
Symbol2017/12/08/4796
InstytucjaMinisterstwo Spraw Wewnętrznych i Administracji
NazwaWNIOSEK O WYDANIE ODPISU AKTU STANU CYWILNEGO
Czy Aktualny0

Ustawy (1)

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

    Pliki

    Styl

    <?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/11/16/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:wnio="http://crd.gov.pl/wzor/2017/12/08/4796/" xmlns:xls="http://www.w3.org/1999/XSL/Transform" version="1.0">
    
        <xsl:template match="/">
            <xsl:apply-templates select="wnio:Dokument"/>
        </xsl:template>
    
        <xsl:template match="wnio:Dokument">
            <xsl:param name="nadawca" select="wnio:DaneDokumentu/str:Nadawcy/meta:Podmiot/Osoba"/>
            <xsl:param name="tresc" select="wnio:TrescDokumentu"/>
            <xsl:param name="zalaczniki" select="wnio:TrescDokumentu/str:Zalaczniki"/>
    <html lang="pl">
    		<xsl:variable name="smallcase" select="'abcdefghijklmnopqrstuvwxyząęśżźćłóń'"/>
    		<xsl:variable name="uppercase" select="'ABCDEFGHIJKLMNOPQRSTUVWXYZĄĘŚŻŹĆŁÓŃ'"/>
    		<head>
    			<meta name="viewport" content="width=device-width, initial-scale=1"/>
    		
            <title>Wniosek o wydanie odpisu aktu stanu cywilnego</title>           
                    <style type="text/css">
    				/* przedrostek du - dokumenty urzędowe
              index:
              1. reset style and font size
              2. style for tags
              3. grid and style for dotted
              4. screen reader only
              5. header
              6. other style
              7. print
              8. screen (max-width: 650px)
              9. screen (min-width: 651px) and (max-width: 1024px)
              */
    				/*reset style and font size*/
    
    				main&gt;
    				div,
    				span,
    				h1,
    				h2,
    				h3,
    				h4,
    				h5,
    				h6,
    				p,
    				a,
    				address,
    				img,
    				ol,
    				ul,
    				li,
    				fieldset,
    				form,
    				label,
    				legend,
    				footer,
    				header,
    				section,
    				input {
    					margin: 0;
    					padding: 0;
    					border: 0;
    					font-size: 100%;
    					font: inherit;
    					vertical-align: baseline;
    				}
    
    				main&gt; article,
    				footer,
    				header,
    				section {
    					display: block;
    				}
    
    				body {
    					font-family: Arial, Helvetica, sans-serif;
    					font-size: 15px;
    					line-height: 1;
    				}
    
    				main&gt; ol,
    				ul {
    					list-style: none;
    				}
    
    				* {
    					-webkit-box-sizing: border-box;
    					-moz-box-sizing: border-box;
    					box-sizing: border-box;
    				}
    				/*style for tags*/
    
    				main {
    					width: 100%;
    					height: 100%;
    					padding: 1%;
    					line-height: 130%;
    				}
    
    				h1 {
    					font-size: 18px;
    					font-weight: bold;
    				}
    
    				h2,
    				h4,
    				h5,
    				h6 {
    					font-size: 14px;
    					font-weight: bold;
    				}
    
    				h3 {
    					font-size: 14px;
    					font-weight: bold;
    					margin-top: 1%;
    				}
    
    				main div {
    					display: inline-block;
    					word-wrap: break-word;
    					margin-top: 0.5%;
    					padding: 0.4%;
    					
    				
    								
    				}
    
    				input {
    					margin-top: 0.5%;
    					margin-right: 0.5%;
    				}
    
    				input:checked {
    					outline: 2px solid black;
    				}
    				/*grid and style for dotted*/
    
    				.du-col-1 {
    					width: 8.33%;
    				}
    
    				.du-col-2 {
    					width: 16.66%;
    					padding-right: 1.1%;
    				}
    				.du-col-2-tablet {
    					width: 16.66%;
    					padding-right: 1.1%;
    				}
    
    				.du-col-2-dotted {
    					width: 16.25%;
    					padding-right: 1.1%;
    				}
    
    				.du-col-3 {
    					width: 25%;
    				}
    
    				.du-col-4 {
    					width: 33.33%;
    				}
    
    				.du-col-5 {
    					width: 41.66%;
    				}
    
    				.du-col-6 {
    					width: 50%;
    				}
    
    				.du-col-7 {
    					width: 58.33%;
    				}
    
    				.du-col-8 {
    					width: 66.66%;
    				}
    
    				.du-col-9 {
    					width: 75%;
    				}
    
    				.du-col-10 {
    					width: 83.33%;
    				}
    
    				.du-col-10-dotted {
    					width: 84.33%;
    				}
    
    				.du-col-11 {
    					width: 91.66%;
    				}
    
    				.du-col-12 {
    					width: 100%;
    				}
    
    				.du-no-left-column {
    					margin-top: 0.1%;
    					margin-left: 16.66%;
    					
    				}
    
    				.du-no-left-column-dotted {
    					margin-left: 16.25%;
    				}
    
    				.du-p-mobile {
    					margin-right: 2.5%;
    				}
    
    				.du-city-width {
    					width: 40%;
    					text-align: left;
    					padding: 1%;
    				}
    				.du-empty-row{
    				padding: 0px;
    				margin: 0px;
    				}
    
    				.du-border-dotted {
    					border: 2px dotted #c0c0c0;
    				}
    				/*screen reader only*/
    
    				.du-sr-only {
    					position: absolute;
    					width: 1px;
    					height: 1px;
    					margin: -1px;
    					padding: 0;
    					overflow: hidden;
    					clip: rect(0, 0, 0, 0);
    					border: 0;
    				}
    				/*header*/
    
    				.du-header-eagle-table {
    					float: left;
    					margin-right: 0px;
    					margin-top: 21px;
    					padding: 0;
    					margin-bottom: 15px;
    				}
    
    				.du-header-eagle-RP {
    					font-size: 18px;
    					margin-top: 28px;
    					line-height: 135%;
    				}
    
    				.du-header-eagle-img {
    					width: 70px;
    					height: 70px;
    				}
    
    				.du-header-nr-table {
    					float: right;
    					margin-right: 0px;
    					margin-top: 21px;
    					padding: 0;
    					margin-bottom: 15px;
    				}
    
    				.du-header-nr-document {
    					min-width: 300px;
    					min-height: 45px;
    					border: 3px solid black;
    					font-size: 18px;
    					text-align: center;
    					font-weight: bold;
    					padding: 9px;
    				}
    
    				.du-header-nr-grey {
    					margin-top: 0px;
    					min-width: 300px;
    					min-height: 45px;
    					background-color: #dcdcdc;
    				}
    				/*other style*/
    
    				.du-no-mt {
    					margin-top: 0;					
    				}				
    				.du-margin-left {
    					margin-left: 3%;
    				}
    
    				.du-no-padding {
    					padding: 0;
    				}
    
    				.du-small-padding {
    					padding: 0.1%;
    				}
    
    				.du-padding-bottom {
    					padding-bottom: 0;
    				}
    
    				.du-padding-right {
    					padding-right: 0
    				}
    
    				.du-box-padding {
    				min-width: 33px;
    				text-align: center;
    				}
    
    				.du-box-right {
    					float: right;
    					width: 70%;
    					margin: 0;
    				}
    
    				.du-left {
    					text-align: left;
    					float: left;
    				}
    
    				.du-right {
    					text-align: right;
    					float: left;
    				}
    
    				.du-center {
    					text-align: center;
    				}
    
    				.du-uppercase {
    					text-transform: uppercase;
    				}
    
    				.du-line {
    					border-bottom: 2px solid black;
    					
    				}
    
    				.du-border {
    					border: 1px solid black;
    					min-width: 30px;
    					min-height: 30px;
    					margin-bottom: 1px;
    				}
    
    				.du-italic {
    					font-style: italic;
    				}
    
    				.du-bold {
    					font-weight: bold;
    				}
    				.du-preline{
    				white-space: pre-line;
    				}
    				.du-margin-top-10{
    				margin-top: 10px;
    				}
    				.du-width-350{
    				min-width: 350px;
    				}
    				.du-li-margin-left-15{
      				margin-left: 15px;
    				}
    				@media print {
    					main {
    						font-size: 12px;
    					}
    					h3 {
    						font-size: 14px;
    						font-weight: bold;
    						margin-top: 1%;
    						margin-bottom: 0;
    					}
    					div {
    						padding: 1%;
    						min-height: 30px;
    					}
    					input {
    						margin-top: 1%;
    						margin-right: 3%;
    					}
    					.du-col-2 {
    						width: 26.66%;
    					}
    					.du-col-2-tablet {
    						width: 26.25%;
    					}
    					.du-col-2-dotted {
    						width: 26.25%;
    					}
    					.du-col-5 {
    						width: 36.66%;
    					}
    					.du-col-6 {
    						width: 50%
    					}
    					.du-col-10 {
    						width: 73.33%;
    					}
    					.du-col-10-dotted {
    						width: 74.33%;
    					}
    					.du-no-left-column {
    						margin-top: 0.5%;
    						margin-left: 26.66%;
    					}
    					.du-no-left-column-dotted {
    						margin-left: 26.25%;
    					}
    					.du-city-width {
    						margin-bottom: 10px;
    					}
    					.du-box-padding {
    						min-width: 18px;
    						padding: 2%;
    					}
    					.du-border {
    						min-width: 18px;
    						min-height: 30px;
    					}
    					.du-header-nr-table {
    						margin-top: 10px;
    					}
    					.du-header-nr-grey {
    						margin-top: 0px;
    						min-width: 300px;
    						height: 45px;
    						background-color: #dcdcdc;
    						box-shadow: inset 0 0 0 30px #dcdcdc;
    					}
    				}
    
    				@media screen and (max-width: 650px) {
    					div {
    						margin-top: 2%;
    					}
    					input {
    						margin-top: 1%;
    						margin-right: 3%;
    					}
    					.du-col-2 {
    						width: 100%;
    						padding-right: 1.1%;
    					}
    					.du-col-2-tablet{
    						width: 100%;
    						padding-right: 1.1%;
    					}
    					.du-col-3{
    					width: 100%;
    					}					
    					.du-col-2-dotted {
    						width: 99.25%;
    						padding-right: 1.1%;
    					}
    					.du-col-5 {
    						width: 100%;
    					}
    					.du-col-6 {
    						width: 100%
    					}
    					.du-right {
    						text-align: left;
    						float: left;
    					}
    					.du-col-10 {
    						width: 100%;
    					}
    					.du-col-10-dotted {
    						width: 99.25%;
    					}
    					.du-no-left-column {
    						margin-left: 0;
    					}
    					.du-no-left-column-dotted {
    						margin-left: 0;
    					}
    					.du-box-padding {
    						min-width: 23px;
    					}
    					.du-box-right {
    						width: 100%;
    					}
    					.du-p-mobile {
    						width: 100%;
    						display: inline-block;
    						text-align: left;
    					}
    					.du-header-nr-table {
    						float: left;
    						margin-top: 1px;
    						margin-bottom: 1px;
    					}
    					.du-header-eagle-table {
    						margin-top: 1px;
    						margin-bottom: 1px;
    					}
    					.du-header-eagle-RP {
    						font-size: 18px;
    						margin-top: 12px;
    						line-height: 135%;
    					}
    					.du-border {
    						min-width: 25px;
    						min-height: 25px;
    					}
    				}
    
    				@media screen and (min-width: 651px) and (max-width: 1024px) {
    					.du-col-2 {
    						width: 100%;
    						padding-right: 1.1%;
    					}
    					.du-col-2-dotted {
    						width: 16.25%;
    						padding-right: 1.1%;
    					}
    					.du-col-2-tablet{
    				width: 16.25%;
    						padding-right: 1.1%;
    					}
    					.du-col-5{
    				 width:100%;
    					}
    					
    					.du-right{
    					text-align: left}
    					
    					.du-col-10 {
    						width: 100%;
    					}
    					.du-col-10-dotted {
    						width: 99.25%;
    					}
    					.du-no-left-column {
    						margin-left: 0;
    					}
    					.du-no-left-column-dotted {
    						margin-left: 0;
    					}
    					.du-box-padding {
    						min-width: 20px;
    					}
    					.du-box-right {
    						width: 100%;
    					}
    					.du-border {
    						min-width: 25px;
    						min-height: 25px;
    					}
    					.du-p-mobile{
    display: block;
    					}
    
    					
    				}
    			</style>
    		</head>
    
    <body>
    			<main>
    				<section>
    
              <div class="du-col-12 du-left du-line"><h1>Wniosek o wydanie odpisu aktu stanu cywilnego</h1> </div>
    <div class="du-col-10 du-left du-no-left-column du-italic"/>
            </section>
            <section>
    <div class="du-col-12 du-left du-line du-no-mt"><h2>Dane wnioskodawcy</h2></div>
    <!-- JEŚLI WNIOSKODAWCĄ JEST OSOBA PRYWATNA -->
    			<xsl:choose>
    				<xsl:when test="string-length($tresc/wnio:DaneWnioskodawcy) &gt; 0">
    
    
    					<div class="du-col-2 du-right">Imię (imiona)</div>
    					<div class="du-col-10 du-left du-border">
    					<xsl:value-of select="$tresc//wnio:DaneWnioskodawcy//oso:Imie"/> 
    					<xsl:value-of select="$tresc//wnio:DaneWnioskodawcy//oso:ImieDrugie"/>
    					</div>
    					<div class="du-col-2 du-right">Nazwisko</div><div class="du-col-10 du-left du-border">
    					<xsl:value-of select="$tresc//wnio:DaneWnioskodawcy//oso:Nazwisko"/></div>
    					<div class="du-col-2 du-right">Nr dokumentu tożsamości</div><div class="du-col-10 du-left du-border">
    					<xsl:value-of select="$tresc//wnio:DaneWnioskodawcy//wnio:NrDokumentu"/></div>
    					<div class="du-col-2 du-right">Numer PESEL</div>
                  		<div class="du-col-10 du-left du-no-padding">
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 1, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 2, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 3, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 4, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 5, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 6, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 7, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 8, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 9, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 10, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWnioskodawcy//oso:PESEL, 11, 1)"/></div>
    					</div>
    				</xsl:when>
    					</xsl:choose>
    <!-- JEŚLI WNIOSKODAWCĄ JEST INSTYTUCJA -->	
    	<xsl:choose>			
    					<xsl:when test="$tresc/wnio:DaneWnioskodawcyInstytucja/wnio:NazwaFirmy!=''">
    						<div class="du-col-2 du-right">Nazwa</div>
    						<div class="du-col-10 du-left du-border">
    							
    								<xsl:value-of select="$tresc//wnio:DaneWnioskodawcyInstytucja/wnio:NazwaFirmy"/>
    						
    						</div>
    						<div class="du-col-2 du-right">Regon/KRS</div>
    		              	<div class="du-col-10 du-left du-no-padding">
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 1, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 2, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 3, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 4, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 5, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 6, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 7, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 8, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 9, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 10, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 11, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 12, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 13, 1)"/></div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:NumerRejestru, 14, 1)"/></div>
    					 	</div>
    					</xsl:when>
    			</xsl:choose>
    				<div class="du-col-2 du-right">Ulica</div><div class="du-col-10 du-left du-border">
    					<xsl:if test="$tresc//wnio:AdresWnioskodawcy//adr:Ulica/@rodzajUlicy!= 'ulica'">
    						<xsl:value-of select="$tresc//wnio:AdresWnioskodawcy//adr:Ulica/@rodzajUlicy"/>  <!-- Jeśli "rodzajUlicy jest ulicą to nie podawać jej tutaj-->
    					</xsl:if>
    
    
    					
    					<xsl:value-of select="$tresc//wnio:AdresWnioskodawcy//adr:Ulica"/>
    				</div>
    			<div class="du-col-2 du-right">
    		        Nr domu <span class="du-sr-only">wnioskodawcy</span>
    		     </div>
    		     <div class="du-col-10 du-left du-no-padding">
    		
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 1, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 2, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 3, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 4, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 5, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 6, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 7, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 8, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Budynek, 9, 1)"/></div>
    		
    		      </div>
    		      <div class="du-col-2 du-right">
    				Nr lokalu<span class="du-sr-only">wnioskodawcy</span>
    				</div>
    				    <div class="du-col-10 du-left du-no-padding">
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 1, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 2, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 3, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 4, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 5, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 6, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 7, 1)"/> </div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 8, 1)"/> </div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 9, 1)"/> </div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:Lokal, 10, 1)"/> </div>
    				</div>			
    		      
    		      
    		     <div class="du-col-2 du-right">
            		Kod pocztowy <span class="du-sr-only">wnioskodawcy</span>
          		</div>
          		<div class="du-col-10 du-left du-no-padding">
            		<xsl:choose>
                		<xsl:when test="$tresc//wnio:AdresWnioskodawcy//adr:Kraj='PL'">
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:KodPocztowy, 1, 1)"/></div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy/adr:KodPocztowy, 2, 1)"/></div>
    		              <div class="du-no-mt">-</div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:KodPocztowy, 4, 1)"/></div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:KodPocztowy, 5, 1)"/></div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresWnioskodawcy//adr:KodPocztowy, 6, 1)"/></div>
                        </xsl:when>
    	                <xsl:otherwise>
    						<div class="du-border du-no-mt du-width-350"><xsl:value-of select="$tresc//AdresWnioskodawcy//adr:KodPocztowy"/> </div>
    	                </xsl:otherwise>
                   </xsl:choose>
          		</div>
            	<div class="du-col-2 du-right">Miejscowość<span class="du-sr-only">wnioskodawcy</span></div>
                <div class="du-col-10 du-left du-border"><xsl:value-of select="$tresc//wnio:AdresWnioskodawcy//adr:Miejscowosc"/></div>
    			
    			
    			<div class="du-col-2 du-right">Kraj</div><div class="du-col-10 du-left du-border">
    				<xsl:choose>
    					<xsl:when test="$tresc//wnio:AdresWnioskodawcy//adr:Kraj='PL'">
    						POLSKA
    					</xsl:when>
    	                <xsl:otherwise>
    						<xsl:value-of select="$tresc//wnio:AdresWnioskodawcy//adr:Kraj"/> 
      					</xsl:otherwise>
         			</xsl:choose>
    				</div>
    			<div class="du-col-2 du-right">Numer telefonu</div>
    	  		<div class="du-col-10 du-left du-no-padding">
    
             			<div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 1, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 2, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 3, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 4, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 5, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 6, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 7, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 8, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 9, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 10, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 11, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 12, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 13, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 14, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 15, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc//wnio:KontaktWnioskodawcy//adr:Telefon, 16, 1)"/></div>
    
    			</div>
    			
    		<div class="du-col-10 du-left du-no-left-column du-no-mt du-italic"><span class="du-sr-only">Podpowiedź do nr telefonu pełnomocnika</span>
      <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QkTCBA7q6pSSgAAAAxpVFh0Q29tbWVudAAAAAAAvK6ymQAAAc1JREFUKM9j/P//PwMM3Lh0ZsOaFdv3Hn7/6RsHj4ClnVNYaKi1iQ5cAcN/KPgV46zNwMRd1zf37edvP3/+/Prp3bJZPaK8bMombj//QRVBVH81khUIymn58gem9fPbr7/////////fbxNqMrkkNG+//AJVnWwr65/XA7Pk/78/P7Sl+Ey8kuEiUwqDNB2j////z3DrzC4GNpkPf/8jgX+Htyw/cO4OspCDlvjE7beYFTk+aiVP8jeSQfjk37/7T14oq2nyc7HBBUVYPha2LGTw1JO9/f0XsjE/v30S5WRYd/Y1suDX2wcZGPmZXn/+JcXEyIAE/vz58/U7g6qyCLIgl5g4w/+vTLzsTO+RgpyBgeHP77ffGISV+RlQBD++Z2BgZ7I2VVm+5xGyxK/nFxgktDhRFDMcO3KYS1qX4dye5ZySxj+RnHh2Sa2ca/Z/VBBsIVc46zDD/79fzOT4yyesgEvMLHBxz5uCrPTE2i4uKVNo7Pz79kyCgyGvZzVE7vuXD1+QQunYhukMDAyHrr+Ax/z/F3fO2WjL6Fq6zlux8cmLN3///n33+vn2dUt97Ax4xdWPXH+OnE6gYNXMdgUJIbjP+IUlaycsRlYAABFzhqCkYj6QAAAAAElFTkSuQmCC" alt=""/>
      Numer nie jest obowiązkowy, ale ułatwi kontakt w sprawie wydania odpisu aktu stanu cywilnego.</div>	
    
       <div class="du-col-2 du-right">Adres e-mail</div><div class="du-col-10 du-left du-border">
    <xsl:value-of select="$tresc//wnio:KontaktWnioskodawcy//adr:Email"/></div>
    <div class="du-col-10 du-left du-no-left-column du-no-mt du-italic"><span class="du-sr-only">Podpowiedź do adresu e-mail</span>
      <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QkTCBA7q6pSSgAAAAxpVFh0Q29tbWVudAAAAAAAvK6ymQAAAc1JREFUKM9j/P//PwMM3Lh0ZsOaFdv3Hn7/6RsHj4ClnVNYaKi1iQ5cAcN/KPgV46zNwMRd1zf37edvP3/+/Prp3bJZPaK8bMombj//QRVBVH81khUIymn58gem9fPbr7/////////fbxNqMrkkNG+//AJVnWwr65/XA7Pk/78/P7Sl+Ey8kuEiUwqDNB2j////z3DrzC4GNpkPf/8jgX+Htyw/cO4OspCDlvjE7beYFTk+aiVP8jeSQfjk37/7T14oq2nyc7HBBUVYPha2LGTw1JO9/f0XsjE/v30S5WRYd/Y1suDX2wcZGPmZXn/+JcXEyIAE/vz58/U7g6qyCLIgl5g4w/+vTLzsTO+RgpyBgeHP77ffGISV+RlQBD++Z2BgZ7I2VVm+5xGyxK/nFxgktDhRFDMcO3KYS1qX4dye5ZySxj+RnHh2Sa2ca/Z/VBBsIVc46zDD/79fzOT4yyesgEvMLHBxz5uCrPTE2i4uKVNo7Pz79kyCgyGvZzVE7vuXD1+QQunYhukMDAyHrr+Ax/z/F3fO2WjL6Fq6zlux8cmLN3///n33+vn2dUt97Ax4xdWPXH+OnE6gYNXMdgUJIbjP+IUlaycsRlYAABFzhqCkYj6QAAAAAElFTkSuQmCC" alt=""/>
      E-mail nie jest obowiązkowy, ale ułatwi kontakt w sprawie wydania odpisu aktu stanu cywilnego.</div>	
      
     
    <!-- PEŁNOMOCNIK -->  
    
    <xsl:if test="$tresc/wnio:DanePelnomocnika/oso:Imie!=''">
    
    
    <div class="du-col-12 du-left du-line du-no-mt"><h2>Dane pełnomocnika</h2> </div>
    
    <div class="du-col-2 du-right">Imię (imiona)</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DanePelnomocnika/oso:Imie"/> 
    	<xsl:value-of select="$tresc/wnio:DanePelnomocnika/oso:ImieDrugie"/>
    </div>
    
    <div class="du-col-2 du-right">Nazwisko</div><div class="du-col-10 du-left du-border">
    <xsl:value-of select="$tresc//wnio:DanePelnomocnika//oso:Nazwisko"/></div>
    
    <div class="du-col-2 du-right">Seria i numer dowodu tożsamości</div><div class="du-col-10 du-left du-border">
    <xsl:value-of select="$tresc//wnio:DanePelnomocnika//wnio:NrDokumentu"/></div>
    <div class="du-col-12 du-right du-empty-row"/>
    
    <div class="du-col-2 du-right">Ulica</div><div class="du-col-10 du-left du-border">
    <xsl:if test="$tresc/wnio:AdresPelnomocnika//adr:Ulica/@rodzajUlicy!='ulica'">
    					<xsl:value-of select="$tresc/wnio:AdresPelnomocnika//adr:Ulica/@rodzajUlicy"/>  <!-- Jeśli "rodzajUlicy jest ulicą to nie podawać jej tutaj-->
    					</xsl:if>
    
    
    <xsl:value-of select="$tresc/wnio:AdresPelnomocnika//adr:Ulica"/> </div>
    
    
    	<div class="du-col-2 du-right">
    		        Nr domu <span class="du-sr-only">pełnomocnika</span>
    		     </div>
    		     <div class="du-col-10 du-left du-no-padding">
    		
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 1, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 2, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 3, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 4, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 5, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 6, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 7, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 8, 1)"/></div>
    		                  <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Budynek, 9, 1)"/></div>
    		
    		      </div>
    		      <div class="du-col-2 du-right">
    				Nr lokalu<span class="du-sr-only">pełnomocnika</span>
    				</div>
    				    <div class="du-col-10 du-left du-no-padding">
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 1, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 2, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 3, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 4, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 5, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 6, 1)"/> </div>
    		                    <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 7, 1)"/> </div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 8, 1)"/> </div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 9, 1)"/> </div>
    							<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:Lokal, 10, 1)"/> </div>
    				</div>	
    
    
    <div class="du-col-2 du-right">
            		Kod pocztowy <span class="du-sr-only">pełnomocnika</span>
          		</div>
          		<div class="du-col-10 du-left du-no-padding">
            		<xsl:choose>
                		<xsl:when test="$tresc//wnio:AdresPelnomocnika//adr:Kraj='PL'">
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:KodPocztowy, 1, 1)"/></div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika/adr:KodPocztowy, 2, 1)"/></div>
    		              <div class="du-no-mt">-</div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:KodPocztowy, 4, 1)"/></div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:KodPocztowy, 5, 1)"/></div>
    		              <div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:AdresPelnomocnika//adr:KodPocztowy, 6, 1)"/></div>
                        </xsl:when>
    	                <xsl:otherwise>
    						<div class="du-border du-no-mt du-width-350"><xsl:value-of select="$tresc//AdresWnioskodawcy//adr:KodPocztowy"/> </div>
    	                </xsl:otherwise>
                   </xsl:choose>
          		</div>
            	<div class="du-col-2 du-right">Miejscowość<span class="du-sr-only">pełnomocnika</span></div>
                <div class="du-col-10 du-left du-border"><xsl:value-of select="$tresc//wnio:AdresPelnomocnika//adr:Miejscowosc"/></div>
    			
    			
    			<div class="du-col-2 du-right">Kraj</div><div class="du-col-10 du-left du-border">
    				<xsl:choose>
    					<xsl:when test="$tresc//wnio:AdresPelnomocnika//adr:Kraj='PL'">
    						POLSKA
    					</xsl:when>
    	                <xsl:otherwise>
    						<xsl:value-of select="$tresc//wnio:AdresPelnomocnika//adr:Kraj"/> 
      					</xsl:otherwise>
         			</xsl:choose>
    				</div>
    
    
    
    
    
    
      <div class="du-col-2 du-right">Numer telefonu</div>
    	  
    	  
    	  <div class="du-col-10 du-left du-no-padding">
    
             	  <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 1, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 2, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 3, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 4, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 5, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 6, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 7, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 8, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 9, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 10, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 11, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 12, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 13, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 14, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 15, 1)"/></div>
                        <div class="du-border du-no-mt du-box-padding"> <xsl:value-of select="substring($tresc/wnio:KontaktPelnomocnika//adr:Telefon, 16, 1)"/></div>
                        
    
    
    </div>
    
    		<div class="du-col-10 du-left du-no-left-column du-no-mt du-italic"><span class="du-sr-only">Podpowiedź do nr telefonu pełnomocnika</span>
      <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QkTCBA7q6pSSgAAAAxpVFh0Q29tbWVudAAAAAAAvK6ymQAAAc1JREFUKM9j/P//PwMM3Lh0ZsOaFdv3Hn7/6RsHj4ClnVNYaKi1iQ5cAcN/KPgV46zNwMRd1zf37edvP3/+/Prp3bJZPaK8bMombj//QRVBVH81khUIymn58gem9fPbr7/////////fbxNqMrkkNG+//AJVnWwr65/XA7Pk/78/P7Sl+Ey8kuEiUwqDNB2j////z3DrzC4GNpkPf/8jgX+Htyw/cO4OspCDlvjE7beYFTk+aiVP8jeSQfjk37/7T14oq2nyc7HBBUVYPha2LGTw1JO9/f0XsjE/v30S5WRYd/Y1suDX2wcZGPmZXn/+JcXEyIAE/vz58/U7g6qyCLIgl5g4w/+vTLzsTO+RgpyBgeHP77ffGISV+RlQBD++Z2BgZ7I2VVm+5xGyxK/nFxgktDhRFDMcO3KYS1qX4dye5ZySxj+RnHh2Sa2ca/Z/VBBsIVc46zDD/79fzOT4yyesgEvMLHBxz5uCrPTE2i4uKVNo7Pz79kyCgyGvZzVE7vuXD1+QQunYhukMDAyHrr+Ax/z/F3fO2WjL6Fq6zlux8cmLN3///n33+vn2dUt97Ax4xdWPXH+OnE6gYNXMdgUJIbjP+IUlaycsRlYAABFzhqCkYj6QAAAAAElFTkSuQmCC" alt=""/>
      Numer nie jest obowiązkowy, ale ułatwi kontakt w sprawie wydania odpisu aktu stanu cywilnego.</div>	
    
       <div class="du-col-2 du-right">Adres e-mail</div><div class="du-col-10 du-left du-border">
    <xsl:value-of select="$tresc//wnio:KontaktPelnomocnika//adr:Email"/></div>
    <div class="du-col-10 du-left du-no-left-column du-no-mt du-italic"><span class="du-sr-only">Podpowiedź do adresu e-mail</span>
      <img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAIAAAC0tAIdAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH4QkTCBA7q6pSSgAAAAxpVFh0Q29tbWVudAAAAAAAvK6ymQAAAc1JREFUKM9j/P//PwMM3Lh0ZsOaFdv3Hn7/6RsHj4ClnVNYaKi1iQ5cAcN/KPgV46zNwMRd1zf37edvP3/+/Prp3bJZPaK8bMombj//QRVBVH81khUIymn58gem9fPbr7/////////fbxNqMrkkNG+//AJVnWwr65/XA7Pk/78/P7Sl+Ey8kuEiUwqDNB2j////z3DrzC4GNpkPf/8jgX+Htyw/cO4OspCDlvjE7beYFTk+aiVP8jeSQfjk37/7T14oq2nyc7HBBUVYPha2LGTw1JO9/f0XsjE/v30S5WRYd/Y1suDX2wcZGPmZXn/+JcXEyIAE/vz58/U7g6qyCLIgl5g4w/+vTLzsTO+RgpyBgeHP77ffGISV+RlQBD++Z2BgZ7I2VVm+5xGyxK/nFxgktDhRFDMcO3KYS1qX4dye5ZySxj+RnHh2Sa2ca/Z/VBBsIVc46zDD/79fzOT4yyesgEvMLHBxz5uCrPTE2i4uKVNo7Pz79kyCgyGvZzVE7vuXD1+QQunYhukMDAyHrr+Ax/z/F3fO2WjL6Fq6zlux8cmLN3///n33+vn2dUt97Ax4xdWPXH+OnE6gYNXMdgUJIbjP+IUlaycsRlYAABFzhqCkYj6QAAAAAElFTkSuQmCC" alt=""/>
      E-mail nie jest obowiązkowy, ale ułatwi kontakt w sprawie wydania odpisu aktu stanu cywilnego.</div>	  
      
     </xsl:if>
      
    
      <div class="du-col-12 du-left du-line du-no-mt"><h2>Odpis</h2> </div>	
    
     <div class="du-col-2 du-right">Proszę o wydanie odpisu:</div>
     <div class="du-col-10 du-left">
    
    <xsl:choose>
                                            <xsl:when test="$tresc/wnio:TypOdpisu='S'">
                                                <input id="du-id-skroconego" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <input id="du-id-skroconego" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                            </xsl:otherwise>
                                        </xsl:choose><label for="du-id-skroconego"><div class="du-sr-only">Proszę o wydanie odpisu</div>skróconego</label><br/>
                                        <xsl:choose>
                                            <xsl:when test="$tresc/wnio:TypOdpisu='W'">
                                                <input id="du-id-skroconego-wielojezycznego" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <input id="du-id-skroconego-wielojezycznego" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                            </xsl:otherwise>
                                        </xsl:choose><label for="du-id-skroconego-wielojezycznego"><div class="du-sr-only">Proszę o wydanie odpisu</div>skróconego wielojęzycznego</label><br/>
                                        <xsl:choose>
                                            <xsl:when test="$tresc/wnio:TypOdpisu='Z'">
                                                <input id="du-id-zupelnego" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <input id="du-id-zupelnego" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                            </xsl:otherwise>
                                        </xsl:choose><label for="du-id-zupelnego"><div class="du-sr-only">Proszę o wydanie odpisu</div>zupełnego</label><br/>
    </div>
    
     <div class="du-col-10 du-left du-no-left-column"><p>Aktu:</p>
             <xsl:choose>
                                            <xsl:when test="$tresc/wnio:TypAktu='U'">
                                                <input id="du-id-urodzenia" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <input id="du-id-urodzenia" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                            </xsl:otherwise>
                                        </xsl:choose><label for="du-id-urodzenia"><div class="du-sr-only">Proszę o wydanie odpisu aktu</div>urodzenia</label><br/>
                                        <xsl:choose>
                                            <xsl:when test="$tresc/wnio:TypAktu='M'">
                                                <input id="du-id-malzenstwa" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <input id="du-id-malzenstwa" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                            </xsl:otherwise>
                                        </xsl:choose><label for="du-id-malzenstwa"><div class="du-sr-only">Proszę o wydanie odpisu aktu</div>małżeństwa</label><br/>
                                        <xsl:choose>
                                            <xsl:when test="$tresc/wnio:TypAktu='Z'">
                                                <input id="du-id-zgonu" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                            </xsl:when>
                                            <xsl:otherwise>
                                                <input id="du-id-zgonu" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                            </xsl:otherwise>
                                        </xsl:choose><label for="du-id-zgonu"><div class="du-sr-only">Proszę o wydanie odpisu aktu</div>zgonu</label><br/>
    
     </div>
    
      <div class="du-col-2 du-right du-no-mt">Oznaczenie urzędu stanu cywilnego, który sporządził lub przechowuje akt</div><div class="du-col-10 du-left du-border">
    <xsl:value-of select="translate($tresc/wnio:OznaczenieUSC,$smallcase, $uppercase)"/>
    </div>
    <div class="du-col-12 du-no-mt du-no-padding"/>
    
      <div class="du-col-2 du-right du-no-mt">Numer aktu / oznaczenie aktu</div><div class="du-col-10 du-left du-border du-no-mt">
    <xsl:value-of select="translate($tresc/wnio:NrAktu,$smallcase, $uppercase)"/>
    </div>
    <div class="du-col-12 du-no-mt du-no-padding"/>
    
     <div class="du-col-10 du-left du-no-left-column du-line du-no-padding"><h3>Imię i nazwisko osoby, której dotyczy akt</h3></div>
    
      <div class="du-col-2 du-right">Imię (Imiona)</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneOsobyAkt/oso:Imie"/> <xsl:value-of select="$tresc/wnio:DaneOsobyAkt/oso:ImieDrugie"/>
    </div>
    
      <div class="du-col-2 du-right">Nazwisko</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneOsobyAkt/oso:Nazwisko"/>
    </div>
    
      <div class="du-col-2 du-right">Nazwisko rodowe</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneOsobyAkt/wnio:NazwiskoRodowe"/>
    </div>
    <xsl:if test="string-length($tresc//wnio:DaneOsobyAkt//oso:PESEL) &gt; 0">
    	<div class="du-col-2 du-right">Numer PESEL</div>
                  		<div class="du-col-10 du-left du-no-padding">
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 1, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 2, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 3, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 4, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 5, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 6, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 7, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 8, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 9, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 10, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneOsobyAkt//oso:PESEL, 11, 1)"/></div>
    					</div>
    	 </xsl:if>
    
    
     <xsl:if test="$tresc/wnio:TypAktu!='U'">
    
    <div class="du-col-2-tablet du-right">
            Miejsce urodzenia 
          </div>
          <div class="du-col-5 du-left du-no-padding">
    		<div class="du-border du-no-mt du-width-350 du-city-width"> <xsl:value-of select="translate($tresc//wnio:DaneOsobyAkt//wnio:MiejsceUrodzenia, $smallcase, $uppercase)"/></div>
    	    </div>
            <div class="du-col-5 du-right du-no-padding du-right-tablet"><span class="du-p-mobile">Data urodzenia</span>
            <div class="du-border du-no-mt du-city-width">  <xsl:value-of select="$tresc//wnio:DaneOsobyAkt//wnio:DataUrodzenia"/></div>
    	    </div>
      </xsl:if>
    
    
    
    <div class="du-col-2 du-right">Imię ojca</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneOsobyAkt/wnio:ImieOjca"/>
    </div>
    <div class="du-col-2 du-right">Imię matki</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneOsobyAkt/wnio:ImieMatki"/>
    </div>
    <div class="du-col-2 du-right">Nazwisko rodowe matki</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneOsobyAkt/wnio:NazwiskoRodoweMatki"/>
    </div>
    
    <!-- WSPÓŁMAŁŻONEK -->
    <xsl:if test="$tresc/wnio:TypAktu='M'">
    <div class="du-col-10 du-left du-no-left-column du-no-mt du-italic du-line"><h3>Dane współmałżonka</h3></div>
    <div class="du-col-2 du-right">Imię (Imiona) współmałżonka</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneWspolmalzonka/oso:Imie"/> <xsl:value-of select="$tresc/wnio:DaneWspolmalzonka/oso:ImieDrugie"/>
    </div>
    
      <div class="du-col-2 du-right">Nazwisko współmałżonka</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneWspolmalzonka/oso:Nazwisko"/>
    </div>
    
      <div class="du-col-2 du-right">Nazwisko rodowe współmałżonka</div><div class="du-col-10 du-left du-border">
    	<xsl:value-of select="$tresc/wnio:DaneWspolmalzonka/wnio:NazwiskoRodowe"/>
    </div>
    
    <xsl:if test="string-length($tresc//wnio:DaneWspolmalzonka//oso:PESEL) &gt; 0">
    	<div class="du-col-2 du-right">Numer PESEL współmałżonka</div>
                  		<div class="du-col-10 du-left du-no-padding">
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 1, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 2, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 3, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 4, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 5, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 6, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 7, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 8, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 9, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 10, 1)"/></div>
    						<div class="du-border du-no-mt"> <xsl:value-of select="substring($tresc//wnio:DaneWspolmalzonka//oso:PESEL, 11, 1)"/></div>
    					</div>
    	 </xsl:if>
    	 		 
      </xsl:if>
      
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Miejsce i data zdarzenia, którego dotyczy akt</h2></div>
    	 <div class="du-col-2-tablet du-right">
            Miejsce zdarzenia 
          </div>
          <div class="du-col-5 du-left du-no-padding">
          
                           <div class="du-border du-no-mt du-width-350 du-city-width"> <xsl:value-of select="translate($tresc//wnio:DaneOsobyAkt//wnio:MiejsceZdarzenia, $smallcase, $uppercase)"/></div>
                   
                  
          </div>
            <div class="du-col-5 du-right du-no-padding du-right-tablet"><span class="du-p-mobile">Data zdarzenia</span>
    
                    <div class="du-border du-no-mt du-city-width">  <xsl:value-of select="$tresc//wnio:DaneOsobyAkt//wnio:DataZdarzenia"/></div>
    
          </div>
    
    
    
    
    
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Cel ubiegania się o odpis aktu stanu cywilnego</h2> </div>	
    
    <div class="du-col-10 du-left du-no-left-column du-border du-preline du-margin-top-10">
    
                         <xsl:call-template name="substitute">
                                        <xsl:with-param name="string" select="translate($tresc/wnio:Cel,$smallcase, $uppercase)"/>
                                    </xsl:call-template>
    </div>
    
    
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Uzasadnienie wniosku</h2> </div>	
    
    <div class="du-col-10 du-left du-no-left-column du-border du-preline  du-margin-top-10">
    
                  <xsl:call-template name="substitute">
                                        <xsl:with-param name="string" select="translate($tresc/wnio:Uzasadnienie,$smallcase, $uppercase)"/>
                                    </xsl:call-template>
    </div>
    
    
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Sposób odbioru dokumentu</h2> </div>	
    
    
     <div class="du-col-10 du-left du-no-left-column">Chcę otrzymać odpis:<br/><br/>
    
     <xsl:choose>
                                                <xsl:when test="$tresc/wnio:SposobOdbioruAktu='Osobiście na piśmie'">
                                                    <input id="du-id-odbior-osobiscie" type="checkbox" checked="checked" disabled="disabled"/>
                                                    <label for="du-id-odbior-osobiscie"><div class="du-sr-only">Chcę otrzymać odpis</div>w formie pisemnej (za osobistym odbiorem w siedzibie USC)</label>
                                            <div class="du-col-12 du-no-mt"><div class="du-col-2 du-no-mt du-margin-left ">
    										liczba odpisów</div>
    												 <div class="du-col-1 du-border"><xsl:value-of select="$tresc/wnio:LiczbaOdpisow"/>
    												 </div>
                                            </div><br/>
                                                    
                                                </xsl:when>
                                                <xsl:otherwise>
                                                    <input id="du-id-odbior-osobiscie" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                                      <label for="du-id-odbior-osobiscie"><div class="du-sr-only">Chcę otrzymać odpis</div>w formie pisemnej (za osobistym odbiorem w siedzibie USC)</label>
    			                                        <div class="du-col-12 du-no-mt"><div class="du-col-2 du-no-mt du-margin-left ">
    													liczba odpisów</div>
    													<div class="du-col-1 du-border"> </div>
    			                                        </div><br/>
                                                </xsl:otherwise>
                                            </xsl:choose>
                                            <xsl:choose>
                                                <xsl:when test="$tresc/wnio:SposobOdbioruAktu='Pocztą na piśmie'">
                                                    <input id="du-id-odbior-poczta" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                                	<label for="du-id-odbior-poczta"><div class="du-sr-only">Chcę otrzymać odpis</div>w formie pisemnej (pocztą)</label>
    			                                       <div class="du-col-12 du-no-mt"><div class="du-col-2 du-no-mt du-margin-left ">
    												   liczba odpisów </div> 
    												   <div class="du-col-1 du-border"><xsl:value-of select="$tresc/wnio:LiczbaOdpisow"/>
    												   </div>
    			                                       </div><br/>
                                                </xsl:when>
                                                <xsl:otherwise>
                                                    <input id="du-id-odbior-poczta" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                                    <label for="du-id-odbior-poczta"><div class="du-sr-only">Chcę otrzymać odpis</div>w formie pisemnej (pocztą)</label>
    			                                       <div class="du-col-12 du-no-mt"><div class="du-col-2 du-no-mt du-margin-left ">
    												   liczba odpisów </div> 
    												   <div class="du-col-1 du-border"> 
    												   </div>
    			                                       </div><br/>
                                                </xsl:otherwise>
                                            </xsl:choose>
                                            <xsl:choose>
                                                <xsl:when test="$tresc/wnio:SposobOdbioruAktu='Adres skrzynki ePUAP'">
                                                    <input id="du-id-odbior-epuap" class="du-no-mt" type="checkbox" checked="checked" disabled="disabled"/>
                                                </xsl:when>
                                                <xsl:otherwise>
                                                    <input id="du-id-odbior-epuap" class="du-no-mt" type="checkbox" disabled="disabled"/>
                                                </xsl:otherwise>
                                            </xsl:choose><label for="du-id-odbior-epuap"><div class="du-sr-only">Chcę otrzymać odpis</div>na adres skrzynki ePUAP</label><br/>
     
     </div>
     
     
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Oświadczenia</h2></div>
     <div class="du-col-10 du-left du-no-left-column">
     <xsl:if test="$tresc/wnio:OswiadczenieEpuap!=''">
     <xsl:value-of select="$tresc/wnio:OswiadczenieEpuap"/>
      </xsl:if>
      </div>
      
      
    
    
    
     
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Załączniki do wniosku</h2> </div>
    
     <div class="du-col-10 du-left du-no-left-column">
    		<xsl:call-template name="Zalaczniki"/>
    </div>
    
    
     <div class="du-col-12 du-left du-line du-no-mt"><h2>Podpis</h2> </div>
     	 <div class="du-col-10 du-left du-no-left-column">                 
                Dokument podpisz kwalifikowanym podpisem elektronicznym albo podpisem potwierdzonym profilem zaufanym ePUAP.
    			</div>
    	 <div class="du-col-12 du-right">		
     <xsl:call-template name="Podpis"/>
     </div>
                  
    </section>
    </main>
    		</body>
    
    		</html>
        </xsl:template>
    
        <xsl:template name="Zalaczniki">
            <xsl:param name="zalaczniki" select="wnio:TrescDokumentu/str:Zalaczniki"/>
            
            <xsl:if test="count($zalaczniki/str:Zalacznik) &gt; 0">
                
                    <ol>
                        <xsl:for-each select="$zalaczniki/str:Zalacznik[@nazwaPliku != '']">
                            <li class="du-li-margin-left-15">
                                <xsl:if test="@kodowanie='base64'">
                                    <xsl:value-of select="@nazwaPliku"/>
                                    <xsl:if test="string-length(str:OpisZalacznika) &gt; 0"> - </xsl:if>
                                    <xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
                                        <xsl:value-of select="str:OpisZalacznika"/>
                                    </xsl:if>
                                </xsl:if>
                                <xsl:if test="@kodowanie='URI'">
                                    <a href="{DaneZalacznika}">
                                        <xsl:value-of select="@nazwaPliku"/>
                                    </a> 
    								 <xsl:if test="string-length(str:OpisZalacznika) &gt; 0"> - </xsl:if>
                                    <xsl:if test="string-length(str:OpisZalacznika) &gt; 0">
                                        <xsl:value-of select="str:OpisZalacznika"/>
                                    </xsl:if> 
                                </xsl:if>
    
    
                            </li>
                        </xsl:for-each>
                    </ol>
               
            </xsl:if>
        </xsl:template>
    
        
    
    	<xsl:template name="Podpis">
     <section>
    
    			<div class="du-col-12 du-right">
                  <xsl:choose>
    			  
                    <xsl:when test="string-length(//wnio:Dokument/ds:Signature/ds:SignatureValue) &gt; 0">
    								<p class="du-bold">Podpis elektroniczny</p>
    								  <hr/>
                      <xsl:text>Dokument został podpisany, aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu</xsl:text>
                      <xsl:choose>
                        <xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) &gt; 1">
                          <br/>
                          <xsl:text>Daty złożenia podpisu: </xsl:text>
                          <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
                            <xsl:value-of select="."/>
                          </xsl:for-each>
                        </xsl:when>
                        <xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) = 1">
                          <br/>
                          <xsl:text>Data złożenia podpisu: </xsl:text>
                          <xsl:for-each select="//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
                            <xsl:value-of select="."/>
                          </xsl:for-each>
                        </xsl:when>
                        <xsl:when test="0 &gt;= count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime'])">
                        </xsl:when>
                      </xsl:choose>
                    </xsl:when>
                    <xsl:otherwise><br/><div class="du-bold">
                      <p class="du-bold">Dokument nie zawiera podpisu</p>
                    </div><br/></xsl:otherwise>
                  </xsl:choose>
                  <br/>
                
                    
                  </div>
    			  </section>
      </xsl:template>
    
        <xsl:template name="substitute">
            <xsl:param name="string"/>
            <xsl:param name="from" select="'&#xA;'"/>
            <xsl:param name="to">
                <br/>
            </xsl:param>
            <xsl:choose>
                <xsl:when test="contains($string, $from)">
                    <xsl:value-of select="substring-before($string, $from)"/>
                    <xsl:copy-of select="$to"/>
                    <xsl:call-template name="substitute">
                        <xsl:with-param name="string" select="substring-after($string, $from)"/>
                        <xsl:with-param name="from" select="$from"/>
                        <xsl:with-param name="to" select="$to"/>
                    </xsl:call-template>
                </xsl:when>
                <xsl:otherwise>
                    <xsl:value-of select="$string"/>
                </xsl:otherwise>
            </xsl:choose>
        </xsl:template>
    </xsl:stylesheet>