a.binder преди 6 години
родител
ревизия
dc4ba2d20f
променени са 14 файла, в които са добавени 2779 реда и са изтрити 1454 реда
  1. 414 0
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.ditamap_root.embedded_map.xsl
  2. 827 71
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-Close.xsl
  3. 227 0
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-CloseYaxis.xsl
  4. 59 112
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Xaxis.xsl
  5. 229 289
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.bar.xsl
  6. 103 845
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.complex.test.svg
  7. 44 22
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.complex.test.xsl
  8. 105 85
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.region.plot.xsl
  9. 27 1
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.region.xsl
  10. 57 2
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.xsl
  11. 14 3
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data.xsl
  12. 639 23
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data__x3A__read.xsl
  13. 9 1
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.resolution.xsl
  14. 25 0
      SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.translate.xsl

+ 414 - 0
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.ditamap_root.embedded_map.xsl

@@ -0,0 +1,414 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:system_cache__dita="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/dita.xsd"
+    xmlns:system_cache__dita__x3A__p5gnuplot="http://biuro.biall-net.pl/WPS_Functions/system_cache__dita__x3A__p5gnuplot/system_cache__dita__x3A__p5gnuplot.xsd"
+    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:p5gnuplot__x3A__system_cache__dita="http://biuro.biall-net.pl/WPS_Functions/p5gnuplot__x3A__system_cache__dita/p5gnuplot__x3A__system_cache__dita.xsd"
+    xmlns:p5gnuplot="http://biuro.biall-net.pl/WPS_Functions/graph_gnuplot"
+    xmlns:svg="http://www.w3.org/2000/svg"
+    xmlns:default_db__x3A__BI_audit_ENERGA_RUM_UMOWY="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_UMOWY"
+    xmlns:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    
+    xmlns:svgu="http://www.ora.com/XSLTCookbook/ns/svg-utils"
+    xmlns:test="http://www.ora.com/XSLTCookbook/ns/test"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:ditamap_root.embedded_map" match="svg-container"></xsl:template>
+    
+    
+    
+    <xsl:template match="svg-container" mode="ditamap_root.embedded_map.body">
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" select="@system_cache__dita__x3A__svg:data.y1.name"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" select="@system_cache__dita__x3A__svg:data.y1.value"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" select="@system_cache__dita__x3A__svg:data.y1.label"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" select="@system_cache__dita__x3A__svg:data.y2.name"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" select="@system_cache__dita__x3A__svg:data.y2.value"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" select="@system_cache__dita__x3A__svg:data.x.label"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="@system_cache__dita__x3A__svg:data.x.value.bounds" />
+        <xsl:param name="system_cache__dita__x3A__svg:width" select="600"/>
+        <xsl:param name="system_cache__dita__x3A__svg:height" select="300"/>
+        <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.4"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block.hi-lo-chart-1.height" select="$system_cache__dita__x3A__svg:height * 0.4"/>
+        <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:element name="{name()}">
+            <xsl:copy-of select="@*"/>
+            <xsl:comment>#28 system_cache__dita__x3A__svg.ditamap_root.embedded_map.xsl todo</xsl:comment>
+            <xsl:message terminate="no">#28 system_cache__dita__x3A__svg.ditamap_root.embedded_map.xsl todo</xsl:message>
+            
+                <svg:svg width="{$system_cache__dita__x3A__svg:width}" height="{$system_cache__dita__x3A__svg:height.max}"  
+                    preserveAspectRatio="xMaxYMax meet"
+                    system_cache__dita__x3A__svg:data.y1.name="{$system_cache__dita__x3A__svg:data.y1.name}"
+                    system_cache__dita__x3A__svg:data.y1.value="{$system_cache__dita__x3A__svg:data.y1.value}"
+                    system_cache__dita__x3A__svg:data.y1.label="{$system_cache__dita__x3A__svg:data.y1.label}"
+                    system_cache__dita__x3A__svg:data.y2.name="{$system_cache__dita__x3A__svg:data.y2.name}"
+                    system_cache__dita__x3A__svg:data.y2.value="{$system_cache__dita__x3A__svg:data.y2.value}"
+                    system_cache__dita__x3A__svg:data.x.label="{$system_cache__dita__x3A__svg:data.x.label}"
+                    system_cache__dita__x3A__svg:data.x.name="{$system_cache__dita__x3A__svg:data.x.name}"
+                    system_cache__dita__x3A__svg:data.x.name.value="{$system_cache__dita__x3A__svg:data.x.name.value}"
+                    system_cache__dita__x3A__svg:data.x.value="{$system_cache__dita__x3A__svg:data.x.value}"
+                    system_cache__dita__x3A__svg:data.x.value.bounds="{$system_cache__dita__x3A__svg:data.x.value.bounds}"
+                    viewBox="0 0 {$system_cache__dita__x3A__svg:width} {$system_cache__dita__x3A__svg:height.max}"
+                    >
+                    
+                        <xsl:comment>system_cache__dita__x3A__svg:cursor#110</xsl:comment>
+                        
+                        <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>
+                            Zintegrowany widok w czasie</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>
+                        <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="#171a" 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:end; font-size:{$system_cache__dita__x3A__svg:shortdesc.font-size};">Relacje aktywności i wartości w okresach</svg:text>
+                    
+                    <svg:g system_cache__dita__x3A__svg:debug="#278foGG:block-container  region-name- hi-lo-chart-grou">
+                        
+                        
+                        
+                        <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: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.height"/>
+                                <xsl:with-param name="comment">#225-A after volumes force by $system_cache__dita__x3A__svg:pheight; in this time current.Y(<xsl:value-of select="$system_cache__dita__x3A__svg:cursor.current.height"/>) and current.height(<xsl:value-of select="$system_cache__dita__x3A__svg:cursor.current.height"/>)</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.body.instream-foreign-object.Xdata" select="'dataX'" tunnel="yes"/>
+                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.body.instream-foreign-object.Ydata" select="'Vol10MA'" tunnel="yes"/>
+                                    <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.body.instream-foreign-object.template" select="'system_cache__dita__x3A__svg:xyPlot'" tunnel="yes"/>
+                                    --><xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.start.extent" select="40" tunnel="yes"/>
+                                <!--<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">
+                                <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-B 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.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.x.label"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
+                                
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.value.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:data__x3A__assign">
+                            <system_cache__dita__x3A__svg:data.current-group>
+                                <xsl:copy-of select="root()/descendant-or-self::*[@*[name()=$system_cache__dita__x3A__svg:data.x.name ]  and @*[$system_cache__dita__x3A__svg:data.x.name.value ] ]/descendant-or-self::*"/>
+                            </system_cache__dita__x3A__svg:data.current-group>
+                        </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:yAxis'" />-->
+                                <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.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.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.x.label"/>
+                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>-->
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.position'"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
+                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'system_cache__dita__x3A__svg:data.position'"/>-->
+                                
+                                <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>-->
+                                <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.value.bounds" select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX-text-margin" select="6"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:text-anchor" select="'end'"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:font-size" select="'font-size'"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:text-rotate" select="90"/>
+                                <!--<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.position'"/><!-- $system_cache__dita__x3A__svg:data.x.label -->
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX-text-margin" select="8"/>
+                                <!--<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:GRAFIK_PRACY_view.raport.data__x3A__assign" select="$system_cache__dita__x3A__svg:data__x3A__assign">
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes" />
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+                            </xsl:apply-templates>
+                        </xsl:variable>
+                        
+                        <xsl:result-document href="{system_cache__dita:xref_result-document('system_cache__dita__x3A__svg.cursor.region.plot.xml')}">
+                            <system_cache__dita__x3A__svg:cursor.region.plot>
+                                <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" select="system_cache__dita__x3A__svg:resolution.coordinate.region(system_cache__dita__x3A__svg:resolution.coordinate.region.start())"/>-->
+                                    <!--<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.hi-lo-chart-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:resolution.coordinate.id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.total-volume()"/>-->
+                                    <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>
+                            </system_cache__dita__x3A__svg:cursor.region.plot>
+                        </xsl:result-document>
+                        
+                        <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" select="system_cache__dita__x3A__svg:resolution.coordinate.region(system_cache__dita__x3A__svg:resolution.coordinate.region.start())"/>-->
+                            <!--<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.hi-lo-chart-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:resolution.coordinate.id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.total-volume()"/>-->
+                            <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>
+                        
+                        <!--<system_cache__dita__x3A__svg:comment debug="#224 lower $system_cache__dita__x3A__svg:data__x3A__assign"
+                            test_root_n="{root()/*/name()}"
+                            test_root_desc_atr="{root()/descendant-or-self::*[@*[ name()=$system_cache__dita__x3A__svg:data.x.name ]]/name()}"
+                            test_root_desc_atr_val="{root()/descendant-or-self::*[@*[ name()=$system_cache__dita__x3A__svg:data.x.name ] and @*[$system_cache__dita__x3A__svg:data.x.name.value ]]/name()}"
+                            >
+                            for @*[name()=<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/> and .= <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>]
+                        </system_cache__dita__x3A__svg:comment>-->
+                        
+                        <xsl:result-document href="{system_cache__dita:xref_result-document('system_cache__dita__x3A__svg.cursor.xml')}">
+                            <xsl:copy-of select="$system_cache__dita__x3A__svg:cursor"/>        
+                        </xsl:result-document>
+                        <!--<xsl:result-document href="{system_cache__dita:xref_result-document('system_cache__dita__x3A__svg.data__x3A__assign.xml')}">
+                                <xsl:copy-of select="$system_cache__dita__x3A__svg:data__x3A__assign"/>        
+                            </xsl:result-document>-->
+                        
+                        
+                    </svg:g>
+                    
+                </svg:svg>
+            
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="text()|comment()">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@*">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@*[ . = 'text()']">
+        <xsl:attribute name="{name()}" select="../."/>
+    </xsl:template>
+    
+    <!--<xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.y1.value[ . = 'text()' and ../@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.y1.name[. = 'START_WORK_HOUR']]">
+        <xsl:attribute name="{name()}" select="../replace(.,':','')"/>
+    </xsl:template>
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.y2.value[ . = 'text()' and ../@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.y2.name[ . = 'END_WORK_HOUR']]">
+        <xsl:attribute name="{name()}" select="../replace(.,':','')"/>
+    </xsl:template>-->
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.y1.value[ . = 'text()' ]">
+        <xsl:attribute name="{name()}" select="number(../replace(.,':',''))"/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.y2.value[ . = 'text()' ]">
+        <xsl:attribute name="{name()}" select="number(../replace(.,':',''))"/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.x.value[ . = 'text()' ]">
+        <xsl:attribute name="{name()}" select="../number(.)"/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="@system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data.x.value.bounds[ . = 'text()' ]">
+        <xsl:attribute name="{name()}" select="../number(.)"/>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="*">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value"  tunnel="yes"  required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name"  tunnel="yes" required="yes"/>
+        <xsl:choose>
+            <xsl:when test="@*[name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]">
+                <system_cache__dita__x3A__svg:relation_DateRangeElements system_cache__dita__x3A__svg:data.position="{count(preceding-sibling::*[@*[name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]])}">
+                    <xsl:apply-templates mode="#current" select="descendant-or-self::*/@*"/>
+                </system_cache__dita__x3A__svg:relation_DateRangeElements>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates mode="#current"/>
+            </xsl:otherwise>
+        </xsl:choose>
+        <!--<xsl:copy>
+            <xsl:attribute name="debug_ch" select="child::*/name()"/>
+            
+            <xsl:apply-templates mode="#current" />
+        </xsl:copy>-->
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="text()|comment()"/>
+        
+        
+    
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign" match="system_cache__dita__x3A__svg:data.current-group">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates mode="#current"/>
+        </xsl:copy>
+        
+    </xsl:template>
+  
+  
+    <!--<xsl:attribute-set name="system_cache__dita__x3A__svg:GRAFIK_PRACY_view.raport.data__x3A__assign">
+        <xsl:attribute name="a"></xsl:attribute>
+    </xsl:attribute-set>-->
+  
+</xsl:stylesheet>

Файловите разлики са ограничени, защото са твърде много
+ 827 - 71
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Hi-Lo-Close.xsl


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

@@ -0,0 +1,227 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet version="2.0" 
+    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:svg="http://www.w3.org/2000/svg"
+    xmlns:svgu="http://www.ora.com/XSLTCookbook/ns/svg-utils"
+    xmlns:test="http://www.ora.com/XSLTCookbook/ns/test"
+    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:default_db__x3A__BI_audit_BENFORD="https://biuro.biall-net.pl/wfs/default_db/BI_audit_BENFORD"
+    exclude-result-prefixes="svgu test">
+    
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal" match="system_cache__dita__x3A__svg:data.current-group">
+        <xsl:message>#2860 temp bypassed nmode system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal
+            for gr data name[<xsl:value-of select="@system_cache__dita__x3A__svg:data.name"/>]
+        </xsl:message>
+    </xsl:template>
+    
+    
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal" match="system_cache__dita__x3A__svg:data.current-group[@system_cache__dita__x3A__svg:data.name='relation_DateRangeElements' ]">
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:cursor" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:labelMajor" tunnel="yes"/>    
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes" tunnel="yes"/><!-- select="500" -->
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes" tunnel="yes"/>
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.label" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <!--<xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes"  tunnel="yes"/>-->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.preceding-sibling.fid"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.following-sibling.fid"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.self.fid"  tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.label" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.label" tunnel="yes" required="yes"/>
+        <xsl:comment>#9689 $system_cache__dita__x3A__svg:openHiLoCloseYaxis when</xsl:comment>
+        <xsl:message>#9689 $system_cache__dita__x3A__svg:openHiLoCloseYaxis when = []
+            $system_cache__dita__x3A__svg:resolution.coordinate.id[<xsl:value-of select="$system_cache__dita__x3A__svg:resolution.coordinate.id"/>]
+            $system_cache__dita__x3A__svg:resolution.coordinate.block[<xsl:value-of select="$system_cache__dita__x3A__svg:resolution.coordinate.block"/>]
+        </xsl:message>
+        
+        <!-- TODO method offset bounds -->
+        <xsl:variable name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate + $system_cache__dita__x3A__svg:offsetX.default "/>
+        <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - $system_cache__dita__x3A__svg:offsetY.default "/>
+        <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length - ( 2 * $system_cache__dita__x3A__svg:offsetY.default )"/>
+        
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate + $system_cache__dita__x3A__svg:offsetY.default "/>
+        <xsl:variable name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:offsetY.default "/>
+        <xsl:variable name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length - ( 2 * $system_cache__dita__x3A__svg:offsetY.default )"/>
+        
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetX.minX">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x1.min__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetX.maxX">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x2.max__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.minY">
+            <xsl:call-template name="system_cache__dita__x3A__svg:y1.min__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.maxY">
+            <xsl:call-template name="system_cache__dita__x3A__svg:y2.max__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:x.count__x3A__read"><!-- to liczy glowne  - moze byc blad jak wiecej dzieci -->
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.debug">
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
+        </xsl:call-template>
+        
+        <svg:g system_cache__dita__x3A__svg:debug="system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal#100"  >
+            
+            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__tunnel">
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
+            </xsl:call-template>
+                <xsl:apply-templates mode="#current">
+                    
+                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"  tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length" tunnel="yes"/><!-- select="500" -->
+                    
+                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length" tunnel="yes"/>
+                    
+                    <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
+                    <xsl:with-param name="system_cache__dita__x3A__svg:x.count__x3A__read" select="$system_cache__dita__x3A__svg:x.count__x3A__read" tunnel="yes"/>
+                    
+                </xsl:apply-templates>
+        </svg:g>
+        
+    </xsl:template>
+    
+    
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal" match="*">
+        <xsl:param name="system_cache__dita__x3A__svg:cursor" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes" tunnel="yes"/><!-- select="500" -->
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.maxX" required="yes" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.minY" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.maxY" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" tunnel="yes" required="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="yes" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" tunnel="yes" required="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" required="yes" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.label" tunnel="yes" required="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:x.count__x3A__read" required="yes" tunnel="yes"/><!-- system_cache__dita__x3A__svg:x1.count.leadingTimeDate -->
+        
+        <xsl:param name="x1Value">
+            <xsl:message>#207 test</xsl:message>
+            <xsl:call-template name="system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel"/>
+        </xsl:param>
+        
+        <xsl:param name="x2Value">
+            <xsl:message>#211 test</xsl:message>
+            <xsl:call-template name="system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel"/>
+            
+        </xsl:param>
+        
+        <xsl:param name="yValue">
+            <xsl:message>#222 test</xsl:message>
+            <xsl:call-template name="system_cache__dita__x3A__svg:y1__x3A__read__x3A__tunnel"/>
+            <!--<xsl:call-template name="system_cache__dita__x3A__svg:y2__x3A__read__x3A__tunnel"/>-->
+        </xsl:param>
+        <xsl:param name="offsetY-text" tunnel="yes" select="5"/>
+            
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.label__x3A__read">
+            <xsl:call-template name="system_cache__dita__x3A__svg:data.x1.label__x3A__read__x3A__tunnel"/>
+        </xsl:param>
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.debug__x3A__row"/>
+        
+        <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"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="$system_cache__dita__x3A__svg:data.y1.label" tunnel="yes"/>
+                
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
+                <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.y2.label" select="$system_cache__dita__x3A__svg:data.y2.label" tunnel="yes"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="$system_cache__dita__x3A__svg:data.x.label" tunnel="yes"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
+                
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
+                
+                
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
+                
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
+                <xsl:with-param name="x1Value" select="$x1Value"/><!-- $system_cache__dita__x3A__svg:offsetX.minX -->
+                <xsl:with-param name="x2Value" select="$x2Value"/><!-- $system_cache__dita__x3A__svg:offsetX.minX -->
+                <xsl:with-param name="y1Value" select="$yValue"/>
+                <xsl:with-param name="y2Value" select="$yValue"/><!-- TODO -->
+                <xsl:with-param name="text-anchor">start</xsl:with-param>
+                <xsl:with-param name="offsetY-text" select="$offsetY-text"/>
+                <xsl:with-param name="font-size" select="7"/>
+            </xsl:call-template>
+        
+    </xsl:template>
+    
+</xsl:stylesheet>

+ 59 - 112
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.Xaxis.xsl

@@ -43,8 +43,8 @@
     </xsl:template>-->
     
     <xsl:template mode="system_cache__dita__x3A__svg:xAxis" match="*">
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes"/>
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:labelMajor" tunnel="yes"/>    
         <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes" tunnel="yes"/>
@@ -78,6 +78,11 @@
         
         
         <xsl:comment>#37-51 mode system_cache__dita__x3A__svg:Xaxis cont/n=<xsl:value-of select="name()"/>; </xsl:comment>
+        <xsl:message terminate="yes">#37-51 mode system_cache__dita__x3A__svg:Xaxis cont/n=<xsl:value-of select="name()"/>;
+            $resolution.coordinate.id=[<xsl:value-of select="$system_cache__dita__x3A__svg:resolution.coordinate.id"/>]
+            $resolution.coordinate.block=[<xsl:value-of select="$system_cache__dita__x3A__svg:resolution.coordinate.block"/>]
+            n/[<xsl:value-of select="name()"/>]
+        </xsl:message>
         <!--<system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal>-->
         <!--<xsl:copy>-->
         <!--<xsl:copy-of select="@*"/>-->
@@ -115,8 +120,8 @@
     
     
     <xsl:template mode="system_cache__dita__x3A__svg:xAxis" match="system_cache__dita__x3A__svg:data.current-group">
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes"/>
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes" required="yes"/>
         
         <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes"  tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes"  tunnel="yes"/>
@@ -132,6 +137,8 @@
         <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" />
         <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" />
         <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" />-->
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1__x3A__disabled" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" tunnel="yes" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.label"  tunnel="yes" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name"  tunnel="yes" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value"  tunnel="yes" required="yes"/>
@@ -141,10 +148,17 @@
         
         <xsl:param name="system_cache__dita__x3A__svg:cursor" required="yes"  tunnel="yes"/>
         
+        <xsl:param name="system_cache__dita__x3A__svg:x.count__x3A__read">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"/>
+        </xsl:param>
+        
         <!--<xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" />-->
         
         <!--<xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length" />-->
-        
+        <xsl:message>#1555 system_cache__dita__x3A__svg:xAxis
+            $ resolution.coordinate.id=[<xsl:value-of select="$system_cache__dita__x3A__svg:resolution.coordinate.id"/>]
+            $ resolution.coordinate.block=[<xsl:value-of select="$system_cache__dita__x3A__svg:resolution.coordinate.block"/>]
+        </xsl:message>
         
         <xsl:variable name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate + $system_cache__dita__x3A__svg:offsetX.default "/>
         <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - $system_cache__dita__x3A__svg:offsetY.default "/>
@@ -160,33 +174,33 @@
         <xsl:comment>#131 system_cache__dita__x3A__svg:Xaxis matched /n <xsl:value-of select="name()"/>;
             ;
         </xsl:comment>
-        <xsl:message>#131 system_cache__dita__x3A__svg:Xaxis matched /n <xsl:value-of select="name()"/>;
-        </xsl:message>
-        
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:x.count.data.current-group" select="count(descendant-or-self::system_cache__dita__x3A__svg:data.current-group/@system_cache__dita__x3A__svg:data.id)" />-->
-        
-        <xsl:variable name="system_cache__dita__x3A__svg:x.count">
-            <xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read">
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-            </xsl:call-template>
-        </xsl:variable>
         <xsl:variable name="system_cache__dita__x3A__svg:offsetX.minX" >
-            <xsl:call-template name="system_cache__dita__x3A__svg:x.min__x3A__read">
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
-            </xsl:call-template>
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.min__x3A__read__x3A__tunnel"/>
         </xsl:variable>
         
         <xsl:variable name="system_cache__dita__x3A__svg:offsetX.maxX"  >
-            <xsl:call-template name="system_cache__dita__x3A__svg:x.max__x3A__read">
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
-            </xsl:call-template>
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.max__x3A__read__x3A__tunnel"/>
         </xsl:variable>
-       
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
+        
+        <xsl:variable name="system_cache__dita__x3A__svg:x.count">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"/>            
+        </xsl:variable>
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.debug">
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:x.count" tunnel="yes"/>
+        </xsl:call-template>
+        
+        <!--<xsl:variable name="system_cache__dita__x3A__svg:x.count.data.current-group" select="count(descendant-or-self::system_cache__dita__x3A__svg:data.current-group/@system_cache__dita__x3A__svg:data.id)" />-->
+        
+        
+     
         <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.label__x3A__read"  >
             <xsl:call-template name="system_cache__dita__x3A__svg:data.x.label__x3A__read">
                 <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
@@ -196,33 +210,6 @@
         </xsl:variable>-->
         
         
-        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
-        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-        
-        <xsl:comment>#151-154 testing evaluated vars n/ <xsl:value-of select="name()"/> / ;; 
-            child/<xsl:value-of select="*/name()"/>;
-           $system_cache__dita__x3A__svg:data.x.name.value = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-           $system_cache__dita__x3A__svg:data.x.name = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>
-           $system_cache__dita__x3A__svg:x.count = <xsl:value-of select="$system_cache__dita__x3A__svg:x.count"/>
-            $system_cache__dita__x3A__svg:offsetX.minX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/>
-           $system_cache__dita__x3A__svg:offsetX.maxX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
-           $system_cache__dita__x3A__svg:data.x.label = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.label"/>
-          <!-- $system_cache__dita__x3A__svg:data.x.label__x3A__read = <xsl:copy-of select="$system_cache__dita__x3A__svg:data.x.label__x3A__read"/>-->
-           
-       </xsl:comment>
-        <xsl:message>#151-154 testing evaluated vars n/ <xsl:value-of select="name()"/> / ;; ]
-            child/<xsl:value-of select="*/name()"/>;
-            
-           $system_cache__dita__x3A__svg:data.x.name.value = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-           $system_cache__dita__x3A__svg:data.x.name = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>
-           $system_cache__dita__x3A__svg:x.count = <xsl:value-of select="$system_cache__dita__x3A__svg:x.count"/>
-            $system_cache__dita__x3A__svg:offsetX.minX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/>
-           $system_cache__dita__x3A__svg:offsetX.maxX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
-           $system_cache__dita__x3A__svg:data.x.label = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.label"/>
-           <!--$system_cache__dita__x3A__svg:data.x.label__x3A__read = <xsl:copy-of select="$system_cache__dita__x3A__svg:data.x.label__x3A__read"/>-->
-           
-       </xsl:message>
-        
         
         <xsl:choose>
             <xsl:when test="$system_cache__dita__x3A__svg:x.count &gt; 0 ">
@@ -243,7 +230,7 @@
                         <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
                         
                     </xsl:call-template>
-                        <!--<xsl:variable name="system_cache__dita__x3A__svg:xAxis__x3A__plot">-->
+                        <xsl:variable name="system_cache__dita__x3A__svg:xAxis__x3A__plot">
                                 <xsl:apply-templates mode="system_cache__dita__x3A__svg:xAxis__x3A__plot" >
                                    <!-- <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="$system_cache__dita__x3A__svg:resolution.coordinate.id"/>
                                     <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="$system_cache__dita__x3A__svg:resolution.coordinate.block"/>-->
@@ -265,14 +252,14 @@
                                     <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>-->
                                     <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
                                     <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
-                                    
+                                    <xsl:with-param name="system_cache__dita__x3A__svg:x.count__x3A__read" select="$system_cache__dita__x3A__svg:x.count__x3A__read" tunnel="yes"/>
                                 </xsl:apply-templates>
-                        <!--</xsl:variable>TODO SERVICE -->
+                        </xsl:variable>
                     <xsl:message>#240CC now will system_cache__dita__x3A__svg:transform.translate.text__x3A__collision__x3A__eliminate</xsl:message>
                     <!--<xsl:copy-of select="$system_cache__dita__x3A__svg:xAxis__x3A__plot"/>-->
-                    <!--TODO REPAIR <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.text__x3A__collision__x3A__eliminate">
+                    <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.text__x3A__collision__x3A__eliminate">
                         <xsl:with-param name="system_cache__dita__x3A__svg:plot" select="$system_cache__dita__x3A__svg:xAxis__x3A__plot"/>
-                    </xsl:call-template>-->
+                    </xsl:call-template>
                     
                 </svg:g>
             </xsl:when>
@@ -307,6 +294,9 @@
         <xsl:param name="system_cache__dita__x3A__svg:data.x.label" required="yes" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/>
         
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1__x3A__disabled" tunnel="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" tunnel="yes" />
+        
         <xsl:param name="offsetY-text" select="0"/>
         <xsl:param name="offsetX-text-margin" select="3"/>
         <xsl:param name="text-anchor" select="'end'"/>
@@ -317,6 +307,9 @@
         <xsl:param name="text-baseline-shift.percent" select="-50"/>
         <xsl:param name="line-height" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length  div 8"/>
         
+        <xsl:param name="system_cache__dita__x3A__svg:x.count__x3A__read" required="yes" tunnel="yes"/>
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.debug__x3A__row"/>
         
         <xsl:variable name="system_cache__dita__x3A__svg:data.x.label__x3A__read"  >
             <xsl:call-template name="system_cache__dita__x3A__svg:data.x.label__x3A__read">
@@ -338,55 +331,25 @@
             $data.x.name.valu[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>]
             $data.x.name     [<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>]
             $data.x.value    [<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value"/>]
+            
         </xsl:message>
         
-        <xsl:variable name="system_cache__dita__x3A__svg:x.count__x3A__read">
-            <xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__root">
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-            </xsl:call-template>
-        </xsl:variable>
+        
         
         <xsl:variable name="xScale">
-            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale">
+            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale__x3A__tunnel">
                 <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale.x" select="true()"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
-                
             </xsl:call-template>
         </xsl:variable>
         
         <xsl:variable name="yScale">
-            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale">
+            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale__x3A__tunnel">
                 <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale.y" select="true()"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
-                
             </xsl:call-template>
         </xsl:variable>
         
         <xsl:variable name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding">
-            <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding">
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
-            </xsl:call-template>
+            <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding__x3A__tunnel"/>
         </xsl:variable>
         
         
@@ -422,7 +385,7 @@
         
         
         <xsl:choose>
-            <xsl:when test="$system_cache__dita__x3A__svg:data.x.label__x3A__read">
+            <xsl:when test="not($system_cache__dita__x3A__svg:data.x.label__x3A__read='')">
                 <xsl:comment>
                     #240 
                     $xScale = <xsl:value-of select="$xScale"/>
@@ -447,23 +410,7 @@
                 </xsl:comment>
                 <xsl:message>
                     #240 RR
-                    $xScale = <xsl:value-of select="$xScale"/>
-                    n/<xsl:value-of select="name()"/>
-                    $system_cache__dita__x3A__svg:x.count__x3A__read = <xsl:value-of select="$system_cache__dita__x3A__svg:x.count__x3A__read"/>
-                    $system_cache__dita__x3A__svg:x__x3A__read = <xsl:value-of select="$system_cache__dita__x3A__svg:x__x3A__read"/> ;
-                    $system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding = <xsl:value-of select="$system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding"/>
-                    $system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding__x3A__translate.bounds__x3A__collision = 
-                    $system_cache__dita__x3A__svg:transform.translate.text__x3A__collision = 
-                    system_cache__dita__x3A__svg:data.x.label__x3A__read = <xsl:copy-of select="$system_cache__dita__x3A__svg:data.x.label__x3A__read"></xsl:copy-of>
-                    $system_cache__dita__x3A__svg:offsetX.minX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/>
-                    $system_cache__dita__x3A__svg:offsetX.maxX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
-                    
-                    $system_cache__dita__x3A__svg:offsetY.minY = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.minY"/>
-                    $system_cache__dita__x3A__svg:offsetY.maxY = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
-                    
-                    $system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate = <xsl:value-of select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
-                    $system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate = <xsl:value-of select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                    $system_cache__dita__x3A__svg:x__x3A__read = <xsl:value-of select="$system_cache__dita__x3A__svg:x__x3A__read"/>
+                    system_cache__dita__x3A__svg:data.x.label__x3A__read = [<xsl:copy-of select="$system_cache__dita__x3A__svg:data.x.label__x3A__read"/>]
                 </xsl:message>
                 
                 <xsl:choose>

+ 229 - 289
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.bar.xsl

@@ -19,34 +19,53 @@
     </xsl:template>
     
     
-    
     <xsl:template mode="system_cache__dita__x3A__svg:bars" match="*">
+        <xsl:message>#BARS 23 ERROR - expected to parse only system_cache__dita__x3A__svg:data.current-group
+            but matched/n= <xsl:value-of select="name()"/>;
+        </xsl:message>
+    </xsl:template>
+    
+    <xsl:template mode="system_cache__dita__x3A__svg:bars" match="system_cache__dita__x3A__svg:data.current-group">
         <!--<xsl:param name="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal" />-->
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id"/>
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block"/>
-        <xsl:param name="system_cache__dita__x3A__svg:cursor"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:cursor" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes"  tunnel="yes"/><!-- select="500" -->
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes"  tunnel="yes"/>
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" select="true()" tunnel="yes"/>
+       <!-- <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" tunnel="yes"/>-->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" tunnel="yes" 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:data.x2.bounds.max.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes" /><!-- select="500" -->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:bars-color" tunnel="yes"/>
         
-        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:x__x3A__read">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel"/>
+        </xsl:param>
         
+        <xsl:param name="system_cache__dita__x3A__svg:y__x3A__read">
+            <xsl:call-template name="system_cache__dita__x3A__svg:y1__x3A__read__x3A__tunnel"/>
+        </xsl:param>
         
-        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" />
+        <xsl:param name="system_cache__dita__x3A__svg:y.count__x3A__read">
+            <xsl:call-template name="system_cache__dita__x3A__svg:y1.count__x3A__read__x3A__tunnel"/>
+        </xsl:param>
         
-        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
-        <xsl:param name="system_cache__dita__x3A__svg:bars-color"/>
         <xsl:variable name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate + $system_cache__dita__x3A__svg:offsetX.default "/>
         <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - $system_cache__dita__x3A__svg:offsetY.default "/>
         <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length - ( 2 * $system_cache__dita__x3A__svg:offsetY.default )"/>
@@ -71,88 +90,107 @@
         system_cache__dita__x3A__svg:data.x.name="system_cache__dita__x3A__svg:data.y.BI_audit_ENERGA_RUM_UMOWY.data.name"
         system_cache__dita__x3A__svg:data.x.name.value="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object"
         system_cache__dita__x3A__svg:data.x.value="system_cache__dita__x3A__svg:data.x.BI_audit_ENERGA_RUM_UMOWY.leadingTimeYear-month.valueY"/>-->
-        
-        <xsl:variable name="minX">
-            <xsl:choose>
-                <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
-                    <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.min__x3A__read">
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.bounds.name.value" select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>
-                    </xsl:call-template>
-                </xsl:when>
-                <xsl:otherwise >
-                    <xsl:call-template name="system_cache__dita__x3A__svg:x.min__x3A__read">
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
-                    </xsl:call-template>
-                </xsl:otherwise>
-                
-            </xsl:choose>
+        <xsl:message>#D98 bounmds[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>]</xsl:message>
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetX.minX">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.min__x3A__read__x3A__tunnel">
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+            </xsl:call-template>
         </xsl:variable>
+        <xsl:message>#D98[EFO] bounmds[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>]</xsl:message>
         
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetX.maxX">
+            <xsl:call-template name="system_cache__dita__x3A__svg:x.max__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
         
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.minY">
+            <xsl:call-template name="system_cache__dita__x3A__svg:y1.min__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
+        <xsl:variable name="system_cache__dita__x3A__svg:offsetY.maxY">
+            <xsl:call-template name="system_cache__dita__x3A__svg:y1.max__x3A__read__x3A__tunnel"/>
+        </xsl:variable>
         
-        <xsl:variable name="maxX">
-            <xsl:choose>
-                <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
-                    <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.max__x3A__read">
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.bounds.name.value" select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>
-                    </xsl:call-template>
-                </xsl:when>
-                <xsl:otherwise >
-                    <xsl:call-template name="system_cache__dita__x3A__svg:x.max__x3A__read">
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
-                    </xsl:call-template>
-                </xsl:otherwise>
+        <xsl:variable name="xScale">
+            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale">
+                <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale.x" select="true()"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
                 
-            </xsl:choose>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
+                
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
+                
+            </xsl:call-template>
         </xsl:variable>
         
-        
-        
             <xsl:comment>#58 mode="system_cache__dita__x3A__svg:bars" todo 
-                $system_cache__dita__x3A__svg:data.x.value.bounds = "<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>"
-                    T:system_cache__dita__x3A__svg:data.x.name = <xsl:value-of select="concat('system_cache__dita__x3A__svg:data.x.',$system_cache__dita__x3A__svg:data.x.value.bounds,'.data.name')"/>
-                    T:system_cache__dita__x3A__svg:data.y.name = <xsl:value-of select="concat('system_cache__dita__x3A__svg:data.y.',$system_cache__dita__x3A__svg:data.x.value.bounds,'.data.name')"/>
-                    T:system_cache__dita__x3A__svg:data.x.value = <xsl:value-of select="concat('system_cache__dita__x3A__svg:data.x.',$system_cache__dita__x3A__svg:data.x.value.bounds,'.value')"/>
-                
-                $system_cache__dita__x3A__svg:data.x.name.value = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>
-                $system_cache__dita__x3A__svg:data.x.name = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>
-                $system_cache__dita__x3A__svg:data.x.value = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value"/>
-                $system_cache__dita__x3A__svg:data.y1.value = <xsl:value-of select="$system_cache__dita__x3A__svg:data.y1.value"/>
-                $minX = <xsl:value-of select="$minX"/> ;
-                $maxX = <xsl:value-of select="$maxX"/> ;
-                count(dataX)=[<xsl:value-of select="count(descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.x.value])"/>]
-                count(dataY)=[<xsl:value-of select="count(descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.y1.value])"/>]
+                $xScale = [<xsl:value-of select="$xScale"/>]
+                $system_cache__dita__x3A__svg:y.count__x3A__read = <xsl:value-of select="$system_cache__dita__x3A__svg:y.count__x3A__read"/>
                 
             </xsl:comment>
         
-        <xsl:message>#101 bars $minX = <xsl:value-of select="$minX"/>; count(dataX)=[<xsl:value-of select="count(descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.x.value])"/>]</xsl:message>
+        
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.debug">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" select="$system_cache__dita__x3A__svg:data.y2__x3A__disabled" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
+        </xsl:call-template>
+        
+        
+        
             <xsl:choose>
                 <xsl:when test="descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.y1.value]">
-                    <xsl:call-template name="system_cache__dita__x3A__svg:bars">
+                    
+                    
+                    <svg:g 
+                        system_cache__dita__x3A__svg:debug="svgu:bars.63  $maxY={$system_cache__dita__x3A__svg:offsetY.maxY} $width={$system_cache__dita__x3A__svg:data.x2.bounds.max.length} cursor.current.height={$system_cache__dita__x3A__svg:data.y2.bounds.max.length} "
+                        >
+                        <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds">
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
+                            
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
+                            
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
+                            
+                        </xsl:call-template>
+                    
+                    <xsl:apply-templates mode="system_cache__dita__x3A__svg:bars">
                         <!--<xsl:with-param name="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal" select="true()" tunnel="yes"/>-->
-                        <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="$system_cache__dita__x3A__svg:resolution.coordinate.id"/>
-                        <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="$system_cache__dita__x3A__svg:resolution.coordinate.block"/>
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="$system_cache__dita__x3A__svg:resolution.coordinate.id"/>-->
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="$system_cache__dita__x3A__svg:resolution.coordinate.block"/>-->
                         <!--<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:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" />
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" />
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length" /><!-- select="500" -->
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" />-->
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" />-->
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length" />--><!-- select="500" -->
                         
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" />
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" />
-                        <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length" />
-                        <xsl:with-param name="dataY" select="descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.y1.value]"/>
-                        <xsl:with-param name="dataX" select="descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.x.value]"/>
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" />
+                        <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" />-->
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length" />-->
+                        <xsl:with-param name="dataY" select="$system_cache__dita__x3A__svg:y__x3A__read" tunnel="yes"/>
+                        <xsl:with-param name="dataX" select="$system_cache__dita__x3A__svg:x__x3A__read" tunnel="yes"/>
                         
-                        <xsl:with-param name="minX" select="$minX"/>
-                        <xsl:with-param name="maxX" select="$maxX"/>
-                        <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="$system_cache__dita__x3A__svg:bars-color"/>
+                        <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes"/>
+                        <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes"/>
+                        <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes"/>
+                        <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes"/>
+                        <xsl:with-param name="xScale" select="$xScale" tunnel="yes"/>
+                        <xsl:with-param name="system_cache__dita__x3A__svg:y.count__x3A__read" select="$system_cache__dita__x3A__svg:y.count__x3A__read" tunnel="yes"/>
+                        <!--<xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="$system_cache__dita__x3A__svg:bars-color"/>-->
                         
-                    </xsl:call-template>
+                    </xsl:apply-templates>
+                    </svg:g>
                 </xsl:when>
                 <xsl:otherwise>
                     <xsl:comment>E95 empty set for descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name and . = $system_cache__dita__x3A__svg:data.x.name.value]]/@*[ name() = $system_cache__dita__x3A__svg:data.y1.value] </xsl:comment>
@@ -170,123 +208,97 @@
     </xsl:template>
     
     
-    <xsl:template name="system_cache__dita__x3A__svg:bars">
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" required="no"/>
-        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" required="no"/>
+    <xsl:template mode="system_cache__dita__x3A__svg:bars" match="*">
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.block" tunnel="yes" required="no"/>
+        <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" required="no" tunnel="yes"/>
         <!--<xsl:param name="dataX" required="yes" />--> <!-- x values select="/.." -->
-        <xsl:param name="dataY" required="yes" /><!-- select="/.." -->
+        <xsl:param name="dataY" required="yes" tunnel="yes"/><!-- select="/.." -->
         <xsl:param name="context" select="'bars_context_unset'"/>
-        <xsl:param name="dataX"/>
-        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes" /><!-- select="500" -->
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" tunnel="yes" select="true()"/>
+        <xsl:param name="dataX" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes" tunnel="yes"/><!-- select="500" -->
         
-        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes" />
-        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes" tunnel="yes"/>
         
         <!--<xsl:param name="height"  required="yes"/>--><!-- select="500" -->
         <xsl:param name="boundingBox" select="false( )"/>
         <xsl:param name="barLabel" select="false( )"/>
-        <xsl:param name="system_cache__dita__x3A__svg:colors" select="$system_cache__dita__x3A__svg:colors.default"></xsl:param>
+        <xsl:param name="system_cache__dita__x3A__svg:colors" select="$system_cache__dita__x3A__svg:colors.default" tunnel="yes"></xsl:param>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
-        <xsl:param name="system_cache__dita__x3A__svg:bars-color"/>
-        <xsl:param name="minX" >
-            <xsl:choose>
-                <xsl:when test="$dataX">
-                    <xsl:call-template name="system_cache__dita__x3A__svg:emath.min">
-                        <xsl:with-param name="nodes" select="$dataX"/>
-                    </xsl:call-template>
-                </xsl:when>
-                <xsl:otherwise><xsl:value-of select="0"/></xsl:otherwise>
-            </xsl:choose>
-        </xsl:param>
-        
+        <xsl:param name="system_cache__dita__x3A__svg:bars-color" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes" required="yes"/>
+          
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.minY" select="0" tunnel="yes"/>
             
         
+
+        <xsl:param name="barWidth" select="5" tunnel="yes"/>
+        <xsl:param name="orientation" select="0" tunnel="yes"/>
         
-        <xsl:param name="minY" select="0">
-            <!--<xsl:call-template name="system_cache__dita__x3A__svg:emath.min">
-                <xsl:with-param name="nodes" select="$dataY"/>
-            </xsl:call-template>-->
-        </xsl:param>
-        
-        
-        
-        <xsl:param name="barWidth" select="5"/>
         
-        <xsl:param name="orientation" select="0"/>
-        
-        
-        
-            
-        
-        
-        <!--<xsl:param name="maxX" select="count($dataY)"/>-->
-            
-        
-        <xsl:param name="maxX" >
-            <xsl:choose>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes" required="yes">
+            <!--<xsl:choose>
                 <xsl:when test="$dataX">
                     <xsl:call-template name="system_cache__dita__x3A__svg:emath.max">
                         <xsl:with-param name="nodes" select="$dataX"/>
                     </xsl:call-template>
                 </xsl:when>
                 <xsl:otherwise><xsl:value-of select="(number($system_cache__dita__x3A__svg:data.x2.bounds.max.length) div (count($dataY) + 1)) * count($dataY)"/></xsl:otherwise>
-            </xsl:choose>
+            </xsl:choose>-->
             
         </xsl:param>
         
-        <!--<xsl:variable name="Yrange" select="$maxY - $minY"/>-->
         
-     
         
-        <xsl:param name="maxY">
-            <xsl:call-template name="system_cache__dita__x3A__svg:emath.max">
-                <xsl:with-param name="nodes" select="$dataY"/>
-            </xsl:call-template>
-        </xsl:param>
-        
-        
-        <xsl:variable name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate + $system_cache__dita__x3A__svg:offsetX.default "/>
-        <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate - $system_cache__dita__x3A__svg:offsetY.default "/>
-        <xsl:variable name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length - ( 2 * $system_cache__dita__x3A__svg:offsetY.default )"/>
+     
         
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes" required="yes"/>
+            
         
-        <xsl:variable name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate + $system_cache__dita__x3A__svg:offsetY.default "/>
-        <xsl:variable name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate - $system_cache__dita__x3A__svg:offsetY.default "/>
-        <xsl:variable name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length - ( 2 * $system_cache__dita__x3A__svg:offsetY.default )"/>
         
-        <!--<xsl:variable name="Yrange" select="$maxY - $minY"/>-->
         
         <!--<xsl:param name="barWidth" select="5"/>--> 
-        <xsl:variable name="numBars" select="count($dataY)"/>
-        <xsl:variable name="spacing" select="number($system_cache__dita__x3A__svg:data.x2.bounds.max.length) div (count($dataY) + 1)"/><!-- select="$width div ($numBars + 1)" -->
-        <xsl:variable name="xScale">
-            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale">
+        
+        <xsl:param name="xScale" required="yes" tunnel="yes">
+            <!--<xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale">
                 <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__extract__scale.x" select="true()"/>
                 <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
                 <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
                 <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
                 <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
                 
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$minX"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$maxX"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
                 
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$minY"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$maxY"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
+                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
                 
-            </xsl:call-template>
-        </xsl:variable>
+            </xsl:call-template>-->
+        </xsl:param>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:y.count__x3A__read" required="yes" tunnel="yes" /><!-- select="count($dataY)" -->
+        
+        
+        <xsl:variable name="spacing" select="number($system_cache__dita__x3A__svg:data.x2.bounds.max.length) div (count($dataY) + 1)"/><!-- select="$width div ($numBars + 1)" -->
+        
         <xsl:variable name="barWidth" select="$barWidth div $xScale"/>
         
+        
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.debug__x3A__row"/>
+        <xsl:message>#326 debug $system_cache__dita__x3A__svg:offsetX.minX[<xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/>]
+                                $system_cache__dita__x3A__svg:offsetX.maxX[<xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>]</xsl:message>
         <xsl:comment>
-            #184 $numBars = <xsl:value-of select="$numBars"/>
-                $maxY = <xsl:value-of select="$maxY"/> ;  $minY = <xsl:value-of select="$minY"/> ; 
-                $maxX = <xsl:value-of select="$maxX"/>  ; $minX = <xsl:value-of select="$minX"/> ;
+            #184 $system_cache__dita__x3A__svg:y.count__x3A__read = <xsl:value-of select="$system_cache__dita__x3A__svg:y.count__x3A__read"/>
+                $system_cache__dita__x3A__svg:offsetY.maxY = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.maxY"/> ;  $system_cache__dita__x3A__svg:offsetY.minY = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.minY"/> ; 
+                $system_cache__dita__x3A__svg:offsetX.maxX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>  ; $system_cache__dita__x3A__svg:offsetX.minX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/> ;
                 $dataY[1]/n = <xsl:value-of select="$dataY[1]/name()"/> /v =<xsl:value-of select="$dataY[1]"/>
                 $barWidth = <xsl:value-of select="$barWidth"/> - propos <xsl:value-of select="$barWidth div $xScale"/>
-                $spacing = <xsl:value-of select="$spacing"/>  ; $numBars = <xsl:value-of select="$numBars"/>
+                $spacing = <xsl:value-of select="$spacing"/>  ; $system_cache__dita__x3A__svg:y.count__x3A__read = <xsl:value-of select="$system_cache__dita__x3A__svg:y.count__x3A__read"/>
                 $xScale = <xsl:value-of select="$xScale"/>
                 $system_cache__dita__x3A__svg:data.x.value.bounds = <xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>
             
@@ -305,7 +317,7 @@
         </xsl:comment>
         
         
-        <!-- select="$width div ($numBars + 1)" -->
+        <!-- select="$width div ($system_cache__dita__x3A__svg:y.count__x3A__read + 1)" -->
         
         
         <xsl:if test="number($system_cache__dita__x3A__svg:debug.level) &gt; 10">
@@ -324,63 +336,24 @@
         </xsl:if>
         <!-- We change the data order to compensate for rotation -->
         <!-- See sort below -->
-        <xsl:variable name="data-order">
-            <xsl:choose>
-                <xsl:when test="number($orientation) mod 360 >= 180">ascending</xsl:when>
-                <xsl:otherwise>descending</xsl:otherwise>
-            </xsl:choose>
-        </xsl:variable> 
         
-        
-        
-        
-        <svg:g 
-            system_cache__dita__x3A__svg:debug="svgu:bars.63  $maxY={$maxY} $width={$system_cache__dita__x3A__svg:data.x2.bounds.max.length} cursor.current.height={$system_cache__dita__x3A__svg:data.y2.bounds.max.length} "
-            >
-            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds">
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$minX"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$maxX"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$minY"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$maxY"/>
-                
-            </xsl:call-template>
-            <!-- transform="translate({$offsetX},{$offsetY}) 
-            translate({number($width) div 2},{number($system_cache__dita__x3A__svg:cursor.current.height) div 2}) 
-            rotate({number($orientation) - 180}) 
-            translate({-number($width) div 2},{-number($system_cache__dita__x3A__svg:cursor.current.height) div 2}) 
-            scale(1,-{number($system_cache__dita__x3A__svg:cursor.current.height) div $maxY})" -->
-            <xsl:for-each select="$dataY">
+            
+            <!--<xsl:for-each select="$dataY">-->
                 <!-- We use a sort on position to traverse the data in reverse -->
                 <!-- when necessary. -->
                 <!--<xsl:sort select="position( )" data-type="number" 
                     order="{$data-order}"/>-->
                 
-                <xsl:variable name="pos" select="position( )"/>
+                <!--<xsl:variable name="pos" select="position( )"/>-->
                 <xsl:variable name="x1Value">
-                    <xsl:choose>
-                        <xsl:when test="$dataX and count($dataY) = count($dataX)">
-                            <xsl:value-of select="$dataX[$pos]"/>
-                        </xsl:when>
-                        <xsl:otherwise>
-                            <xsl:value-of select="$spacing * $pos"/>
-                        </xsl:otherwise>
-                    </xsl:choose>
+                    <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel"/>
                 </xsl:variable>
-                <xsl:variable name="x2Value">
-                    <xsl:choose>
-                        <xsl:when test="$dataX and count($dataY) = count($dataX)">
-                            <xsl:value-of select="$dataX[$pos] "/>
-                        </xsl:when>
-                        <xsl:otherwise>
-                            <xsl:value-of select="$spacing * $pos"/>
-                        </xsl:otherwise>
-                    </xsl:choose>
+                <xsl:variable name="x2Value"><!-- TODO CALCULATE TEMPLATE SINGLE -->
+                    <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel"/>    
+                </xsl:variable>
+                
+                <xsl:variable name="yValue">
+                    <xsl:call-template name="system_cache__dita__x3A__svg:y1__x3A__read__x3A__tunnel"/>
                 </xsl:variable>
                 
                 
@@ -392,49 +365,34 @@
                     ><!--y2="{system_cache__dita__x3A__svg:format-number(current( ))}" id="{$system_cache__dita__x3A__svg:resolution.coordinate.block}_bar_{$pos}" -->
                     <xsl:attribute name="y2">
                         <xsl:call-template name="system_cache__dita__x3A__svg:format-number">
-                            <xsl:with-param name="number" select="current()"/>
+                            <xsl:with-param name="number" select="$yValue"/>
                         </xsl:call-template>
                     </xsl:attribute>
                     <xsl:attribute name="style">
                         <xsl:value-of      select="concat('stroke-width: ',$barWidth,'; ')"/>
                         <xsl:call-template name="svgu:barStyle">
-                            <xsl:with-param name="pos" select="$pos"/>
+                            <!--<xsl:with-param name="pos" select="$pos"/>--><!-- different color set -->
                             <!--<xsl:with-param name="context" select="$context"/>-->
                             <xsl:with-param name="system_cache__dita__x3A__svg:colors" select="$system_cache__dita__x3A__svg:colors" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="$system_cache__dita__x3A__svg:bars-color"/>
                         </xsl:call-template>
                     </xsl:attribute>    
                     <xsl:attribute name="system_cache__dita__x3A__svg:transform.validate.y.{current( )}">
-                        <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug">
-                            <xsl:with-param name="yValue" select="current( )"/>
+                        <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug__x3A__tunnel">
+                            <xsl:with-param name="yValue" select="$yValue"/>
                             <xsl:with-param name="xValue" select="$x1Value"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.write" select="true()"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.y" select="true()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$minX"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$maxX"/>
-                            
-                            
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                            
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>
-                            
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$minY"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$maxY"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
-                            
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
                         </xsl:call-template>
                     </xsl:attribute>
-                    <xsl:attribute name="system_cache__dita__x3A__svg:transform.validate.x.{current( )}">
+                    <!--<xsl:attribute name="system_cache__dita__x3A__svg:transform.validate.x.{current( )}">
                         <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug">
-                            <xsl:with-param name="yValue" select="current( )"/>
+                            <xsl:with-param name="yValue" select="$yValue"/>
                             <xsl:with-param name="xValue" select="$x1Value"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.write" select="true()"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.x" select="true()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$minX"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$maxX"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
                             
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>
@@ -442,14 +400,14 @@
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$minY"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$maxY"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
                         </xsl:call-template>
-                    </xsl:attribute>
+                    </xsl:attribute>-->
                 </svg:line>  
                 
                 <!-- If user requests bar labels we position a text value -->
@@ -457,15 +415,15 @@
                 <!-- transformations is used to make the text display correctly -->
                 <!-- despite the rotations and scalings to the coordinate system -->
                 <xsl:if test="$barLabel">
-                    <svg:text x="{number($pos)}" 
-                        y="{number(current( )) * (number($system_cache__dita__x3A__svg:data.y2.bounds.max.length) div number($maxY))}" 
-                        transform="scale(1,{number($maxY) div number($system_cache__dita__x3A__svg:data.y2.bounds.max.length)}) 
+                    <!--<svg:text x="{number($pos)}" 
+                        y="{number(current( )) * (number($system_cache__dita__x3A__svg:data.y2.bounds.max.length) div number($system_cache__dita__x3A__svg:offsetY.maxY))}" 
+                        transform="scale(1,{number($system_cache__dita__x3A__svg:offsetY.maxY) div number($system_cache__dita__x3A__svg:data.y2.bounds.max.length)}) 
                         translate(0,10) 
                         translate({number($pos)},{current( ) * 
-                        (number($system_cache__dita__x3A__svg:data.y2.bounds.max.length) div number($maxY))}) 
+                        (number($system_cache__dita__x3A__svg:data.y2.bounds.max.length) div number($system_cache__dita__x3A__svg:offsetY.maxY))}) 
                         rotate({180 - number($orientation)}) 
                         translate({- number($pos)},
-                        {-current( ) * (number($system_cache__dita__x3A__svg:data.y2.bounds.max.length) div number($maxY))})"
+                        {-current( ) * (number($system_cache__dita__x3A__svg:data.y2.bounds.max.length) div number($system_cache__dita__x3A__svg:offsetY.maxY))})"
                         id="{$context}_barLabel_{$pos}">
                         <xsl:attribute name="style">
                             <xsl:call-template name="svgu:barLabelStyle">
@@ -474,16 +432,16 @@
                             </xsl:call-template>
                         </xsl:attribute>         
                         <xsl:value-of select="."/>
-                    </svg:text>
+                    </svg:text>-->
                 </xsl:if>        
-            </xsl:for-each>
-        </svg:g>
+            <!--</xsl:for-each>-->
+        
         
     </xsl:template>
     
     
-    <xsl:template name="svgu:bars">
-        <xsl:param name="data" required="yes" />  <!--select="/.." data to chart -->
+    <!--<xsl:template name="svgu:bars">
+        <xsl:param name="data" required="yes" />  <!-\-select="/.." data to chart -\->
         <xsl:param name="width" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor.current.height" required="yes"/>
         <xsl:param name="orientation" select="0"/>
@@ -492,11 +450,11 @@
         <xsl:param name="offsetY" select="0"/>
         <xsl:param name="boundingBox" select="false( )"/>
         <xsl:param name="barLabel" select="false( )"/>
-        <!--<xsl:param name="max">
+        <!-\-<xsl:param name="max">
             <xsl:call-template name="system_cache__dita__x3A__svg:emath.max">
                 <xsl:with-param name="nodes" select="$data"/>
             </xsl:call-template>
-        </xsl:param>-->
+        </xsl:param>-\->
         <xsl:param name="context"/>
         <xsl:param name="system_cache__dita__x3A__svg:colors" select="$system_cache__dita__x3A__svg:colors.default" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor" required="yes"/>
@@ -515,13 +473,13 @@
         </xsl:param>
             
         
-        <xsl:param name="minX" select="0"/>
-        <xsl:param name="maxX" select="(number($width) div (count($data) + 1)) * count($data)"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" select="0"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.maxX" select="(number($width) div (count($data) + 1)) * count($data)"/>
             
-        <!--<xsl:variable name="Yrange" select="$maxY - $minY"/>-->
+        <!-\-<xsl:variable name="Yrange" select="$maxY - $minY"/>-\->
         
         <xsl:variable name="numBars" select="count($data)"/>
-        <xsl:variable name="spacing" select="number($width) div (count($data) + 1)"/><!-- select="$width div ($numBars + 1)" -->
+        <xsl:variable name="spacing" select="number($width) div (count($data) + 1)"/><!-\- select="$width div ($numBars + 1)" -\->
         
         
         
@@ -533,18 +491,18 @@
                 rotate({number($orientation) - 180}) 
                 translate({-number($width) div 2},{-number($system_cache__dita__x3A__svg:cursor.current.height) div 2})"
                 system_cache__dita__x3A__svg:debug="svgu:bars.43  $maxY={$maxY} $width={$width} $cursor.current.height={$system_cache__dita__x3A__svg:cursor.current.height} $orientation={$orientation}">
-                <!-- transform="translate({$offsetX},{$offsetY}) 
+                <!-\- transform="translate({$offsetX},{$offsetY}) 
                 translate({number($width) div 2},{number($system_cache__dita__x3A__svg:cursor.current.height) div 2}) 
                 rotate({number($orientation) - 180}) 
-                translate({-number($width) div 2},{-number($system_cache__dita__x3A__svg:cursor.current.height) div 2})" -->
+                translate({-number($width) div 2},{-number($system_cache__dita__x3A__svg:cursor.current.height) div 2})" -\->
                 <svg:rect x="0" y="0" 
                     height="{$system_cache__dita__x3A__svg:cursor.current.height}" width="{$width}" 
                     style="stroke: black;
                     stroke-width:0.5;stroke-opacity:0.5;fill:none"/>
             </svg:g>
         </xsl:if>
-        <!-- We change the data order to compensate for rotation -->
-        <!-- See sort below -->
+        <!-\- We change the data order to compensate for rotation -\->
+        <!-\- See sort below -\->
         <xsl:variable name="data-order">
             <xsl:choose>
                 <xsl:when test="number($orientation) mod 360 >= 180">ascending</xsl:when>
@@ -554,35 +512,17 @@
         
         
         <xsl:comment>svgu:bars.89
-            $minX = <xsl:value-of select="$minX"/> ; $maxX = <xsl:value-of select="$maxX"/> $width = <xsl:value-of select="$width"/>
+            $system_cache__dita__x3A__svg:offsetX.minX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/> ; $system_cache__dita__x3A__svg:offsetX.maxX = <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/> $width = <xsl:value-of select="$width"/>
                 $spacing = <xsl:value-of select="$spacing"/> $spacing*$numBars==<xsl:value-of select="$spacing * $numBars"/>
                 $numBars = <xsl:value-of select="$numBars"/>
             $minY = <xsl:value-of select="$minY"/> ; $maxxY= <xsl:value-of select="$maxY"/> $height =  <xsl:value-of select="$system_cache__dita__x3A__svg:cursor.current.height"/> 
-                -- cursor.current.Y  = <xsl:value-of select="$system_cache__dita__x3A__svg:cursor.current.Y"/>
+                -\- cursor.current.Y  = <xsl:value-of select="$system_cache__dita__x3A__svg:cursor.current.Y"/>
         </xsl:comment>
         
-        <svg:g 
-            system_cache__dita__x3A__svg:debug="svgu:bars.63  $maxY={$maxY} $width={$width} cursor.current.height={$system_cache__dita__x3A__svg:cursor.current.height} "
-            >
-            <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.basic">
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$minX"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$maxX"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.width" select="$width"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$minY"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$maxY"/>
-                <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.height" select="$system_cache__dita__x3A__svg:cursor.current.height"/>
-                
-                <xsl:with-param name="system_cache__dita__x3A__svg:cursor.current.Y" select="$system_cache__dita__x3A__svg:cursor.current.Y"/><!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-            </xsl:call-template>
-            <!-- transform="translate({$offsetX},{$offsetY}) 
-            translate({number($width) div 2},{number($system_cache__dita__x3A__svg:cursor.current.height) div 2}) 
-            rotate({number($orientation) - 180}) 
-            translate({-number($width) div 2},{-number($system_cache__dita__x3A__svg:cursor.current.height) div 2}) 
-            scale(1,-{number($system_cache__dita__x3A__svg:cursor.current.height) div $maxY})" -->
+        
             <xsl:for-each select="$data">
-                <!-- We use a sort on position to traverse the data in reverse -->
-                <!-- when necessary. -->
+                <!-\- We use a sort on position to traverse the data in reverse -\->
+                <!-\- when necessary. -\->
                 <xsl:sort select="position( )" data-type="number" 
                     order="{$data-order}"/>
                 
@@ -591,7 +531,7 @@
                 <svg:line x1="{$spacing * $pos}"  system_cache__dita__x3A__svg:debug="svgu:bars.115_562"
                     y1="0" 
                     x2="{$spacing * $pos}"  
-                    y2="{current()}" ><!-- id="{$context}_bar_{$pos}" <xsl:value-of select="format-number($yMajor1,'#0.0')"/>--> 
+                    y2="{current()}" ><!-\- id="{$context}_bar_{$pos}" <xsl:value-of select="format-number($yMajor1,'#0.0')"/>-\-> 
                     <xsl:attribute name="style">
                         <xsl:value-of      select="concat('stroke-width: ',$barWidth,'; ')"/>
                         <xsl:call-template name="svgu:barStyle">
@@ -604,23 +544,23 @@
                         <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.basic__x3A__height__x3A__limit__x3A__validate">
                             <xsl:with-param name="yValue" select="current( )"/>
                             <xsl:with-param name="xValue" select="$spacing * $pos"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$minX"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$maxX"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.width" select="$width"/>
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$minY"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$maxY"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.height" select="$system_cache__dita__x3A__svg:cursor.current.height"/>
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor.current.Y" select="$system_cache__dita__x3A__svg:cursor.current.Y"/><!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor.current.Y" select="$system_cache__dita__x3A__svg:cursor.current.Y"/><!-\- $system_cache__dita__x3A__svg:cursor.current.Y -\->
                         </xsl:call-template>
                     </xsl:attribute>
                 </svg:line>  
                 
-                <!-- If user requests bar labels we position a text value -->
-                <!-- of the data point above the bar. The complex series of     -->   
-                <!-- transformations is used to make the text display correctly -->
-                <!-- despite the rotations and scalings to the coordinate system -->
+                <!-\- If user requests bar labels we position a text value -\->
+                <!-\- of the data point above the bar. The complex series of     -\->   
+                <!-\- transformations is used to make the text display correctly -\->
+                <!-\- despite the rotations and scalings to the coordinate system -\->
                 <xsl:if test="$barLabel">
                     <svg:text x="{number($spacing) * number($pos)}" 
                         y="{number(current( )) * (number($system_cache__dita__x3A__svg:cursor.current.height) div number($maxY))}" 
@@ -642,9 +582,9 @@
                     </svg:text>
                 </xsl:if>        
             </xsl:for-each>
-        </svg:g>
         
-    </xsl:template>     
+        
+    </xsl:template>-->     
     
     <xsl:template name="svgu:barStyle">
         <xsl:param name="pos"/>

Файловите разлики са ограничени, защото са твърде много
+ 103 - 845
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.complex.test.svg


+ 44 - 22
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.plot.complex.test.xsl

@@ -343,7 +343,7 @@
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.y.BI_audit_ENERGA_FAKTURY.data.name'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_FAKTURY'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.x.BI_audit_ENERGA_FAKTURY.leadingTimeYear-month.value'"/>
-                                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" 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=""></xsl:with-param>-->
                                         </xsl:call-template>
@@ -524,17 +524,22 @@
                                             <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.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.x.value" select="'system_cache__dita__x3A__svg:data.position'"/>
+                                            <!--<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.value.bounds" select="'leadingTimeYear-month.bounds.X'"/>
+                                            <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'"/>
@@ -565,7 +570,7 @@
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.y.BI_audit_ENERGA_RUM_UMOWY.data.name'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_RUM_UMOWY'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.x.BI_audit_ENERGA_RUM_UMOWY.leadingTimeYear-month.value'"/>
-                                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" 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:offsetX-text-margin" select="3"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:text-anchor" select="'end'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:font-size" select="'font-size'"/>
@@ -588,17 +593,21 @@
                                             <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.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.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>
@@ -660,7 +669,9 @@
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.y.BI_audit_ENERGA_FAKTURY.data.name'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_FAKTURY'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.x.BI_audit_ENERGA_FAKTURY.leadingTimeYear-month.value'"/>
-                                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" 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.y.position" select="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(),system_cache__dita__x3A__svg:resolution.coordinate.data.position())"/>-->
                                             <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="'green'"/>
                                             <!--<xsl:with-param name=""></xsl:with-param>-->
                                         </xsl:call-template>
@@ -694,6 +705,8 @@
                                             <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'"/>-->
@@ -725,7 +738,7 @@
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="'system_cache__dita__x3A__svg:data.y.BI_audit_ENERGA_RUM_UMOWY.data.name'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="'BI_audit_ENERGA_RUM_UMOWY'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="'system_cache__dita__x3A__svg:data.x.BI_audit_ENERGA_RUM_UMOWY.leadingTimeYear-month.value'"/>
-                                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" 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:offsetX-text-margin" select="3"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:text-anchor" select="'end'"/>
                                             <xsl:with-param name="system_cache__dita__x3A__svg:font-size" select="'font-size'"/>
@@ -735,7 +748,7 @@
                                         </xsl:call-template>
                                     </xsl:variable>
                                     
-                                    <xsl:copy-of select="$system_cache__dita__x3A__svg:cursor"></xsl:copy-of>
+                                    <!--<xsl:copy-of select="$system_cache__dita__x3A__svg:cursor"></xsl:copy-of>-->
                                     
                                     <!--<xsl:comment>#174 applying for powiazania rows lower</xsl:comment>-->  
                                     <xsl:variable name="system_cache__dita__x3A__svg:data__x3A__assign">
@@ -747,6 +760,15 @@
                                         </xsl:apply-templates>
                                     </xsl:variable>
                                     
+                                    <xsl:result-document href="/Users/a.binder/Downloads/system_cache__dita__x3A__svg.cursor.xml">
+                                            <xsl:copy-of select="$system_cache__dita__x3A__svg:cursor"/>
+                                    </xsl:result-document>
+                                    <xsl:result-document href="/Users/a.binder/Downloads/system_cache__dita__x3A__svg.data__x3A__assign.xml">
+                                        <system_cache__dita__x3A__svg:data__x3A__assign>
+                                            <xsl:copy-of select="$system_cache__dita__x3A__svg:data__x3A__assign" copy-namespaces="yes"/>
+                                        </system_cache__dita__x3A__svg:data__x3A__assign>
+                                    </xsl:result-document>
+                                    
                                     <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"/>
@@ -755,7 +777,7 @@
                                         <!--<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.hi-lo-chart-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="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:resolution.coordinate.id" select="system_cache__dita__x3A__svg:resolution.coordinate.block.total-volume()"/>-->
                                         <xsl:with-param name="system_cache__dita__x3A__svg:data__x3A__assign" select="$system_cache__dita__x3A__svg:data__x3A__assign" tunnel="yes"/>
@@ -794,7 +816,7 @@
                                     </xsl:apply-templates>-->
                                     
                                     <xsl:comment>#250 TODO POSSIBLE COPY copy-of select="$system_cache__dita__x3A__svg:data__x3A__assig to uncomment - context</xsl:comment>
-                                    <xsl:copy-of select="$system_cache__dita__x3A__svg:data__x3A__assign" copy-namespaces="yes"/>
+                                    
                                     
                                     
                                     

+ 105 - 85
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.region.plot.xsl

@@ -114,24 +114,27 @@
                     
                 </xsl:when>
                 <xsl:when test="@system_cache__dita__x3A__svg:template = 'system_cache__dita__x3A__svg:bars' and @system_cache__dita__x3A__svg:Ydata ">
+                    <xsl:message>#117 CALLING UNAVIABLE</xsl:message>
                     <xsl:choose>
                         <xsl:when test="$system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Ydata ]">
                             <xsl:message>#118 calling system_cache__dita__x3A__svg:bars</xsl:message>
-                            <xsl:call-template name="system_cache__dita__x3A__svg:bars">
-                                <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()"/>
-                                <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()"/>
-                                <!--<xsl:with-param name="dataX" select="$system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Xdata ]"/>-->
-                                <xsl:with-param name="dataY" select="$system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Ydata ]"/>  
+                            <!--<xsl:call-template name="system_cache__dita__x3A__svg:bars">
+                                <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()" tunnel="yes"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()" tunnel="yes"/>
+                                <!-\-<xsl:with-param name="dataX" select="$system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Xdata ]"/>-\->
+                                <xsl:with-param name="dataY" select="$system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Ydata ]" tunnel="yes"/>  
                                 
-                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>                        
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" tunnel="yes"/>                        <!-\- $system_cache__dita__x3A__svg:cursor.current.Y -\->
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" tunnel="yes"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length" tunnel="yes"/>                        
                                 
-                                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
-                                <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="@system_cache__dita__x3A__svg:bars-color"/>
-                            </xsl:call-template>    
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes"/>                        <!-\- $system_cache__dita__x3A__svg:cursor.current.Y -\->
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length" tunnel="yes"/>
+                                <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="@system_cache__dita__x3A__svg:bars-color" tunnel="yes"/>
+                                <xsl:with-param name="barWidth" select="5" tunnel="yes"/><!-\- todo param param-\->
+                                <xsl:with-param name="orientation" select="0" tunnel="yes"/><!-\- todo process input param -\->
+                            </xsl:call-template>-->    
                         </xsl:when>
                         <xsl:otherwise>
                             <xsl:comment>#80 errpr not found $system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Xdata(<xsl:value-of select="@system_cache__dita__x3A__svg:Xdata"/>) ] and $system_cache__dita__x3A__svg:cursor.region.plot__x3A__context//*[ name() = current()/@system_cache__dita__x3A__svg:Ydata(<xsl:value-of select="@system_cache__dita__x3A__svg:Ydata"/>) ]
@@ -331,33 +334,38 @@
                     <xsl:when test="1=1">
                         <xsl:message>#312 apply mode="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal"</xsl:message>
                         <xsl:apply-templates mode="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal" select="$system_cache__dita__x3A__svg:data__x3A__assign">
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:labelMajor" select="@system_cache__dita__x3A__svg:labelMajor" tunnel="yes"/>
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>                        
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length" tunnel="yes"/>                        
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length" tunnel="yes"/>
                             
                             
                             
-                            <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.name.value" select="@system_cache__dita__x3A__svg:data.y1.name.value" />
-                            <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.name" select="@system_cache__dita__x3A__svg:data.y1.name"  tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.name.value" select="@system_cache__dita__x3A__svg:data.y1.name.value"  tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="@system_cache__dita__x3A__svg:data.y1.value"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="@system_cache__dita__x3A__svg:data.y1.label"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.label" select="@system_cache__dita__x3A__svg:data.y2.label"  tunnel="yes"/>
-                            <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.name.value" select="@system_cache__dita__x3A__svg:data.y2.name.value" />
-                            <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.y2.name" select="@system_cache__dita__x3A__svg:data.y2.name"  tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.name.value" select="@system_cache__dita__x3A__svg:data.y2.name.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="@system_cache__dita__x3A__svg:data.y2.value" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="@system_cache__dita__x3A__svg:data.x.label"  tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" />
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes" />
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>
+                            
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.value" select="@system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label" select="@system_cache__dita__x3A__svg:data.x1.label" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.value" select="@system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.label" select="@system_cache__dita__x3A__svg:data.x2.label" tunnel="yes"/>
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="@system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
                             <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" tunnel="yes"/>
@@ -381,31 +389,36 @@
                 <xsl:choose>
                     <xsl:when test="1=1">
                         <xsl:apply-templates mode="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal" select="$system_cache__dita__x3A__svg:data__x3A__assign">
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:labelMajor" select="@system_cache__dita__x3A__svg:labelMajor" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:openHiLoCloseXaxis" select="true()" tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>                        
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length" tunnel="yes"/>                        
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length" tunnel="yes"/>
                             
                             
                             
-                            <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.name" select="@system_cache__dita__x3A__svg:data.y1.name"  tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="@system_cache__dita__x3A__svg:data.y1.value"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="@system_cache__dita__x3A__svg:data.y1.label"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.label" select="@system_cache__dita__x3A__svg:data.y2.label" tunnel="yes"/>
-                            <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.y2.name" select="@system_cache__dita__x3A__svg:data.y2.name"  tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="@system_cache__dita__x3A__svg:data.y2.value"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="@system_cache__dita__x3A__svg:data.x.label" tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" />
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" />
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value"  tunnel="yes"/>
+                            
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.value" select="@system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label" select="@system_cache__dita__x3A__svg:data.x1.label" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.value" select="@system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.label" select="@system_cache__dita__x3A__svg:data.x2.label" tunnel="yes"/>
                             
                             <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" tunnel="yes"/>
                             <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" tunnel="yes"/>
@@ -427,34 +440,34 @@
             
             <xsl:when test="@system_cache__dita__x3A__svg:apply-template.mode = 'system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal'">
                 <xsl:choose>
-                    <xsl:when test="1=1">
-                        <xsl:message>#401 apply mode="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal"</xsl:message>
-                        <xsl:apply-templates mode="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal" select="$system_cache__dita__x3A__svg:data__x3A__assign">
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()"/>
+                    <xsl:when test="1=1">             
+                        <xsl:message>#401 apply mode="system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal"</xsl:message>
+                        <xsl:apply-templates mode="system_cache__dita__x3A__svg:openHiLoCloseYaxis__x3A__horizontal" select="$system_cache__dita__x3A__svg:data__x3A__assign">
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:labelMajor" select="@system_cache__dita__x3A__svg:labelMajor" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:openHiLoCloseYaxis" select="true()" tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>                        
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length" tunnel="yes"/>                        
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length" tunnel="yes"/>
                             
                             
                             
-                            <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.name" select="@system_cache__dita__x3A__svg:data.y1.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="@system_cache__dita__x3A__svg:data.y1.value" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="@system_cache__dita__x3A__svg:data.y1.label"  tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.label" select="@system_cache__dita__x3A__svg:data.y2.label"  tunnel="yes"/>
-                            <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.y2.name" select="@system_cache__dita__x3A__svg:data.y2.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="@system_cache__dita__x3A__svg:data.y2.value" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="@system_cache__dita__x3A__svg:data.x.label"  tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" />
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="@system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
                             
@@ -462,6 +475,11 @@
                             <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" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.self.fid" select="@system_cache__dita__x3A__svg:data.x.self.fid" tunnel="yes"/>
                             
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.value" select="@system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label" select="@system_cache__dita__x3A__svg:data.x1.label" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.value" select="@system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.label" select="@system_cache__dita__x3A__svg:data.x2.label" tunnel="yes"/>
+                            
                         </xsl:apply-templates>    
                     </xsl:when>
                     
@@ -481,33 +499,33 @@
                         <xsl:comment>#350 apply mode mode="system_cache__dita__x3A__svg:bars"</xsl:comment>
                         <xsl:message>#350 apply mode mode="system_cache__dita__x3A__svg:bars"</xsl:message>
                         <xsl:apply-templates mode="system_cache__dita__x3A__svg:bars" select="$system_cache__dita__x3A__svg:data__x3A__assign">
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="parent::*/parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.block" select="parent::*/name()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:cursor" select="root()" tunnel="yes"/>
                             
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>                        
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.x2.bounds.max.length" tunnel="yes"/>                        
                             
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="../@system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes"/>                        <!-- $system_cache__dita__x3A__svg:cursor.current.Y -->
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" select="../@system_cache__dita__x3A__svg:data.y2.bounds.max.length" tunnel="yes"/>
                             
                             
                             
-                            <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.x.label" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" />
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" />
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.name" select="@system_cache__dita__x3A__svg:data.y1.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.value" select="@system_cache__dita__x3A__svg:data.y1.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.label" select="@system_cache__dita__x3A__svg:data.y1.label" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.name" select="@system_cache__dita__x3A__svg:data.y2.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.value" select="@system_cache__dita__x3A__svg:data.y2.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="@system_cache__dita__x3A__svg:data.x.label" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>
                             
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="@system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="@system_cache__dita__x3A__svg:bars-color"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:bars-color" select="@system_cache__dita__x3A__svg:bars-color" tunnel="yes"/>
                         </xsl:apply-templates>    
                     </xsl:when>
                     
@@ -546,7 +564,9 @@
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="@system_cache__dita__x3A__svg:data.x.label" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="@system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
                             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="@system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
-                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>                            
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="@system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>    
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1__x3A__disabled" select="true()" tunnel="yes"/>
+                            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" select="true()" tunnel="yes"/>
                         </xsl:apply-templates>    
                     </xsl:when>
                     

+ 27 - 1
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.region.xsl

@@ -182,7 +182,10 @@
         <xsl:param name="system_cache__dita__x3A__svg:data.x.preceding-sibling.fid" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.following-sibling.fid" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.self.fid" />
-        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.label"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.label"/>
         
         <xsl:apply-templates mode="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object" select="$system_cache__dita__x3A__svg:cursor">
             <xsl:with-param name="id"  select="$id" tunnel="yes"/>
@@ -216,6 +219,12 @@
             <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" tunnel="yes"/>
             <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" tunnel="yes"/>
             <xsl:with-param name="system_cache__dita__x3A__svg:data.x.self.fid" select="$system_cache__dita__x3A__svg:data.x.self.fid" tunnel="yes"/>
+            
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.value" select="$system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.label" select="$system_cache__dita__x3A__svg:data.x1.label" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.value" select="$system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.label" select="$system_cache__dita__x3A__svg:data.x2.label" tunnel="yes"/>
+            
         </xsl:apply-templates>
     </xsl:template>
     
@@ -280,6 +289,10 @@
         <xsl:param name="system_cache__dita__x3A__svg:data.x.following-sibling.fid" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.self.fid" tunnel="yes"/>
         
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.label" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.label" tunnel="yes"/>
         
         <system_cache__dita__x3A__svg:cursor.commit.instream-foreign-object>
               <xsl:if test="$system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata">
@@ -370,6 +383,19 @@
                 <xsl:attribute name="system_cache__dita__x3A__svg:data.x.self.fid" select="$system_cache__dita__x3A__svg:data.x.self.fid"/>
             </xsl:if>
             
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x1.value">
+                <xsl:attribute name="system_cache__dita__x3A__svg:data.x1.value" select="$system_cache__dita__x3A__svg:data.x1.value"/>
+            </xsl:if>
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x1.label">
+                <xsl:attribute name="system_cache__dita__x3A__svg:data.x1.label" select="$system_cache__dita__x3A__svg:data.x1.label"/>
+            </xsl:if>
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x2.value">
+                <xsl:attribute name="system_cache__dita__x3A__svg:data.x2.value" select="$system_cache__dita__x3A__svg:data.x2.value"/>
+            </xsl:if>
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x2.label">
+                <xsl:attribute name="system_cache__dita__x3A__svg:data.x2.label" select="$system_cache__dita__x3A__svg:data.x2.label"/>
+            </xsl:if>
+            
             
             
         </system_cache__dita__x3A__svg:cursor.commit.instream-foreign-object>

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

@@ -1115,9 +1115,12 @@
         
         <xsl:if test="not(number($system_cache__dita__x3A__svg:data.x2.bounds.max.length)) or 
             not(number($system_cache__dita__x3A__svg:offsetX.minX)) or not(number($Xrange))">
-            <xsl:message>#1103 x2.bounds.max.length=<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>; 
+            <xsl:message>#1103 [WARNING] x2.bounds.max.length=<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length"/>; 
             minX=<xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/>; 
-            $Xrange=<xsl:value-of select="$Xrange"/></xsl:message>
+            maxX=<xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>;
+            $Xrange=<xsl:value-of select="$Xrange"/>
+            p:n/ <xsl:value-of select="parent::*/name()"/> ; n/ <xsl:value-of select="name()"/>; @fid=<xsl:value-of select="@fid"/>
+            </xsl:message>
         </xsl:if>
         <xsl:variable name="Xscale" select="(number($system_cache__dita__x3A__svg:data.x2.bounds.max.length)) div number($Xrange)"/>
         <!--<xsl:variable name="Xscale.min" select=""/>-->
@@ -1242,5 +1245,57 @@
         
     </xsl:template>
     
+    
+    
+    <xsl:template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug__x3A__tunnel">
+        <xsl:param name="yValue" />
+        <xsl:param name="xValue" />
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.maxX" tunnel="yes" required="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"   tunnel="yes" required="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length"  tunnel="yes" required="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"  tunnel="yes" required="yes" />
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.minY" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes" required="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" tunnel="yes" required="yes"/><!-- should be lower -->
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length"  tunnel="yes" required="yes"/><!-- should be replaced by system_cache__dita__x3A__svg:data.y2.bounds.max.length -->
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:height__x3A__limit__x3A__validate" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:width__x3A__limit__x3A__validate" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.x" select="false()"/>
+        <xsl:param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.y" select="false()"/>
+        <xsl:param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.write" select="false()"/>
+        
+        <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug">
+            <xsl:with-param name="yValue" select="$yValue" />
+            <xsl:with-param name="xValue" select="$xValue" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX" select="$system_cache__dita__x3A__svg:offsetX.minX" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX" />
+            
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"   select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" />
+            
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length"  select="$system_cache__dita__x3A__svg:data.x2.bounds.max.length" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"   />
+            
+            
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY" select="$system_cache__dita__x3A__svg:offsetY.maxY" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/><!-- should be lower -->
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length"  select="$system_cache__dita__x3A__svg:data.y2.bounds.max.length" /><!-- should be replaced by system_cache__dita__x3A__svg:data.y2.bounds.max.length -->
+            
+            
+            <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.x" select="$system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.x"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.y" select="$system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.y"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.write" select="$system_cache__dita__x3A__svg:transform.translate.bounds__x3A__debug.write"/>
+        </xsl:call-template>
+        
+    </xsl:template>
   
 </xsl:stylesheet>

+ 14 - 3
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data.xsl

@@ -327,7 +327,8 @@
             <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(@default_db__x3A__BI_audit_BENFORD:leadingTimeDate)"/>
             <!--<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.count')}" select="count(current-group())"/>-->
             <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:year-quarter(@default_db__x3A__BI_audit_BENFORD:leadingTimeDate)"/>
-            <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.data.name')}" select="'leadingTimeYear-month.bounds.X'"/>
+            <!--<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.data.name')}" select="'leadingTimeYear-month.bounds.X'"/>-->
+            <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(@default_db__x3A__BI_audit_BENFORD:leadingTimeDate)"/>
         </xsl:copy>
     </xsl:template>
     
@@ -349,22 +350,25 @@
             <!--<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.count')}" select="count(current-group())"/>-->
             <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:year-quarter(@leadingTimeDate-From)"/>
             <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.data.name')}" select="'leadingTimeYear-month.bounds.X'"/>
-            
+            <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(@leadingTimeDate-From)"/>
         </xsl:copy>
         <xsl:copy>
             <xsl:copy-of select="parent::*/@fid"/>
             <xsl:copy-of select="@leadingTimeDate-To"/>
             <xsl:choose>
                 <xsl:when test="not(@leadingTimeDate-To[.=''])">
+                    <xsl:message>#359 deb n[<xsl:value-of select="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')"/>]</xsl:message>
                     <!--<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.id')}" select="@fid"/>-->
                     <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(@leadingTimeDate-To)"/>
                     <!--<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.count')}" select="count(current-group())"/>-->
                     <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:year-quarter(@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:year-timestamp-day(@leadingTimeDate-To)"/>
                     <xsl:attribute name="debug.TimeTo">#300</xsl:attribute>
                 </xsl:when>
                 <xsl:when test="$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.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: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')"/>-->
@@ -392,6 +396,10 @@
             <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(),'BI_audit_ENERGA_RUM_UMOWY.count')}" select="count(current-group())"/>
             <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(),'BI_audit_ENERGA_RUM_UMOWY.current-grouping-key')}" select="current-grouping-key()"/>
             <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(),'BI_audit_ENERGA_RUM_UMOWY.data.name')}" select="name()"/>
+            <!--<xsl:attribute name="{system_cache__dita__x3A__svg:resolution.coordinate.data.dataset(system_cache__dita__x3A__svg:resolution.coordinate.axis.x(),system_cache__dita__x3A__svg:resolution.coordinate.index(),'BI_audit_ENERGA_RUM_UMOWY.data.name',system_cache__dita__x3A__svg:resolution.coordinate.data.position())}" select=""/>-->
+            
+            <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(),system_cache__dita__x3A__svg:resolution.coordinate.data.position())}" select="count(preceding-sibling::*)"/>
+            <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-month(@default_db__x3A__BI_audit_BENFORD:leadingTimeDate)"/>
             
         </xsl:copy>
     </xsl:template>
@@ -410,7 +418,8 @@
             <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(),'BI_audit_ENERGA_FAKTURY.count')}" select="count(current-group())"/>
             <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(),'BI_audit_ENERGA_FAKTURY.current-grouping-key')}" select="current-grouping-key()"/>
             <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(),'BI_audit_ENERGA_FAKTURY.data.name')}" select="name()"/>
-            
+            <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(),system_cache__dita__x3A__svg:resolution.coordinate.data.position())}" select="count(preceding-sibling::*)"/>
+            <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-month(@default_db__x3A__BI_audit_BENFORD:leadingTimeDate)"/>
         </xsl:copy>
     </xsl:template>
     
@@ -425,6 +434,7 @@
         <xsl:attribute name="system_cache__dita__x3A__svg:data.y1.name" select="name()"/>
         <xsl:attribute name="system_cache__dita__x3A__svg:data.y1.value" select="system_cache__dita:year-timestamp-day(.)"/>
         <xsl:attribute name="system_cache__dita__x3A__svg:data.y1.label" select="."/>
+        <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>
     
     
@@ -433,6 +443,7 @@
         <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:year-timestamp-day(.)"/>
         <xsl:attribute name="system_cache__dita__x3A__svg:data.y2.label" select="."/>
+        <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="text()|comment()"/>

+ 639 - 23
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.data__x3A__read.xsl

@@ -25,16 +25,35 @@
     <xsl:template name="system_cache__dita__x3A__svg:x.count__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+        </xsl:call-template>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <!--<xsl:param name="system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>-->
         <xsl:value-of select="count(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name] = $system_cache__dita__x3A__svg:data.x.name.value ])"/>
     </xsl:template>
     
     
-    <xsl:template name="system_cache__dita__x3A__svg:y.count__x3A__read">
+    <xsl:template name="system_cache__dita__x3A__svg:y.count__x3A__read"><!-- todo to migrate to system_cache__dita__x3A__svg:y.count__x3A__read -->
         <xsl:param name="system_cache__dita__x3A__svg:data.y.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.y.name" required="yes"/>
         <xsl:value-of select="count(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.y.name ] and  @*[name() = $system_cache__dita__x3A__svg:data.y.value ]])"/>
     </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:y1.count__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="yes" tunnel="yes"/>
+        <xsl:value-of select="count(descendant-or-self::*[ @*[ name()=$system_cache__dita__x3A__svg:data.x.name  ] =  $system_cache__dita__x3A__svg:data.x.name.value ]//@*[ name() = $system_cache__dita__x3A__svg:data.y1.value])"/>
+    </xsl:template>
+    
     
     <xsl:template name="system_cache__dita__x3A__svg:y.count__x3A__read__x3A__root">
         <xsl:param name="system_cache__dita__x3A__svg:data.y.value" required="yes"/>
@@ -49,30 +68,154 @@
     </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:x.data.position__x3A__read">
-        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/>
-        <!--<xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"/>-->
-        <xsl:value-of select="count(preceding-sibling::*[ @*[ . = $system_cache__dita__x3A__svg:data.x.name.value ]])"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:value-of select="count(preceding-sibling::*[ @*[ name() = $system_cache__dita__x3A__svg:data.x.name  ] = $system_cache__dita__x3A__svg:data.x.name.value])"/>
     </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:x.min__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes"/>
-        <xsl:value-of select="min(descendant-or-self::*[ @*[. = $system_cache__dita__x3A__svg:data.x.name.value] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x.value ])"/><!-- name() = $system_cache__dita__x3A__svg:data.x.name  and  -->
+        <xsl:call-template name="system_cache__dita__x3A__svg:x.min__x3A__read__x3A__tunnel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+        </xsl:call-template>
+    </xsl:template>
+    
+    
+    <xsl:template name="system_cache__dita__x3A__svg:x.min__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="no" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:x.min__x3A__read">
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
+                    <xsl:message>DEB#93[bounds][[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>]]</xsl:message>
+                    <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.min__x3A__read__x3A__tunnel">
+                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+                    </xsl:call-template>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:choose>
+                        <xsl:when test="not($system_cache__dita__x3A__svg:data.x.value='') and $system_cache__dita__x3A__svg:data.x.value">
+                            <xsl:value-of select="min(descendant-or-self::*[ @*[. = $system_cache__dita__x3A__svg:data.x.name.value] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x.value ])"/><!-- name() = $system_cache__dita__x3A__svg:data.x.name  and  -->
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:message terminate="yes">#217-B not set $system_cache__dita__x3A__svg:data.x.value or $system_cache__dita__x3A__svg:data.x1.value </xsl:message>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:x.min__x3A__read=''">
+                <xsl:message><xsl:text>[#120][ERROR][X][MIN][FINDING[[n/</xsl:text><xsl:value-of select="name()"/><xsl:text>]
+                </xsl:text>
+                    <xsl:choose>
+                        <xsl:when test="not($system_cache__dita__x3A__svg:data.x.value='') and $system_cache__dita__x3A__svg:data.x.value">[X][@n=<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value"/>]</xsl:when>
+                        <xsl:otherwise><xsl:text>
+                        [NOT X value!]</xsl:text></xsl:otherwise>
+                    </xsl:choose>]]</xsl:message>
+            </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:x.min__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
     
     
-    <xsl:template name="system_cache__dita__x3A__svg:y.min__x3A__read">
+    <xsl:template name="system_cache__dita__x3A__svg:x1.min__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:x.min__x3A__read">
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
+                    <xsl:message>DEB#931[bounds][OVR][X1][MIN][[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/>]]</xsl:message>
+                    <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.min__x3A__read__x3A__tunnel">
+                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+                    </xsl:call-template>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:choose>
+                        <xsl:when test="not($system_cache__dita__x3A__svg:data.x1.value='') and $system_cache__dita__x3A__svg:data.x1.value">
+                            <xsl:value-of select="min(descendant-or-self::*[ @*[. = $system_cache__dita__x3A__svg:data.x.name.value] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x1.value ])"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:message terminate="yes">#217-B not set $system_cache__dita__x3A__svg:data.x1.value </xsl:message>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:x.min__x3A__read=''">
+                <xsl:message><xsl:text>[#120][ERROR][X1][MIN][FINDING[[n/</xsl:text><xsl:value-of select="name()"/>
+                    [ser,@.=<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>]
+                    [@cur=[<xsl:value-of select="@system_cache__dita__x3A__svg:data.name"/>]]<xsl:text>]
+                </xsl:text>
+                    <xsl:choose>
+                        <xsl:when test="not($system_cache__dita__x3A__svg:data.x1.value='') and $system_cache__dita__x3A__svg:data.x1.value">[X1][<xsl:value-of select="$system_cache__dita__x3A__svg:data.x1.value"/><xsl:text>]
+                            [T#1[</xsl:text><xsl:value-of select="count(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name]])"/>[=<xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name]]/@*[name() = $system_cache__dita__x3A__svg:data.x1.value]"/><xsl:text>]]
+                            #2[</xsl:text><xsl:value-of select="count(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ][.=$system_cache__dita__x3A__svg:data.x.name.value]   ])"/>]]</xsl:when>
+                        <xsl:otherwise><xsl:text>
+                        [NOT X and X1 value!]</xsl:text></xsl:otherwise>
+                    </xsl:choose>]]</xsl:message>
+            </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:x.min__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:y.min__x3A__read"><!-- TO MIGRATE TO system_cache__dita__x3A__svg:y1.min__x3A__read__x3A__tunnel -->
         <xsl:param name="system_cache__dita__x3A__svg:data.y.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.y.name" required="yes" />
-        
         <xsl:value-of select="min(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.y.name  ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y.value and not(.='') ])"/>
+        
     </xsl:template>
     
     
-    <xsl:template name="system_cache__dita__x3A__svg:y.max__x3A__read">
+    <xsl:template name="system_cache__dita__x3A__svg:y1.min__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:y1.min__x3A__read">
+            <xsl:value-of select="min(descendant-or-self::*[ ancestor-or-self::*[@*[name() = $system_cache__dita__x3A__svg:data.x.name ] = $system_cache__dita__x3A__svg:data.x.name.value ]  ]//@*[ name() = $system_cache__dita__x3A__svg:data.y1.value and not(.='') ])"/>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:y1.min__x3A__read=''">
+                <xsl:message>#1150[ERROR][Y1][MIN][s:[<xsl:value-of select="$system_cache__dita__x3A__svg:data.y1.value"/>]T#1[<xsl:value-of select="min(descendant-or-self::*[  @*[name() = $system_cache__dita__x3A__svg:data.y1.value  ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y1.value and not(.='') ])"/>]T#2[<xsl:value-of select="min(descendant-or-self::*[  ancestor-or-self::*[@*[name() = $system_cache__dita__x3A__svg:data.x.name ] = $system_cache__dita__x3A__svg:data.x.name.value ] and @*[name() = $system_cache__dita__x3A__svg:data.y1.value  ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y1.value and not(.='') ])"/>]]</xsl:message>
+            </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:y1.min__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:y1.max__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:message>#127-A[WARNING][consider using Y2]</xsl:message>
+        <xsl:value-of select="max(descendant-or-self::*[ ancestor-or-self::*[@*[name() = $system_cache__dita__x3A__svg:data.x.name ] = $system_cache__dita__x3A__svg:data.x.name.value ] and @*[name() = $system_cache__dita__x3A__svg:data.y1.name  ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y1.value and not(.='') ])"/>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:y2.max__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:value-of select="max(descendant-or-self::*[ ancestor-or-self::*[@*[name() = $system_cache__dita__x3A__svg:data.x.name ] = $system_cache__dita__x3A__svg:data.x.name.value ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y2.value and not(.='') ])"/>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:y.max__x3A__read"><!-- todo to migrate to system_cache__dita__x3A__svg:y1.max__x3A__read__x3A__tunnel -->
         <xsl:param name="system_cache__dita__x3A__svg:data.y.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.y.name" required="yes" />
+        <xsl:message>#127-B[WARNING][consider using Y2]</xsl:message>
         <xsl:value-of select="max(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.y.name  ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y.value and not(.='') ])"/>
         <xsl:if test="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.y.name  ] ]//@*[ name() = $system_cache__dita__x3A__svg:data.y.value and .='' ]">
             <xsl:message>#65 ERROR WITH $system_cache__dita__x3A__svg:data.y.name=
@@ -84,44 +227,206 @@
     
     <xsl:template name="system_cache__dita__x3A__svg:bounds.x.min__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.bounds.name.value" required="yes"/><!-- 'leadingTimeYear-month.bounds.X' -->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.bounds.name.value"/>--><!-- system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name="leadingTimeYear-month.bounds.X"/>-->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.name" select="concat('system_cache__dita__x3A__svg:data.x.',$system_cache__dita__x3A__svg:data.x.bounds.name.value,'.data.name')" />--><!-- system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name="leadingTimeYear-month.bounds.X"/> -->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.y.name" select="concat('system_cache__dita__x3A__svg:data.y.',$system_cache__dita__x3A__svg:data.x.bounds.name.value,'.data.name')" />--><!--system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name="leadingTimeYear-month.bounds.X"/> -->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.value" select="concat('system_cache__dita__x3A__svg:data.x.',$system_cache__dita__x3A__svg:data.x.bounds.name.value,'.value')"/>--><!--system_cache__dita__x3A__svg:data.x.leadingTimeYear-month.bounds.X.value="733100"-->
-        <!--<xsl:value-of select="min(root()/descendant-or-self::*[ @*[ . = $system_cache__dita__x3A__svg:data.x.bounds.name.value ] ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.bounds.name.value ])"/>-->
-        <xsl:value-of select="min(root()/descendant-or-self::*[ @*[ name() = $system_cache__dita__x3A__svg:data.x.bounds.name.value ] ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.bounds.name.value ])"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.min__x3A__read__x3A__tunnel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.bounds.name.value" tunnel="yes"/>
+        </xsl:call-template>
     </xsl:template>
     
     
+    <xsl:template name="system_cache__dita__x3A__svg:bounds.x.min__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" required="yes" tunnel="yes"/><!-- 'leadingTimeYear-month.bounds.X' -->
+        <xsl:value-of select="min(root()/descendant-or-self::*[ @*[ name() = $system_cache__dita__x3A__svg:data.x.value.bounds ] ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.value.bounds ])"/>
+    </xsl:template>
+    
+    
+    
     <xsl:template name="system_cache__dita__x3A__svg:bounds.x.max__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.bounds.name.value" required="yes"/><!-- 'leadingTimeYear-month.bounds.X' -->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.bounds.name.value"/>--><!-- system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name="leadingTimeYear-month.bounds.X"/>-->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.name" select="concat('system_cache__dita__x3A__svg:data.x.',$system_cache__dita__x3A__svg:data.x.bounds.name.value,'.data.name')" />--><!-- system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name="leadingTimeYear-month.bounds.X"/> -->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.y.name" select="concat('system_cache__dita__x3A__svg:data.y.',$system_cache__dita__x3A__svg:data.x.bounds.name.value,'.data.name')" />--><!--system_cache__dita__x3A__svg:data.y.leadingTimeYear-month.bounds.X.data.name="leadingTimeYear-month.bounds.X"/> -->
-        <!--<xsl:variable name="system_cache__dita__x3A__svg:data.x.value" select="concat('system_cache__dita__x3A__svg:data.x.',$system_cache__dita__x3A__svg:data.x.bounds.name.value,'.value')"/>--><!--system_cache__dita__x3A__svg:data.x.leadingTimeYear-month.bounds.X.value="733100"-->
-        <xsl:value-of select="max(root()/descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.bounds.name.value ] ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.bounds.name.value ])"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.max__x3A__read__x3A__tunel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.bounds.name.value" tunnel="yes"/>
+        </xsl:call-template>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:bounds.x.max__x3A__read__x3A__tunel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" required="yes" tunnel="yes"/><!-- 'leadingTimeYear-month.bounds.X' -->
+        <xsl:value-of select="max(root()/descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.value.bounds ] ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.value.bounds ])"/>
     </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:x.max__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/><!-- nie da sie tak znalezc system_cache__dita__x3A__svg:data.position-->
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes"/>
-        <xsl:value-of select="max(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x.value and number(.) and not(.='') ])"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:x.max__x3A__read__x3A__tunnel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>
+        </xsl:call-template>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:x.max__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes" required="yes"/><!-- nie da sie tak znalezc system_cache__dita__x3A__svg:data.position-->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
+                <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.max__x3A__read__x3A__tunel"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:choose>
+                    <xsl:when test="$system_cache__dita__x3A__svg:data.x.value">
+                        <xsl:value-of select="max(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x.value and number(.) and not(.='') ])"/>
+                    </xsl:when>
+                    <xsl:when test="$system_cache__dita__x3A__svg:data.x2.value">
+                        <xsl:value-of select="max(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x2.value and number(.) and not(.='') ])"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:message terminate="yes">#217 not set $system_cache__dita__x3A__svg:data.x.value or $system_cache__dita__x3A__svg:data.x2.value </xsl:message>
+                    </xsl:otherwise>
+                </xsl:choose>
+                
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:x2.max__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes" required="yes"/><!-- nie da sie tak znalezc system_cache__dita__x3A__svg:data.position-->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
+                <xsl:call-template name="system_cache__dita__x3A__svg:bounds.x.max__x3A__read__x3A__tunel"/>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:variable name="system_cache__dita__x3A__svg:x2.max__x3A__read">
+                    <xsl:choose>
+                        <xsl:when test="$system_cache__dita__x3A__svg:data.x2.value">
+                            <xsl:value-of select="max(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x2.value and number(.) and not(.='') ])"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:message terminate="yes">#217EW not set $system_cache__dita__x3A__svg:data.x.value or $system_cache__dita__x3A__svg:data.x2.value </xsl:message>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:variable>
+                <xsl:choose>
+                    <xsl:when test="$system_cache__dita__x3A__svg:x2.max__x3A__read=''">
+                        <xsl:message>#319[ERROR][MAX][X2][SEARCHED//@/.[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.value"/>]]</xsl:message>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:value-of select="$system_cache__dita__x3A__svg:x2.max__x3A__read"/>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:x__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes"/>
-        <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ]]//@*[ name() = $system_cache__dita__x3A__svg:data.x.value ]"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:x__x3A__read">
+            <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ]]//@*[ name() = $system_cache__dita__x3A__svg:data.x.value ]"/>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:data.x.value=''">[ERR IN x.value empty]</xsl:when>
+            <xsl:when test="$system_cache__dita__x3A__svg:x__x3A__read=''">
+                <xsl:message>#257[ERROR][X][SEARCHED][@/n[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>]]
+                    [/n[<xsl:value-of select="name()"/>]]
+                    [@/.[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>][@cur=[<xsl:value-of select="@system_cache__dita__x3A__svg:data.name"/>]]]
+                    [*//@/n[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value"/>]]
+                    [T#1[<xsl:value-of select="count(descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ]])"/>]][T#2[<xsl:for-each select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ]]//@*">
+                        @<xsl:value-of select="name()"/>[<xsl:value-of select="."/>]<xsl:text>
+                            </xsl:text>
+                    </xsl:for-each>]]
+                </xsl:message>
+            </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:x__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
     </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value"/>
+        </xsl:call-template>
+    </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" required="yes" tunnel="yes"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:x1__x3A__read">
+            <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ]]//@*[ name() = $system_cache__dita__x3A__svg:data.x1.value ]"/>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:x1__x3A__read=''">
+                <xsl:message>#296[ERROR][X][1][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.x1.value"/>]]</xsl:message>
+             </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:x1__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" required="yes" tunnel="yes"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:x2__x3A__read">
+            <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ]]//@*[ name() = $system_cache__dita__x3A__svg:data.x2.value ]"/>
+        </xsl:variable>
+        <xsl:choose>
+            <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>
+            </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:x2__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    <!--<xsl:template name="system_cache__dita__x3A__svg:y__x3A__read__x3A__tunnel">
+        <xsl:call-template name="system_cache__dita__x3A__svg:y1__x3A__read__x3A__tunnel"/>
+    </xsl:template>-->
+    
+    <xsl:template name="system_cache__dita__x3A__svg:y1__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="yes" tunnel="yes"/>
+        <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ] = $system_cache__dita__x3A__svg:data.x.name.value ]//@*[ name() = $system_cache__dita__x3A__svg:data.y1.value ]"/>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:y2__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" required="yes" tunnel="yes"/>
+        <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name ] = $system_cache__dita__x3A__svg:data.x.name.value ]//@*[ name() = $system_cache__dita__x3A__svg:data.y2.value ]"/>
+    </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes"/><!-- = $system_cache__dita__x3A__svg:data.x.name.value -->
+        <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding__x3A__tunnel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value" select="$system_cache__dita__x3A__svg:data.x.value" tunnel="yes"/>
+        </xsl:call-template>
+    </xsl:template>
+    
+    <xsl:template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__preceding__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/><!-- = $system_cache__dita__x3A__svg:data.x.name.value -->
         <xsl:value-of select="preceding-sibling::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name]  ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.value ]"/>
     </xsl:template>
     
@@ -256,7 +561,7 @@
     
     
     
-    <xsl:template name="system_cache__dita__x3A__svg:dataX__x3A__read">
+    <xsl:template name="system_cache__dita__x3A__svg:dataX__x3A__read"><!-- TODO MIGRATE TO system_cache__dita__x3A__svg:x__x3A__read -->
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/><!-- = $system_cache__dita__x3A__svg:data.x.name.value -->
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes"/>
@@ -291,13 +596,37 @@
     </xsl:template>
     
     
+    <xsl:template name="system_cache__dita__x3A__svg:data.x.label__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/><!--  = $system_cache__dita__x3A__svg:data.x.name.value -->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" required="yes" tunnel="yes"/>
+        <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name]  ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.label ]"/>
+    </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:data.x1.label__x3A__read__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/><!--  = $system_cache__dita__x3A__svg:data.x.name.value -->
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.label" required="yes" tunnel="yes"/>
+        <xsl:variable name="system_cache__dita__x3A__svg:data.x1.label__x3A__read">
+            <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name]  ]//@*[ name() = $system_cache__dita__x3A__svg:data.x1.label ]"/>
+        </xsl:variable>
+        <xsl:choose>
+            <xsl:when test="$system_cache__dita__x3A__svg:data.x1.label__x3A__read=''">
+                <xsl:message>#614[ERROR][X1][LABEL][srch[$data.x1.label]=[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x1.label"/>]]</xsl:message>
+            </xsl:when>
+            <xsl:otherwise><xsl:value-of select="$system_cache__dita__x3A__svg:data.x1.label__x3A__read"/></xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:data.x.label__x3A__read">
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes"/><!--  = $system_cache__dita__x3A__svg:data.x.name.value -->
         <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" />
         <xsl:param name="system_cache__dita__x3A__svg:data.x.label" required="yes"/>
-        <xsl:value-of select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name]  ]/@*[ name() = $system_cache__dita__x3A__svg:data.x.label ]"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:data.x.label__x3A__read__x3A__tunnel">
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name" select="$system_cache__dita__x3A__svg:data.x.name" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.name.value" select="$system_cache__dita__x3A__svg:data.x.name.value" tunnel="yes"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x.label" select="$system_cache__dita__x3A__svg:data.x.label" tunnel="yes"/>
+        </xsl:call-template>
         <!--<system_cache__dita__x3A__svg:data.x.label__x3A__read>-->
             <!--<xsl:apply-templates mode="system_cache__dita__x3A__svg:data.x.label__x3A__read" select="descendant-or-self::*[ @*[name() = $system_cache__dita__x3A__svg:data.x.name] ]//@*[ name() = $system_cache__dita__x3A__svg:data.x.label ]"/>-->
         <!--</system_cache__dita__x3A__svg:data.x.label__x3A__read>-->
@@ -309,6 +638,293 @@
         <!--</system_cache__dita__x3A__svg:data.x.label>-->
     </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:data.debug__x3A__row">
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1__x3A__disabled" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.label" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" required="no" tunnel="yes"/>
+        <xsl:param name="offsetY-text" tunnel="yes"/>
+        
+        
+        
+        
+        <xsl:message>#403[DEBUG][ROW] 
+            <xsl:choose>
+                <xsl:when test="not($system_cache__dita__x3A__svg:data.x.value='') and $system_cache__dita__x3A__svg:data.x.value">
+                    
+                    <xsl:variable name="system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel">
+                        <xsl:call-template name="system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel"/>
+                    </xsl:variable>
+                    <xsl:choose>
+                        <xsl:when test="not($system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel='')">
+                            <xsl:text>[OK][x__read][</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel"/><xsl:text>]
+                    </xsl:text>
+                        </xsl:when>
+                        <xsl:when test="$system_cache__dita__x3A__svg:x__x3A__read__x3A__tunnel=''and $system_cache__dita__x3A__svg:data.x.value">
+                            <xsl:text>[ERROR][x__read][TRACING][/n[[</xsl:text><xsl:value-of select="name()"/><xsl:text>]]][FINDING[
+                    </xsl:text><xsl:text>(n)@</xsl:text><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"/>
+                            (=)@[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value"/>]<xsl:text>]]
+                    [@*[</xsl:text><xsl:for-each select="@*"><xsl:text>
+                        </xsl:text><xsl:choose>
+                            <xsl:when test="name()=$system_cache__dita__x3A__svg:data.x.name">(=@=)</xsl:when>
+                            <xsl:when test="name()=$system_cache__dita__x3A__svg:data.x.value">(=.=)</xsl:when>
+                            <xsl:when test=". = $system_cache__dita__x3A__svg:data.x.name.value">(===)</xsl:when>
+                        </xsl:choose>[@<xsl:value-of select="name()"/>=<xsl:value-of select="."/>]</xsl:for-each><xsl:text>]]</xsl:text>
+                        </xsl:when>
+                    </xsl:choose>
+                    
+                </xsl:when>
+                
+                
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.x1.value  ">
+                    <xsl:variable name="system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel">
+                        <xsl:call-template name="system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel"/>
+                    </xsl:variable>
+                    <xsl:choose>
+                        <xsl:when test=" not($system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel='')">
+                            <xsl:text>[OK][x1__read][</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel"/><xsl:text>]
+                    </xsl:text>
+                        </xsl:when>
+                        <xsl:when test="$system_cache__dita__x3A__svg:x1__x3A__read__x3A__tunnel=''">
+                            <xsl:text>[ERROR][x1__read][TRACING][/n[[</xsl:text><xsl:value-of select="name()"/><xsl:text>]]][FINDING[
+                    </xsl:text><xsl:text>(n)@</xsl:text><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"/>
+                            (=)@<xsl:value-of select="$system_cache__dita__x3A__svg:data.x1.value"/><xsl:text>]]
+                    [@*[</xsl:text><xsl:for-each select="@*"><xsl:text>
+                        </xsl:text><xsl:choose>
+                            <xsl:when test="name()=$system_cache__dita__x3A__svg:data.x.name">(=@=)</xsl:when>
+                            <xsl:when test="name()=$system_cache__dita__x3A__svg:data.x1.value">(=.=)</xsl:when>
+                            <xsl:when test=". = $system_cache__dita__x3A__svg:data.x.name.value">(===)</xsl:when>
+                        </xsl:choose>[@<xsl:value-of select="name()"/>=<xsl:value-of select="."/>]</xsl:for-each><xsl:text>]]</xsl:text>
+                        </xsl:when>
+                    </xsl:choose>
+                    
+                    
+                    
+                    
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:text>[WARN][data.x1.value]=[</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:data.x1.value"/><xsl:text>]
+                    </xsl:text>
+                </xsl:otherwise>
+                
+            </xsl:choose>
+            
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.x2.value ">
+                    <xsl:variable name="system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel">
+                        <xsl:call-template name="system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel"/>
+                    </xsl:variable>
+                    <xsl:choose>
+                        <xsl:when test="not($system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel='')">
+                            <xsl:text>[OK][x2__read][</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel"/><xsl:text>]
+                    </xsl:text>
+                        </xsl:when>
+                        <xsl:when test="$system_cache__dita__x3A__svg:x2__x3A__read__x3A__tunnel=''">
+                            <xsl:text>[ERROR][x2__read][TRACING][/n[[</xsl:text><xsl:value-of select="name()"/><xsl:text>]]][FINDING[
+                    </xsl:text><xsl:text>(n)@</xsl:text><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"/>
+                            (=)@<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.value"/><xsl:text>]]
+                    [@*[</xsl:text><xsl:for-each select="@*"><xsl:text>
+                        </xsl:text><xsl:choose>
+                            <xsl:when test="name()=$system_cache__dita__x3A__svg:data.x.name">(=@=)</xsl:when>
+                            <xsl:when test="name()=$system_cache__dita__x3A__svg:data.x2.value">(=.=)</xsl:when>
+                            <xsl:when test=". = $system_cache__dita__x3A__svg:data.x.name.value">(===)</xsl:when>
+                        </xsl:choose>[@<xsl:value-of select="name()"/>=<xsl:value-of select="."/>]</xsl:for-each><xsl:text>]]</xsl:text>
+                        </xsl:when>
+                    </xsl:choose>
+                    
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:text>[WARN][data.x2.value]=[</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.value"/><xsl:text>]
+                    </xsl:text>
+                </xsl:otherwise>
+            </xsl:choose>
+            
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y1__x3A__disabled">
+                    <xsl:text>[y1_read][DISABLED][$data.y1__x3A__disabled]</xsl:text>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:text>[y1_read][</xsl:text><xsl:call-template name="system_cache__dita__x3A__svg:y1__x3A__read__x3A__tunnel"/><xsl:text>]</xsl:text>        
+                </xsl:otherwise>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y2__x3A__disabled">
+            <xsl:text>[y2_read][DISABLED][$data.y2__x3A__disabled]</xsl:text>
+                </xsl:when>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="$offsetY-text and not($offsetY-text='')">
+                    [OK][offsetY-text]=[<xsl:value-of select="$offsetY-text"/>]
+                </xsl:when>
+                <xsl:when test="$offsetY-text and $offsetY-text=''">
+                    [ERROR][offsetY-text]=[<xsl:value-of select="$offsetY-text"/>]
+                </xsl:when>
+                <xsl:otherwise>
+                    [INF][UNSET][offsetY-text]
+                </xsl:otherwise>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y1.label and not($system_cache__dita__x3A__svg:data.y1.label='')">
+                    [OK][data.y1.label]=[<xsl:value-of select="$system_cache__dita__x3A__svg:data.y1.label"/>]
+                </xsl:when>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y1.label and $system_cache__dita__x3A__svg:data.y1.label=''">
+                    [ERROR][EMPTY][data.y1.label]=[<xsl:value-of select="$system_cache__dita__x3A__svg:data.y1.label"/>][label__x3A__read(x1)=[<xsl:call-template name="system_cache__dita__x3A__svg:data.x.label__x3A__read__x3A__tunnel"></xsl:call-template>]]
+                </xsl:when>
+                <xsl:otherwise>
+                    [INF][UNSET][data.y1.label]
+                </xsl:otherwise>
+            </xsl:choose>
+            
+        </xsl:message>
+    </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:data.debug">
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.bounds.max.length" required="yes" tunnel="yes"/><!-- select="500" -->
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1__x3A__disabled" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.length" required="yes" tunnel="yes"/>
+        
+        
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.name" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.label" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2__x3A__disabled" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.name" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.label" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.label" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.name.value" required="yes" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:x.count" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x2.value" required="no" tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal" tunnel="yes"/>
+        
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.maxX"  tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.minY"  tunnel="yes" required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.maxY" tunnel="yes" required="yes"/>
+        
+        <xsl:message>#506 [DEBUG][DATA]
+            [INF]matched n/ <xsl:value-of select="name()"/>  
+            [INF]n*/<xsl:value-of select="*[position() &lt; 10]/name()"/>
+            [INF][X/Y][HORIZONTAL][ <xsl:value-of select="$system_cache__dita__x3A__svg:openHiLoClose__x3A__horizontal"/> ]
+            [INF]x.name[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name"/>]; 
+            [INF]x.name.value[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.name.value"/>];
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x.value"><xsl:text>
+            </xsl:text>[OK][x.value[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value"/>]]</xsl:if>
+            <xsl:if test="$system_cache__dita__x3A__svg:x.count"><xsl:text>
+            </xsl:text>[OK][x.count[<xsl:value-of select="$system_cache__dita__x3A__svg:x.count"/>]]</xsl:if>
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x1.value"><xsl:text>
+            </xsl:text>[OK][x1.value[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x1.value"/>]]</xsl:if>
+            <xsl:if test="$system_cache__dita__x3A__svg:data.x2.value"><xsl:text>
+            </xsl:text>[OK][x2.value[<xsl:value-of select="$system_cache__dita__x3A__svg:data.x2.value"/>]]</xsl:if>
+           
+            
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.x.value.bounds">
+                    <xsl:text>[F][EXTEND][BOUNDS][data.x.value.bounds][ACTIVE]
+                        [</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:data.x.value.bounds"/><xsl:text>]</xsl:text>
+                </xsl:when>
+            </xsl:choose>
+            
+            <xsl:choose>
+                <xsl:when test="not($system_cache__dita__x3A__svg:data.x.value='') and $system_cache__dita__x3A__svg:data.x.value">
+                    [OK]minX[<xsl:call-template name="system_cache__dita__x3A__svg:x.min__x3A__read__x3A__tunnel">
+                        <xsl:with-param name="system_cache__dita__x3A__svg:data.x.value.bounds" select="$system_cache__dita__x3A__svg:data.x.value.bounds" tunnel="yes"/>
+                    </xsl:call-template>]/()maxX[<xsl:call-template name="system_cache__dita__x3A__svg:x.max__x3A__read__x3A__tunnel"/>]
+                </xsl:when>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="not($system_cache__dita__x3A__svg:data.x1.value='') and $system_cache__dita__x3A__svg:data.x1.value">
+                    [OK]minX1[<xsl:call-template name="system_cache__dita__x3A__svg:x1.min__x3A__read__x3A__tunnel"/>]</xsl:when>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="not($system_cache__dita__x3A__svg:data.x2.value='') and $system_cache__dita__x3A__svg:data.x2.value">
+                    [OK]maxX2[<xsl:call-template name="system_cache__dita__x3A__svg:x2.max__x3A__read__x3A__tunnel"/>]</xsl:when>
+            </xsl:choose>
+            <xsl:variable name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"><xsl:call-template name="system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"/></xsl:variable>
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel=''">
+                    [ERROR]x.count__x3A__read[=[<xsl:value-of select="$system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"/>]]
+                </xsl:when>
+                <xsl:otherwise>
+                    [OK]x.count__x3A__read[<xsl:value-of select="$system_cache__dita__x3A__svg:x.count__x3A__read__x3A__tunnel"/>]
+                </xsl:otherwise>
+            </xsl:choose>
+            
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y1__x3A__disabled">
+                    <xsl:text>[F][DISABLED][Y1]</xsl:text>
+                </xsl:when>
+                
+                <xsl:otherwise>
+                    <xsl:text>[INF][NO]$data.y1.value[</xsl:text><xsl:value-of select="$system_cache__dita__x3A__svg:data.y1.value"/>]
+                    [INF]minY1[<xsl:call-template name="system_cache__dita__x3A__svg:y1.min__x3A__read__x3A__tunnel"/>]/
+                    ()y1.count__x3A__read[<xsl:call-template name="system_cache__dita__x3A__svg:y1.count__x3A__read__x3A__tunnel"/>]
+                </xsl:otherwise>
+            </xsl:choose>
+            
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y1__x3A__disabled and $system_cache__dita__x3A__svg:data.y1__x3A__disabled=true()"/>
+                <xsl:otherwise >
+                    
+                    
+                </xsl:otherwise>                    
+            </xsl:choose>
+            
+            
+            
+            <xsl:choose>
+                <xsl:when test="$system_cache__dita__x3A__svg:data.y2__x3A__disabled and $system_cache__dita__x3A__svg:data.y2__x3A__disabled=true()">
+                    <xsl:text>[F][DISABLED][Y2]</xsl:text>
+                </xsl:when>
+                <xsl:otherwise >
+                    [INF]maxY2[<xsl:call-template name="system_cache__dita__x3A__svg:y2.max__x3A__read__x3A__tunnel"/>]
+                </xsl:otherwise>
+            </xsl:choose>
+            
+            #119-861 offsetting datasetn in pairs:
+                
+            <!--[Y][y.max.relation_DateRangeElements]=[ <xsl:value-of select="$system_cache__dita__x3A__svg:y.max.relation_DateRangeElements"/> ]-->
+            [Y][offsetY.maxY]=====================[ <xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.maxY"/> ]
+                                           |
+<!--[x][bounds.x.min__x3A__read]===[ <xsl:value-of select="$system_cache__dita__x3A__svg:bounds.x.min__x3A__read"/>  ]     |-->
+<!--[x][x1.min.leadingTimeDate]====[  <xsl:value-of select="$system_cache__dita__x3A__svg:x1.min.leadingTimeDate"/>  ]    |     [bounds.x.max__x3A__read]==========[ <xsl:value-of select="$system_cache__dita__x3A__svg:bounds.x.max__x3A__read"/> ][X]-->
+          [x][offsetX.minX]====[  <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.minX"/>  ]---|--------[offsetX.maxX]===========[ <xsl:value-of select="$system_cache__dita__x3A__svg:offsetX.maxX"/>  ][X]
+<!--                                           |     [x1.max.leadingTimeDate]============[ <xsl:value-of select="$system_cache__dita__x3A__svg:x1.max.leadingTimeDate"/> ][X]-->
+                                           |
+                            [y][offsetY.minY]=======================[ <xsl:value-of select="$system_cache__dita__x3A__svg:offsetY.minY"/> ]
+                            <!--[y][y.min.relation_DateRangeElements]===[ <xsl:value-of select="$system_cache__dita__x3A__svg:y.min.relation_DateRangeElements"/> ]-->
+            
+            
+            
+        </xsl:message> 
+            
+        
+    </xsl:template>
     
 </xsl:stylesheet>

+ 9 - 1
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.resolution.xsl

@@ -520,13 +520,16 @@
     
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.data.dataset">dataset</xsl:function>
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.data.count">count</xsl:function>
-    
+    <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.data.position">position</xsl:function>
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.dataset">dataset</xsl:function>
     
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.min.latest">bounds.min.latest</xsl:function>
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.min">bounds.min</xsl:function>
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.max.latest">bounds.max.latest</xsl:function>
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.max">bounds.max</xsl:function>
+    <!--<xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.data.name">bounds.data.name</xsl:function>-->
+    <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value.bounds.data.value">bounds.data.value</xsl:function>
+    
     <xsl:function name="system_cache__dita__x3A__svg:resolution.coordinate.value">value</xsl:function>
     
     
@@ -930,5 +933,10 @@
         <xsl:attribute name="system_cache__dita__x3A__svg:resolution.related.following-sibling" select="$system_cache__dita__x3A__svg:resolution__x3A__markup.preceding-silbing/@leadingTimeDate-To"/>
     </xsl:template>
     
+    
+    
+    
+    
+    
   
 </xsl:stylesheet>

+ 25 - 0
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.translate.xsl

@@ -284,6 +284,31 @@
         
     </xsl:template>
     
+    <xsl:template name="system_cache__dita__x3A__svg:transform.translate.bounds__x3A__tunnel">
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetX.maxX" required="yes"   tunnel="yes"/>
+        <!--<xsl:param name="system_cache__dita__x3A__svg:offsetX.width" />-->
+        
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.minY" required="yes"   tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:offsetY.maxY" required="yes"  tunnel="yes" />
+        <xsl:param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate" required="yes"  tunnel="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate" required="yes"  tunnel="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"  tunnel="yes"/>
+        <xsl:call-template name="system_cache__dita__x3A__svg:transform.translate.bounds">
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.minX"  select="$system_cache__dita__x3A__svg:offsetX.minX"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetX.maxX" select="$system_cache__dita__x3A__svg:offsetX.maxX"/>
+            <!--<xsl:with-param name="system_cache__dita__x3A__svg:offsetX.width" />-->
+            
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.minY" select="$system_cache__dita__x3A__svg:offsetY.minY" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:offsetY.maxY"  select="$system_cache__dita__x3A__svg:offsetY.maxY" />
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate" select="$system_cache__dita__x3A__svg:data.y1.bounds.min.coordinate"  />
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"  select="$system_cache__dita__x3A__svg:data.y2.bounds.max.coordinate"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"  select="$system_cache__dita__x3A__svg:data.x1.bounds.min.coordinate"/><!--<xsl:with-param name="system_cache__dita__x3A__svg:offsetY.height" />-->
+            <xsl:with-param name="system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"  select="$system_cache__dita__x3A__svg:data.x2.bounds.max.coordinate"/>
+        </xsl:call-template>
+    </xsl:template>
+    
     <xsl:template name="system_cache__dita__x3A__svg:transform.translate.bounds">
         
         <xsl:param name="system_cache__dita__x3A__svg:offsetX.minX" required="yes" />

Някои файлове не бяха показани, защото твърде много файлове са промени