a.binder 5 năm trước cách đây
mục cha
commit
4ee0029f2b
12 tập tin đã thay đổi với 497 bổ sung106 xóa
  1. 28 18
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.xsl
  2. 6 1
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_4UA.graph.deals.xsl
  3. 3 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_4UA.xsl
  4. 261 0
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.xsl
  5. 47 42
      SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.xsl
  6. 1 1
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-Close.xsl
  7. 2 2
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-CloseYaxis.xsl
  8. 13 2
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.xsl
  9. 19 2
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data.xsl
  10. 3 1
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data__x3A__read.xsl
  11. 36 15
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.translate.xsl
  12. 78 22
      se.oxygen.xpr

+ 28 - 18
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.xsl

@@ -556,6 +556,7 @@
         <xsl:param name="fid"/>
         <xsl:param name="end_fid"/>
         <xsl:param name="get_wfs:name_from_fid"/>
+        <xsl:param name="system_cache__dita:content__x3A__minimize" select="false()"/>
         <xsl:variable name="context" select="."/>
         <xsl:variable name="system_cache__dita:paragraph_allowed_element__x3A__calculated" select="system_cache__dita:element.next($system_cache__dita:element__x3A__parent)">
             <!--<xsl:choose>
@@ -565,10 +566,12 @@
                 <xsl:otherwise>p</xsl:otherwise>
             </xsl:choose>-->
         </xsl:variable>
+        
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="Numer_kontrahenta/text()|ID/text()|source/text()|jednostka_organizacyjna/text()">
                 <!--<sup>-->
-                   <ph>
+                  <ph rev="$system_cache__dita:content__x3A__minimize=={$system_cache__dita:content__x3A__minimize}">
                     <xsl:if test="Numer_kontrahenta/text()"> nr kontr: <b><xsl:value-of select="Numer_kontrahenta"/></b></xsl:if>
                     <xsl:if test="jednostka_organizacyjna/text()"> nr kontr: <b><xsl:value-of select="jednostka_organizacyjna"/></b></xsl:if>
                     <xsl:if test="ID/text()"> ID <b><xsl:value-of select="ID"/></b></xsl:if>
@@ -658,6 +661,7 @@
         </xsl:choose>
         
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="krs/text()|regon/text()|KRS/text()|REGON/text()|NIP/text()|nip/text()">
                 <!--<sup>-->
                     <ph>
@@ -674,6 +678,7 @@
         </xsl:choose>
         
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="S_kraj/text()|S_wojewodztwo/text()">
                 <!--<sup>-->
                     <ph>
@@ -687,6 +692,7 @@
         
         
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <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()">
                 <!--<sup>-->
                     <ph>
@@ -707,6 +713,7 @@
         </xsl:choose>
         
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="A_poczta/text()|kodPocztowy/text()|A_kod/text()">
                 <!--<sup>-->
                     <ph>
@@ -719,6 +726,7 @@
         </xsl:choose>
         
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="BI_audit_ENERGA_PRACOWNICY_adresy/*">
                 <xsl:for-each select="BI_audit_ENERGA_PRACOWNICY_adresy">
                     <xsl:element name="{$system_cache__dita:paragraph_allowed_element__x3A__calculated}">
@@ -741,6 +749,7 @@
         </xsl:choose>
         
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="TERYT_names/*">
                 <xsl:for-each select="TERYT_names">
                     <xsl:element name="ph">
@@ -766,6 +775,7 @@
             </xsl:when>
         </xsl:choose>
         <xsl:choose>
+            <xsl:when test="$system_cache__dita:content__x3A__minimize = true()"/>
             <xsl:when test="BI_audit_taxpayer   or $context/BI_audit_taxpayer">
                 <ph>
                     <ph>Status VAT: <b><xsl:value-of select="BI_audit_taxpayer/taxpayer_status_info"/></b> (stan na dzień <b><xsl:value-of select="BI_audit_taxpayer/taxpayer_status_date"/></b>)</ph>
@@ -940,30 +950,30 @@
         
         
         
-        <xsl:variable name="p5gnuplot:barChart_row_object">
+        <!--<xsl:variable name="p5gnuplot:barChart_row_object">
             <xsl:call-template name="p5gnuplot:barChart_row_object"/>
-        </xsl:variable>
+        </xsl:variable>-->
         
         
         
-        <foreign rev="899 test to svxg row" props="n/{name()}  cnt/row={count($p5gnuplot:barChart_row_object//relation_DateRangeElements)}">
+        <!--<foreign rev="899 test to svxg row" props="n/{name()}  cnt/row={count($p5gnuplot:barChart_row_object//relation_DateRangeElements)}">
             <xsl:copy-of select="$p5gnuplot:barChart_row_object"></xsl:copy-of>
-        </foreign>
+        </foreign>-->
         
-        <xsl:choose>
+        <!--<xsl:choose>
             <xsl:when test="$p5gnuplot:barChart_row_object//relation_DateRangeElements[2]">
                 <xsl:apply-templates mode="barChart" select="$p5gnuplot:barChart_row_object"/>
             </xsl:when>
             <xsl:otherwise>
                 <xsl:comment>#616 bypassed $p5gnuplot:barChart_row_object//relation_DateRangeElements[2]</xsl:comment>
             </xsl:otherwise>
-        </xsl:choose>
+        </xsl:choose>-->
         
         
     </xsl:template>
     
     
-    <xsl:template name="p5gnuplot:barChart_row_object">
+    <!--<xsl:template name="p5gnuplot:barChart_row_object">
         <svg-container rev="test994">
         <barChart
             xmlns:default_db__x3A__BI_audit_ENERGA_RUM_UMOWY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_UMOWY"
@@ -974,15 +984,15 @@
             <xsl:apply-templates mode="p5gnuplot:barChart_row_object"/>
         </barChart>
         </svg-container>
-    </xsl:template>
+    </xsl:template>-->
     
     
-    <xsl:template mode="p5gnuplot:barChart_row_object" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
+    <!--<xsl:template mode="p5gnuplot:barChart_row_object" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row">
         <xsl:comment>#997 name <xsl:value-of select="name()"/></xsl:comment>
         <xsl:apply-templates mode="#current"/>
-    </xsl:template>
+    </xsl:template>-->
     
-    <xsl:template mode="p5gnuplot:barChart_row_object" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[relation_DateRangeElements]">
+    <!--<xsl:template mode="p5gnuplot:barChart_row_object" match="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[relation_DateRangeElements]">
         
         <xsl:element name="{*[1]/name()}">
             <xsl:copy-of select="@generate-id"/>
@@ -990,21 +1000,21 @@
             <nazwa>
                 <xsl:value-of select="*[1]/*[@default_db__x3A__BI_audit_BENFORD:NameField]"/>
             </nazwa>
-            <!--<xsl:copy-of select="following-sibling::relation_DateRangeElements"/>-->
+            <!-\-<xsl:copy-of select="following-sibling::relation_DateRangeElements"/>-\->
             <xsl:copy-of select="relation_DateRangeElements"></xsl:copy-of>
         </xsl:element>
-        <!--<xsl:apply-templates mode="#current" />--><!-- select="*[following-sibling::relation_DateRangeElements]" -->
-    </xsl:template>
+        <!-\-<xsl:apply-templates mode="#current" />-\-><!-\- select="*[following-sibling::relation_DateRangeElements]" -\->
+    </xsl:template>-->
     
     <!--<xsl:template mode="p5gnuplot:barChart" match="relation_DateRangeElements">
         
     </xsl:template>-->
     
-    <xsl:template mode="p5gnuplot:barChart_row_object" match="*">
+    <!--<xsl:template mode="p5gnuplot:barChart_row_object" match="*">
         <xsl:comment>#1000 name<xsl:value-of select="name()"/></xsl:comment>
-    </xsl:template>
+    </xsl:template>-->
     
-    <xsl:template mode="p5gnuplot:barChart_row_object" match="text()|comment()"/>
+    <!--<xsl:template mode="p5gnuplot:barChart_row_object" match="text()|comment()"/>-->
         
     
     

+ 6 - 1
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_4UA.graph.deals.xsl

@@ -576,7 +576,12 @@
         <!--<foreign props="#565 copy">
             
         </foreign>-->
-        
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__p5gnuplot:interface.for-each-group.input.variable/*/*"/>
+            <xsl:otherwise>
+                <sub>Nie odnaleziono danych dla <xsl:value-of select="$title"/></sub>
+            </xsl:otherwise>
+        </xsl:choose>
         
     </xsl:template>
     

+ 3 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_4UA.xsl

@@ -211,6 +211,9 @@
                                     parent::*/*[position()=1]/@fid = <xsl:value-of select="parent::*/*[position()=1]/@fid"/>
                                     @@default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.end.attrs <xsl:value-of select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.values.fixed.current/@default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.end.attrs"/>
                                     @@default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.begin.attrs - <xsl:value-of select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.values.fixed.current/@default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.begin.attrs"/>
+                                    count($default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.childs.attrs.nodeset/*/*)[<xsl:value-of select="count($default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.childs.attrs.nodeset/*/*)"/>]
+                                    count($default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.begin.attrs.nodeset/*/*)[<xsl:value-of select="count($default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.begin.attrs.nodeset/*/*)"/>]
+                                    
                                 </foreign>
                                 
                             

+ 261 - 0
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.xsl

@@ -13,6 +13,8 @@
     xmlns:default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA="https://biuro.biall-net.pl/wfs/default_db/ENERGA_RUM_KONTRAHENCI_POWIAZANIA"
     xmlns:default_db__x3A__BI_audit_VALIDATE="https://biuro.biall-net.pl/wfs/default_db/BI_audit_VALIDATE"
     xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    xmlns:system_cache__dita__x3A__svg="http://biuro.biall-net.pl/WPS_Functions/system_cache__dita__x3A__p5gnuplot/system_cache__dita__x3A__svg.xsd"
+    xmlns:svg="http://www.w3.org/2000/svg"
     exclude-result-prefixes="xs "
     version="2.0"><!-- system_cache__appinfo system_cache__dita ogr Benford default_db get_wfs p5 p5gnuplot -->
     
@@ -33,6 +35,32 @@
         <xsl:param name="limit" select="10"/>
         <xsl:param name="title" required="yes"/>
         <xsl:param name="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.values.fixed.current" required="yes" />
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:width" select="500"/>
+        <xsl:param name="system_cache__dita__x3A__svg:height" select="200"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY" select="8"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity.height" select="$system_cache__dita__x3A__svg:height * 0.7"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity.region_after" select="50"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block.total-volume.height" select="$system_cache__dita__x3A__svg:height * 0.0004"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block.hi-lo-chart-1.height" select="$system_cache__dita__x3A__svg:height * 0.0004"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block.hi-lo-chart-1.region_after.height" select="20"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:labelMajor.font-size" select="5"/>
+        <xsl:param name="system_cache__dita__x3A__svg:title.font-size" select="$system_cache__dita__x3A__svg:labelMajor.font-size * 1.5"/>
+        <xsl:param name="system_cache__dita__x3A__svg:shortdesc.font-size" select="$system_cache__dita__x3A__svg:labelMajor.font-size * 1.2"/>
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:height" select="$system_cache__dita__x3A__svg:offsetY + $system_cache__dita__x3A__svg:title.font-size +
+            $system_cache__dita__x3A__svg:shortdesc.font-size +
+            $system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity.height +
+            $system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity.region_after +
+            $system_cache__dita__x3A__svg:resolution.coordinate.block.hi-lo-chart-1.height +
+            $system_cache__dita__x3A__svg:resolution.coordinate.block.hi-lo-chart-1.region_after.height +
+            $system_cache__dita__x3A__svg:resolution.coordinate.block.total-volume.height
+            "/>
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:height.max" select="$system_cache__dita__x3A__svg:height"/>
+        
         <xsl:variable name="position_src" select="position()"/>
         
         <!--INFO: group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[position() = 1]/*[ position() = 1]/@fid" -->
@@ -459,6 +487,239 @@
                                                         <xsl:copy-of select="."/>
                                                     </DEBUG_3618>-->
                                                     
+                                                    <xsl:variable name="interested_row.463">
+                                                        <interested_row>
+                                                            <xsl:copy-of select="current-group()"/>
+                                                        </interested_row>
+                                                    </xsl:variable>
+                                                    
+                                                    <!--<foreign rev="467 assign">
+                                                        <xsl:copy-of select="$system_cache__dita__x3A__svg:data__x3A__assign"/>
+                                                    </foreign>-->
+                                                    <!--<foreign rev="471 $system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.values.fixed.current">
+                                                        <xsl:copy-of select="$system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.values.fixed.current"/>
+                                                    </foreign>-->
+                                                    <!--<foreign rev="474 interested_row.463">
+                                                        <xsl:copy-of select="$interested_row.463"/>
+                                                    </foreign>-->
+                                                    <svg-container rev="#482">
+                                                        
+                                                        <svg:svg preserveAspectRatio="xMaxYMax meet"
+                                                            width="{$system_cache__dita__x3A__svg:width}"
+                                                            height="{$system_cache__dita__x3A__svg:height.max}"
+                                                            viewBox="0 0 {$system_cache__dita__x3A__svg:width} {$system_cache__dita__x3A__svg:height.max}"
+                                                            >
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.initial">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:offsetY" select="$system_cache__dita__x3A__svg:offsetY"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:height__x3A__limit" select="$system_cache__dita__x3A__svg:height"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:width__x3A__limit" select="$system_cache__dita__x3A__svg:width"/>
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="0"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:width"/>
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="0"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:height"/>
+                                                                    
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            
+                                                            
+                                                            
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="'system_cache__dita__x3A__svg:title.font-size.default'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:increment" select="$system_cache__dita__x3A__svg:title.font-size"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:height__x3A__limit__x3A__validate" select="$system_cache__dita__x3A__svg:height" tunnel="yes"/>
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor.current.height">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.current.height">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                </xsl:call-template>
+                                                            </xsl:variable>   
+                                                            <svg:text system_cache__dita__x3A__svg:hash="#246" x="{$system_cache__dita__x3A__svg:width div 2}" y="{system_cache__dita__x3A__svg:cursor.current.Y($system_cache__dita__x3A__svg:cursor) + $system_cache__dita__x3A__svg:cursor.current.height}" ><!-- 2 * $system_cache__dita__x3A__svg:offsetY -->
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:style">
+                                                                    <xsl:with-param name="text-anchor.middle" select="true()"/>
+                                                                    <xsl:with-param name="font-size" select="$system_cache__dita__x3A__svg:title.font-size"/>
+                                                                </xsl:call-template>
+                                                                Zależności czasowe </svg:text>
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="'system_cache__dita__x3A__svg:shortdesc.font-size.default'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:increment" select="$system_cache__dita__x3A__svg:shortdesc.font-size"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:height__x3A__limit__x3A__validate" select="$system_cache__dita__x3A__svg:height" tunnel="yes"/>
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            <!--<svg:text system_cache__dita__x3A__svg:hash="#171" x="{$system_cache__dita__x3A__svg:width div 2}" y="{system_cache__dita__x3A__svg:cursor.current.Y($system_cache__dita__x3A__svg:cursor) + $system_cache__dita__x3A__svg:cursor.current.height + $system_cache__dita__x3A__svg:shortdesc.font-size }"  
+                                                                style="text-anchor:middle; font-size:{$system_cache__dita__x3A__svg:shortdesc.font-size}">Relacje kapitałowe w okresach</svg:text>-->
+                                                            
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity()"/>
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:increment" select="$system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity.height"/>
+                                                                    <xsl:with-param name="comment">#225-571 after volumes force by $system_cache__dita__x3A__svg:pheight; in this time</xsl:with-param>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:height__x3A__limit__x3A__validate" select="$system_cache__dita__x3A__svg:height" tunnel="yes"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.start.extent" select="40" tunnel="yes"/>
+                                                                    
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="concat(system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity(),'.region_after')"/>
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:next.neighbor.bottom.id"/>-->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:increment" select="$system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity.region_after"/>
+                                                                    <xsl:with-param name="comment">#235-580 bottom for timeline axis</xsl:with-param>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:height__x3A__limit__x3A__validate" select="$system_cache__dita__x3A__svg:height" tunnel="yes"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.start.extent" select="40" tunnel="yes"/>
+                                                                    
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity()"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region">system_cache__dita__x3A__svg:esolution.coordinate.region.body</xsl:with-param>
+                                                                    
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Ydata" select="'Volume'" />-->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.apply-template.mode" select="'system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal'" />
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.apply-template.select.param" select="'system_cache__dita__x3A__svg:data__x3A__assign'" />
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.labelMajor" select="true()"  />
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.openData" select="'Open'"/>-->            
+                                                                    
+                                                                    
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.position'"/>-->
+                                                                    
+                                                                    
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.name" select="'system_cache__dita__x3A__svg:data.name'"/><!-- system_cache__dita__x3A__svg:data.y1.name -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="'system_cache__dita__x3A__svg:data.position'"/><!-- system_cache__dita__x3A__svg:data.y1.value -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="'system_cache__dita__x3A__svg:data.position'"/><!-- system_cache__dita__x3A__svg:data.y1.label -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.name" select="'system_cache__dita__x3A__svg:data.name'"/><!-- system_cache__dita__x3A__svg:data.y2.name -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="'system_cache__dita__x3A__svg:data.position'"/><!-- system_cache__dita__x3A__svg:data.y2.value -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="'system_cache__dita__x3A__svg:data.position'"/><!-- system_cache__dita__x3A__svg:data.y2.label -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.name'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object'"/>
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.value" select="'system_cache__dita__x3A__svg:data.y1.value'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label" select="'system_cache__dita__x3A__svg:data.y2.label'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.value" select="'system_cache__dita__x3A__svg:data.y2.value'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.label" select="'system_cache__dita__x3A__svg:data.y2.label'"/>
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="'system_cache__dita__x3A__svg:data.y.bounds.data.value.leadingTimeYear-month.bounds'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.preceding-sibling.fid" select="'system_cache__dita__x3A__svg:data.x.preceding-sibling.fid'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.following-sibling.fid" select="'system_cache__dita__x3A__svg:data.x.following-sibling.fid'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.self.fid" select="'system_cache__dita__x3A__svg:data.x.self.fid'"/>
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.closeData" select="'Close'"/>-->
+                                                                    <!--<xsl:with-param name=""></xsl:with-param>-->
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity()"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region">system_cache__dita__x3A__svg:esolution.coordinate.region.start</xsl:with-param>
+                                                                    
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Ydata" select="'Volume'" />-->
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.apply-template.mode" select="'system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal'" />
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.apply-template.select.param" select="'system_cache__dita__x3A__svg:data__x3A__assign'" />
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.labelMajor" select="true()"  />
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.openData" select="'Open'"/>-->            
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.name" select="'system_cache__dita__x3A__svg:data.name'"/><!-- 'system_cache__dita__x3A__svg:data.y1.name' -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="'system_cache__dita__x3A__svg:data.position'"/><!-- 'system_cache__dita__x3A__svg:data.position' -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="'system_cache__dita__x3A__svg:data.position'"/><!-- 'system_cache__dita__x3A__svg:data.y1.label' -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.name" select="'system_cache__dita__x3A__svg:data.name'"/><!-- 'system_cache__dita__x3A__svg:data.y2.name' -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="'system_cache__dita__x3A__svg:data.position'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="'system_cache__dita__x3A__svg:data.y2.label'"/><!-- 'system_cache__dita__x3A__svg:data.y2.label' -->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.name'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object'"/>
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.position'"/>-->
+                                                                    
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.value" select="'system_cache__dita__x3A__svg:data.y1.value'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label" select="'default_db__x3A__BI_audit_BENFORD:NameField.foreign.value'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.value" select="'system_cache__dita__x3A__svg:data.y2.value'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.label" select="'default_db__x3A__BI_audit_BENFORD:NameField.foreign.value'"/>
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.closeData" select="'Close'"/>-->
+                                                                    <!--<xsl:with-param name=""></xsl:with-param>-->
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:cursor">
+                                                                <xsl:call-template name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                    <xsl:with-param name="id" select="concat(system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity(),'.region_after')"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region">system_cache__dita__x3A__svg:esolution.coordinate.region.body</xsl:with-param>
+                                                                    
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Ydata" select="'Volume'" />-->
+                                                                    
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.apply-template.mode" select="'system_cache__dita__x3A__svg:xAxis'" />
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.apply-template.select.param" select="'system_cache__dita__x3A__svg:data__x3A__assign'" />
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.labelMajor" select="true()"  />
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.openData" select="'Open'"/>-->            
+                                                                    
+                                                                    <!-- <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.name" select="'system_cache__dita__x3A__svg:data.y1.name'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="'system_cache__dita__x3A__svg:data.y1.value'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="'system_cache__dita__x3A__svg:data.y1.label'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.name" select="'system_cache__dita__x3A__svg:data.y2.name'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="'system_cache__dita__x3A__svg:data.y2.value'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="'system_cache__dita__x3A__svg:data.y2.label'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.name'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object'"/>
+                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.position'"/>-->
+                                                                    
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="'system_cache__dita__x3A__svg:data.y.BI_audit_ENERGA_FAKTURY.current-grouping-key'"/>-->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="'system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.label'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'leadingTimeYear-month.bounds.X'"/>
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="'system_cache__dita__x3A__svg:data.y.bounds.data.value.leadingTimeYear-month.bounds'"/>-->
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="'system_cache__dita__x3A__svg:data.y.bounds.data.value.leadingTimeYear-month.bounds'"/>
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.x.leadingTimeYear-month.bounds.X.value'"/>
+                                                                    
+                                                                    <!--<xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.closeData" select="'Close'"/>-->
+                                                                    <!--<xsl:with-param name=""></xsl:with-param>-->
+                                                                </xsl:call-template>
+                                                            </xsl:variable>
+                                                            
+                                                            
+                                                            <xsl:variable name="system_cache__dita__x3A__svg:data__x3A__assign">
+                                                                <xsl:apply-templates mode="system_cache__dita__x3A__svg:data__x3A__assign" select="$interested_row.463">
+                                                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                </xsl:apply-templates>
+                                                            </xsl:variable>
+                                                            
+                                                            
+                                                            
+                                                            <!--<xsl:copy-of select="$system_cache__dita__x3A__svg:data__x3A__assign"/>-->
+                                                            
+                                                            
+                                                            <xsl:call-template name="system_cache__dita__x3A__svg:cursor.region.plot">
+                                                                <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
+                                                                <xsl:with-param name="system_cache__dita__x3A__svg:height__x3A__limit__x3A__validate" select="$system_cache__dita__x3A__svg:height" tunnel="yes"/>
+                                                                <xsl:with-param name="system_cache__dita__x3A__svg:width__x3A__limit__x3A__validate" select="$system_cache__dita__x3A__svg:width" tunnel="yes"/>
+                                                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region">system_cache__dita__x3A__svg:esolution.coordinate.region.body</xsl:with-param>-->
+                                                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region.position" select="1"/>-->
+                                                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity()"/>-->
+                                                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="concat(system_cache__dita__x3A__svg:resolution.coordinate.block.horizontal-time-activity(),'.region_after')"/>-->
+                                                                
+                                                                <xsl:with-param name="system_cache__dita__x3A__svg:data__x3A__assign" select="$system_cache__dita__x3A__svg:data__x3A__assign" tunnel="yes"/>
+                                                            </xsl:call-template>
+                                                        </svg:svg>
+                                                    </svg-container>
                                                     <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:with-param name="foreign_fallback.current_topic_id"><xsl:value-of select="$uuid"/>topiaac_simpletable_cheat_OTHER_pos_<xsl:value-of select="position()"/>_row_<xsl:value-of select="$group_name.id"/>_<xsl:value-of select="generate-id()"/></xsl:with-param>

+ 47 - 42
SE/schema/default_db_xml_cache.public/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_LISTA.xsl

@@ -127,56 +127,61 @@
                             </xsl:choose>
                             
                             
-                           
+                        </p>
+                        
                             
                             <xsl:for-each-group select="current-group()" group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/@fid"><!-- local-name --><!-- last() -->
-                                <xsl:if test="position()=1">
-                                    
-                                    <ph props="debug.136">
-                                        <ph><tt><xsl:element name="{$system_cache__dita:subscript}">APT-L</xsl:element></tt></ph>
-                                        <ph><xsl:element name="{$system_cache__dita:subscript}">lista tras</xsl:element></ph>
-                                        <ph><tt><xsl:element name="{$system_cache__dita:subscript}">od</xsl:element></tt></ph>
+                                
+                                    <xsl:if test="position()=1">
+                                        <p>        
+                                            <ph props="debug.136">
+                                                <ph><tt><xsl:element name="{$system_cache__dita:subscript}">APT-L</xsl:element></tt></ph>
+                                                <ph><xsl:element name="{$system_cache__dita:subscript}">lista tras</xsl:element></ph>
+                                                <ph><tt><xsl:element name="{$system_cache__dita:subscript}">od</xsl:element></tt></ph>
+                                                <ph>
+                                                       <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"/>
+                                                           <xsl:element name="{$system_cache__dita:subscript}"><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/system_cache__dita:localname.translate(local-name())"/></xsl:element>
+                                                      </xref>
+                                                </ph>
+                                                
+                                                <ph props="debug.146">
+                                                    <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]">
+                                                        <xsl:with-param name="system_cache__dita:subscript" select="$system_cache__dita:subscript"/>
+                                                        <xsl:with-param name="end_fid" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position()=last()]/*[1]/@fid"/>
+                                                        <xsl:with-param name="fid" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/@fid"/>
+                                                        <xsl:with-param name="get_wfs:name_from_fid" select="''"/>
+                                                        <xsl:with-param name="system_cache__dita:element__x3A__parent">ph</xsl:with-param>
+                                                    </xsl:apply-templates>
+                                                </ph>
+                                            </ph>
+                                        
+                                        </p>
+                                    </xsl:if>
+                                    <p props="debug.159">
                                         <ph>
-                                               <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"/>
-                                                   <xsl:element name="{$system_cache__dita:subscript}"><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/system_cache__dita:localname.translate(local-name())"/></xsl:element>
-                                              </xref>
+                                            <tt><xsl:element name="{$system_cache__dita:subscript}">do</xsl:element></tt> 
+                                        </ph>
+                                        <ph>
+                                            <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"/>
+                                                <xsl:element name="{$system_cache__dita:subscript}">
+                                                    <xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/system_cache__dita:localname.translate(local-name())"/>
+                                                </xsl:element>
+                                            </xref>
+                                        </ph>
+                                        <ph>
+                                            ilość <ph><xsl:value-of select="count(current-group())"/></ph>
                                         </ph>
                                         
-                                        <ph props="debug.146">
-                                            <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]">
+                                        <ph>
+                                            <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]">
                                                 <xsl:with-param name="system_cache__dita:subscript" select="$system_cache__dita:subscript"/>
-                                                <xsl:with-param name="end_fid" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position()=last()]/*[1]/@fid"/>
-                                                <xsl:with-param name="fid" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/@fid"/>
-                                                <xsl:with-param name="get_wfs:name_from_fid" select="''"/>
                                                 <xsl:with-param name="system_cache__dita:element__x3A__parent">ph</xsl:with-param>
+                                                <xsl:with-param name="system_cache__dita:content__x3A__minimize" select="true()"/>
                                             </xsl:apply-templates>
                                         </ph>
-                                    </ph>
-                                    
-                                    
-                                </xsl:if>
-                                <ph props="debug.159">
-                                    <ph>
-                                        <tt><xsl:element name="{$system_cache__dita:subscript}">do</xsl:element></tt> 
-                                    </ph>
-                                    <ph>
-                                        <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"/>
-                                            <xsl:element name="{$system_cache__dita:subscript}"><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/system_cache__dita:localname.translate(local-name())"/></xsl:element>
-                                        </xref>
-                                    </ph>
-                                    <ph>
-                                        ilość <ph><xsl:value-of select="count(current-group())"/></ph>
-                                    </ph>
-                                    
-                                    <ph>
-                                        <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]">
-                                            <xsl:with-param name="system_cache__dita:subscript" select="$system_cache__dita:subscript"/>
-                                            <xsl:with-param name="system_cache__dita:element__x3A__parent">ph</xsl:with-param>
-                                        </xsl:apply-templates>
-                                    </ph>
-                                </ph>
+                                    </p>
                                 
                                 
                                 
@@ -185,7 +190,7 @@
                             
                             
                                 
-                        </p>
+                        
                     </body>
                 </topic>
             </xsl:result-document>

+ 1 - 1
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-Close.xsl

@@ -2542,7 +2542,7 @@
                 <xsl:message>#1720 ERROR BYPASED NO $x.label[<xsl:value-of select="$x.label"/>]</xsl:message>
             </xsl:when>
             <xsl:when test="@default_db__x3A__BI_audit_BENFORD:NameField.foreign.value or 1=1"><!-- todo do czego to  @default_db__x3A__BI_audit_BENFORD:NameField.foreign.value-->
-                <xsl:message>#2507 test</xsl:message>
+                <xsl:message>#2507 test [template[name=[system_cache__dita__x3A__svg:labelMajor]]</xsl:message>
                 <xsl:variable name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding__x3A__translate.bounds__x3A__collision">
                     <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding__x3A__translate.bounds__x3A__collision">
                         <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>

+ 2 - 2
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-CloseYaxis.xsl

@@ -184,7 +184,7 @@
         </xsl:param>
         
         <xsl:param name="x2Value">
-            <xsl:message>#211CC test</xsl:message>
+            <xsl:message>#211CC test [/n=[<xsl:value-of select="name()"/>]]</xsl:message>
             <xsl:call-template name="system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel"/>
             
         </xsl:param>
@@ -207,7 +207,7 @@
             <xsl:when test="$system_cache__dita__x3A__svg:data.x.name.value__x3A__validate = true()">
                 
                 <xsl:call-template name="system_cache__dita__x3A__svg:data.debug__x3A__row"/>
-                
+                <xsl:message>#210 will call system_cache__dita__x3A__svg:labelMajor</xsl:message>
                 <xsl:call-template name="system_cache__dita__x3A__svg:labelMajor">
                     <xsl:with-param name="system_cache__dita__x3A__svg:x1.count.leadingTimeDate" select="$system_cache__dita__x3A__svg:x.count__x3A__read"/><!-- TRODO $system_cache__dita__x3A__svg:x1.count.leadingTimeDate -->
                     <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label__x3A__read" select="$system_cache__dita__x3A__svg:data.x1.label__x3A__read" tunnel="yes"/>

+ 13 - 2
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.xsl

@@ -1145,9 +1145,9 @@
         <xsl:variable name="X.bzyk.A" select="( $system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate - $system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate ) div ( $system_cache__dita__x3A__svg:offsetX.minX - $system_cache__dita__x3A__svg:offsetX.maxX  )"/>
         <xsl:variable name="X.bzyk.B" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - ( $X.bzyk.A * $system_cache__dita__x3A__svg:offsetX.maxX )"/>
         
-        <xsl:variable name="Y.bzyk.A" select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
+        <!--<xsl:variable name="Y.bzyk.A" select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>-->
         
-        <xsl:variable name="Y.bzyk.A">
+        <!--<xsl:variable name="Y.bzyk.A">
             <xsl:choose>
                 <xsl:when test="$Y.bzyk.A = 0">
                     <xsl:value-of select="1"/>
@@ -1156,6 +1156,17 @@
                     <xsl:value-of select="$Y.bzyk.A"/>
                 </xsl:otherwise>
             </xsl:choose>
+        </xsl:variable>-->
+        
+        <xsl:variable name="Y.bzyk.A" >
+            <xsl:choose>
+                <xsl:when test="($system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY) = 0">
+                    <xsl:value-of select="1"/>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:value-of select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
+                </xsl:otherwise>
+            </xsl:choose>
         </xsl:variable>
         
         <xsl:variable name="Y.bzyk.B" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate - ( $Y.bzyk.A * $system_cache__dita__x3A__svg:offsetY.maxY )"/>

+ 19 - 2
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data.xsl

@@ -47,7 +47,7 @@
         
         <!-- MINX MAXX -->
         <xsl:variable name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X">
-            <system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X>
+            <system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X >
                 <xsl:for-each-group select="descendant-or-self::*" group-by="@fid">
                     
                     <xsl:apply-templates mode="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X" select=".">
@@ -57,6 +57,8 @@
             </system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X>
         </xsl:variable>
         
+        
+        
         <xsl:variable name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.min" select="min($system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X/system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X/*/@system_cache__dita__x3A__svg:data.x.leadingTimeYear-month.bounds.X.value)"/>
         <xsl:variable name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max" select="max($system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X/system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X/*/@system_cache__dita__x3A__svg:data.x.leadingTimeYear-month.bounds.X.value)"/>
         <xsl:variable name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max.label" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X/system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X/*[@system_cache__dita__x3A__svg:data.x.leadingTimeYear-month.bounds.X.value = $system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max]/@system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.label"/>
@@ -117,7 +119,7 @@
                         <xsl:with-param name="system_cache__dita__x3A__svg:data.for-each-group.context" select="current-group()/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[1]/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[relation_DateRangeElements[@*[name()='leadingTimeDate-From' or name()='leadingTimeDate-To']]]"/>
                         <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="$system_cache__dita__x3A__svg:cursor"/>
                     </xsl:call-template>-->
-                    <xsl:comment>#51 Rum Powiazania pos: <xsl:value-of select="position()"/>; </xsl:comment>
+                    <xsl:comment>#51 Rum Powiazania pos: <xsl:value-of select="position()"/>; current-grouping-key=[<xsl:value-of select="current-grouping-key()"/>]</xsl:comment>
                     <xsl:variable name="system_cache__dita__x3A__svg:data.position" select="position()"/>
                     <!--<xsl:for-each-group select="current-group()/ancestor-or-self::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row[1]/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[relation_DateRangeElements[@*[name()='leadingTimeDate-From' or name()='leadingTimeDate-To']]]" group-by="concat(@leadingTimeDate-From,'-',@leadingTimeDate-To)">-->
                     <xsl:for-each-group select="current-group()" group-by="*[1]/@fid">
@@ -128,6 +130,7 @@
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.position" select="$system_cache__dita__x3A__svg:data.position"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.min" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.min" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.min" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max.label" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max.label" tunnel="yes"/>
                         </xsl:call-template>  
                         <!--<xsl:apply-templates mode="system_cache__dita__x3A__svg:data__x3A__assign" select=".">
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.position" select="position()" tunnel="yes"/>
@@ -137,6 +140,9 @@
                 </xsl:for-each-group>
             </system_cache__dita__x3A__svg:data.current-group>
         </xsl:variable>
+        
+        <!--<xsl:copy-of select="$system_cache__dita__x3A__svg:data.current-group"/>-->
+        
         <xsl:apply-templates mode="system_cache__dita__x3A__svg:data__x3A__assign__x3A__sort" select="$system_cache__dita__x3A__svg:data.current-group"/>
         <xsl:comment>#199 lower kontrahenci</xsl:comment>
         <xsl:message terminate="no">#199 lower kontrahenci</xsl:message>
@@ -369,6 +375,7 @@
                     <xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.data(system_cache__dita__x3A__svg:resolution.coordinate.axis.x(),system_cache__dita__x3A__svg:resolution.coordinate.index(),'leadingTimeYear-month.bounds.X.value')}" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max"/>
                     <xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.data(system_cache__dita__x3A__svg:resolution.coordinate.axis.y(),system_cache__dita__x3A__svg:resolution.coordinate.index(),'leadingTimeYear-month.bounds.X.label')}" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max.label"/>
                     <xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.value.bounds(system_cache__dita__x3A__svg:resolution.coordinate.axis.y(),system_cache__dita__x3A__svg:resolution.coordinate.index(),system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.data.value(),'leadingTimeYear-month.bounds')}" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max"/>
+                    <xsl:attribute name="debug.TimeTo">#310</xsl:attribute>
                 </xsl:when>
                 <xsl:otherwise>
                     <!--<xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.data(system_cache__dita__x3A__svg:resolution.coordinate.axis.x(),system_cache__dita__x3A__svg:resolution.coordinate.index(),'leadingTimeYear-month.bounds.X.value')}" select="system_cache__dita:year-timestamp-day('1970-01-01')"/>-->
@@ -446,6 +453,16 @@
         <xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.value.bounds(system_cache__dita__x3A__svg:resolution.coordinate.axis.y(),system_cache__dita__x3A__svg:resolution.coordinate.index(),system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.data.value(),'leadingTimeYear-month.bounds')}" select="system_cache__dita:year-timestamp-day(.)"/>
     </xsl:template>
     
+    <xsl:template mode="system_cache__dita__x3A__svg:data__x3A__assign" match="@leadingTimeDate-To[.='']">
+        <xsl:param name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max.label" tunnel="yes" required="yes"/>
+        <xsl:attribute name="system_cache__dita__x3A__svg:data.y2.name" select="name()"/>
+        <xsl:attribute name="system_cache__dita__x3A__svg:data.y2.value" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max"/>
+        <xsl:attribute name="system_cache__dita__x3A__svg:data.y2.label" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max.label"/>
+        <xsl:attribute name="system_cache__dita__x3A__svg:data.y2.value.debug" select="'#462 @leadingTimeDate-To[.='']'"/>
+        <xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.value.bounds(system_cache__dita__x3A__svg:resolution.coordinate.axis.y(),system_cache__dita__x3A__svg:resolution.coordinate.index(),system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.data.value(),'leadingTimeYear-month.bounds')}" select="$system_cache__dita__x3A__svg:data__x3A__assign.leadingTimeYear-month.bounds.X.max"/>
+    </xsl:template>
+    
     <xsl:template mode="system_cache__dita__x3A__svg:data__x3A__assign" match="text()|comment()"/>
     
     <xsl:template mode="system_cache__dita__x3A__svg:data__x3A__assign__x3A__sort" match="text()|comment()">

+ 3 - 1
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data__x3A__read.xsl

@@ -437,7 +437,9 @@
             <xsl:when test="$system_cache__dita__x3A__svg:x2__x3A__read=''">
                 <xsl:message>#296a[ERROR][X][2][SEARCHED][@/n[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>]]
                     [@/.[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>]]
-                    [*//@/n[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.value"/>]]</xsl:message>
+                    [*//@/n[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.value"/>]]
+                    [CONTEXT[/n=[<xsl:value-of select="name()"/>]]]   [current-group[@data.name]=[<xsl:value-of select="ancestor-or-self::system_cache__dita__x3A__svg:data.current-group/@system_cache__dita__x3A__svg:data.name"/>]]
+                </xsl:message>
             </xsl:when>
             <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:x2__x3A__read"/></xsl:otherwise>
         </xsl:choose>

+ 36 - 15
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.translate.xsl

@@ -149,7 +149,7 @@
         <xsl:variable name="X.bzyk.A" select="( $system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate - $system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate ) div ( $system_cache__dita__x3A__svg:offsetX.minX - $system_cache__dita__x3A__svg:offsetX.maxX  )"/>
         <xsl:variable name="X.bzyk.B" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - ( $X.bzyk.A * $system_cache__dita__x3A__svg:offsetX.maxX )"/>
         
-        <xsl:variable name="Y.bzyk.A" select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
+        <!--<xsl:variable name="Y.bzyk.A" select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
         
         <xsl:variable name="Y.bzyk.A">
             <xsl:choose>
@@ -160,6 +160,17 @@
                     <xsl:value-of select="$Y.bzyk.A"/>
                 </xsl:otherwise>
             </xsl:choose>
+        </xsl:variable>-->
+        
+        <xsl:variable name="Y.bzyk.A" >
+            <xsl:choose>
+                <xsl:when test="($system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY) = 0">
+                    <xsl:value-of select="1"/>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:value-of select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
+                </xsl:otherwise>
+            </xsl:choose>
         </xsl:variable>
         
         <xsl:variable name="Y.bzyk.B" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate - ( $Y.bzyk.A * $system_cache__dita__x3A__svg:offsetY.maxY )"/>
@@ -240,6 +251,7 @@
         <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes"/><!--<xsl:param name="system_cache__dita__x3A__svg:offsetY.height" />-->
         <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes"/>
+        
         <xsl:choose>
             <xsl:when test="( number($system_cache__dita__x3A__svg:offsetX.maxX) or number($system_cache__dita__x3A__svg:offsetX.maxX) = 0 ) 
                 and ( number($system_cache__dita__x3A__svg:offsetY.maxY) or $system_cache__dita__x3A__svg:offsetY.maxY='0' )
@@ -249,9 +261,20 @@
                 <xsl:variable name="X.bzyk.A" select="( $system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate - $system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate ) div ( $system_cache__dita__x3A__svg:offsetX.minX - $system_cache__dita__x3A__svg:offsetX.maxX  )"/>
                 <xsl:variable name="X.bzyk.B" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - ( $X.bzyk.A * $system_cache__dita__x3A__svg:offsetX.maxX )"/>
                 
-                <xsl:variable name="Y.bzyk.A" select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
                 
-                <xsl:variable name="Y.bzyk.A">
+                
+                <xsl:variable name="Y.bzyk.A" >
+                    <xsl:choose>
+                        <xsl:when test="($system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY) = 0">
+                            <xsl:value-of select="1"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:value-of select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:variable>
+                
+                <!--<xsl:variable name="Y.bzyk.A">
                     <xsl:choose>
                         <xsl:when test="$Y.bzyk.A = 0">
                             <xsl:value-of select="1"/>
@@ -260,7 +283,7 @@
                             <xsl:value-of select="$Y.bzyk.A"/>
                         </xsl:otherwise>
                     </xsl:choose>
-                </xsl:variable>
+                </xsl:variable>-->
                 <xsl:variable name="Y.bzyk.B" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate - ( $Y.bzyk.A * $system_cache__dita__x3A__svg:offsetY.maxY )"/>
                 
                 
@@ -345,24 +368,21 @@
                 <xsl:variable name="X.bzyk.A" select="( $system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate - $system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate ) div ( $system_cache__dita__x3A__svg:offsetX.minX - $system_cache__dita__x3A__svg:offsetX.maxX  )"/>
                 <xsl:variable name="X.bzyk.B" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - ( $X.bzyk.A * $system_cache__dita__x3A__svg:offsetX.maxX )"/>
                 
-                <xsl:variable name="Y.bzyk.A" select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
-                <xsl:variable name="Y.bzyk.A">
+                
+               
+                <xsl:variable name="Y.bzyk.A" >
                     <xsl:choose>
-                        <!--<xsl:when test="$system_cache__dita__x3A__svg:offsetY.maxY = $system_cache__dita__x3A__svg:offsetY.minY">
-                            <xsl:value-of select="1"/>
-                        </xsl:when>-->
-                        <xsl:when test="$Y.bzyk.A = 0">
+                        <xsl:when test="($system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY) = 0">
                             <xsl:value-of select="1"/>
                         </xsl:when>
-                        <!--<xsl:when test="xs:string($Y.bzyk.A)='INF'">
-                            <xsl:value-of select="1"/>
-                        </xsl:when>-->
                         <xsl:otherwise>
-                            <xsl:value-of select="$Y.bzyk.A"/>
+                            <xsl:value-of select="( $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate ) div ( $system_cache__dita__x3A__svg:offsetY.minY - $system_cache__dita__x3A__svg:offsetY.maxY  )"/>
                         </xsl:otherwise>
                     </xsl:choose>
                 </xsl:variable>
                 
+                
+                
                 <xsl:variable name="Y.bzyk.B" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate - ( $Y.bzyk.A * $system_cache__dita__x3A__svg:offsetY.maxY )"/>
                 
                 
@@ -393,7 +413,8 @@
                     <!--<xsl:value-of select="system_cache__dita__x3A__svg:transform.translate.major.offset(- $x1.bounds.min.coordinate.scale,0)"/>-->    
                     <!-- XSCALE.4 -->
                     <!--<xsl:value-of select="system_cache__dita__x3A__svg:transform.translate.major.scale_positive($Xscale,1)"/>-->              
-                    <xsl:message>#7701 system_cache__dita__x3A__svg:debug $system_cache__dita__x3A__svg:offsetY.height=($system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate )=(<xsl:value-of select="($system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate )"/>) Ymax(<xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.maxY"/>) --- $minY(<xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.minY"/>) ;</xsl:message>
+                    <xsl:message>#7701 system_cache__dita__x3A__svg:debug $system_cache__dita__x3A__svg:offsetY.height=($system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate )=(<xsl:value-of select="($system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate )"/>) 
+                        Ymax(<xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.maxY"/>) --- $minY(<xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.minY"/>) ;</xsl:message>
                     <!-- YSCALE.5 -->
                     <!--<xsl:value-of select="system_cache__dita__x3A__svg:transform.translate.major.scale_positive(1,- number($Yscale))"/>-->
                     <!-- YMAX.6 -->

+ 78 - 22
se.oxygen.xpr

@@ -9,10 +9,6 @@
                         <String>enable.project.master.files.support</String>
                         <Boolean>true</Boolean>
                     </entry>
-                    <entry>
-                        <String>keys.context</String>
-                        <String>file:/Users/a.binder/procesy5-dita-templates-druki/6872-bocian-energa-oferta-system-req.git/Modyfikacje_Bocian_2019_11_07/relations-1415_000001.ditamap</String>
-                    </entry>
                     <entry>
                         <String>profiling.conditions.list</String>
                         <profileConditionInfo-array>
@@ -2006,11 +2002,11 @@
                         <scenarioAssociation-array>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../procesy5-dita-templates-druki/6872-bocian-energa-oferta-system-req.git/Modyfikacje_Bocian_2019_11_07/relations-1415_000001_mod_koper.ditamap</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.3838635____APT_trasy_row.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
-                                        <String>DITA Map PDF - based on XSL-FO - Copy</String>
+                                        <String>DITA Map PDF - based on XSL-FO - Copy - 3.3.3 SE sir</String>
                                     </list>
                                 </field>
                                 <field name="scenarioTypes">
@@ -2021,7 +2017,22 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../Downloads/D_strezynska/stre_y_ska_analiza.ditamap</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/generatePowiazania-215_000001/generatePowiazania-215_000001.ditamap</String>
+                                </field>
+                                <field name="scenarioIds">
+                                    <list>
+                                        <String>DITA Map PDF - based on XSL-FO - Copy - 3.3.3 SE sir</String>
+                                    </list>
+                                </field>
+                                <field name="scenarioTypes">
+                                    <list>
+                                        <String>DITAMAP</String>
+                                    </list>
+                                </field>
+                            </scenarioAssociation>
+                            <scenarioAssociation>
+                                <field name="url">
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-219_000001/relations-219_000001.ditamap</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2036,7 +2047,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../procesy5-dita-templates-druki/6872-bocian-energa-oferta-system-req.git/Modyfikacje_Bocian_2019_11_07/relations-1415_000001.ditamap</String>
+                                    <String>../../procesy5-dita-templates-druki/6872-bocian-energa-oferta-system-req.git/Modyfikacje_Bocian_2019_11_07/relations-1415_000001_mod_koper.ditamap</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2064,6 +2075,21 @@
                                     </list>
                                 </field>
                             </scenarioAssociation>
+                            <scenarioAssociation>
+                                <field name="url">
+                                    <String>../../Downloads/D_strezynska/stre_y_ska_analiza.ditamap</String>
+                                </field>
+                                <field name="scenarioIds">
+                                    <list>
+                                        <String>DITA Map PDF - based on XSL-FO - Copy</String>
+                                    </list>
+                                </field>
+                                <field name="scenarioTypes">
+                                    <list>
+                                        <String>DITAMAP</String>
+                                    </list>
+                                </field>
+                            </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
                                     <String>SE/schema/ant-url_action/default_db.in7_dziennik_koresp/pismo/GRAFIK_PRACY_view.ditamap</String>
@@ -2081,7 +2107,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/test_bookmap.ditamap</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-219_000001/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.3664644____APT_trasy.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2096,7 +2122,22 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../Library/Mobile%20Documents/com%7Eapple%7ECloudDocs/D_strezynska/stre_y_ska_analiza.ditamap</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-219_000001/BI_audit_KRS/BI_audit_KRS.1962671____APU4_umowy.dita</String>
+                                </field>
+                                <field name="scenarioIds">
+                                    <list>
+                                        <String>DITA Map PDF - based on XSL-FO - Copy - 3.3.3 SE sir</String>
+                                    </list>
+                                </field>
+                                <field name="scenarioTypes">
+                                    <list>
+                                        <String>DITAMAP</String>
+                                    </list>
+                                </field>
+                            </scenarioAssociation>
+                            <scenarioAssociation>
+                                <field name="url">
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.3838636____APT_trasy_row.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2111,7 +2152,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/2019-10-18-04_32_32e06687/GRAFIK_PRACY_view.dita</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.81508____APU4_umowy.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2126,7 +2167,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-219_000001/relations-219_000001.ditamap</String>
+                                    <String>../../procesy5-dita-templates-druki/6872-bocian-energa-oferta-system-req.git/Modyfikacje_Bocian_2019_11_07/relations-1415_000001.ditamap</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2141,7 +2182,22 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/recurse_ant/2019-10-18-03_29_0395b503/2019-10-18-03_29_0395b503.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/test_bookmap.ditamap</String>
+                                </field>
+                                <field name="scenarioIds">
+                                    <list>
+                                        <String>DITA Map PDF - based on XSL-FO - Copy - 3.3.3 SE sir</String>
+                                    </list>
+                                </field>
+                                <field name="scenarioTypes">
+                                    <list>
+                                        <String>DITAMAP</String>
+                                    </list>
+                                </field>
+                            </scenarioAssociation>
+                            <scenarioAssociation>
+                                <field name="url">
+                                    <String>../../Library/Mobile%20Documents/com%7Eapple%7ECloudDocs/D_strezynska/stre_y_ska_analiza.ditamap</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2156,7 +2212,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-18-00_46_194f3b2a.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/2019-10-18-04_32_32e06687/GRAFIK_PRACY_view.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2171,7 +2227,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-18-03_29_0395b503.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/recurse_ant/2019-10-18-03_29_0395b503/2019-10-18-03_29_0395b503.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2186,7 +2242,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-17-22_39_07ab223e.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
+                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-18-00_46_194f3b2a.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2201,7 +2257,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-17-10_38_39aba482.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
+                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-18-03_29_0395b503.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2216,7 +2272,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.1415____APTUF_null_.dita</String>
+                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-17-22_39_07ab223e.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2231,7 +2287,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.82231____APU4_umowy.dita</String>
+                                    <String>SE/schema/WPS_Functions/default_db/recurse_ant/out/2019-10-17-10_38_39aba482.out_task.dita.final_with_RelatedFeatureLoop.xml</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2246,7 +2302,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY.65424____APTUF_transakcje.dita</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.1415____APTUF_null_.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2261,7 +2317,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.3838636____APT_trasy_row.dita</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.82231____APU4_umowy.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>
@@ -2276,7 +2332,7 @@
                             </scenarioAssociation>
                             <scenarioAssociation>
                                 <field name="url">
-                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_RUM_KONTRAHENCI/BI_audit_ENERGA_RUM_KONTRAHENCI.81508____APU4_umowy.dita</String>
+                                    <String>../../../../opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/default_db/CRM_PROCES_tree/relations-1415_000001/BI_audit_ENERGA_PRACOWNICY/BI_audit_ENERGA_PRACOWNICY.65424____APTUF_transakcje.dita</String>
                                 </field>
                                 <field name="scenarioIds">
                                     <list>