Browse Source

wyglada wstepnie dobrze

a.binder 7 years ago
parent
commit
9d6144a1b4

+ 84 - 14
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.xsl

@@ -230,7 +230,7 @@
                 
                 <xsl:choose>
                     <xsl:when test="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[1]/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/source/text()">
-                        <uicontrol><varname>źródło</varname></uicontrol>
+                        <uicontrol><varname>zrodlo</varname></uicontrol>
                         <uicontrol><xsl:value-of select="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[1]/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*/source"/></uicontrol>
                     </xsl:when>
                 </xsl:choose>
@@ -305,21 +305,53 @@
     <xsl:template mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" match="*">
         <xsl:param name="title" select="'Ścieżka śledzenia do '"/>
         <xsl:param name="count"/>
+        
+        <xsl:choose>
+            <xsl:when test="nazwa/text()|Pelna_nazwa_kontrahenta/text()">
+                <p>
+                    <xsl:if test="nazwa/text()"> nazwa: <b><xsl:value-of select="nazwa"/></b></xsl:if>
+                    <xsl:if test="Pelna_nazwa_kontrahenta/text()"> nazwa : <b><xsl:value-of select="replace(Pelna_nazwa_kontrahenta,'SPÓŁKA Z OGRANICZONĄ ODPOWIEDZIALNOŚCIĄ',' (Sp. z o.o.) ')"/></b></xsl:if>
+                </p>
+            </xsl:when>
+        </xsl:choose>
+        
+        <xsl:choose>
+            <xsl:when test="imiona/text()|nazwisko/text()">
+                <p>
+                    <xsl:if test="nazwisko/text()"> nazwisko: <b><xsl:value-of select="nazwisko"/></b></xsl:if>
+                    <xsl:if test="imiona/text()"> imiona : <b><xsl:value-of select="imiona"/></b></xsl:if>
+                </p>
+            </xsl:when>
+        </xsl:choose>
+        
         <xsl:choose>
-            <xsl:when test="krs|regon">
+            <xsl:when test="pesel/text()|PESEL/text()">
                 <p>
-                    <xsl:if test="krs"> KRS: <xsl:value-of select="krs"/></xsl:if>
-                    <xsl:if test="regon"> Regon: <xsl:value-of select="regon"/></xsl:if>
+                    <xsl:if test="pesel/text()"> pesel: <b><xsl:value-of select="pesel"/></b></xsl:if>
+                    <xsl:if test="PESEL/text()"> PESEL : <b><xsl:value-of select="PESEL"/></b></xsl:if>
+                </p>
+            </xsl:when>
+        </xsl:choose>
+        
+        <xsl:choose>
+            <xsl:when test="krs/text()|regon/text()|KRS/text()|REGON/text()|NIP/text()|nip/text()">
+                <p>
+                    <xsl:if test="krs/text()"> KRS: <b><xsl:value-of select="krs"/></b></xsl:if>
+                    <xsl:if test="KRS/text()"> KRS: <b><xsl:value-of select="KRS"/></b></xsl:if>
+                    <xsl:if test="regon/text()"> Regon: <b><xsl:value-of select="regon"/></b></xsl:if>
+                    <xsl:if test="REGON/text()"> Regon: <b><xsl:value-of select="REGON"/></b></xsl:if>
+                    <xsl:if test="NIP/text()"> NIP: <b><xsl:value-of select="NIP"/></b></xsl:if>
+                    <xsl:if test="nip/text()"> NIP: <b><xsl:value-of select="nip"/></b></xsl:if>
                     
                 </p>
             </xsl:when>
         </xsl:choose>
         
         <xsl:choose>
-            <xsl:when test="S_kraj|S_wojewodztwo">
+            <xsl:when test="S_kraj/text()|S_wojewodztwo/text()">
                 <p>
-                    <xsl:if test="S_kraj"> Kraj: <xsl:value-of select="S_kraj"/></xsl:if>
-                    <xsl:if test="S_wojewodztwo"> Województwo: <xsl:value-of select="S_wojewodztwo"/></xsl:if>
+                    <xsl:if test="S_kraj/text()"> Kraj: <b><xsl:value-of select="S_kraj"/></b></xsl:if>
+                    <xsl:if test="S_wojewodztwo/text()"> Województwo: <b><xsl:value-of select="S_wojewodztwo"/></b></xsl:if>
                     
                 </p>
             </xsl:when>
@@ -327,21 +359,38 @@
         
         
         <xsl:choose>
-            <xsl:when test="A_miejscowosc|A_ulica|A_nrDomu">
+            <xsl:when test="A_miejscowosc/text()|Miejscowosc/text()|A_ulica/text()|A_nrDomu/text()|ulica/text()|Numer_budynku/text()|nrLokalu/text()|Numer_mieszkania_lokalu/text()|Ulica/text()">
                 <p>
-                    <xsl:if test="A_miejscowosc"> Miejscowość: <xsl:value-of select="A_miejscowosc"/></xsl:if>
-                    <xsl:if test="A_ulica"> Ulica: <xsl:value-of select="A_ulica"/></xsl:if>
-                    <xsl:if test="A_nrDomu"> Nr: <xsl:value-of select="A_nrDomu"/></xsl:if>
+                    <xsl:if test="A_miejscowosc/text()"> Miejscowość: <b><xsl:value-of select="A_miejscowosc"/></b></xsl:if>
+                    <xsl:if test="Miejscowosc/text()"> Miejscowość: <b><xsl:value-of select="Miejscowosc"/></b></xsl:if>
+                    <xsl:if test="A_ulica/text()"> Ulica: <b><xsl:value-of select="A_ulica"/></b></xsl:if>
+                    <xsl:if test="ulica/text()"> Ulica: <b><xsl:value-of select="ulica"/></b></xsl:if>
+                    <xsl:if test="Ulica/text()"> Ulica: <b><xsl:value-of select="Ulica"/></b></xsl:if>
+                    <xsl:if test="A_nrDomu/text()"> Nr: <b><xsl:value-of select="A_nrDomu"/></b></xsl:if>
+                    <xsl:if test="Numer_budynku/text()"> Nr: <b><xsl:value-of select="Numer_budynku"/></b></xsl:if>
+                    <xsl:if test="nrLokalu/text()"> lok: <b><xsl:value-of select="nrLokalu"/></b></xsl:if>
+                    <xsl:if test="Numer_mieszkania_lokalu/text()"> lok: <b><xsl:value-of select="Numer_mieszkania_lokalu"/></b></xsl:if>
                     
                 </p>
             </xsl:when>
         </xsl:choose>
         
         <xsl:choose>
-            <xsl:when test="A_poczta|A_kod">
+            <xsl:when test="A_poczta/text()|kodPocztowy/text()|A_kod/text()">
                 <p>
-                    <xsl:if test="A_poczta"> Poczta: <xsl:value-of select="A_poczta"/></xsl:if>
-                    <xsl:if test="A_kod"> Kod: <xsl:value-of select="A_kod"/></xsl:if>
+                    <xsl:if test="A_poczta/text()"> Poczta: <b><xsl:value-of select="A_poczta"/></b></xsl:if>
+                    <xsl:if test="kodPocztowy/text()"> kod: <b><xsl:value-of select="kodPocztowy"/></b></xsl:if>
+                    <xsl:if test="A_kod/text()"> Kod: <b><xsl:value-of select="A_kod"/></b></xsl:if>
+                </p>
+            </xsl:when>
+        </xsl:choose>
+        
+        <xsl:choose>
+            <xsl:when test="Numer_kontrahenta/text()|ID/text()|source/text()">
+                <p>
+                    <xsl:if test="Numer_kontrahenta/text()"> nr kontr: <b><xsl:value-of select="Numer_kontrahenta"/></b></xsl:if>
+                    <xsl:if test="ID/text()"> ID <b><xsl:value-of select="ID"/></b></xsl:if>
+                    <xsl:if test="source/text()"> source <b><xsl:value-of select="source"/></b></xsl:if>
                 </p>
             </xsl:when>
         </xsl:choose>
@@ -382,7 +431,28 @@
                     <stentry>
                         <xref>
                             <xsl:copy-of select="system_cache__dita:files.context.title.keyref(*[1],'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA')" copy-namespaces="no"/>
+                            link
                         </xref>
+                        <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body"/>
+                     <!--   <xsl:variable name="system_cache__dita:localname.translate">
+                            <system_cache__dita:localname.translate>-->
+                            <!--<xsl:for-each select="*[1]/*[ not(*)]">
+                                <!-\-<xsl:choose>
+                                    <xsl:when test="system_cache__dita:localname.translate(current()/name())/comment()='A_ADM'"> ( A_ADM ) </xsl:when>
+                                    <xsl:when test="system_cache__dita:localname.translate(current()/name())/comment()='DEBUG'"> ( DEBUG ) </xsl:when>
+                                    <xsl:when test="system_cache__dita:localname.translate(current()/name())/comment()='NAME'"> ( NAME ) </xsl:when>
+                                    <xsl:when test="system_cache__dita:localname.translate(current()/name())/comment()='ID_DOC'"> ( ID_DOC ) </xsl:when>
+                                </xsl:choose>-\->
+                                <p> <xsl:value-of select="system_cache__dita:localname.translate(current()/name())/text()"/> <xsl:text> </xsl:text><xsl:value-of select="."/></p>
+                            </xsl:for-each>-->
+                            <!--</system_cache__dita:localname.translate>
+                        </xsl:variable>-->
+                        
+                        <!--<xsl:for-each-group select="$system_cache__dita:localname.translate/system_cache__dita:localname.translate/p[ not(contains(comment(),'A_ADM')) and not(contains(comment(),'L_APP'))  and not(contains(comment(),'DEBUG'))]" group-by="comment()">
+                            <p>
+                                <xsl:copy-of select="current-group()"/>
+                            </p>
+                        </xsl:for-each-group>-->
                         <xsl:comment>#188</xsl:comment>
                         <!--<xsl:choose>
                             <xsl:when test="BI_audit_KRS">

+ 384 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table.xsl

@@ -0,0 +1,384 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:ogr="http://ogr.maptools.org/"
+    xmlns:Benford="https://pl.wikipedia.org/wiki/Rozkład_Benforda"
+    xmlns:default_db="https://biuro.biall-net.pl/wfs/default_db"
+    xmlns:p5="https://biuro.biall-net.pl/wfs"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    exclude-result-prefixes="xs system_cache__appinfo system_cache__dita ogr Benford default_db get_wfs p5"
+    version="2.0">
+    
+    
+   
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+
+    <xsl:template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+        <xsl:param name="row_obj_first" required="yes"/>
+        <xsl:param name="row_obj_last" required="yes"/>
+        <xsl:param name="row_obj_middle" />
+        <xsl:param name="context" required="no"/>
+        <xsl:message>#27-A row_obj_middle=<xsl:value-of select="$row_obj_middle"/>; </xsl:message>
+        <xsl:if test="string-length($row_obj_middle)&gt;0">
+            <draft-comment> #38 #27-A row_obj_middle= <!--<xsl:for-each select="$row_obj_middle">val:<xsl:value-of select="name()"/><xsl:text> = </xsl:text><xsl:value-of select="."/></xsl:for-each>-->;;; /* = <!--<xsl:for-each select="string-length($row_obj_middle)&gt;0">val:<xsl:value-of select="name()"/><xsl:text> = </xsl:text><xsl:value-of select="."/></xsl:for-each>--><xsl:text> ;; </xsl:text><xsl:value-of select="$row_obj_middle"/>; </draft-comment>
+        </xsl:if>
+        
+        <!--<xsl:variable name="row_obj_middle">
+            <xsl:choose>
+                <xsl:when test="string-length($row_obj_middle)&gt;0">
+                    <xsl:copy-of select="$row_obj_middle"/>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:value-of select="false()"/>
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>-->
+        <xsl:message>#27-B row_obj_middle=<xsl:value-of select="$row_obj_middle"/>;</xsl:message>
+        <!--<draft-comment> #38 #27-B row_obj_middle= <xsl:for-each select="$row_obj_middle">val:<xsl:value-of select="name()"/><xsl:text> = </xsl:text><xsl:value-of select="."/></xsl:for-each>;;; /* = <xsl:for-each select="string-length($row_obj_middle)&gt;0">val:<xsl:value-of select="name()"/><xsl:text> = </xsl:text><xsl:value-of select="."/></xsl:for-each><xsl:text> ;; </xsl:text><xsl:value-of select="$row_obj_middle"/>; </draft-comment>-->
+        <table frame="none" >
+            <title>cechy obiektów zakończeniowych trasy</title>
+            <tgroup cols="3">
+                <xsl:choose>
+                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                        <xsl:attribute name="cols" select="4"/>
+                    </xsl:when>
+                    <xsl:otherwise><xsl:attribute name="cols" select="3"/></xsl:otherwise>
+                </xsl:choose>
+                <colspec colname="c1" colnum="1" colwidth="1*" colsep="1"/>
+                <colspec colname="c2" colnum="2" colwidth="3*" colsep="1"/>
+                <colspec colname="c3" colnum="3" colwidth="3*" colsep="1"/>
+                <xsl:choose>
+                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                        <colspec colname="c4" colnum="4" colwidth="4*" colsep="1"/>
+                    </xsl:when>
+                    <xsl:otherwise/>
+                </xsl:choose>
+               
+                <thead>
+                    <row>
+                        <entry>rejestr</entry>
+                        
+                        <entry>od</entry>
+                        <xsl:choose>
+                            <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                <entry>w</entry>
+                            </xsl:when>
+                            <xsl:otherwise/>
+                        </xsl:choose>
+                        <entry>do</entry>
+                    </row>
+                </thead>
+                <tbody>
+                    
+                <xsl:choose>
+                    <xsl:when test="$row_obj_first/nazwa or $row_obj_first/Pelna_nazwa_kontrahenta or $row_obj_last/nazwa or $row_obj_last/Pelna_nazwa_kontrahenta
+                        or (string-length($row_obj_middle)&gt;0 and ($row_obj_middle/nazwa or $row_obj_middle/Pelna_nazwa_kontrahenta)) 
+                        ">
+                        <row rowsep="1">
+                            <entry>nazwa</entry>
+                            
+                            <entry><xsl:value-of select="$row_obj_first/nazwa"/> <xsl:value-of select="$row_obj_first/Pelna_nazwa_kontrahenta"/></entry>
+                            <xsl:choose>
+                                <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                    <entry><xsl:value-of select="$row_obj_middle/nazwa"/> <xsl:value-of select="$row_obj_middle/Pelna_nazwa_kontrahenta"/></entry>
+                                </xsl:when>
+                            </xsl:choose>
+                        
+                            <entry><xsl:value-of select="$row_obj_last/nazwa"/> <xsl:value-of select="$row_obj_last/Pelna_nazwa_kontrahenta"/></entry>
+                        </row>
+                    </xsl:when>
+                </xsl:choose>
+                
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/imiona or $row_obj_last/imiona or 
+                            (string-length($row_obj_middle)&gt;0 and $row_obj_middle/imiona)">
+                            <row rowsep="1">
+                                <entry>imiona</entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/imiona"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/imiona"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/imiona"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/nazwisko or $row_obj_last/nazwisko or
+                            (string-length($row_obj_middle)&gt;0 and $row_obj_middle/nazwisko)">
+                            <row rowsep="1">
+                                <entry>nazwisko</entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/nazwisko"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/nazwisko"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/nazwisko"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/pesel or $row_obj_first/PESEL or   $row_obj_last/pesel or $row_obj_last/PESEL
+                            or (string-length($row_obj_middle)&gt;0 and ( $row_obj_middle/pesel or $row_obj_middle/PESEL))
+                            ">
+                            <row rowsep="1">
+                                <entry>pesel</entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/pesel"/> <xsl:value-of select="$row_obj_first/PESEL"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/pesel"/> <xsl:value-of select="$row_obj_middle/PESEL"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/pesel"/> <xsl:value-of select="$row_obj_last/PESEL"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    
+                <xsl:choose>
+                    <xsl:when test="$row_obj_first/nip or $row_obj_first/NIP or $row_obj_last/nip or $row_obj_last/NIP
+                        or(string-length($row_obj_middle)&gt;0 and (  $row_obj_middle/nip or $row_obj_middle/NIP ))
+                        ">
+                        <row rowsep="1">
+                            <entry>nip</entry>
+                            
+                            <entry><xsl:value-of select="$row_obj_first/nip"/> <xsl:value-of select="$row_obj_first/NIP"/></entry>
+                            <xsl:choose>
+                                <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                    <entry><xsl:value-of select="$row_obj_middle/nip"/> <xsl:value-of select="$row_obj_middle/NIP"/></entry>
+                                </xsl:when>
+                            </xsl:choose>
+                            <entry><xsl:value-of select="$row_obj_last/nip"/> <xsl:value-of select="$row_obj_last/NIP"/></entry>
+                        </row>
+                    </xsl:when>
+                </xsl:choose>
+                <xsl:choose>
+                    <xsl:when test="$row_obj_first/regon or $row_obj_first/REGON  or $row_obj_last/regon or $row_obj_last/REGON
+                        or(string-length($row_obj_middle)&gt;0 and ($row_obj_middle/regon or $row_obj_middle/REGON ))
+                        ">
+                        <row rowsep="1">
+                            <entry>regon</entry>
+                            <entry><xsl:value-of select="$row_obj_first/regon"/> <xsl:value-of select="$row_obj_first/REGON"/></entry>
+                            <!-- TODO LOWER -->
+                            <xsl:choose>
+                                <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                    <entry><xsl:value-of select="$row_obj_middle/regon"/> <xsl:value-of select="$row_obj_middle/REGON"/></entry>
+                                </xsl:when>
+                            </xsl:choose>
+                            <entry><xsl:value-of select="$row_obj_last/regon"/> <xsl:value-of select="$row_obj_last/REGON"/></entry>
+                        </row>
+                    </xsl:when>
+                </xsl:choose>
+                <xsl:choose>
+                    <xsl:when test="$row_obj_first/krs or $row_obj_first/KRS or $row_obj_last/krs or $row_obj_last/KRS
+                        or ( string-length($row_obj_middle)&gt;0 and ( $row_obj_middle/krs or $row_obj_middle/KRS))
+                        ">
+                        <row rowsep="1">
+                            <entry>krs</entry>
+                            
+                            <entry><xsl:value-of select="$row_obj_first/krs"/> <xsl:value-of select="$row_obj_first/KRS"/></entry>
+                            <xsl:choose>
+                                <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                    <entry><xsl:value-of select="$row_obj_middle/krs"/> <xsl:value-of select="$row_obj_middle/KRS"/></entry>
+                                </xsl:when>
+                            </xsl:choose>
+                            <entry><xsl:value-of select="$row_obj_last/krs"/> <xsl:value-of select="$row_obj_last/KRS"/></entry>
+                        </row>
+                    </xsl:when>
+                </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/S_kraj or $row_obj_first/Kraj or $row_obj_last/S_kraj or $row_obj_last/Kraj
+                            or (string-length($row_obj_middle)&gt;0 and ( $row_obj_middle/S_kraj or $row_obj_middle/Kraj))
+                            ">
+                            <row rowsep="1">
+                                <entry>kraj </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/S_kraj"/> <xsl:value-of select="$row_obj_first/Kraj"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/S_kraj"/> <xsl:value-of select="$row_obj_middle/Kraj"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/S_kraj"/> <xsl:value-of select="$row_obj_last/Kraj"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/S_wojewodztwo or $row_obj_last/S_wojewodztwo or
+                            (string-length($row_obj_middle)&gt;0 and $row_obj_middle/S_wojewodztwo)">
+                            <row rowsep="1">
+                                <entry>wojewodztwo </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/S_wojewodztwo"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/S_wojewodztwo"/> </entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/S_wojewodztwo"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/S_miejscowosc or $row_obj_first/Miejscowosc or $row_obj_last/S_miejscowosc or $row_obj_last/Miejscowosc
+                            or (string-length($row_obj_middle)&gt;0 and  ($row_obj_middle/S_miejscowosc or $row_obj_middle/Miejscowosc))
+                            ">
+                            <row rowsep="1">
+                                <entry>S. miejscowosc </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/S_miejscowosc"/> <xsl:value-of select="$row_obj_first/Miejscowosc"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/S_miejscowosc"/> <xsl:value-of select="$row_obj_middle/Miejscowosc"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/S_miejscowosc"/> <xsl:value-of select="$row_obj_last/Miejscowosc"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/A_miejscowosc=$row_obj_first/S_miejscowosc and $row_obj_first/Miejscowosc=$row_obj_first/S_miejscowosc and $row_obj_last/Miejscowosc=$row_obj_last/S_miejscowosc  and  $row_obj_last/A_miejscowosc=$row_obj_last/S_miejscowosc 
+                            and (string-length($row_obj_middle)&gt;0  and   $row_obj_middle/Miejscowosc=$row_obj_middle/S_miejscowosc  and $row_obj_middle/A_miejscowosc=$row_obj_middle/S_miejscowosc ) "/>
+                        <xsl:when test="$row_obj_first/A_miejscowosc   or $row_obj_last/A_miejscowosc or 
+                            (string-length($row_obj_middle)&gt;0 and $row_obj_middle/A_miejscowosc  )">
+                            <row rowsep="1">
+                                <entry>A. miejscowosc </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/A_miejscowosc"/> <xsl:value-of select="$row_obj_first/Miejscowosc"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/A_miejscowosc"/> <xsl:value-of select="$row_obj_middle/Miejscowosc"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/A_miejscowosc"/> <xsl:value-of select="$row_obj_last/Miejscowosc"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/A_kod or $row_obj_first/kodPocztowy   or $row_obj_last/A_kod or $row_obj_last/kodPocztowy
+                            or (string-length($row_obj_middle)&gt;0 and ( $row_obj_middle/A_kod or $row_obj_middle/kodPocztowy))
+                            ">
+                            <row rowsep="1">
+                                <entry>A. poczta </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/A_kod"/> <xsl:value-of select="$row_obj_first/kodPocztowy"/><ph> </ph><xsl:value-of select="$row_obj_first/A_poczta"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/A_kod"/> <xsl:value-of select="$row_obj_middle/kodPocztowy"/> <ph> </ph> <xsl:value-of select="$row_obj_middle/A_poczta"/></entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/A_kod"/> <xsl:value-of select="$row_obj_last/kodPocztowy"/><ph> </ph><xsl:value-of select="$row_obj_last/A_poczta"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/Ulica or $row_obj_first/A_ulica or  $row_obj_first/ulica or  $row_obj_first/nr or $row_obj_first/A_nrDomu or $row_obj_first/Numer_budynku or $row_obj_first/nrLokalu or  $row_obj_first/Numer_mieszkania_lokalu  or $row_obj_last/Ulica or $row_obj_last/A_ulica  or $row_obj_last/ulica or $row_obj_last/nr or $row_obj_last/A_nrDomu or $row_obj_last/Numer_budynku or $row_obj_last/nrLokalu or $row_obj_last/A_nrLokalu or $row_obj_last/Numer_mieszkania_lokalu
+                            or (string-length($row_obj_middle)&gt;0 and  ($row_obj_middle/Ulica or $row_obj_middle/A_ulica  or $row_obj_middle/ulica or $row_obj_middle/nr or $row_obj_middle/A_nrDomu or $row_obj_middle/Numer_budynku or $row_obj_middle/nrLokalu or $row_obj_middle/A_nrLokalu or $row_obj_middle/Numer_mieszkania_lokalu))
+                            ">
+                            <row rowsep="1">
+                                <entry>A. ulica </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/Ulica"/><ph> </ph><xsl:value-of select="$row_obj_first/A_ulica"/> <xsl:value-of select="$row_obj_first/ulica"/> <ph> </ph> <xsl:value-of select="$row_obj_first/nr"/> <xsl:value-of select="$row_obj_first/A_nrDomu"/> <xsl:value-of select="$row_obj_first/Numer_budynku"/> <ph> </ph> <xsl:value-of select="$row_obj_first/nrLokalu"/> <xsl:value-of select="$row_obj_first/A_nrLokalu"/> <xsl:value-of select="$row_obj_first/Numer_mieszkania_lokalu"/> </entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/Ulica"/> <xsl:value-of select="$row_obj_middle/A_ulica"/>  <xsl:value-of select="$row_obj_middle/ulica"/> <ph> </ph> <xsl:value-of select="$row_obj_middle/nr"/> <xsl:value-of select="$row_obj_middle/A_nrDomu"/> <xsl:value-of select="$row_obj_middle/Numer_budynku"/> <ph> </ph> <xsl:value-of select="$row_obj_middle/nrLokalu"/> <xsl:value-of select="$row_obj_middle/A_nrLokalu"/> <xsl:value-of select="$row_obj_middle/Numer_mieszkania_lokalu"/> </entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/Ulica"/><ph>  </ph><xsl:value-of select="$row_obj_last/A_ulica"/>   <xsl:value-of select="$row_obj_last/ulica"/> <ph> </ph>  <xsl:value-of select="$row_obj_last/nr"/>  <xsl:value-of select="$row_obj_last/A_nrDomu"/> <xsl:value-of select="$row_obj_last/Numer_budynku"/> <ph> </ph>  <xsl:value-of select="$row_obj_last/nrLokalu"/> <xsl:value-of select="$row_obj_last/A_nrLokalu"/> <xsl:value-of select="$row_obj_last/Numer_mieszkania_lokalu"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/TERYT_SYM   or $row_obj_last/TERYT_SYM
+                            or (string-length($row_obj_middle)&gt;0 and $row_obj_middle/TERYT_SYM)">
+                            <row rowsep="1">
+                                <entry>A. teryt </entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/TERYT_SYM"/><ph> </ph><xsl:text> </xsl:text> <xsl:value-of select="$row_obj_first/TERYT_SYM_UL"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/TERYT_SYM"/> <ph> </ph> <xsl:text> </xsl:text> <xsl:value-of select="$row_obj_middle/TERYT_SYM_UL"/>  </entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/TERYT_SYM"/><ph> </ph><xsl:text> </xsl:text> <xsl:value-of select="$row_obj_last/TERYT_SYM_UL"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/BI_audit_taxpayer   or $row_obj_last/BI_audit_taxpayer or
+                            (string-length($row_obj_middle)&gt;0 and $row_obj_middle/BI_audit_taxpayer)">
+                            <row rowsep="1">
+                                <entry>status VAT</entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/BI_audit_taxpayer/taxpayer_status_info"/><xsl:if test="$row_obj_first/BI_audit_taxpayer/taxpayer_status_info">  (<xsl:value-of select="$row_obj_first/BI_audit_taxpayer/taxpayer_status_date"/>) </xsl:if></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/BI_audit_taxpayer/taxpayer_status_info"/>   <xsl:if test="$row_obj_middle/BI_audit_taxpayer/taxpayer_status_info">  (<xsl:value-of select="$row_obj_middle/BI_audit_taxpayer/taxpayer_status_date"/>) </xsl:if>  </entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/BI_audit_taxpayer/taxpayer_status_info"/><xsl:if test="$row_obj_last/BI_audit_taxpayer/taxpayer_status_date"> (<xsl:value-of select="$row_obj_last/BI_audit_taxpayer/taxpayer_status_date"/>) </xsl:if> </entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                    <xsl:choose>
+                        <xsl:when test="$row_obj_first/Numer_kontrahenta/text()   or $row_obj_last/Numer_kontrahenta/text()
+                            or (string-length($row_obj_middle)&gt;0  and $row_obj_middle/Numer_kontrahenta/text() )  ">
+                            <row rowsep="1">
+                                <entry>Numer kontrahenta RUM</entry>
+                                
+                                <entry><xsl:value-of select="$row_obj_first/Numer_kontrahenta"/></entry>
+                                <xsl:choose>
+                                    <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                        <entry><xsl:value-of select="$row_obj_middle/Numer_kontrahenta"/>     </entry>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <entry><xsl:value-of select="$row_obj_last/Numer_kontrahenta"/></entry>
+                            </row>
+                        </xsl:when>
+                    </xsl:choose>
+                   
+                    <row rowsep="1">
+                                <entry>rejestr</entry>
+                                
+                                <entry><xsl:value-of select="system_cache__dita:localname.translate($row_obj_first/local-name())"/>
+                                    <ph> ID: </ph><xsl:value-of select="$row_obj_first/ID"/>
+                                    <xsl:choose>
+                                        <xsl:when test="$row_obj_first/source"> source:<xsl:value-of select="$row_obj_first/source"/></xsl:when>
+                                    </xsl:choose>
+                                </entry>
+                        <xsl:choose>
+                            <xsl:when test="string-length($row_obj_middle)&gt;0">
+                                <entry><ph> ID: </ph>   <xsl:value-of select="$row_obj_middle/ID"/>  
+                                    <xsl:choose>
+                                        <xsl:when test="$row_obj_middle/source"> source:<xsl:value-of select="$row_obj_middle/source"/></xsl:when>
+                                    </xsl:choose>
+                                </entry>
+                            </xsl:when>
+                        </xsl:choose>
+                                <entry><xsl:value-of select="system_cache__dita:localname.translate($row_obj_last/local-name())"/>
+                                    <ph> ID: </ph><xsl:value-of select="$row_obj_last/ID"/>
+                                    <xsl:choose>
+                                        <xsl:when test="$row_obj_last/source"> source:<xsl:value-of select="$row_obj_last/source"/></xsl:when>
+                                    </xsl:choose>
+                                </entry>
+                            </row>
+                </tbody>
+            </tgroup>
+        </table>
+        
+    </xsl:template>
+    
+   
+    
+    
+</xsl:stylesheet>

+ 114 - 7
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_tree_to_dita.xsl

@@ -18,6 +18,7 @@
     <xsl:strip-space elements="*"/>
     
     
+    
     <xsl:param name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_UMOWY.DISABLE" select="true()"/>
      <!--<xsl:param name="xref_level" select="5"/>-->
     <xsl:param name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_FAKTURY.Spolka_glowna" select="'jednostka_organizacyjna'"/>
@@ -38,6 +39,7 @@
         <Poczatek_okresu_obowiazywania__aktualny_>1.01.2008</Poczatek_okresu_obowiazywania__aktualny_>
         <Poczatek_okresu_obowiazywania__pierwotny_>1.01.2008</Poczatek_okresu_obowiazywania__pierwotny_>
     -->
+    <xsl:include href="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table.xsl"/>
     
     <xsl:variable name="KRS_own">
         <KRS_own>
@@ -2082,11 +2084,13 @@
                                 <xsl:variable name="firma_do_id" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/>
                                 <xsl:comment>#278 firma do <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/></xsl:comment>
                                 <xsl:message>#278 firma do <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/></xsl:message>
-                                
+                                <xsl:variable name="context" select="."/>
                                 <xsl:for-each-group select="$current_group_person[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last()]/*[position()=1]/@fid = $firma_do_id  and position() &lt; 10 ] " group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]/@fid"> <!-- pracownicy -->
                                     <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref" select=".">
                                         <xsl:with-param name="position_1" select="$position_1"/>
                                         <xsl:with-param name="position" select="position()"/>
+                                        <xsl:with-param name="context" select="$context"/>
+                                        <xsl:with-param name="title" select="$title"/>
                                     </xsl:apply-templates>
                                 </xsl:for-each-group>
                             </xsl:for-each-group>
@@ -2153,7 +2157,7 @@
         <xsl:param name="position" required="yes"/>
         <xsl:param name="title" required="yes"/>
         <xsl:variable name="refpos" select="concat($group_name,'_', position())"/>
-        
+        <xsl:variable name="context" select="."/>
         <topicref > <!-- XX7 {system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position))} --> <!-- {$group_name}/{$refpos}.dita --> <!-- {system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[position() =  last()]/*[1]/local-name(),parent::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[position() =  last()]/*[1]/@fid,$position)}.dita -->
             <xsl:copy-of select="system_cache__dita:files.key.title.context.href(current(),'map',$title)" copy-namespaces="no"/>
             <xsl:copy-of select="system_cache__dita:files.context.title.keys(.,$title)" copy-namespaces="no"/>
@@ -2208,10 +2212,10 @@
                     <!--<curr><xsl:copy-of select="current-group()"></xsl:copy-of></curr>-->
                     <!--<curr_parrent><xsl:copy-of select="current-group()/../../."></xsl:copy-of></curr_parrent>-->
                     <!--<parent><xsl:copy-of select="../../."/></parent>-->
-                    
+                    <xsl:variable name="title_copy_to_middle_ref" select="."/>
                     <body>
-                        <draft-comment author="a.binder">#698 - Tu jest blad dla szukania ogolnego - zaklada ze sa kontrahenci - trzeba zrobic funckje TODO </draft-comment>
-                        <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="."/>
+                        <draft-comment author="a.binder">#698 - Tu jest blad dla szukania ogolnego  ($count = <xsl:value-of select="$count"/>;) - zaklada ze sa kontrahenci - trzeba zrobic funckje TODO. $context/@fid=<xsl:value-of select="$context/@fid"/>; "$title=<xsl:value-of select="$title"/>" , $context/parent::*/fid=<xsl:value-of select="$context/parent::*/@fid"/>; $context/ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>; </draft-comment>
+                        <!--<xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="."/>-->
                         <!--
                             <p>
                                 <xsl:if test="krs"> KRS: <xsl:value-of select="krs"/></xsl:if>
@@ -2233,14 +2237,51 @@
                                 <xsl:if test="A_poczta"> Poczta: <xsl:value-of select="A_poczta"/></xsl:if>
                                 <xsl:if test="A_kod"> Kod: <xsl:value-of select="A_kod"/></xsl:if>
                             </p>-->
+                        <xsl:variable name="current_group_person" select="current-group()/../../."/>
+                        <!--<xsl:for-each-group select="current-group()/../../.[ position() = 1 ] " group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"><!-\- firmy do -\->
+                            <xsl:variable name="position_1" select="position()"/>    
+                            <xsl:variable name="firma_do_id" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/> 
+                            
+                            <xsl:for-each-group select="$current_group_person[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last()]/*[position()=1]/@fid = $firma_do_id  and position() = 1] " group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]/@fid"> <!-\- pracownicy -\-> <!-\- X11 -\->
+                                <xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+                                    <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
+                                    
+                                    <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
+                                    
+                                    <xsl:with-param name="context" select="."/>
+                                </xsl:call-template>
+                            </xsl:for-each-group>
+                            
+                            
+                        </xsl:for-each-group>-->
+                        
+                        <draft-comment author="a.binder">#2253 - testing  </draft-comment>
                         
+                        <!--<xsl:for-each-group select="current-group()/../../.[ position() &lt; 10 ] " group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"><!-\- firmy do -\->
+                            <xsl:variable name="position_1" select="position()"/>    
+                            <xsl:variable name="firma_do_id" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/> <!-\- X11 -\->
+                            <xsl:comment>#278 $firma_do_id=<xsl:value-of select="$firma_do_id"/>; $position_1=<xsl:value-of select="$position_1"/>; do <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/></xsl:comment>
+                            <xsl:message>#278 $firma_do_id=<xsl:value-of select="$firma_do_id"/>; $position_1=<xsl:value-of select="$position_1"/>; do <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/></xsl:message>
+                            
+                            <xsl:for-each-group select="$current_group_person[ BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last()]/*[position()=1]/@fid = $firma_do_id  and position() &lt; 10 ] " group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]/@fid"> <!-\- pracownicy -\-> <!-\- X11 -\->
+                                <xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+                                    <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
+                                    <xsl:with-param name="row_obj_middle" select="$title_copy_to_middle_ref"/>
+                                    <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
+                                    
+                                    <xsl:with-param name="context" select="$context"/>
+                                </xsl:call-template>
+                                
+                            </xsl:for-each-group>
+                        </xsl:for-each-group>-->
                         
                         
-                        <simpletable frame="all" relcolwidth="1* 3* 3*" id="{$uuid}simpletable_rows__child_person_{$group_name}_{$refpos}">
+                        <simpletable frame="all" relcolwidth="1* 3* 3* 3*" id="{$uuid}simpletable_rows__child_person_{$group_name}_{$refpos}">
                             <strow>
                                 <stentry>Lp</stentry>
                                 <!--<stentry>Uwagi!</stentry>-->
                                 <stentry> od</stentry>
+                                <stentry> w</stentry>
                                 <stentry> do</stentry>
                                 
                             </strow>
@@ -2256,6 +2297,9 @@
                                 <xsl:copy-of select="$current_group_person"></xsl:copy-of>
                             </debug.current_group_person>-->
                             <xsl:message>#2425 current-group()/../../.[ position() &lt; 10 ]  = <xsl:value-of select="count(current-group()/../../.[ position() &lt; 10 ]) "/></xsl:message>
+                            
+                            
+                            
                             <xsl:for-each-group select="current-group()/../../.[ position() &lt; 10 ] " group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"><!-- firmy do -->
                                 <xsl:variable name="position_1" select="position()"/>    
                                 <xsl:variable name="firma_do_id" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  last()]/*[ position() = 1]/@fid"/> <!-- X11 -->
@@ -2266,6 +2310,8 @@
                                     <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref" select=".">
                                         <xsl:with-param name="position_1" select="$position_1"/>
                                         <xsl:with-param name="position" select="position()"/>
+                                        <xsl:with-param name="context" select="$context"/>
+                                        <xsl:with-param name="title" select="$title"/>
                                     </xsl:apply-templates>
                                 </xsl:for-each-group>
                             </xsl:for-each-group>
@@ -2273,6 +2319,8 @@
                             
                             <!--</xsl:for-each>-->
                         </simpletable>
+                        
+                        
                     </body>
                 </topic>
             </xsl:result-document>
@@ -2358,6 +2406,8 @@
                                     <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref" select=".">
                                         <xsl:with-param name="position_1" select="$position_1"/>
                                         <xsl:with-param name="position" select="position()"/>
+                                        <xsl:with-param name="context" select="."/>
+                                        <xsl:with-param name="title" select="''"/>
                                     </xsl:apply-templates>
                                 </xsl:for-each-group>
                             </xsl:for-each-group>
@@ -2395,6 +2445,8 @@
     <xsl:template match="*" mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref">
         <xsl:param name="position_1" required="yes"/>
         <xsl:param name="position" required="yes"/>
+        <xsl:param name="context" required="yes"/>
+        <xsl:param name="title" required="yes"/>
         <!-- uwaga lapie BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object -->
         <xsl:message>#2599 MID REF $position_1 = <xsl:value-of select="$position_1"/>; $position=<xsl:value-of select="$position"/> ; @fid = <xsl:value-of select="@fid"/>; </xsl:message>
         <xsl:comment>#278b pracownik od <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]/@fid"/></xsl:comment>
@@ -2416,6 +2468,7 @@
             <stentry>
                 <xref > <!-- href="../{ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/@fid ,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/name(),BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/@fid,@pos))}" -->
                     <xsl:copy-of select="system_cache__dita:files.dita_pair.keyref(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[  last() ]/*[1]/@fid)" copy-namespaces="no"/>
+                    <!--link-->
                     <!--<xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[ position() = 1 ]/concat(imiona,' ',nazwisko,' (',source,')')"/>-->
                 </xref>
                 <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]/*">
@@ -2425,11 +2478,25 @@
                     <xsl:copy-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]"></xsl:copy-of>
                 </test>-->
             </stentry>
+            <stentry>
+                <xref > <!-- href="../{ system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/@fid ,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/name(),BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*[ position() = 1]/@fid,@pos))}" -->
+                    <xsl:copy-of select="system_cache__dita:files.dita_pair.keyref($context/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid,$context/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid)" copy-namespaces="no"/>
+                    <!--link-->
+                    <!--<xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[ position() = 1 ]/concat(imiona,' ',nazwisko,' (',source,')')"/>-->
+                </xref>
+                <!--<xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref.note" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]/*">
+                    
+                </xsl:apply-templates>-->
+                <!--<test>
+                    <xsl:copy-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() =  1]/*[ position() = 1]"></xsl:copy-of>
+                </test>-->
+            </stentry>
             <stentry>
                 <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[last()]/*[1]/system_cache__dita:localname.translate(local-name())"/>
                 <xsl:text> </xsl:text>
                 <xref>
                     <xsl:copy-of select="system_cache__dita:files.context.title.keyref(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1],'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA')" copy-namespaces="no"/>
+                    <!--link-->
                 </xref>
                 <!--<xsl:choose>
                     <xsl:when test="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/BI_audit_ENERGA_RUM_KONTRAHENCI">
@@ -2549,6 +2616,8 @@
                                     <xsl:apply-templates mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.middle_ref" select=".">
                                         <xsl:with-param name="position_1" select="$position_1"/>
                                         <xsl:with-param name="position" select="position()"/>
+                                        <xsl:with-param name="title" select="''"/>
+                                        <xsl:with-param name="context" select="."/>
                                     </xsl:apply-templates>
                                     <!--<xsl:variable name="group_name_refpos" select="../../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/BI_audit_ENERGA_PRACOWNICY/system_cache__appinfo:truncate_special_and_do_uppercase(concat(imiona,'_',nazwisko,'_',nip))"/>
                                     <xsl:variable name="group_name_refpos.kon" select="concat(../../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = last() ]/*[ position() = 1]/system_cache__appinfo:truncate_special_and_do_uppercase(concat(ID,Pelna_nazwa_kontrahenta)),'1_DO')"/>
@@ -3113,18 +3182,27 @@
                                                 <stentry>
                                                     <xref>
                                                         <xsl:copy-of select="system_cache__dita:files.context.title.keyref(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1],$title)" copy-namespaces="no"/>
+                                                        <!--link-->
                                                     </xref>
                                                 </stentry>
                                                 <stentry>
                                                     <!--<xsl:value-of select="system_cache__dita:localname.translate(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/local-name())"/>-->
                                                     <xref>
                                                         <xsl:copy-of select="system_cache__dita:files.dita_pair.keyref(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/@fid)" copy-namespaces="no"/>
+                                                        <!--link-->
                                                     </xref>
                                                 </stentry>
                                             </strow>
                                             
                                         </xsl:for-each-group>
                                     </simpletable>
+                                    <!--<xsl:for-each-group select="current-group()" group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/local-name()">
+                                        <xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+                                            <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
+                                            <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
+                                            <xsl:with-param name="context" select="$context"/>
+                                        </xsl:call-template>
+                                    </xsl:for-each-group>-->
                                 </p>
                             </body>
                         </topic>
@@ -3132,6 +3210,7 @@
                 </topicref>
     </xsl:template>
     
+    
     <xsl:template mode="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA" match="comment()|text()">
         <xsl:message>#3100 fixed text leackage</xsl:message>
     </xsl:template>
@@ -3176,6 +3255,18 @@
                                         <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/concat(imiona,' ', nazwisko, ' ',nazwa,' ', nip)"/><!-\- XX1 sure -\->
                                     </xref>-->
                             
+                            <!--<xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+                                <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
+                                <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
+                                <xsl:with-param name="context" select="$context"/>
+                            </xsl:call-template>-->
+                            
+                            <!--<xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+                                <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
+                                <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
+                                <!-\-<xsl:with-param name="context" select="$context"/>-\->
+                            </xsl:call-template>-->
+                            
                             <simpletable frame="all" relcolwidth="1* 1*" >
                                 <sthead>
                                     <!--<stentry>rejestr</stentry>-->
@@ -3463,6 +3554,10 @@
                                     <xsl:copy-of select="system_cache__dita:files.context.title.keydef(.,'map',$title)" copy-namespaces="no"/>
                                     <xsl:comment>#3369 system_cache__dita:files.href.dita_pair.title.keydef.attr </xsl:comment>
                                     <xsl:copy-of select="system_cache__dita:files.dita_pair.context.title.keydef.attr(.,'map',$title,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1]/*[1]/@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/@fid)" copy-namespaces="no"/>
+                                    
+                                    <!-- for middle-ref match for whole row  -->
+                                    <xsl:copy-of select="system_cache__dita:files.href.dita_pair.title.keydef.attr(system_cache__dita:files.key.href.write.topic.title.context(.,$title),ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid,ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid)" copy-namespaces="no"/>
+                                    
                                     <xsl:message>#1762 writing <xsl:value-of select="$group_name"/> ; also href = <xsl:value-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save))"/>; </xsl:message>
                                     <xsl:result-document href="{system_cache__dita:files.key.href.write.topic.title.context(.,$title)}"><!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save)) --><!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save)) --> <!-- {$temp}/{$uuid}/{$group_name}.dita -->
                                         <topic id="{$uuid}topiaac_simpletable_cheat_OTHER_pos_{position()}_row_{$group_name.id}_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -3513,9 +3608,15 @@
                                             
                                             <body>
                                                 <draft-comment author="a.binder">#1376a-1 $group_name=<xsl:value-of select="$group_name"/>; </draft-comment>
+                                                <!-- ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>; /n=<xsl:value-of select="ancestor::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/name()"/>;  current-group()/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="current-group()/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>;;;;  ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid=<xsl:value-of select="ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/@fid"/>; -->
                                                 <p>
+                                                    <!--<xsl:call-template name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.ends.desc.table">
+                                                        <xsl:with-param name="row_obj_first" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]"/>
+                                                        <xsl:with-param name="row_obj_last" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]"/>
+                                                        <!-\-<xsl:with-param name="context" select="$context"/>-\->
+                                                    </xsl:call-template>-->
                                                     
-                                                    <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.title" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]">
+                                                    <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.title" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = 1 ]">
                                                         <xsl:with-param name="title">Ścieżka śledzenia do </xsl:with-param>
                                                     </xsl:apply-templates>
                                                     <!--<xsl:choose>
@@ -3575,6 +3676,12 @@
 <!--                                                    <draft-comment author="a.binder">#1411_debug obj:</draft-comment>
                                                     <xsl:copy-of select="."/>-->
                                                     
+                                                    <draft-comment author="a.binder">#1376a-2 $group_name=<xsl:value-of select="$group_name"/>; curr/@fid = <xsl:value-of select="@fid"/></draft-comment>
+                                                    
+                                                    <!--<DEBUG_3618>
+                                                        <xsl:copy-of select="."/>
+                                                    </DEBUG_3618>-->
+                                                    
                                                     <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.table" select=".">
                                                         <xsl:with-param name="title">Ścieżka śledzenia do </xsl:with-param>
                                                     </xsl:apply-templates>

+ 41 - 7
SE/schema/default_db_xml_cache.public/default_db/tree_to_dita.localname.translate.xsl

@@ -8,6 +8,17 @@
     version="2.0">
     
     
+    <!--<xsl:function name="system_cache__dita:localname.translate">
+        <xsl:param name="localname"/>
+        <xsl:param name="groups"/>
+        <xsl:variable name="localname" select="system_cache__dita:localname.translate($localname)"/>
+        <xsl:choose>
+            <xsl:when test="contains($localname,'L_APP')">
+                <
+            </xsl:when>
+        </xsl:choose>
+    </xsl:function>-->
+    
     <xsl:function name="system_cache__dita:localname.translate">
         <xsl:param name="localname"/>
         <xsl:choose>
@@ -24,14 +35,37 @@
             <xsl:when test="$localname='TERYT_adresy'"> Teryt/adres. </xsl:when>
             <xsl:when test="$localname='TERYT_SYM'"> miejsc. </xsl:when>
             <xsl:when test="$localname='TERYT_SYM_UL'"> sym ul. </xsl:when>
-            <xsl:when test="$localname='nrDomu'"> nr domu </xsl:when>
-            <xsl:when test="$localname='nrLokalu'"> nr lok. </xsl:when>
+            <xsl:when test="$localname='taxpayer'"> płatnik VAT ? </xsl:when>
+            <xsl:when test="$localname='nrDomu'"> nr domu <xsl:comment>ADRES</xsl:comment></xsl:when>
+            <xsl:when test="$localname='nrLokalu'"> nr lok. <xsl:comment>ADRES</xsl:comment></xsl:when>
+            
+            <xsl:when test="$localname='L_APPOITMENT_INFO'"> Adnotacje <xsl:comment>L_APP</xsl:comment></xsl:when>
+            <xsl:when test="$localname='A_RECORD_CREATE_AUTHOR'"> kto utw. rek. <xsl:comment>A_ADM</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='A_RECORD_CREATE_DATE'"> data utw. rek. <xsl:comment>A_ADM</xsl:comment></xsl:when>
+            <xsl:when test="$localname='A_RECORD_UPDATE_DATE'"> data akt. rek. <xsl:comment>A_ADM</xsl:comment></xsl:when>
+            <xsl:when test="$localname='A_RECORD_UPDATE_AUTHOR'"> kto akt. rek. <xsl:comment>A_ADM</xsl:comment></xsl:when>
+            <xsl:when test="$localname='L_APPOITMENT_DATE'"> data spotk <xsl:comment>L_APP</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='L_APPOITMENT_USER'"> umow użytk. <xsl:comment>L_APP</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='L_APPOITMENT_PERIOD'"> dł spotk.<xsl:comment>L_APP</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='L_APPOITMENT_TYPE'"> typ  spotk.<xsl:comment>L_APP</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='A_STATUS'"> status.<xsl:comment>L_APP</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='STATUS_INFO'"> status.<xsl:comment>L_APP</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='A_ADM_COMPANY'"> zapis dla.<xsl:comment>A_ADM</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='A_CLASSIFIED'"> odczyt dla.<xsl:comment>A_ADM</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='SYNC_SQIX_STATUS'"> status synch.<xsl:comment>DEBUG</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='cached'"> status synch.<xsl:comment>DEBUG</xsl:comment> </xsl:when>
+            
+            <xsl:when test="$localname='imiona'"> imiona <xsl:comment>NAME</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='nazwisko'"> nazwisko <xsl:comment>NAME</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='pesel'"> pesel <xsl:comment>ID_DOC</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='krs'"> krs <xsl:comment>ID_DOC</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='regon'"> regon <xsl:comment>ID_DOC</xsl:comment> </xsl:when>
+            
+            <xsl:when test="$localname='ulica'"> ulica <xsl:comment>ADRES</xsl:comment> </xsl:when>
+            <xsl:when test="$localname='nr'"> nr <xsl:comment>ADRES</xsl:comment> </xsl:when>
+            
+            <xsl:when test="$localname='PERNR'"> PERNR <xsl:comment>DEBUG</xsl:comment> </xsl:when>
             
-            <xsl:when test="$localname='L_APPOITMENT_INFO'"> Adnotacje </xsl:when>
-            <xsl:when test="$localname='A_RECORD_CREATE_AUTHOR'"> kto utw. rek. </xsl:when>
-            <xsl:when test="$localname='A_RECORD_CREATE_DATE'"> data utw. rek. </xsl:when>
-            <xsl:when test="$localname='A_RECORD_UPDATE_DATE'"> data akt. rek. </xsl:when>
-            <xsl:when test="$localname='A_RECORD_UPDATE_AUTHOR'"> kto akt. rek. </xsl:when>
             
             <xsl:when test="contains($localname,'BI_audit_')">
                 <xsl:value-of select="replace($localname,'BI_audit_','')"/>