3452
ID | 3452 |
Data | 2016-08-11 |
Symbol | 2016/08/11/3452 |
Instytucja | Ministerstwo Rodziny, Pracy i Polityki Społecznej |
Nazwa | Oświadczenie o terminie i okresie, na jaki został udzielony urlop wychowawczy, oraz o co najmniej sześciomiesięcznym okresie pozostawania w stosunku pracy bezpośrednio przed uzyskaniem prawa do urlopu wychowawczego - ZSR-08 |
Czy Aktualny | 1 |
---|
Ustawy (1)
Pliki
Styl
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:wnio="http://crd.gov.pl/wzor/2016/08/11/3452/" 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/2007/schema-for-xslt20.xsd">
<xsl:template match="/">
<html>
<head>
<title>ZSR-08 - Ministerstwo Rodziny, Pracy i Polityki Społecznej</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
</head>
<body style="text-align: center; font-family: Arial; ">
<div style="position: relative; margin-right: auto; height: 1280px; text-align: left; overflow: hidden; width: 880px; margin-left: auto; background-color: white; margin-bottom: 15px; margin-top: 15px; border: 1px solid black; page-break-after: always; ">
<div style="position: absolute; height: 26px; width: 880px; left: 0px; top: 0px; ">
<div style="position: absolute; height: 24px; text-align: right; color: #000000; width: 545px; font-size: 20px; left: 322px; font-weight: bold; top: 0px; " class="SofLabel formName">ZSR-08</div>
<span style="position: absolute; height: 14px; color: #000000; width: 300px; font-size: 12px; left: 5px; font-weight: normal; top: 8px; " class="SofLabel page"/>
<div style="position: absolute; height: 1px; width: 100%; left: 0px; border-top: 2px solid black; top: 25px; " class="SofHRule">
<span/>
</div>
</div>
<div style="position: absolute; height: 188px; width: 880px; left: 0px; top: 298px; ">
<div style="position: absolute; height: 100%; width: 100%; border-style: solid; background-color: #ebd7ff; border-color: #ebd7ff; left: 0px; border-width: 1px; top: 0px; " class="SofBorderContainer violetAll">
<div style="position: absolute; color: #000000; font-size: 12px; left: 10px; font-weight: bold; top: 8px; " class="SofLabel sectionHeader">DANE OSOBY UBIEGAJĄCEJ SIĘ</div>
<div style="position: absolute; height: 155px; width: 870px; background-color: #ffffff; left: 10px; top: 23px; " class="SofBorderContainer">
<div style="position: absolute; color: #000000; width: 123px; font-size: 12px; left: 3px; top: 5px; " class="SofLabel">01. Numer PESEL (1)</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 265px; font-size: 18px; background-color: white; display: block; left: 3px; border: 1px solid black; top: 18px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneOsobyUbiegajacejSie/wnio:PESEL"/>
</span>
</div>
<div style="position: absolute; color: #000000; width: 856px; font-size: 12px; left: 4px; top: 137px; " class="SofLabel">(1) W przypadku gdy nie nadano numeru PESEL należy podać numer dokumentu potwierdzającego tożsamość.</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 291px; top: 5px; " class="SofLabel">02. Numer dokumentu (1)</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 361px; font-size: 18px; background-color: white; display: block; left: 291px; border: 1px solid black; top: 18px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneOsobyUbiegajacejSie/wnio:NumerDokumentu"/>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 3px; top: 49px; " class="SofLabel">03. Nazwisko</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 865px; font-size: 18px; background-color: white; display: block; left: 3px; border: 1px solid black; top: 62px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneOsobyUbiegajacejSie/wnio:Nazwisko"/>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 3px; top: 93px; " class="SofLabel">04. Imię</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 721px; font-size: 18px; background-color: white; display: block; left: 3px; border: 1px solid black; top: 106px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneOsobyUbiegajacejSie/wnio:Imie"/>
</span>
</div>
</div>
</div>
</div>
<div style="position: absolute; height: 173px; width: 880px; border-style: solid; background-color: #E7E5E6; border-color: #E7E5E6; left: 0px; border-width: 1px; top: 495px; " class="SofBorderContainer lightGrayAll">
<div style="position: absolute; color: #000000; font-size: 12px; left: 10px; font-weight: bold; top: 7px; " class="SofLabel sectionHeader">DANE IDENTYFIKACYJNE DZIECKA, W ZWIĄZKU Z OPIEKĄ, NAD KTÓRYM JEST UDZIELONY URLOP WYCHOWAWCZY</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 13px; top: 68px; " class="SofLabel">Nazwisko</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 865px; font-size: 18px; background-color: white; display: block; left: 13px; border: 1px solid black; top: 81px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjneDziecka/wnio:Nazwisko"/>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 13px; top: 112px; " class="SofLabel">Imię</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 721px; font-size: 18px; background-color: white; display: block; left: 13px; border: 1px solid black; top: 125px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjneDziecka/wnio:Imie"/>
</span>
</div>
<div style="position: absolute; color: #000000; width: 123px; font-size: 12px; left: 13px; top: 24px; " class="SofLabel">Numer PESEL (1)</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 265px; font-size: 18px; background-color: white; display: block; left: 13px; border: 1px solid black; top: 37px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjneDziecka/wnio:PESEL"/>
</span>
</div>
<div style="position: absolute; color: #000000; width: 123px; font-size: 12px; left: 301px; top: 24px; " class="SofLabel">Numer dokumentu (1)</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 361px; font-size: 18px; background-color: white; display: block; left: 301px; border: 1px solid black; top: 37px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjneDziecka/wnio:NumerDokumentu"/>
</span>
</div>
<div style="position: absolute; color: #000000; width: 856px; font-size: 12px; left: 14px; top: 156px; " class="SofLabel">(1) W przypadku gdy nie nadano numeru PESEL należy podać numer dokumentu potwierdzającego tożsamość.</div>
</div>
<div style="position: absolute; color: #000000; font-size: 14px; left: 12px; font-family: arial; font-weight: normal; top: 688px; " class="SofLabel global14Normal">Oświadczam, że w terminie (należy podać okresy od-do):</div>
<div style="position: absolute; height: 54px; color: #000000; overflow: hidden; width: 865px; font-size: 18px; background-color: white; display: block; left: 13px; border: 1px solid black; top: 708px; " class="SofTextArea dotted">
<div style="padding-left:5px ; padding-top:2px; display: block;">
<xsl:call-template name="formatTextArea">
<xsl:with-param name="tekst" select="//wnio:TrescDokumentu/wnio:OkresUdzielonegoUrlopu"/>
<xsl:with-param name="wysokosc" select="54"/>
<xsl:with-param name="szerokosc" select="865"/>
<xsl:with-param name="bazowyRozmiarCzcionki" select="18"/>
<xsl:with-param name="wysokoscLini" select="20"/>
<xsl:with-param name="liczbaPrzejscDoNowychLini" select="0"/>
<xsl:with-param name="tekstPoOstatnimPrzejsciuDoNowejLini" select="//wnio:TrescDokumentu/wnio:OkresUdzielonegoUrlopu"/>
</xsl:call-template>
</div>
</div>
<div style="position: absolute; color: #000000; font-size: 14px; left: 14px; font-family: arial; font-weight: normal; top: 780px; " class="SofLabel global14Normal">został mi udzielony urlop wychowawczy przez:</div>
<div style="position: absolute; height: 141px; width: 100%; border-style: solid; background-color: #E7E5E6; border-color: #E7E5E6; left: 0px; border-width: 1px; top: 803px; " class="SofBorderContainer lightGrayAll">
<div style="position: absolute; height: 14px; color: #000000; width: 860px; font-size: 12px; left: 9px; font-weight: bold; top: 5px; " class="SofLabel sectionHeader">DANE IDENTYFIKACYJNE PRACODAWCY</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 12px; top: 19px; " class="SofLabel">Numer NIP (wpisać bez kresek)</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 241px; font-size: 18px; background-color: white; display: block; left: 12px; border: 1px solid black; top: 32px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjnePracodawcy/wnio:NIP"/>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 12px; top: 63px; " class="SofLabel">Nazwa pełna</div>
<div style="position: absolute; height: 54px; color: #000000; overflow: hidden; width: 865px; font-size: 18px; background-color: white; display: block; left: 12px; border: 1px solid black; top: 76px; " class="SofTextArea">
<div style="padding-left:5px ; padding-top:2px; display: block;">
<xsl:call-template name="formatTextArea">
<xsl:with-param name="tekst" select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjnePracodawcy/wnio:NazwaPelna"/>
<xsl:with-param name="wysokosc" select="54"/>
<xsl:with-param name="szerokosc" select="865"/>
<xsl:with-param name="bazowyRozmiarCzcionki" select="18"/>
<xsl:with-param name="wysokoscLini" select="20"/>
<xsl:with-param name="liczbaPrzejscDoNowychLini" select="0"/>
<xsl:with-param name="tekstPoOstatnimPrzejsciuDoNowejLini" select="//wnio:TrescDokumentu/wnio:DaneIdentyfikacyjnePracodawcy/wnio:NazwaPelna"/>
</xsl:call-template>
</div>
</div>
</div>
<div style="position: absolute; height: 202px; width: 100%; border-style: solid; background-color: #E7E5E6; border-color: #E7E5E6; left: 0px; border-width: 1px; top: 953px; " class="SofBorderContainer lightGrayAll">
<div style="position: absolute; color: #000000; font-size: 12px; left: 9px; font-weight: bold; top: 5px; " class="SofLabel sectionHeader">DANE ADRESOWE PRACODAWCY</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 12px; top: 63px; " class="SofLabel">Kod pocztowy</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 145px; font-size: 18px; background-color: white; display: block; left: 12px; border: 1px solid black; top: 76px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;display: block;">
<xsl:if test="//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:KodPocztowy!= ''">
<xsl:value-of select="substring(//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:KodPocztowy, 1, 2)"/>
-
<xsl:value-of select="substring(//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:KodPocztowy, 3, 4)"/>
</xsl:if>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 180px; top: 63px; " class="SofLabel">Miejscowość</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 673px; font-size: 18px; background-color: white; border-color: #696969; display: block; left: 180px; border: 1px solid black; top: 76px; " class="SofComboBox dotted">
<span style="padding-left: 5px;display: block;line-height:25px;">
<xsl:call-template name="redukcjaCzcionki">
<xsl:with-param name="tekst" select="//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:Miejscowosc"/>
<xsl:with-param name="bazowyRozmiarCzcionki" select="18"/>
<xsl:with-param name="dlugoscPolaWPikselach" select="673"/>
</xsl:call-template>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 12px; top: 18px; " class="SofLabel">Gmina / Dzielnica</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 841px; font-size: 18px; background-color: white; border-color: #696969; display: block; left: 12px; border: 1px solid black; top: 31px; " class="SofComboBox dotted">
<span style="padding-left: 5px;display: block;line-height:25px;">
<xsl:call-template name="redukcjaCzcionki">
<xsl:with-param name="tekst" select="//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:GminaDzielnica"/>
<xsl:with-param name="bazowyRozmiarCzcionki" select="18"/>
<xsl:with-param name="dlugoscPolaWPikselach" select="841"/>
</xsl:call-template>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 12px; top: 107px; " class="SofLabel">Ulica</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 841px; font-size: 18px; background-color: white; border-color: #696969; display: block; left: 12px; border: 1px solid black; top: 120px; " class="SofComboBox dotted">
<span style="padding-left: 5px;display: block;line-height:25px;">
<xsl:call-template name="redukcjaCzcionki">
<xsl:with-param name="tekst" select="//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:Ulica"/>
<xsl:with-param name="bazowyRozmiarCzcionki" select="18"/>
<xsl:with-param name="dlugoscPolaWPikselach" select="841"/>
</xsl:call-template>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 12px; top: 151px; " class="SofLabel">Numer domu</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 169px; font-size: 18px; background-color: white; display: block; left: 12px; border: 1px solid black; top: 164px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:NumerDomu"/>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 12px; left: 204px; top: 151px; " class="SofLabel">Numer lokalu</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 169px; font-size: 18px; background-color: white; display: block; left: 204px; border: 1px solid black; top: 164px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:AdresPracodawcy/wnio:NumerLokalu"/>
</span>
</div>
</div>
<div style="position: absolute; height: 16px; width: 880px; left: 0px; top: 1223px; ">
<div style="position: absolute; height: 14px; text-align: right; color: #000000; width: 300px; font-size: 11px; left: 559px; font-family: verdana; top: 3px; " class="SofLabel footnote">wersja: ZSR-08(1)</div>
<div style="position: absolute; height: 14px; text-align: center; color: #000000; width: 850px; font-size: 11px; left: 10px; font-family: verdana; top: 3px; " class="SofLabel footnote">strona: 1/2</div>
<div style="position: absolute; height: 1px; width: 100%; left: 0px; border-top: 2px solid black; top: 1px; " class="SofHRule">
<span/>
</div>
</div>
<div style="position: absolute; height: 80px; text-align: center; color: #000000; width: 100%; font-size: 16px; left: 0px; font-weight: bold; top: 120px; " class="SofLabel formTitle">
OŚWIADCZENIE
<br/>
O TERMINIE I OKRESIE, NA JAKI ZOSTAŁ UDZIELONY URLOP WYCHOWAWCZY,
<br/>
ORAZ O CO NAJMNIEJ SZEŚCIOMIESIĘCZNYM OKRESIE POZOSTAWANIA W STOSUNKU PRACY
<br/>
BEZPOŚREDNIO PRZED UZYSKANIEM PRAWA DO URLOPU WYCHOWAWCZEGO
</div>
</div>
<div style="position: relative; margin-right: auto; height: 1280px; text-align: left; overflow: hidden; width: 880px; margin-left: auto; background-color: white; margin-bottom: 15px; margin-top: 15px; border: 1px solid black; ">
<div style="position: absolute; height: 26px; width: 880px; left: 0px; top: 0px; ">
<div style="position: absolute; height: 24px; text-align: right; color: #000000; width: 545px; font-size: 20px; left: 322px; font-weight: bold; top: 0px; " class="SofLabel formName">ZSR-08</div>
<span style="position: absolute; height: 14px; color: #000000; width: 300px; font-size: 12px; left: 5px; font-weight: normal; top: 8px; " class="SofLabel page"/>
<div style="position: absolute; height: 1px; width: 100%; left: 0px; border-top: 2px solid black; top: 25px; " class="SofHRule">
<span/>
</div>
</div>
<div style="position: absolute; text-align: justify; color: #000000; width: 856px; font-size: 14px; left: 14px; top: 45px; " class="SofLabel justified14">w związku z opieką nad wyżej wymienionym dzieckiem (patrz sekcja: DANE IDENTYFIKACYJNE CZŁONKA RODZINY (DZIECKA)) oraz, że bezpośrednio przed uzyskaniem prawa do urlopu wychowawczego pozostawałam / pozostawałem w stosunku pracy w okresie</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 49px; font-size: 18px; background-color: white; display: block; left: 13px; border: 1px solid black; top: 82px; " class="SofTextInput">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:OkresPracyPrzedUrlopemWychowawczym/wnio:LiczbaMiesiecy"/>
</span>
</div>
<div style="position: absolute; color: #000000; font-size: 14px; left: 71px; font-family: arial; font-weight: normal; top: 89px; " class="SofLabel global14Normal">- miesięcznym.</div>
<div style="position: absolute; color: #000000; font-style: italic; font-size: 14px; left: 13px; font-family: arial; font-weight: normal; top: 178px; " class="SofLabel global14Italic">Oświadczam, że jestem świadoma/świadomy odpowiedzialności karnej za złożenie fałszywego oświadczenia.</div>
<div style="position: absolute; height: 52px; width: 869px; left: 8px; top: 241px; ">
<div style="position: absolute; height: 52px; width: 100%; background-color: #ffffff; left: 0px; top: 0px; " class="SofBorderContainer">
<div style="position: absolute; height: 14px; color: #000000; width: 84px; font-size: 12px; left: 174px; top: 38px; " class="SofLabel">(Miejscowość)</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 457px; font-size: 18px; background-color: white; display: block; left: 3px; border: 1px solid black; top: 6px; " class="SofTextInput dotted">
<span style="padding-left:5px ;line-height:25px;padding-right: 5px; display: block;">
<xsl:value-of select="//wnio:TrescDokumentu/wnio:Miejscowosc"/>
</span>
</div>
<div style="position: absolute; height: 25px; color: #000000; overflow: hidden; width: 191px; font-size: 18px; background-color: white; border-style: dotted; display: block; left: 469px; border: 1px solid black; top: 6px; " class="SofDateField dotted">
<span style="padding-left:5px ; line-height:25px; display: block;">
<xsl:call-template name="formatDaty">
<xsl:with-param name="wartosc" select="//wnio:TrescDokumentu/wnio:Data"/>
</xsl:call-template>
</span>
<span/>
</div>
<div style="position: absolute; height: 14px; text-align: center; color: #000000; width: 190px; font-size: 12px; left: 455px; top: 38px; " class="SofLabel">(Data: dd / mm / rrrr)</div>
<div style="position: absolute; height: 18px; text-align: center; color: #000000; width: 202px; font-size: 14px; left: 668px; font-family: verdana; font-weight: normal; top: 22px; " class="SofLabel paragraph14Normal"/>
<div style="position: absolute; height: 59px; text-align: center; color: #000000; width: 182px; font-size: 12px; left: 679px; top: 41px; " class="SofLabel"/>
</div>
</div>
<div style="position: absolute; height: 16px; width: 880px; left: 0px; top: 1223px; ">
<div style="position: absolute; height: 14px; text-align: right; color: #000000; width: 300px; font-size: 11px; left: 559px; font-family: verdana; top: 3px; " class="SofLabel footnote">wersja: ZSR-08(1)</div>
<div style="position: absolute; height: 14px; text-align: center; color: #000000; width: 850px; font-size: 11px; left: 10px; font-family: verdana; top: 3px; " class="SofLabel footnote">strona: 2/2</div>
<div style="position: absolute; height: 1px; width: 100%; left: 0px; border-top: 2px solid black; top: 1px; " class="SofHRule">
<span/>
</div>
</div>
</div>
</body>
</html>
</xsl:template>
<xsl:template match="wnio:Informacja1//*">
<xsl:call-template name="Info">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</xsl:template>
<xsl:template match="wnio:Informacja2//*">
<xsl:call-template name="Info">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</xsl:template>
<xsl:template match="wnio:Informacja3//*">
<xsl:call-template name="Info">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</xsl:template>
<xsl:template match="wnio:Informacja4//*">
<xsl:call-template name="Info">
<xsl:with-param name="node" select="."/>
</xsl:call-template>
</xsl:template>
<xsl:template name="Info">
<xsl:choose>
<xsl:when test="name(.) = 'TextFlow'">
<xsl:apply-templates/>
</xsl:when>
<xsl:when test="name(.) = 'br'">
<xsl:choose>
<xsl:when test="name(..) = 'dl'">
<xsl:apply-templates/>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{name(.)}">
<xsl:apply-templates/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:element name="{name(.)}">
<xsl:for-each select="@*">
<xsl:attribute name="{name(.)}">
<xsl:value-of select="."/>
</xsl:attribute>
</xsl:for-each>
<xsl:apply-templates/>
</xsl:element>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="redukcjaCzcionki">
<xsl:param name="tekst"/>
<xsl:param name="bazowyRozmiarCzcionki"/>
<xsl:param name="dlugoscPolaWPikselach"/>
<xsl:variable name="czcionkaPokrywajacaPole">
<!-- (0.6 * wielkosc czcionki w pikselach) średnia szerokość litery (mniej więcej) -->
<xsl:value-of select="$dlugoscPolaWPikselach div (0.6 * string-length($tekst))"/>
</xsl:variable>
<xsl:variable name="docelowyRozmiarCzcionki">
<xsl:choose>
<xsl:when test="$czcionkaPokrywajacaPole < $bazowyRozmiarCzcionki">
<xsl:choose>
<xsl:when test="$czcionkaPokrywajacaPole < 6">6</xsl:when>
<!--6 minimalny rozmiar czcionki -->
<xsl:otherwise>
<xsl:value-of select="ceiling($czcionkaPokrywajacaPole)"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$bazowyRozmiarCzcionki"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<span>
<xsl:attribute name="style">
<xsl:value-of select="concat('font-size:', $docelowyRozmiarCzcionki, 'px')"/>
</xsl:attribute>
<xsl:value-of select="$tekst"/>
</span>
</xsl:template>
<xsl:template name="formatDaty">
<xsl:param name="wartosc"/>
<xsl:if test="$wartosc != ''">
<xsl:value-of select="substring($wartosc, 9, 2)"/>
/
<xsl:value-of select="substring($wartosc, 6, 2)"/>
/
<xsl:value-of select="substring($wartosc, 1, 4)"/>
</xsl:if>
</xsl:template>
<xsl:template name="formatKoduPocztowego">
<xsl:param name="wartosc"/>
<xsl:if test="$wartosc != ''">
<xsl:value-of select="substring($wartosc, 1, 2)"/>
-
<xsl:value-of select="substring($wartosc, 3, 4)"/>
</xsl:if>
</xsl:template>
<xsl:template name="formatTextArea">
<xsl:param name="tekst"/>
<xsl:param name="wysokosc"/>
<xsl:param name="szerokosc"/>
<xsl:param name="bazowyRozmiarCzcionki"/>
<xsl:param name="wysokoscLini"/>
<xsl:param name="liczbaPrzejscDoNowychLini"/>
<xsl:param name="tekstPoOstatnimPrzejsciuDoNowejLini"/>
<xsl:variable name="liczbaPodPierwiastkiem">
<xsl:value-of select="($szerokosc * $wysokosc) div string-length($tekst)"/>
</xsl:variable>
<xsl:variable name="pierwiastek">
<xsl:call-template name="sqrt">
<xsl:with-param name="number" select="$liczbaPodPierwiastkiem"/>
</xsl:call-template>
</xsl:variable>
<xsl:variable name="czcionkaPokrywajacaPole">
<xsl:value-of select="ceiling($pierwiastek)"/>
</xsl:variable>
<xsl:variable name="rozmiarCzcionki">
<xsl:choose>
<xsl:when test="$czcionkaPokrywajacaPole < $bazowyRozmiarCzcionki">
<xsl:choose>
<xsl:when test="$czcionkaPokrywajacaPole < 6">6</xsl:when>
<!--6 minimalny rozmiar czcionki -->
<xsl:otherwise>
<xsl:value-of select="$czcionkaPokrywajacaPole"/>
</xsl:otherwise>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="$bazowyRozmiarCzcionki"/>
</xsl:otherwise>
</xsl:choose>
</xsl:variable>
<div>
<xsl:attribute name="style">
<xsl:choose>
<xsl:when test="($szerokosc * $wysokosc) < (string-length($tekst) * $bazowyRozmiarCzcionki * $bazowyRozmiarCzcionki)">
<xsl:value-of select="concat('font-size:', $rozmiarCzcionki, 'px; word-wrap : break-word;')"/>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="'word-wrap : break-word;'"/>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:value-of select="$tekst"/>
</div>
</xsl:template>
<xsl:template name="sqrt">
<xsl:param name="number" select="0"/>
<xsl:param name="try" select="1"/>
<xsl:param name="iter" select="1"/>
<xsl:param name="maxiter" select="10"/>
<xsl:choose>
<xsl:when test="$try * $try = $number or $iter > $maxiter">
<xsl:value-of select="$try"/>
</xsl:when>
<xsl:otherwise>
<xsl:call-template name="sqrt">
<xsl:with-param name="number" select="$number"/>
<xsl:with-param name="try" select="$try - (($try * $try - $number) div (2 * $try))"/>
<xsl:with-param name="iter" select="$iter + 1"/>
<xsl:with-param name="maxiter" select="$maxiter"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
</xsl:stylesheet>