Pārlūkot izejas kodu

fixy lokalne, - troche srodkow + namespace - missing addresses - current in progress

a.binder 7 gadi atpakaļ
vecāks
revīzija
6c98185164

+ 1 - 0
SE/schema/WPS_Functions/bocian-graph-to-html/bcgtht.tree_to_dita.xsl

@@ -25,6 +25,7 @@
                 xmlns:default_db__x3A__BI_audit_MSIG_person="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_person"
                 xmlns:default_db__x3A__BI_audit_operational_raport_note="https://biuro.biall-net.pl/wfs/default_db/BI_audit_operational_raport_note"
                 xmlns:default_db__x3A__BI_audit_MSIG_address="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_address"
+                xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY_adresy="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY_adresy"
                 
                 xmlns:yed="http://www.yworks.com/xml/yed/3"
                 xmlns:p5xmli="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xmlschema_interface/p5xmli.xsd"

+ 2 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.xsl

@@ -47,6 +47,7 @@
             <xsl:message>#2555 system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal zrodlo = <xsl:value-of select="."/></xsl:message>
             <topichead > <!-- navtitle="żródło:{.}  Powiązania do osób z KRS ogólnie" -->
                 <xsl:attribute name="navtitle"><xsl:value-of select="."/> - <xsl:value-of select="$navtitle"/></xsl:attribute>
+                <xsl:attribute name="props">name__universal</xsl:attribute>
                 <xsl:if test="$keys"><xsl:attribute name="keys" select="$keys"/></xsl:if>
                 <xsl:for-each select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.values.uniq//uniq[@source=$source]">
                     
@@ -405,6 +406,7 @@
     <xsl:template mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.table" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
         <draft-comment author="a.binder">#159 system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.table  </draft-comment>
         <simpletable frame="all" relcolwidth="1* 2* 2* 4*" id="{$uuid}__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.last.table_{system_cache__dita:files.topic.table.id('',@fid)}_path_{generate-id()}">
+            <xsl:attribute name="props">mode__universal.last.table</xsl:attribute>
             <strow>
                 <stentry>Lp</stentry>
                 <stentry>Sposób wyszukania</stentry>

+ 96 - 6
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

@@ -34,7 +34,7 @@
     <xsl:param name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_FAKTURY.Kwota_netto" select="'Kwota_netto'"/>
     
     <xsl:param name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_person.print" select="'no'"/><!-- 'yes' -->
-    
+    <xsl:param name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.print.middle" select="'no'"/>
     <!-- duze roznice
         <Data_zawarcia>29.04.2008</Data_zawarcia>
         <Okres_obowiazywania_umowy>Bezterminowa</Okres_obowiazywania_umowy>
@@ -728,6 +728,7 @@
                         <topichead navtitle="Powiązania innych niż pracownicy obiektów wejściowych (1e) - grupowanie po źródłach">
                             <xsl:for-each select="$sources/sources/source">
                                 <topichead >
+                                    <xsl:attribute name="props">mode__ditamap__root</xsl:attribute>
                                     <xsl:choose>
                                         <xsl:when test="string-length(.) &gt; 0">
                                             <xsl:attribute name="navtitle">Źródło danych (<xsl:value-of select="."/>) - Powiązania innych niż pracownicy obiektów wejściowych (1e-s) </xsl:attribute>
@@ -1615,7 +1616,16 @@
                                                 </xsl:when>
                                                 <xsl:otherwise>
                                                     <xsl:variable name="refpos" select="concat($group_name,'_', position())"/>
-                                                    <topicref href="{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href($group_name)}"/>
+                                                    <topicref href="{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href($group_name)}">
+                                                        <xsl:attribute name="props">
+                                                            <xsl:choose>
+                                                                <xsl:when test="position()=1">pos__first</xsl:when>
+                                                                <xsl:when test="position()=last()">pos__last</xsl:when>
+                                                                <xsl:otherwise>pos__else</xsl:otherwise>
+                                                            </xsl:choose>
+                                                            <xsl:text> mode__cust_fe1626</xsl:text>
+                                                        </xsl:attribute>
+                                                    </topicref>
                                                 </xsl:otherwise>
                                             </xsl:choose>
                                         </xsl:when>
@@ -1818,6 +1828,14 @@
         <topicref ><!-- XX7 href="{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','','1'))}" --> <!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position) -->
             <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"/> <!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.dita.key.attr(.) -->
+            <xsl:attribute name="props">
+                <xsl:choose>
+                    <xsl:when test="position()=1">pos__first</xsl:when>
+                    <xsl:when test="position()=last()">pos__last</xsl:when>
+                    <xsl:otherwise>pos_else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__BaERK</xsl:text>
+            </xsl:attribute>
             <xsl:message>#781 debug : result doc: <xsl:value-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','','1'))"/>. dita</xsl:message>
             
             <xsl:variable name="BI_audit_ENERGA_RUM_UMOWY_fix" select="$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[@fid = current()/@fid ]"/> <!-- ]$resulset/BI_audit_ENERGA_RUM_KONTRAHENCI[ID/text()= current()/ID ] --><!-- XX1  -->
@@ -2159,6 +2177,15 @@
         <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:attribute name="print" select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_person.print"/>
+            <xsl:attribute name="props">
+                <xsl:value-of select="concat('print_',$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_person.print)"/>
+                <xsl:choose>
+                    <xsl:when test="position()=1"> pos__first </xsl:when>
+                    <xsl:when test="position()=last()"> pos__last </xsl:when>
+                    <xsl:otherwise> pos__else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__BaERKPp</xsl:text>
+            </xsl:attribute>
             <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"/>
             <xsl:copy-of select="system_cache__dita:files.context.title.keydef(.,'map',$title)" copy-namespaces="no"/>
@@ -2324,7 +2351,16 @@
             <!-- new -->
             <xsl:copy-of select="system_cache__dita:files.key.title.context.href(current(),'map',$group_name)" copy-namespaces="no"/>
             <xsl:copy-of select="system_cache__dita:files.context.title.keys(current(),$group_name)" copy-namespaces="no"/>
+            <xsl:attribute name="props">
+                <xsl:choose>
+                    <xsl:when test="position()=1">pos__fist</xsl:when>
+                    <xsl:when test="position()=last()">pos__last</xsl:when>
+                    <xsl:otherwise>pos__else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__raport_note</xsl:text>
+            </xsl:attribute>
             <xsl:copy-of select="system_cache__dita:files.href.context.title.keydef(system_cache__dita:files.key.title.context.href(current(),'map',$group_name),current(),'BI_audit_operational_raport_note')" copy-namespaces="no"/>
+            
             <!-- old -->
             <!--<xsl:copy-of select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.dita.fid.keydef($href,$group_name)" copy-namespaces="no"/>--><!-- TODO -->
             
@@ -2562,6 +2598,14 @@
         <xsl:variable name="refpos" select="concat(krs,'_', position())"/>
         
         <topicref href="{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position))}.dita">
+            <xsl:attribute name="props">
+                <xsl:choose>
+                    <xsl:when test="position()=1">pos__first</xsl:when>
+                    <xsl:when test="position()=last()">pos__last</xsl:when>
+                    <xsl:otherwise>pos__else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__POWIAZANIA_krs</xsl:text>
+            </xsl:attribute>
             <xsl:message>#545 debug : @fid=<xsl:value-of select="@fid"/>; $position=<xsl:value-of select="$position"/>;  result doc: <xsl:value-of select="$group_name"/>/<xsl:value-of select="$refpos"/></xsl:message>
             <xsl:result-document href="{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position))}">
                 <topic id="{$uuid}topic_simpletable_{$group_name}_{position()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -2874,6 +2918,14 @@
         <xsl:variable name="current" select="."/>
         <xsl:variable name="current_nip" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position() = last()]/*/NIP"/>
         <topicref href="{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}_DO/{position()}.dita -->
+            <xsl:attribute name="props">
+                <xsl:choose>
+                    <xsl:when test="position()=1">pos__first</xsl:when>
+                    <xsl:when test="position()=last()">pos__last</xsl:when>
+                    <xsl:otherwise>pos__else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__POWIAZANIA_row_do</xsl:text>
+            </xsl:attribute>
             <xsl:result-document href="{system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',position()))}"> <!-- {$temp}/{$uuid}/{$group_name}_DO/{position()}.dita -->
                 <topic id="{$uuid}topic_simpletable_cheat_POS__row_{$group_name}_DO_{position()}_{ generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
@@ -3092,6 +3144,24 @@
         <topicref> <!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'',$current-grouping-key,$position)) --><!-- {$group_name}_LIST.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($context/*[1],$title)" copy-namespaces="no"/>
+            <xsl:if test="string-length($system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.print.middle) &gt; 0 and not(position() = 1) and not(position() = last())">
+                <xsl:attribute name="print">
+                   <!-- <xsl:choose>
+                        <xsl:when test="not(position() = 1) and not(position() = last())">-->
+                            <xsl:value-of select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.print.middle"/>
+                        <!--</xsl:when>
+                    </xsl:choose>-->
+                </xsl:attribute>
+                <xsl:attribute name="props" select="concat('print_',$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.print.middle)"/>
+            </xsl:if>
+            <xsl:attribute name="props">
+                <xsl:choose>
+                    <xsl:when test="position()=1">pos__first</xsl:when>
+                    <xsl:when test="position()= last()">pos__last</xsl:when>
+                    <xsl:otherwise>pos__else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__row_LISTA</xsl:text>
+            </xsl:attribute>
             <xsl:comment>#3063 system_cache__dita:files.href.context.title.keydef</xsl:comment>
             <xsl:copy-of select="system_cache__dita:files.href.context.title.keydef(system_cache__dita:files.key.title.context.href(current(),'map',$title),BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[1]/*[1],'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA')" copy-namespaces="no"/>
             <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,'',$current-grouping-key,$position)) --><!-- {$temp}/{$uuid}/{$group_name}_LIST.dita -->
@@ -3219,6 +3289,20 @@
         <topicref> <!-- system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href.write(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'',$current-grouping-key,$position)) --><!-- {$group_name}_LIST.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($context/*[1],$title)" copy-namespaces="no"/>
+            <xsl:attribute name="props">
+                <xsl:choose>
+                    <xsl:when test="position() = 1 ">pos_first</xsl:when>
+                    <xsl:when test="position() = last()">pos_last</xsl:when>
+                    <xsl:otherwise>pos_else</xsl:otherwise>
+                </xsl:choose>
+                <xsl:text> mode__row_LISTA</xsl:text>
+            </xsl:attribute>
+            <xsl:choose>
+                <xsl:when test="not(position()=1) and not(position()=last()) and string-length($system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.print.middle) &gt;0">
+                    <xsl:attribute name="print" select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.print.middle"/>
+                </xsl:when>
+            </xsl:choose>
+            
             <xsl:comment>#3063_B system_cache__dita:files.href.context.title.keydef</xsl:comment>
             <xsl:copy-of select="system_cache__dita:files.href.context.title.keydef(system_cache__dita:files.key.title.context.href(current(),'map',$title),*[1],'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA')" copy-namespaces="no"/>
             <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,'',$current-grouping-key,$position)) --><!-- {$temp}/{$uuid}/{$group_name}_LIST.dita -->
@@ -3287,10 +3371,7 @@
                                     </stentry>
                                     
                                 </strow>
-                                        
-                                     
-                                    
-                               
+                             
                             </simpletable>
                         </p>
                     </body>
@@ -3350,6 +3431,7 @@
                         <xsl:choose>
                             <xsl:when test=" position() = 0 ">
                                 <topichead navtitle=" Pominięto więcej przykładów z uwagi na ilość"/>
+                                <xsl:attribute name="props">mode__POWIAZANIA_row</xsl:attribute>
                             </xsl:when>
                             <xsl:when test=" position() = 0 ">
                                 <xsl:variable name="current-save-file-id" select="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.href(system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.DETECT.key(@fid,'','',$position_save))"/>
@@ -3533,6 +3615,14 @@
                                 
                                 <topicref > <!-- <xsl:copy-of select="system_cache__dita:files.key.title.context.href(current(),'map',$title)"/> --> <!-- {$group_name}.dita XXS -->
                                     <xsl:copy-of select="system_cache__dita:files.key.title.context.href(current(),'map',$title)" copy-namespaces="no"/>
+                                    <xsl:attribute name="props">
+                                        <xsl:choose>
+                                            <xsl:when test="position()=1">pos_first</xsl:when>
+                                            <xsl:when test="position()=last()">pos_last</xsl:when>
+                                            <xsl:otherwise>pos_else</xsl:otherwise>
+                                        </xsl:choose>
+                                        <xsl:text> mode__POWIAZANIA_row_3624 </xsl:text>
+                                    </xsl:attribute>
                                     <xsl:choose>
                                         <xsl:when test="position() &gt; $limit">
                                             <xsl:attribute name="processing-role">resource-only</xsl:attribute>