197
ID | 197 |
Data | 2009-10-28 |
Symbol | 2009/10/28/197 |
Instytucja | Ministerstwo Spraw Wewnętrznych i Administracji |
Nazwa | Decyzja administracyjna |
Czy Aktualny | 0 |
---|
Ustawy (1)
Pliki
Styl
<?xml version="1.0" encoding="UTF-8"?><xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" xmlns:adr="http://crd.gov.pl/xml/schematy/adres/2009/03/06/" xmlns:oso="http://crd.gov.pl/xml/schematy/osoba/2009/03/06/" xmlns:inst="http://crd.gov.pl/xml/schematy/instytucja/2009/03/06/" xmlns:meta="http://crd.gov.pl/xml/schematy/meta/2009/03/06/" xmlns:str="http://crd.gov.pl/xml/schematy/struktura/2009/03/06/" xmlns:wnio="http://crd.gov.pl/wzor/2009/10/28/197/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
<xsl:output method="html" encoding="utf-8" indent="yes"/>
<xsl:template match="/">
<xsl:apply-templates select="wnio:Decyzja"/>
</xsl:template>
<xsl:template match="wnio:Decyzja">
<xsl:param name="tresc" select="wnio:TrescDecyzji"/>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=unicode"/>
<style type="text/css">
.body
{
text-align: justify;
font-size: 11px;
font-family: Verdana;
line-height: 25px;
}
</style>
</head>
<body class="body" style="text-align: justify;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:call-template name="NaglowekStandard"/>
<p align="center" style="text-align: center;font-size: 11px;font-family: Verdana;line-height: 25px;padding-top: 30px;">
<span style="font-weight: bold;font-size: 13px;">
DECYZJA
</span>
</p>
<br/>
<p style="width: 100%;text-align: justify;text-indent: 25px;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:value-of select="$tresc/wnio:Decyzja/wnio:PodstawaPrawna"/>
<xsl:value-of select="' '"/>
<xsl:value-of select="$tresc/wnio:Decyzja/wnio:Rozstrzygniecie"/>
</p>
<p align="center" style="text-align: center;font-size: 11px;font-family: Verdana;line-height: 25px;padding-top: 15px;">
<span style="font-weight: bold;font-size: 13px;">
UZASADNIENIE
</span>
</p>
<br/>
<p style="width: 100%;text-align: justify;text-indent: 25px;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:value-of select="$tresc/wnio:Uzasadnienie"/>
</p>
<p align="center" style="text-align: center;font-size: 11px;font-family: Verdana;line-height: 25px;padding-top: 15px;">
<span style="font-weight: bold;font-size: 13px;">
POUCZENIE
</span>
</p>
<br/>
<p style="width: 100%;text-align: justify;text-indent: 25px;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:value-of select="$tresc/wnio:Pouczenie"/>
</p>
<xsl:call-template name="Zalaczniki"/>
<xsl:call-template name="InformacjeDodatkowe"/>
<xsl:call-template name="DoWiadomosci"/>
<xsl:call-template name="Upowaznienie"/>
<xsl:call-template name="Podpis"/>
</body>
</html>
</xsl:template>
<xsl:template name="NaglowekStandard">
<p align="right" style="text-align: right;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:call-template name="MiejscowoscData"/>
</p>
<p align="left" style="text-align: left;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:for-each select="wnio:DaneDecyzji/wnio:Nadawcy/inst:Instytucja">
<xsl:call-template name="PodmiotInstytucja">
<xsl:with-param name="instytucja" select="."/>
<xsl:with-param name="inline" select="'false'"/>
</xsl:call-template>
</xsl:for-each>
</p>
<p align="right" style="text-align: right;font-size: 11px;font-family: Verdana;line-height: 25px;">
<table style="float: right;">
<tr>
<td style="width: 280px;">
<p align="left" style="text-align: left;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:call-template name="Podmioty">
<xsl:with-param name="podmiot" select="wnio:DaneDecyzji/str:Adresaci"/>
</xsl:call-template>
</p>
</td>
</tr>
</table>
</p>
<xsl:if test="string-length(wnio:DaneDecyzji/str:Naglowek/meta:Identyfikator/meta:Wartosc) > 0">
<p align="left" style="text-align: left;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:value-of select="wnio:DaneDecyzji/str:Naglowek/meta:Identyfikator/meta:Wartosc"/>
</p>
</xsl:if>
<div style="clear: both;"/>
</xsl:template>
<xsl:template name="Zalaczniki">
<xsl:param name="zalaczniki" select="wnio:TrescDecyzji/str:Zalaczniki"/>
<xsl:if test="count($zalaczniki/str:Zalacznik) > 0">
<p style="font-size: 11px;font-family: Verdana;line-height: 25px;">Załączniki:</p>
<ol>
<xsl:for-each select="$zalaczniki/str:Zalacznik">
<li>
<xsl:if test="string-length(str:OpisZalacznika) > 0">
<xsl:value-of select="str:OpisZalacznika"/>
</xsl:if>
<xsl:if test="string-length(@nazwaPliku) > 0">
<xsl:if test="string-length(str:OpisZalacznika) > 0"> - </xsl:if>
<xsl:value-of select="@nazwaPliku"/>
</xsl:if>
</li>
</xsl:for-each>
</ol>
</xsl:if>
</xsl:template>
<xsl:template name="MiejscowoscData">
<xsl:param name="miejscowosc" select="wnio:TrescDecyzji/wnio:MiejscowoscDecyzji"/>
<xsl:param name="data" select="wnio:DaneDecyzji/meta:Data[@typDaty='stworzony']/meta:Czas"/>
<xsl:value-of select="$miejscowosc"/>,
<xsl:value-of select="' '"/>
<xsl:value-of select="$data"/>
</xsl:template>
<xsl:template name="PodmiotIdentyfikatory">
<xsl:param name="id" select="oso:IdOsoby"/>
<xsl:param name="inline" select="'false'"/>
<xsl:if test="$id/oso:PESEL">
PESEL:
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/oso:PESEL"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$id/oso:NIP">
NIP:
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/oso:NIP"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$id/oso:InnyIdentyfikator">
<xsl:value-of select="$id/oso:InnyIdentyfikator/oso:TypIdentyfikatora"/>:
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/oso:InnyIdentyfikator/oso:WartoscIdentyfikatora"/>
</xsl:if>
<xsl:if test="$id/inst:KRS">
KRS:
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/inst:KRS"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$id/inst:NIP">
NIP:
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/inst:NIP"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$id/inst:REGON">
REGON:
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/inst:REGON"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$id/inst:InnyIdentyfikator">
<xsl:value-of select="$id/inst:InnyIdentyfikator/inst:TypIdentyfikatora"/>
<xsl:value-of select="' '"/>
<xsl:value-of select="$id/inst:InnyIdentyfikator/inst:WartoscIdentyfikatora"/>
</xsl:if>
</xsl:template>
<xsl:template name="PodmiotOsoba">
<xsl:param name="osoba" select="wnio:DaneDecyzji/str:Nadawcy/meta:Podmiot/oso:Osoba"/>
<xsl:param name="inline" select="'false'"/>
<xsl:value-of select="$osoba/oso:Imie"/>
<xsl:value-of select="' '"/>
<xsl:value-of select="$osoba/oso:Nazwisko"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
<xsl:if test="count($osoba/adr:Adres) > 0">
<xsl:call-template name="Adres">
<xsl:with-param name="adres" select="$osoba/adr:Adres"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="count($osoba/oso:IdOsoby) > 0">
<xsl:call-template name="PodmiotIdentyfikatory">
<xsl:with-param name="id" select="$osoba/oso:IdOsoby"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="PodmiotInstytucja">
<xsl:param name="instytucja" select="wnio:DaneDecyzji/str:Adresaci/meta:Podmiot/inst:Instytucja"/>
<xsl:param name="inline" select="'false'"/>
<xsl:if test="string-length($instytucja/inst:NazwaInstytucji) > 0">
<xsl:value-of select="$instytucja/inst:NazwaInstytucji"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$instytucja/inst:Jednostka">
<xsl:call-template name="PodmiotJednostka">
<xsl:with-param name="jednostka" select="$instytucja/inst:Jednostka"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="count($instytucja/adr:Adres) > 0">
<xsl:call-template name="Adres">
<xsl:with-param name="adres" select="$instytucja/adr:Adres"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="count($instytucja/inst:IdInstytucji) > 0">
<xsl:call-template name="PodmiotIdentyfikatory">
<xsl:with-param name="id" select="$instytucja/inst:IdInstytucji"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="Podmioty">
<xsl:param name="podmiot" select="wnio:DaneDecyzji/str:Adresaci"/>
<xsl:param name="inline" select="'false'"/>
<xsl:for-each select="$podmiot/meta:Podmiot">
<xsl:if test="oso:Osoba">
<xsl:call-template name="PodmiotOsoba">
<xsl:with-param name="osoba" select="oso:Osoba"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="inst:Instytucja">
<xsl:call-template name="PodmiotInstytucja">
<xsl:with-param name="instytucja" select="inst:Instytucja"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="PodmiotJednostka">
<xsl:param name="jednostka"/>
<xsl:param name="inline"/>
<xsl:if test="string-length($jednostka/inst:NazwaInstytucji) > 0">
<xsl:value-of select="$jednostka/inst:NazwaInstytucji"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="$jednostka/inst:Jednostka">
<xsl:call-template name="PodmiotJednostka">
<xsl:with-param name="jednostka" select="$jednostka/inst:Jednostka"/>
<xsl:with-param name="inline" select="$inline"/>
</xsl:call-template>
</xsl:if>
</xsl:template>
<xsl:template name="Adres">
<xsl:param name="adres"/>
<xsl:param name="inline" select="'false'"/>
<xsl:if test="string-length($adres/adr:KodPocztowy) > 0 or string-length($adres/adr:Miejscowosc) > 0">
<xsl:if test="string-length($adres/adr:KodPocztowy) > 0">
<xsl:value-of select="$adres/adr:KodPocztowy"/>
<xsl:value-of select="' '"/>
</xsl:if>
<xsl:value-of select="$adres/adr:Miejscowosc"/>
<xsl:call-template name="InLine">
<xsl:with-param name="value" select="$inline"/>
</xsl:call-template>
</xsl:if>
<xsl:if test="string-length($adres/adr:Ulica) > 0">
<xsl:value-of select="$adres/adr:Ulica"/>
<xsl:value-of select="' '"/>
<xsl:value-of select="$adres/adr:Budynek"/>
<xsl:if test="string-length($adres/adr:Lokal) > 0">
<xsl:value-of select="' '"/>/<xsl:value-of select="' '"/>
<xsl:value-of select="$adres/adr:Lokal"/>
</xsl:if>
</xsl:if>
</xsl:template>
<xsl:template name="InLine">
<xsl:param name="value" select="'true'"/>
<xsl:choose>
<xsl:when test="$value='false'">
<br/>
</xsl:when>
<xsl:otherwise>, </xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template name="InformacjeDodatkowe">
<xsl:param name="informacje" select="wnio:TrescDecyzji/wnio:Informacje"/>
<xsl:for-each select="$informacje/wnio:Informacja">
<xsl:if test="string-length(.) > 0">
<p style="text-align: justify;font-size: 11px;font-family: Verdana;line-height: 25px;">
<xsl:value-of select="."/>
</p>
</xsl:if>
</xsl:for-each>
</xsl:template>
<xsl:template name="DoWiadomosci">
<xsl:param name="dowiadomosci" select="wnio:TrescDecyzji/wnio:DoWiadomosci"/>
<xsl:if test="count($dowiadomosci/meta:Podmiot) > 0">
<p style="font-size: 11px;font-family: Verdana;line-height: 25px;margin: 0px;padding:0px">Do wiadomości:</p>
<br/>
<ol>
<xsl:for-each select="$dowiadomosci/meta:Podmiot">
<li>
<xsl:choose>
<xsl:when test="inst:Instytucja">
<xsl:call-template name="PodmiotInstytucja">
<xsl:with-param name="instytucja" select="inst:Instytucja"/>
<xsl:with-param name="inline" select="'true'"/>
</xsl:call-template>
</xsl:when>
<xsl:when test="oso:Osoba">
<xsl:call-template name="PodmiotOsoba">
<xsl:with-param name="osoba" select="oso:Osoba"/>
<xsl:with-param name="inline" select="'true'"/>
</xsl:call-template>
</xsl:when>
</xsl:choose>
</li>
</xsl:for-each>
</ol>
</xsl:if>
</xsl:template>
<xsl:template name="Upowaznienie">
<xsl:param name="upo" select="wnio:TrescDecyzji/wnio:Podpis"/>
<p align="right" style="text-align: right;font-size: 10px;font-family: Verdana;line-height: 25px;">
<table style="float: right;">
<tr>
<td style="width: 340px;">
<p align="center" style="text-align: center;font-size: 10px;font-family: Verdana;line-height: 25px;">
Z upoważnienia
<xsl:value-of select="' '"/>
<xsl:value-of select="$upo/wnio:ZUpowaznienia"/>
<br/>
<xsl:value-of select="$upo/oso:Imie"/>
<xsl:for-each select="$upo/oso:ImieDrugie">
<xsl:value-of select="' '"/>
<xsl:value-of select="."/>
</xsl:for-each>
<xsl:for-each select="$upo/oso:Nazwisko">
<xsl:value-of select="' '"/>
<xsl:value-of select="."/>
</xsl:for-each>
<br/>
<xsl:value-of select="$upo/wnio:Stanowisko"/>
</p>
</td>
</tr>
</table>
<div style="clear: both;"/>
</p>
</xsl:template>
<xsl:template name="Podpis">
<p align="right" style="text-align: right;font-size: 10px;font-family: Verdana;line-height: 25px;">
<table style="float: right;">
<tr>
<td style="width: 340px;">
<p align="center" style="text-align: center;font-size: 10px;font-family: Verdana;line-height: 25px;">
<xsl:choose>
<xsl:when test="string-length(//wnio:Decyzja/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:Decyzja/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) > 1">
<br/>
<xsl:text>Daty złożenia podpisu: </xsl:text>
<xsl:for-each select="//wnio:Decyzja/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:when>
<xsl:when test="count(//wnio:Decyzja/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']) = 1">
<br/>
<xsl:text>Data złożenia podpisu: </xsl:text>
<xsl:for-each select="//wnio:Decyzja/ds:Signature/ds:Object/descendant::*[local-name() = 'SigningTime']">
<xsl:value-of select="."/>
</xsl:for-each>
</xsl:when>
<xsl:when test="0 >= count(//wnio:Decyzja/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/>
<span style="font-size: 7pt;font-weight: bold;">
Podpis osoby zgłaszającej
</span>
</p>
</td>
</tr>
</table>
</p>
<div style="clear: both;"/>
</xsl:template>
</xsl:stylesheet>