瀏覽代碼

fix spr, nie mozna fontow enterowac bo jest fuckup

a.binder 7 年之前
父節點
當前提交
f8655ec0de

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

@@ -721,9 +721,9 @@
         </xsl:choose>
         <xsl:choose>
             <xsl:when test="BI_audit_taxpayer   or $context/BI_audit_taxpayer">
-                <p>
+                <ph>
                     <ph>Status VAT: <b><xsl:value-of select="BI_audit_taxpayer/taxpayer_status_info"/></b> (stan na dzień <b><xsl:value-of select="BI_audit_taxpayer/taxpayer_status_date"/></b>)</ph>
-                </p>
+                </ph>
                 
             </xsl:when>
         </xsl:choose>

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

@@ -1144,9 +1144,9 @@
             
         </title>
         <shortdesc>
-            <menucascade>
+            <ph>
                 <xsl:if test="count(following::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row) &gt;0"><uicontrol><varname>#nr</varname><markupname><xsl:value-of select="count(preceding::BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row)+1"/></markupname></uicontrol></xsl:if>
-            </menucascade>
+            </ph>
             
             kontekst <xsl:value-of select="system_cache__dita:localname.translate(name())"/> [il.<xsl:value-of select="count(current-group())"/>] <parmname>ID</parmname> <cmdname><xsl:value-of select="get_wfs:id_from_fid(@fid)"/></cmdname>
             <xsl:if test="nazwisko/text()"> nazwisko: <b><xsl:value-of select="nazwisko"/></b></xsl:if>
@@ -1239,10 +1239,10 @@
             
             <xsl:choose>
                 <xsl:when test="BI_audit_taxpayer  ">
-                    <p>
+                    <ph>
                         <ph>Status VAT: <b><xsl:value-of select="BI_audit_taxpayer/taxpayer_status_info"/></b></ph> 
                         <ph>stan na dzień: <b><xsl:value-of select="BI_audit_taxpayer/taxpayer_status_date"/></b> </ph>
-                    </p>
+                    </ph>
                     
                 </xsl:when>
             </xsl:choose>

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

@@ -132,51 +132,51 @@
                             <xsl:for-each-group select="current-group()" group-by="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[last()]/*[1]/@fid"><!-- local-name --><!-- last() -->
                                 <xsl:if test="position()=1">
                                     
-                                    <equation-block>
-                                        <equation-inline><tt><xsl:element name="{$system_cache__dita:subscript}">APT-L</xsl:element></tt></equation-inline>
-                                        <equation-number><xsl:element name="{$system_cache__dita:subscript}">lista tras</xsl:element></equation-number>
-                                        <equation-number><tt><xsl:element name="{$system_cache__dita:subscript}">od</xsl:element></tt></equation-number>
-                                        <equation-inline>
+                                    <ph>
+                                        <ph><tt><xsl:element name="{$system_cache__dita:subscript}">APT-L</xsl:element></tt></ph>
+                                        <ph><xsl:element name="{$system_cache__dita:subscript}">lista tras</xsl:element></ph>
+                                        <ph><tt><xsl:element name="{$system_cache__dita:subscript}">od</xsl:element></tt></ph>
+                                        <ph>
                                                <xref>
                                                     <xsl:copy-of select="system_cache__dita:files.context.title.keyref(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1],$title)" copy-namespaces="no"/>
                                                    <xsl:element name="{$system_cache__dita:subscript}"><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/system_cache__dita:localname.translate(local-name())"/></xsl:element>
                                               </xref>
-                                        </equation-inline>
+                                        </ph>
                                         
-                                        <equation-inline>
+                                        <ph>
                                             <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]">
                                                 <xsl:with-param name="system_cache__dita:subscript" select="$system_cache__dita:subscript"/>
                                                 <xsl:with-param name="end_fid" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ position()=last()]/*[1]/@fid"/>
                                                 <xsl:with-param name="fid" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/@fid"/>
                                                 <xsl:with-param name="get_wfs:name_from_fid" select="''"/>
-                                                <xsl:with-param name="system_cache__dita:element__x3A__parent">equation-inline</xsl:with-param>
+                                                <xsl:with-param name="system_cache__dita:element__x3A__parent">ph</xsl:with-param>
                                             </xsl:apply-templates>
-                                        </equation-inline>
-                                    </equation-block>
+                                        </ph>
+                                    </ph>
                                     
                                     
                                 </xsl:if>
-                                <equation-block>
-                                    <equation-inline>
+                                <ph>
+                                    <ph>
                                         <tt><xsl:element name="{$system_cache__dita:subscript}">do</xsl:element></tt> 
-                                    </equation-inline>
-                                    <equation-inline>
+                                    </ph>
+                                    <ph>
                                         <xref>
                                             <xsl:copy-of select="system_cache__dita:files.dita_pair.keyref(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ 1]/*[1]/@fid,BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/@fid)" copy-namespaces="no"/>
                                             <xsl:element name="{$system_cache__dita:subscript}"><xsl:value-of select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]/system_cache__dita:localname.translate(local-name())"/></xsl:element>
                                         </xref>
-                                    </equation-inline>
-                                    <equation-inline>
-                                        ilość <equation-inline><xsl:value-of select="count(current-group())"/></equation-inline>
-                                    </equation-inline>
+                                    </ph>
+                                    <ph>
+                                        ilość <ph><xsl:value-of select="count(current-group())"/></ph>
+                                    </ph>
                                     
-                                    <equation-inline>
+                                    <ph>
                                         <xsl:apply-templates mode="system_cache__dita:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.universal.body" select="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object[ last()]/*[1]">
                                             <xsl:with-param name="system_cache__dita:subscript" select="$system_cache__dita:subscript"/>
-                                            <xsl:with-param name="system_cache__dita:element__x3A__parent">equation-inline</xsl:with-param>
+                                            <xsl:with-param name="system_cache__dita:element__x3A__parent">ph</xsl:with-param>
                                         </xsl:apply-templates>
-                                    </equation-inline>
-                                </equation-block>
+                                    </ph>
+                                </ph>
                                 
                                 
                                 

+ 6 - 5
SE/schema/default_db_xml_cache.public/default_db/Linear_regression/Linear_regression.xsl

@@ -97,10 +97,11 @@
     <xsl:function name="Linear_regression:calculate_matrix__x3A__value">
         <xsl:param name="value"/>
         <xsl:choose>
+            <xsl:when test="1=1"><xsl:value-of select="$value"/></xsl:when>
             <xsl:when test="number($value) &lt;100"><xsl:value-of select="number($value)"/></xsl:when>
-            <xsl:when test="number($value) &lt;1000"><xsl:value-of select="number($value)"/></xsl:when>
+            <xsl:when test="number($value) &lt;10"><xsl:value-of select="number($value)"/></xsl:when>
             <xsl:when test="$value='NaN'"><xsl:value-of select="$value"/></xsl:when>
-            <xsl:otherwise><xsl:value-of select="xs:integer(substring(string($value),1,4))"/></xsl:otherwise>
+            <xsl:otherwise><xsl:value-of select="xs:integer(substring(string($value),1,3))"/></xsl:otherwise>
             
         </xsl:choose>
     </xsl:function>
@@ -142,9 +143,9 @@
     <xsl:template mode="Linear_regression:calculate_data.XY16.y-int" match="Linear_regression:XY16">
         <xsl:copy>
             <xsl:copy-of select="@*"/>
-            <xsl:attribute name="Linear_regression:XY16.y-int.b" select="( ../Linear_regression:XY11/@Linear_regression:XY11.Ey - @Linear_regression:XY16.slope.m  * ../Linear_regression:XY11/@Linear_regression:XY11.Ex )  div ../Linear_regression:XY11/@Linear_regression:XY11.n "/>
-            <xsl:attribute name="Linear_regression:XY16.r" select="( ../Linear_regression:XY11/@Linear_regression:XY11.n  *  ../Linear_regression:XY11/@Linear_regression:XY11.Exy  -   ../Linear_regression:XY11/@Linear_regression:XY11.Ex  *  ../Linear_regression:XY11/@Linear_regression:XY11.Ey )
-                div math:sqrt( ( (../Linear_regression:XY11/@Linear_regression:XY11.n * ../Linear_regression:XY11/@Linear_regression:XY11.Ex2 - ../Linear_regression:XY14/@Linear_regression:XY14.Ex2  )*( ../Linear_regression:XY11/@Linear_regression:XY11.n * ../Linear_regression:XY11/@Linear_regression:XY11.Ey2 -  ../Linear_regression:XY14/@Linear_regression:XY14.Ey2   )  )  )
+            <xsl:attribute name="Linear_regression:XY16.y-int.b" select="( number(../Linear_regression:XY11/@Linear_regression:XY11.Ey) - number(@Linear_regression:XY16.slope.m)  * number(../Linear_regression:XY11/@Linear_regression:XY11.Ex ))  div number(../Linear_regression:XY11/@Linear_regression:XY11.n) "/>
+            <xsl:attribute name="Linear_regression:XY16.r" select="( number(../Linear_regression:XY11/@Linear_regression:XY11.n )  *  number(../Linear_regression:XY11/@Linear_regression:XY11.Exy ) -  number( ../Linear_regression:XY11/@Linear_regression:XY11.Ex )  *  number( ../Linear_regression:XY11/@Linear_regression:XY11.Ey ) )
+                div math:sqrt( ( ( number(../Linear_regression:XY11/@Linear_regression:XY11.n) * number(../Linear_regression:XY11/@Linear_regression:XY11.Ex2 )- number( ../Linear_regression:XY14/@Linear_regression:XY14.Ex2 ) )*( number( ../Linear_regression:XY11/@Linear_regression:XY11.n ) * number( ../Linear_regression:XY11/@Linear_regression:XY11.Ey2 ) - number( ../Linear_regression:XY14/@Linear_regression:XY14.Ey2 )  )  )  )
                 "/>
         </xsl:copy>
     </xsl:template>

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

@@ -22,4 +22,7 @@
         </xsl:variable>
         <xsl:value-of select="$out"/>
     </xsl:function>
+    
+    
+    
 </xsl:stylesheet>

+ 33 - 29
SE/schema/default_db_xml_cache.public/default_db/graph_gnuplot/graph_gnuplot.simpletable__x3A__graph.stats__x3A__analyze.xsl

@@ -51,7 +51,7 @@
                     </xsl:apply-templates>
                 </xsl:when>
                 <xsl:otherwise>
-                    <foreign>#533 unaviable p5gnuplot:graph.stats.xml__x3A__detect__if__file_aviable($fileindex) = <xsl:value-of select="$fileindex"/> </foreign>
+                    <xsl:comment> #533 unaviable p5gnuplot:graph.stats.xml__x3A__detect__if__file_aviable($fileindex) = <xsl:value-of select="$fileindex"/> </xsl:comment>
                 </xsl:otherwise>
             </xsl:choose>
         
@@ -128,34 +128,36 @@
                         </dd>
                         
                         </dlentry>
-                        <dlentry>
-                            <!--<xsl:call-template name="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.keyref__x3A__assign__id">
-                                <xsl:with-param name="fid" select="$fid"/>
-                                <xsl:with-param name="fileindex" select="$fileindex"/>
-                                <!-\-<xsl:with-param name="graph.name" select="@fid"/>-\->
-                                <xsl:with-param name="system_cache__dita:element__x3A__name">dlentry</xsl:with-param>
-                            </xsl:call-template>-->
-                            
-                            <dt>
-                                Analiza regresji liniowej 
-                            </dt>
-                            <dd>
-                                <xsl:variable name="Linear_regression:calculate_data">
-                                <xsl:call-template name="Linear_regression:calculate_data">
-                                    <!--<xsl:with-param name="Linear_regression:X_attribute__x3A__set">default_db__x3A__BI_audit_BENFORD:leadingNumber</xsl:with-param>-->
-                                    <xsl:with-param name="Linear_regression:X_element__x3A__set">p5gnuplot:stats</xsl:with-param>
-                                    <xsl:with-param name="Linear_regression:Y_attribute__x3A__set">default_db__x3A__BI_audit_BENFORD:leadingTimeYear-month</xsl:with-param>
-                                    <xsl:with-param name="Linear_regression:dataset" select="current-group()"/>
-                                    <xsl:with-param name="p5gnuplot:value" select="$p5gnuplot:value"/>
-                                </xsl:call-template>
-                                </xsl:variable>
-                                <xsl:apply-templates mode="Linear_regression:calculate_data__x3A__to_dita" select="$Linear_regression:calculate_data"/>
-                                <foreign>
-                                    <xsl:copy-of select="$Linear_regression:calculate_data"/>
-                                </foreign>
-                        
-                            </dd>
-                        </dlentry>   
+                        <xsl:if test="count(current-group()) &gt; 3">
+                            <dlentry>
+                                <!--<xsl:call-template name="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.keyref__x3A__assign__id">
+                                    <xsl:with-param name="fid" select="$fid"/>
+                                    <xsl:with-param name="fileindex" select="$fileindex"/>
+                                    <!-\-<xsl:with-param name="graph.name" select="@fid"/>-\->
+                                    <xsl:with-param name="system_cache__dita:element__x3A__name">dlentry</xsl:with-param>
+                                </xsl:call-template>-->
+                                
+                                <dt>
+                                    Analiza regresji liniowej 
+                                </dt>
+                                <dd>
+                                    <xsl:variable name="Linear_regression:calculate_data">
+                                    <xsl:call-template name="Linear_regression:calculate_data">
+                                        <!--<xsl:with-param name="Linear_regression:X_attribute__x3A__set">default_db__x3A__BI_audit_BENFORD:leadingNumber</xsl:with-param>-->
+                                        <xsl:with-param name="Linear_regression:X_element__x3A__set">p5gnuplot:stats</xsl:with-param>
+                                        <xsl:with-param name="Linear_regression:Y_attribute__x3A__set">default_db__x3A__BI_audit_BENFORD:leadingTimeYear-month</xsl:with-param>
+                                        <xsl:with-param name="Linear_regression:dataset" select="current-group()"/>
+                                        <xsl:with-param name="p5gnuplot:value" select="$p5gnuplot:value"/>
+                                    </xsl:call-template>
+                                    </xsl:variable>
+                                    <xsl:apply-templates mode="Linear_regression:calculate_data__x3A__to_dita" select="$Linear_regression:calculate_data"/>
+                                    <foreign>
+                                        <xsl:copy-of select="$Linear_regression:calculate_data"/>
+                                    </foreign>
+                                </dd>
+                                
+                            </dlentry>   
+                        </xsl:if>
                         
                         <xsl:choose>
                             <xsl:when test="number(current-group()[1])">
@@ -226,6 +228,7 @@
                                 Ilość <xsl:value-of select="count(current-group()/number(text()))"/> 
                             </xsl:element>
                             </dlentry>
+                            <xsl:if test="count(current-group()) &gt;3">
                             <dlentry>
                                 <!--<xsl:call-template name="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:context.path.keyref__x3A__assign__id">
                                     <xsl:with-param name="title">APU4_umowy</xsl:with-param>
@@ -248,6 +251,7 @@
                                         <xsl:apply-templates mode="Linear_regression:calculate_data__x3A__to_dita" select="$Linear_regression:calculate_data"/>
                                     </dd>
                             </dlentry>
+                            </xsl:if>
                         </xsl:for-each-group>