10457
ID | 10457 |
Data | 2021-03-01 |
Symbol | 2021/03/01/10457 |
Instytucja | Urząd Miasta Oleśnicy |
Nazwa | Wniosek o zmianę imienia i/lub nazwiska |
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/2021/03/01/10457/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/11/16/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/11/16/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/11/16/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/11/16/" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/11/09/" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
<xsl:template match="/">
<xsl:for-each select="wnio:Dokument">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Wniosek o zmianę imienia, nazwiska</title>
</head>
<body>
<div align="center">
<table style="width: 850px; font-family: Arial; font-size: 12px;">
<tbody>
<tr>
<td>
<div style="margin: 0 0 15px 0;">
<table border="0" cellpadding="0" cellspacing="0" style="margin: 0px 0px 3px; padding: 0px; width: 100%; border-collapse: collapse;">
<tbody>
<tr>
<td style="border-right: none; font-weight: normal; text-align: left;" width="50%">
<table border="0" cellpadding="0" cellspacing="0" style="margin: 20px 0px 3px; padding: 0px; width: 100%; border-collapse: collapse; font-size: 12px;">
<tbody>
<tr>
<td colspan="4" style="font-weight: normal; padding: 5px; text-align: left;">Imię i nazwisko wnioskodawcy: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:Imie"/>
</span>
</xsl:if>
</span>
<span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:Nazwisko"/>
</span>
</xsl:if>
</span>
</td>
</tr>
<tr>
<td colspan="2" style="font-weight: normal; padding: 5px; text-align: left;">Ulica:<span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:Ulica"/>
</span>
</xsl:if>
</span>
</td>
<td style="font-weight: normal; padding: 3px; text-align: justify;">Nr domu: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:NumerDomu"/>
</span>
</xsl:if>
</span>
</td>
<td style="font-weight: normal; padding: 3px; text-align: justify;">Nr lokalu: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:NumerLokalu"/>
</span>
</xsl:if>
</span>
</td>
</tr>
<tr>
<td colspan="2" style="font-weight: normal; padding: 5px; text-align: left;" width="50%">Miejscowość: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:Miejscowosc"/>
</span>
</xsl:if>
</span>
</td>
<td colspan="2" style="font-weight: normal; padding: 5px; text-align: justify;">Kod pocztowy:<span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DaneWnioskodawcy/wnio:KodPocztowy"/>
</span>
</xsl:if>
</span>
</td>
</tr>
</tbody>
</table>
<div style="padding-top: 20px; font-size:12px;">
<span>
<xsl:if test="true()">
<span>
<xsl:choose>
<xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:AdresKorespondencyjny/wnio:CzyJest)),' '), ' 1 ' )">
<span>[<b>X</b>]</span>
</xsl:when>
<xsl:otherwise>
<span>[ ]</span>
</xsl:otherwise>
</xsl:choose>
<label>
<span> adres korespondencyjny (jeśli jest inny niż adres zamieszkania) </span>
</label>
</span>
</xsl:if>
</span>
</div>
<xsl:for-each select="wnio:TrescDokumentu/wnio:AdresKorespondencyjny/wnio:Sekcja">
<xsl:if test="(../wnio:CzyJest="1")">
<table border="0" cellpadding="0" cellspacing="0" style="padding: 0px; width: 100%; border-collapse: collapse; background-color: #ffffff; font-size: 12px;">
<tbody>
<tr>
<td colspan="2" style="font-weight: normal; padding: 5px; text-align: left;">Ulica: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DanePelnomocnika/wnio:ulica"/>
</span>
</xsl:if>
</span>
</td>
<td style="font-weight: normal; padding: 3px; text-align: justify;">Nr domu: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DanePelnomocnika/wnio:NumerDomu"/>
</span>
</xsl:if>
</span>
</td>
<td style="font-weight: normal; padding: 3px; text-align: justify;">Nr lokalu: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DanePelnomocnika/wnio:NumerLokalu"/>
</span>
</xsl:if>
</span>
</td>
</tr>
<tr>
<td colspan="2" style="ont-weight: normal; padding: 5px; text-align: left;" width="50%">Miejscowość: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:Miejscowosc"/>
</span>
</xsl:if>
</span>
</td>
<td colspan="2" style="font-weight: normal; padding: 5px; text-align: justify;">Kod pocztowy: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:DanePelnomocnika/wnio:KodPocztowy"/>
</span>
</xsl:if>
</span>
</td>
</tr>
</tbody>
</table>
</xsl:if>
</xsl:for-each>
</td>
<td style="font-weight: normal; padding: 10px; text-align: left; font-size: 12px;">
<p align="right">Oleśnica, dnia <xsl:if test="true()">
<span style="font-weight:bold;"><xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:deklaracjaZDnia"/></span>
</xsl:if>
</p>
<br/>
<br/>
<br/> <br/>
<br/>
<div align="right" style="font-weight: normal; font-size: 18px;">
<strong>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:DaneDokumentu/str:Adresaci/meta:Podmiot/inst:Instytucja/inst:NazwaInstytucji"/>
</span>
</xsl:if>
</strong>
<br/>w Oleśnicy</div>
</td>
</tr>
</tbody>
</table>
</div>
<div style="font-size: 18px; font-weight: bold; text-align: center; margin: 20px 0px 30px 0px;">WNIOSEK<br/>o zmianę imienia, nazwiska</div>
<table cellpadding="0" cellspacing="0" style="margin: 0px 0px 3px; padding: 0; width: 100%; border-collapse: collapse; margin-top: 30px;">
<tbody>
<tr>
<td colspan="2" style="text-align: justify; background-color: #ffffff; font-size: 12px;">
<div style="font-weight: normal;">Wnoszę o: <em>(właściwe wypełnić)</em>
<div style="padding: 6px;">- zmianę mojego imienia / imion z <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:ImieniaZ"/>
</span>
</xsl:if>
</span> na <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:ImieniaNa"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">- zmianę mojego nazwiska z <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:NazwiskaZ"/>
</span>
</xsl:if>
</span> na <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:NazwiskaNa"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">- zmianę mojego nazwiska rodowego z <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:RodowegoZ"/>
</span>
</xsl:if>
</span> na <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:RodowegoNa"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">- zmianę imienia / imion dziecka z <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:ImieniaDzieckaZ"/>
</span>
</xsl:if>
</span> na <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:ImieniaDzieckaNa"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">- zmianę nazwiska dziecka z <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:NazwiskaDzieckaZ"/>
</span>
</xsl:if>
</span> na <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:NazwiskaDzieckaNa"/>
</span>
</xsl:if>
</span>
</div>
</div>
<div style="padding: 15px 0 15px 0; font-size: 11px;">
<strong>Przed wypełnieniem przeczytaj:</strong>
<br/> Zmiany imienia lub nazwiska można dokonać <span style="text-decoration: underline;">wyłącznie z ważnych powodów</span>, w szczególności gdy wnioskodawca nosi nazwisko: ośmieszające albo nie licujące z godnością człowieka. Wniosek podlega uwzględnieniu także, gdy pragnie zmienić swoje nazwisko lub imię, którego używa, które zostało bezprawnie zmienione, na imię i nazwisko noszone zgodnie z przepisami prawa państwa, którego obywatelstwo również się posiada. Wniosku o zmianę nazwiska nie uwzględnia się gdy wnioskodawca ubiega się o zmianę nazwiska na historyczne, wsławione w dziedzinie kultury i nauki, działalności politycznej, społecznej albo wojskowej. Chyba, że posiada członków rodziny o tym nazwisku. Zmiana imienia i nazwiska może być orzeczona tylko w stosunku do obywatela polskiego lub osoby, która nie posiada żadnej przynależności państwowej i ma miejsce zamieszkania w Polsce; cudzoziemców, którzy uzyskali w Polsce status uchodźcy wyłącznie ze szczególnie ważnych powodów związanych z zagrożeniem jego prawa do życia, zdrowia, wolności lub bezpieczeństwa.<br/> Zmiana nazwiska obojga rodziców rozciąga się na małoletnie dzieci i dzieci, które zrodzą się z tego małżeństwa. Jeżeli nazwisko zmienia tylko jeden z rodziców, drugi z rodziców musi wyrazić zgodę na zmianę nazwiska dziecka przed kierownikiem USC lub w formie pisemnej z podpisem notarialnie poświadczonym. Jeżeli dziecko ukończyło 13 lat, potrzebna jest również jego osobista zgoda złożona przed kierownikiem USC lub w formie pisemnej z podpisem notarialnie poświadczonym. Jeżeli zmiana nazwiska lub imienia ma dotyczyć tylko małoletniego dziecka, z wnioskiem występuje przedstawiciel ustawowy. Wymagana jest osobista zgoda drugiego z rodziców wyrażona przed kierownikiem USC lub w formie pisemnej z podpisem notarialnie poświadczonym. W razie braku porozumienia między nimi, każde z rodziców może zwrócić się o zgodę do sądu powszechnego, wówczas wraz z wnioskiem składa się oryginał prawomocnego postanowienia sądowego.</div>
<br/>
<div>
<strong>Uzasadnienie:</strong>
</div>
<div>
<span type="text" style="font-weight: bold;">
<xsl:call-template name="substitute">
<xsl:with-param name="string" select="wnio:TrescDokumentu/wnio:Wniosek/wnio:Uzasadnienie"/>
</xsl:call-template>
</span>
</div>
<div style="padding: 15px 0 15px 0;">
<strong>Dane osoby, której zmiana dotyczy:</strong>
<div style="padding: 6px;">imiona: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:DotyczyImie"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">nazwisko: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:DotyczyNazwisko"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">nazwisko rodowe: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:DotyczyNazwiskoRodowe"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">wskazanie kierownika urzędu stanu cywilnego, który sporządził akt urodzenia: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:DotyczyKierownikAktMalzenstwa"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">wskazanie kierownika urzędu stanu cywilnego, który sporządził akt małżeństwa: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:DotyczyKierownikAktUrodzenia"/>
</span>
</xsl:if>
</span>
</div>
<div style="padding: 6px;">numer PESEL: <span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:DotyczyPesel"/>
</span>
</xsl:if>
</span>
</div>
</div>
<div style="padding: 5px 0 15px 0;">
<strong>tryb odbioru decyzji:</strong>
<div>
<span>
<xsl:if test="true()">
<span>
<xsl:choose>
<xsl:when test="normalize-space(wnio:TrescDokumentu/wnio:Wniosek/wnio:TrybOdbioru) = normalize-space(' 1 ')">
<span>[<b>X</b>]</span>
</xsl:when>
<xsl:otherwise>
<span>[ ]</span>
</xsl:otherwise>
</xsl:choose>
<label>
<span>osobiście </span>
</label>
</span>
<br/>
<span>
<xsl:choose>
<xsl:when test="normalize-space(wnio:TrescDokumentu/wnio:Wniosek/wnio:TrybOdbioru) = normalize-space(' 2 ')">
<span>[<b>X</b>]</span>
</xsl:when>
<xsl:otherwise>
<span>[ ]</span>
</xsl:otherwise>
</xsl:choose>
<label>
<span>pocztą </span>
</label>
</span>
<br/>
<span>
<xsl:choose>
<xsl:when test="normalize-space(wnio:TrescDokumentu/wnio:Wniosek/wnio:TrybOdbioru) = normalize-space(' 3 ')">
<span>[<b>X</b>]</span>
</xsl:when>
<xsl:otherwise>
<span>[ ]</span>
</xsl:otherwise>
</xsl:choose>
<label>
<span>na skrzynkę e-Puap </span>
</label>
</span>
</xsl:if>
</span>
</div>
</div>
<div style="padding: 15px 0 5px 0;">
<strong>Oświadczenie:</strong>
<br/> Oświadczam, że w tej samej sprawie
<span>
<xsl:if test="true()">
<span>
<xsl:if test="wnio:TrescDokumentu/wnio:Wniosek/wnio:OnOna = 1">nie składałem</xsl:if>
<xsl:if test="wnio:TrescDokumentu/wnio:Wniosek/wnio:OnOna = 2">nie składałam</xsl:if>
</span>
</xsl:if>
</span> wcześniej wniosku do innego kierownika urzędu stanu cywilnego lub nie została wydana już decyzja odmowna.<br/> Wiadomo mi, że dzień złożenia wniosku jest dniem wszczęcia przez Kierownika USC w Oleśnicy postępowania administracyjnego w przedmiotowej sprawie.<br/>
<strong>
<span>
<xsl:if test="true()">
<span>
<xsl:choose>
<xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:Wniosek/wnio:Oswiadczenie)),' '), ' 1 ' )">
<span>[<b>X</b>]</span>
</xsl:when>
<xsl:otherwise>
<span>[ ]</span>
</xsl:otherwise>
</xsl:choose>
<label>
<span> Oświadczam, że</span>
</label>
</span>
</xsl:if>
</span>
<span>
<xsl:if test="true()">
<span type="text" style="font-weight: bold;">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:OswiadczenieOnOna"/>
</span>
</xsl:if>
</span> się z treścią klauzuli informacyjnej dot. przetwarzania danych osobowych w związku z obowiązkiem ciążącym na administratorze.</strong>
</div>
<div style="padding: 5px 0 15px 0;">
<span>
<xsl:if test="true()">
<span>
<xsl:choose>
<xsl:when test="contains(concat(concat(' ', normalize-space(wnio:TrescDokumentu/wnio:Wniosek/wnio:ZgodaPrzetwarzanie)),' '), ' 1 ' )">
<span>[<b>X</b>]</span>
</xsl:when>
<xsl:otherwise>
<span>[ ]</span>
</xsl:otherwise>
</xsl:choose>
<label>
<span> Wyrażam zgodę na przetwarzanie numeru telefonu / adresu email w celu szybkiego kontaktu. </span>
</label>
</span>
</xsl:if>
</span>
</div>
<div style="text-align: left; font-weight: normal; margin: 30px 0 30px 0;">Informacja o podpisie elektronicznym:
<table align="center">
<tr>
<td style="width: 340px;font-family: Arial; font-size: 12px;">
<p align="center" style="text-align: center;font-size: 10px;font-family: Verdana;line-height: 20px;">
<xsl:choose>
<xsl:when test="string-length(//wnio:Dokument/ds:Signature/ds:SignatureValue) > 0">
<xsl:text>Dokument został podpisany, aby go zweryfikować należy użyć oprogramowania do weryfikacji podpisu</xsl:text>
<xsl:choose>
<xsl:when test="count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) > 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 >= count(//wnio:Dokument/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime'])">
</xsl:when>
</xsl:choose>
</xsl:when>
<xsl:otherwise>
<xsl:text>Dokument nie zawiera podpisu</xsl:text>
</xsl:otherwise>
</xsl:choose>
<br/>
</p>
</td>
</tr>
</table>
</div>
<div style="text-align: left; font-weight: bold;">Załącznik:</div>
<div>
<span type="text">
<xsl:value-of select="wnio:TrescDokumentu/wnio:Wniosek/wnio:OpisZalacznika"/>
</span><br/>
<xsl:for-each select="wnio:TrescDokumentu/wnio:Zalaczniki/wnio:ZalacznikiPotwierdzenieOplaty/str:Zalaczniki/str:Zalacznik">
<xsl:if test="true()"> <span>
<xsl:value-of select="str:DaneZalacznika/../@nazwaPliku"/>
</span>
</xsl:if>
</xsl:for-each>
<xsl:if test="wnio:TrescDokumentu/wnio:Zalaczniki/wnio:ZalacznikiPotwierdzenieOplaty/str:Zalaczniki/str:Zalacznik/str:DaneZalacznika = ''">
<span style="font-weight: bold;">
BRAK ZAŁĄCZNIKA
</span>
</xsl:if>
</div>
<br/>
<br/>
<div>
<xsl:if test="wnio:TrescDokumentu/wnio:Zalaczniki/wnio:ZalacznikiDodatkowe/str:Zalaczniki/str:Zalacznik/str:DaneZalacznika != ''">
<span style="font-weight: bold;">
<h2 style="font-size: 12px;font-family:Arial;line-height: 20px;padding: 0px;margin:0px; font-weight: bold;">Załączniki nie wymagane przepisami:</h2>
</span>
</xsl:if>
</div>
<div>
<xsl:call-template name="Zalaczniki"/>
</div>
</td>
</tr>
<tr>
<td colspan="2" style="padding: 20 0 0 0; text-align: justify; background-color: #ffffff; font-size: 12px;">
<div style="text-align: left; font-weight: bold; margin-top: 15px;">Klauzula informacyjna:</div>
<div style="text-align: left; font-weight: normal; margin-top: 15px;text-align: justify">
<xsl:call-template name="replace">
<xsl:with-param name="string" select="wnio:TrescDokumentu/wnio:Klauzula"/>
</xsl:call-template>
</div>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>
</xsl:for-each>
</xsl:template>
<xsl:template name="substitute">
<xsl:param name="string"/>
<xsl:param name="from" select="'
'"/>
<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:template name="Zalaczniki">
<xsl:param name="zalaczniki" select="wnio:TrescDokumentu/wnio:Zalaczniki/wnio:ZalacznikiDodatkowe/str:Zalaczniki"/>
<xsl:if test="count($zalaczniki/str:Zalacznik) > 0">
<div style="text-align: left;">
<ol style="padding-top: 0px;margin-top: 0px;">
<xsl:for-each select="$zalaczniki/str:Zalacznik[@nazwaPliku != '']">
<li>
<xsl:if test="@kodowanie='base64'">
<xsl:value-of select="@nazwaPliku"/>
<xsl:if test="string-length(str:OpisZalacznika) > 0"> - </xsl:if>
<xsl:if test="string-length(str:OpisZalacznika) > 0">
<xsl:value-of select="str:OpisZalacznika"/>
</xsl:if>
</xsl:if>
<xsl:if test="@kodowanie='URI'">
<a href="{str:DaneZalacznika}">
<xsl:value-of select="@nazwaPliku"/>
</a>
<xsl:if test="string-length(str:OpisZalacznika) > 0">
(wartość skrótu w chwili załączania:
<xsl:value-of select="str:OpisZalacznika"/>)
</xsl:if>
</xsl:if>
</li>
</xsl:for-each>
</ol>
</div>
</xsl:if>
</xsl:template>
<xsl:template name="replace">
<xsl:param name="string"/>
<xsl:if test="contains($string, '^')">
<xsl:value-of select="substring-before($string,'^')"/>
<ol>
<xsl:call-template name="replace">
<xsl:with-param name="string" select="substring-after($string,'^')"/>
</xsl:call-template>
</ol>
</xsl:if>
<xsl:if test="(string-length(substring-before($string, '$')) < string-length(substring-before($string, '|')) and contains($string, '$') and not(contains($string, '^')))">
<li>
<xsl:value-of select="substring-before($string,'$')"/>
</li>
<xsl:call-template name="replace">
<xsl:with-param name="string" select="substring-after($string,'$')"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="string-length(substring-before($string, '$')) > string-length(substring-before($string, '|')) and contains($string, '|') and not(contains($string, '^'))">
<xsl:choose>
<xsl:when test="string-length(substring-before($string, '|')) > string-length(substring-before($string, '!!'))">
<div style="padding-left:450px;">
<xsl:value-of select="substring-before($string,'!!')"/>
</div>
<xsl:call-template name="replace">
<xsl:with-param name="string" select="substring-after($string,'!!')"/>
</xsl:call-template>
</xsl:when>
<xsl:otherwise>
<xsl:value-of select="substring-before($string,'|')"/>
<br/>
<xsl:call-template name="replace">
<xsl:with-param name="string" select="substring-after($string,'|')"/>
</xsl:call-template>
</xsl:otherwise>
</xsl:choose>
</xsl:if>
</xsl:template>
</xsl:stylesheet>