<?xml version="1.0" encoding="utf-8"?><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:prevr="http://edavki.durs.si/Documents/Schemas/VIES_PrevR_1.xsd" xmlns:form="http://tempuri.org/Forms" xmlns:incl="urn:hermes-softlab-com-durs-include" xmlns:edp="http://edavki.durs.si/Documents/Schemas/EDP-Common-1.xsd" xmlns:loc="urn:hermes-softlab-com-durs-localize"><xsl:template match="/"><html xmlns:var="urn:hermes-softlab-com-durs-variant"><head><style type="text/css" xmlns:outxsl="generated:xsl" xmlns:edp="http://tempuri.org/EDP-Common-1" xmlns:loc="http://tempuri.org/EDP-l10n">

div.fldprefill, div.fldborder, span.fldborder {  border: 1px solid #de9a8c; padding: 2px; }
div.fldinput, div.fldValue, span.fldinput { background: white; border: 1px solid #de9a8c; padding: 2px;  }


   /*** BASICS ***/
body.sign { border: 0; margin: 7px 14px; background: #efefce; font-family: verdana, sans-serif;}
table {border: 0px; }

   /*** Headings ***/
   /* Lahko gre ven, ker so ti stili opisani v glavnem css */
h1 {margin: 0em 0 0.4em 0; font: normal 18pt arial, sans-serif; color: #00659c;}
h2 {margin: 1em 0 0.5em 0px; font: bold 100% verdana, arial, sans-serif; color: #ce6500; }
h3 {font: bold 76% verdana, arial, sans-serif; color: #000;}
h4 {font-weight: bold; font-size: 76%; margin: 0px 0px 0.1em 25px; line-height: 1.3em }
p {font-size: 76%; margin: 0 0 0.1em 25px; line-height: 1.3em;}
ul {font-size: 76%; margin-top: 0; margin-bottom: 0.3em; line-height: 1.3em;}
li {}
.instruct {font-size: 80%; margin-bottom: 1em; color: #9c9a9c; }
.instruc2 {display: none;}
.hidden {display: none;}

   /*** COMMON HEADER ***/
div.commonheader {display: block;  padding: 0.6em 0em; border-color: #00659c; 
background-image: url('durs_znak_60.png'); background-attachment:scroll;  background-position:bottom right; background-repeat:no-repeat;  background-attachment:scroll;}
div.commonheader table {}
div.commonheader table td {color: #000; font-size: 66%; padding: 0.3em 0.5em 0.3em 0.1em; }

   /*** Signing ***/
div.signareafile { display: block; height: expression('100%'); border: 1px solid #00659c; background: #fffce9; padding: 5px 15px; margin-bottom: 20px; }
div.signareafile h2, div.signareaprep h2 {margin-top: 0; margin-bottom: 0.3em; }

   /*** TABLE SIGN BULLET ***/
table.tablesignbullet {margin: 0.2em 0px 10px 5px; border: 1px solid #738294; background: #fffce9;  }
table.tablesignbullet td {padding: 0.3em 8px 0.3em 8px; font-size: 76%; border-bottom: 1px solid #efefce; vertical-align: top;}
table.tablesignbullet tr.first td {background: #b8ccce; border-bottom: #016a73 2px solid; font-size: 76%; font-weight: bold;}
table.tablesignbullet td.value {text-align: center; }
table.tablesignbullet td.lbl {padding-left: 20px; }
table.tablesignbullet td.input {padding-top: 0; padding-bottom: 0; }
table.tablesignbullet td.dark {background: #F0ECD4; }
table.tablesignbullet tr.subhead {font-weight: bold; background-color: #e8dcba;}
table.tablesignbullet tr.lblheader  {font-weight: bold; font-size: 90%; background-color: #e7d294;}
table.tablesignbullet tr.lblheader2 {font-weight: bold; background-color: #E8DCBA; font-size: 90%;}
table.tablesignbullet tr.lblheader3 {font-weight: bold; background-color: #F0ECD4; font-size: 90%;}

   /*** TABLE SIGN SIMPLE ***/
table.tablesignsimple {margin: 0.2em 0px 10px 25px; }
table.tablesignsimple td {padding: 3px 8px 3px 0px; font-size: 76%; vertical-align: middle; }

   /*** TABLE SIGN FORM ***/
table.tablesignform {border-top: 1px solid #de9a8c; width: 100%; font-size: 66%; margin-top: 15px; }
table.tablesignform td.right {text-align: right; }   

   /*** TABLE FORMDDVO ***/
table.formddvo td {vertical-align: top; padding: 4px 4px 3px 4px; font: normal 66% verdana, sans-serif;  }

   /*** TABLE FORMINPUT ***/
table.forminput {width: 100%;}
table.forminput td {}
table.forminput td.no {text-align: right; width: 20px;}
table.forminput td.input {padding: 0px 2px; width: 105px;}

   /*** TABLE FORMDOH ***/

table.doh tr.subhead td  {text-align: center; vertical-align: middle; padding-left: 5px; padding-right: 5px;}
table.doh tr.subhead {font-weight: normal; }
table.doh td.input {vertical-align: top; padding-left: 5px; padding-right: 5px; text-align: center;}
table.doh td.lblno {vertical-align: top; padding-left: 5px; padding-right: 5px; text-align: center; padding-top: 6px; }
table.doh td.lbl  { padding-right: 1px; padding-left: 1px; padding-bottom: 3px; vertical-align: top; padding-top: 6px; }
table.doh td.dark {background: #fff0dc; }
table.doh tr.subhead td.dark {background-color: #e7d294; }

TABLE.doh A { padding-right: 7px; display: block; padding-left: 7px; padding-bottom: 0.35em; padding-top: 0.35em; }
TABLE.doh A:hover { background: #00659c; color: #fff; }
TABLE.doh DIV P { font-size: 100%; margin: 7px; color: #ce6500; }
TABLE.doh DIV LI { font-size: 140%; margin: 7px; color: #ce6500; line-height: 1.2em; }
TABLE.doh SELECT, table.doh table.insert { margin-top: 1px; }

table.doh table.insert td {padding: 2px; }
table.doh table.insert td.input {padding-top: 0px; }
table.doh table.insert td.lbl {padding-top: 5px; }

/*** TABLE BULLETFULL ***/

TABLE.tablebulletFull TD.tblhdr {margin:0 0 0 0; padding:0 0 0 0; border:0 0 0 0;}
TABLE.tblHeader {margin:0 0 0 0; padding:0 0 0 0; border:none 0; width:100% ;  }
TABLE.tblHeader td.tdHeader1  { text-align:center; FONT-WEIGHT: bold; width:5em; FONT-SIZE: 110%; BACKGROUND: #016a73;  COLOR: #fff; BORDER-BOTTOM: #016a73 2px solid}
TABLE.tblHeader td.tdHeader2 {FONT-WEIGHT: bold; padding-left:1em;  BACKGROUND: #b8ccce; FONT-SIZE: 110%; BORDER-BOTTOM: #016a73 2px solid}

div.indent3 {padding-left: 3em; text-indent:-3em;}

table.tablebulletFull {margin: 0.2em 0px 1px 0px; width:100%; border: #738294 1px solid ; background: #fffce9; }
table.tablebulletFull td {padding: 0.3em 3px; font-size: 76%; border-bottom: #efefce 1px solid; vertical-align: top; }
table.tablebulletFull tr.first td {background: #B8CCCE; font-size: 110%;}
table.tablebulletFull td.lblFirst {background-color: #016A73; color:fff ; width:5em;}
table.tablebulletFull tr.firstX td {border-left: #016A73 5em solid; border-bottom: #016A73 2px solid; background: #B8CCCE; font-size: 110%; font-weight:bold;}
table.tablebulletFull span.firstX { left: -4em; position: relative; color:#fff;}
table.tablebulletFull span.firstXx { left: -2em; position: relative;}
table.tablebulletFull tr.lblheader {font-weight: bold; background-color: #e7d294; font-size: 90%;}
table.tablebulletFull tr.lblheader2 {font-weight: bold; background-color: #E8DCBA; font-size: 90%;}
table.tablebulletFull tr.lblheader3 {font-weight: bold; background-color: #F0ECD4; font-size: 90%;}
table.tablebulletFull tr.subhead td img {margin: 0px 2px;}
table.tablebulletFull td.lbl {padding-top: 0.45em; }
table.tablebulletFull td.valuebld {padding-top: 0.45em; font-weight: bold;}
table.tablebulletFull td.input {padding-top: 0.45em; }
table.tablebulletFull td.dark {background: #F0ECD4; }
table.tablebulletFull DIV P { FONT-SIZE: 100%; MARGIN: 7px; COLOR: #ce6500; }
table.tablebulletFull tr.lHeader td {background: #EFEFCE;}
table.tablebulletFull tr.lSummary td {background: #ECECC4;}


@media print {
}
    </style></head><body class="sign"><xsl:call-template name="VIES-PrevR"></xsl:call-template></body></html></xsl:template><xsl:template name="VIES-PrevR"><xsl:for-each select="prevr:Envelope"><xsl:if test="//edp:Signatures/edp:DepositorSignature" xmlns:var="urn:hermes-softlab-com-durs-variant" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><xsl:if test="string(//edp:Signatures/edp:DepositorSignature/ds:Signature/ds:SignatureValue)=''"><h1>Oddajanje vloge</h1><p class="instruct">S potrditvijo boste podpisali dokument in ga predložili davčni upravi. Vloženega dokumenta ne morete več spreminjati.</p></xsl:if></xsl:if><xsl:if test="//edp:Signatures/edp:PreparerSignature" xmlns:var="urn:hermes-softlab-com-durs-variant" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"><xsl:if test="string(//edp:Signatures/edp:PreparerSignature/ds:Signature/ds:SignatureValue)=''"><h1>Priprava vloge</h1><p class="instruct">S potrditvijo boste pripravili dokument za podpisnika. Dokument ne bo predložen davčni upravi.</p></xsl:if></xsl:if><div class="document"><div class="commonheader"><table cellspacing="0"><tbody><xsl:for-each select="edp:Header//edp:domain"><tr><td><b>Sistem:</b></td><td><xsl:value-of select="."></xsl:value-of></td></tr></xsl:for-each><xsl:for-each select="edp:Header//edp:responseTo"><tr><td><b>Odgovor na dokument:</b></td><td><xsl:value-of select="."></xsl:value-of></td></tr></xsl:for-each><xsl:for-each select="edp:Signatures//edp:receipt"><tr><td><b>Vloženo:</b></td><td><xsl:call-template name="dateAndTime"><xsl:with-param name="timestamp"><xsl:value-of select="edp:timestamp"></xsl:value-of></xsl:with-param></xsl:call-template></td></tr><tr><td><b>Št. dokumenta:</b></td><td><xsl:value-of select="edp:documentNumber"></xsl:value-of></td></tr></xsl:for-each><xsl:for-each select="edp:Signatures/edp:DepositorSignature/edp:Depositor"><tr><td><b>Vložil:</b></td><td><xsl:value-of select="edp:name"></xsl:value-of></td><td>                
                (<xsl:call-template name="dateAndTime"><xsl:with-param name="timestamp"><xsl:value-of select="edp:timestamp"></xsl:value-of></xsl:with-param></xsl:call-template>)
              </td></tr></xsl:for-each><xsl:for-each select="edp:Signatures/edp:PreparerSignature/edp:Preparer"><tr><td><b>Pripravil:</b></td><td><xsl:value-of select="edp:name"></xsl:value-of></td><td>
                (<xsl:call-template name="dateAndTime"><xsl:with-param name="timestamp"><xsl:value-of select="edp:timestamp"></xsl:value-of></xsl:with-param></xsl:call-template>)
              </td></tr></xsl:for-each></tbody></table></div><div class="signareafile"><h2>Rezultati preverjanja identifikacijskih številk v EU</h2><table class="tablesignbullet"><xsl:for-each select="edp:Header"><xsl:for-each select="edp:taxpayer"><xsl:call-template name="TaxPayerDetail"><xsl:with-param name="header">Davčni zavezanec:</xsl:with-param></xsl:call-template></xsl:for-each></xsl:for-each></table><xsl:for-each select="prevr:body/prevr:VIES_PrevR"><table class="tablesignbullet"><tr class="first"><td>Identifikacijska številka</td><td>Naziv/Ime</td><td>Sedež/Naslov</td><td>Status</td><td>Opozorilo</td></tr><xsl:for-each select="prevr:Result"><tr><td><xsl:value-of select="prevr:CountryCode"></xsl:value-of><xsl:value-of select="prevr:TaxPayerCode"></xsl:value-of> 
                  </td><xsl:choose><xsl:when test="prevr:Status='Z'"><td><xsl:value-of select="prevr:Name"></xsl:value-of> 
                      </td><td><xsl:value-of select="prevr:Address"></xsl:value-of> 
                      </td></xsl:when><xsl:otherwise><td colspan="2"> </td></xsl:otherwise></xsl:choose><td><xsl:call-template name="ViesRStatus"><xsl:with-param name="status"><xsl:value-of select="prevr:Status"></xsl:value-of></xsl:with-param></xsl:call-template> 
                  </td><td><xsl:if test="prevr:ResultCode"><xsl:call-template name="ViesRResultCode"><xsl:with-param name="resultCode"><xsl:value-of select="prevr:ResultCode"></xsl:value-of></xsl:with-param></xsl:call-template></xsl:if> 
                  </td></tr></xsl:for-each></table><p> </p><table class="tablesignsimple"><tr><td>Datum:</td><td class="input"><div class="fldprefill"><xsl:call-template name="dateOnly"><xsl:with-param name="timestamp"><xsl:value-of select="//edp:Signatures/edp:ServerSignature/edp:receipt/edp:timestamp"></xsl:value-of></xsl:with-param></xsl:call-template> 
          </div></td></tr><tr><td>Podpisal:</td><td class="input"><div class="fldprefill"><xsl:value-of select="//edp:Signatures/edp:ServerSignature/edp:receipt/edp:name"></xsl:value-of> 
          </div></td></tr></table><div style="display: inline-block;" xmlns:var="urn:hermes-softlab-com-durs-variant"><table class="tablesignform" cellspacing="0"><tr><td>MF-DURS Obrazec VIES-PrevR</td><td class="right">e-VIES_PrevR_1.5</td></tr></table></div></xsl:for-each></div></div></xsl:for-each></xsl:template><xsl:template name="dateAndTime"><xsl:param name="timestamp"></xsl:param><xsl:if test="not($timestamp='')"><xsl:call-template name="dateOnly"><xsl:with-param name="timestamp" select="$timestamp"></xsl:with-param></xsl:call-template> <xsl:value-of select="substring($timestamp, 12, 8)"></xsl:value-of></xsl:if></xsl:template><xsl:template name="dateOnly"><xsl:param name="timestamp"></xsl:param><xsl:variable name="tmonth"><xsl:value-of select="substring($timestamp, 6, 2)"></xsl:value-of></xsl:variable><xsl:variable name="tday"><xsl:value-of select="substring($timestamp, 9, 2)"></xsl:value-of></xsl:variable><xsl:variable name="tyear"><xsl:value-of select="substring($timestamp, 1, 4)"></xsl:value-of></xsl:variable><xsl:if test="($timestamp) and ($timestamp != '')"><xsl:value-of select="$tday"></xsl:value-of>.<xsl:value-of select="$tmonth"></xsl:value-of>.<xsl:value-of select="$tyear"></xsl:value-of></xsl:if></xsl:template><xsl:template name="ViesRStatus" xmlns:hsl="http://www.hermes.si/Hsl.Edp.Gui.Localization/Localization.xsd"><xsl:param name="status"></xsl:param><xsl:choose><xsl:when test="$status = 'Z'">Davčni zavezanec za DDV</xsl:when><xsl:when test="$status = 'N'">Ne obstaja</xsl:when><xsl:when test="$status = 'E'">Napaka v postopku pridobitve odgovora</xsl:when><xsl:otherwise>{<xsl:value-of select="$status"></xsl:value-of>}</xsl:otherwise></xsl:choose></xsl:template><xsl:template name="ViesRResultCode" xmlns:hsl="http://www.hermes.si/Hsl.Edp.Gui.Localization/Localization.xsd"><xsl:param name="resultCode"></xsl:param><xsl:choose><xsl:when test="$resultCode = '206'">Nedosegljiv MS computer</xsl:when><xsl:when test="$resultCode = '207'">Lokalni problem z aplikacijo</xsl:when><xsl:when test="$resultCode = '201'">Ni dostopa</xsl:when><xsl:when test="$resultCode = '210'">Za obdobje ni podatkov</xsl:when><xsl:when test="$resultCode = '204'">Sporočilo ni pravilno</xsl:when><xsl:when test="$resultCode = '211'">??????????????</xsl:when><xsl:when test="$resultCode = '208'">Neavtoriziran preklop</xsl:when><xsl:when test="$resultCode = '202'">Ni zavezanec</xsl:when><xsl:when test="$resultCode = '205'">DŠ ne ustreza predpisom</xsl:when><xsl:when test="$resultCode = '203'">Ni podatkov za izbranega zavezanca</xsl:when><xsl:when test="$resultCode = '209'">DŠ v obdobju ni aktivna</xsl:when><xsl:otherwise>{<xsl:value-of select="$resultCode"></xsl:value-of>}</xsl:otherwise></xsl:choose></xsl:template><xsl:template name="TaxPayerTypeName"><xsl:param name="type"></xsl:param><xsl:choose><xsl:when test="$type = 'FO'">Fizična oseba</xsl:when><xsl:when test="$type = 'PO'">Pravna oseba</xsl:when><xsl:when test="$type = 'SP'">Fizična oseba z dejavnostjo</xsl:when><xsl:otherwise>{<xsl:value-of select="$type"></xsl:value-of>}</xsl:otherwise></xsl:choose></xsl:template><xsl:template name="TaxPayerDetail"><xsl:param name="header"></xsl:param><tr><td><xsl:value-of select="$header"></xsl:value-of></td><td><div class="fldprefill"><b><xsl:value-of select="edp:name"></xsl:value-of></b></div></td></tr><tr><td> </td><td><div class="fldprefill"><div><xsl:value-of select="edp:address1"></xsl:value-of></div><div><xsl:value-of select="edp:address2"></xsl:value-of></div><div><xsl:value-of select="edp:city"></xsl:value-of></div></div></td></tr><tr><td> </td><td><div class="fldprefill">DŠ  <b><xsl:value-of select="edp:taxNumber"></xsl:value-of></b> (<xsl:call-template name="TaxPayerTypeName"><xsl:with-param name="type"><xsl:value-of select="edp:taxpayerType"></xsl:value-of></xsl:with-param></xsl:call-template>)
          </div></td></tr></xsl:template></xsl:stylesheet>