a.binder 6 years ago
parent
commit
28ffee3112

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

@@ -770,6 +770,7 @@
                                                                 <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:plot__x3A__order" select="5"/>
                                                                     <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'" />-->
@@ -811,6 +812,7 @@
                                                                 <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:plot__x3A__order" select="10"/>
                                                                     <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'" />-->

+ 7 - 2
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.region.plot.xsl

@@ -27,6 +27,7 @@
         <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.id" required="no"/>
         <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.region.position" required="no"/>
         <xsl:apply-templates mode="system_cache__dita__x3A__svg:cursor.region.plot" select="$system_cache__dita__x3A__svg:cursor">
+            <xsl:sort select="max(descendant-or-self::*/@system_cache__dita__x3A__svg:plot__x3A__order)" data-type="number" order="ascending"/>
             <xsl:with-param name="system_cache__dita__x3A__svg:cursor.region.plot__x3A__context" select="." tunnel="yes"/>
             <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region" select="$system_cache__dita__x3A__svg:resolution.coordinate.region" tunnel="yes"/>
             <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.id" select="$system_cache__dita__x3A__svg:resolution.coordinate.id" tunnel="yes"/>
@@ -35,10 +36,14 @@
     </xsl:template>
     
     <xsl:template  mode="system_cache__dita__x3A__svg:cursor.region.plot" match="system_cache__dita__x3A__svg:cursor">
-        <xsl:apply-templates mode="#current"/>
+        <xsl:apply-templates mode="#current">
+            <xsl:sort select="max(descendant-or-self::*/@system_cache__dita__x3A__svg:plot__x3A__order)" data-type="number" order="ascending"/>
+        </xsl:apply-templates>
     </xsl:template>
     <xsl:template  mode="system_cache__dita__x3A__svg:cursor.region.plot" match="*">
-        <xsl:apply-templates mode="#current"/>
+        <xsl:apply-templates mode="#current">
+            <xsl:sort select="max(descendant-or-self::*/@system_cache__dita__x3A__svg:plot__x3A__order)" data-type="number" order="ascending"/>
+        </xsl:apply-templates>
     </xsl:template>
     
     <xsl:template  mode="system_cache__dita__x3A__svg:cursor.region.plot" match="system_cache__dita__x3A__svg:cursor.commit.instream-foreign-object[@system_cache__dita__x3A__svg:template]">

+ 6 - 0
SE/schema/default_db_xml_cache.public/default_db/system_cache__dita__x3A__svg/system_cache__dita__x3A__svg.utils.cursor.region.xsl

@@ -150,6 +150,7 @@
     <xsl:template name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object">
         <xsl:param name="system_cache__dita__x3A__svg:cursor" required="yes"/>
         <xsl:param name="id"  required="yes"/>
+        <xsl:param name="system_cache__dita__x3A__svg:plot__x3A__order" select="1"/>
         <xsl:param name="system_cache__dita__x3A__svg:resolution.coordinate.region"  required="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata" />
         <xsl:param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Ydata" />
@@ -189,6 +190,7 @@
         
         <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"/>
+            <xsl:with-param name="system_cache__dita__x3A__svg:plot__x3A__order" select="$system_cache__dita__x3A__svg:plot__x3A__order" tunnel="yes"/>
             <xsl:with-param name="system_cache__dita__x3A__svg:resolution.coordinate.region" select="$system_cache__dita__x3A__svg:resolution.coordinate.region" tunnel="yes"/>
             <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.template" select="$system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.template" tunnel="yes" />
             <xsl:with-param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata" select="$system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata" tunnel="yes" />
@@ -258,6 +260,7 @@
     </xsl:template>
     
     <xsl:template name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object__x3A__append">
+        <xsl:param name="system_cache__dita__x3A__svg:plot__x3A__order" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Ydata" tunnel="yes"/>
         <xsl:param name="system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.template" tunnel="yes"/>
@@ -295,6 +298,9 @@
         <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:plot__x3A__order">
+                <xsl:attribute name="system_cache__dita__x3A__svg:plot__x3A__order" select="$system_cache__dita__x3A__svg:plot__x3A__order"/>
+            </xsl:if>
               <xsl:if test="$system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata">
                   <xsl:attribute name="system_cache__dita__x3A__svg:Xdata" select="$system_cache__dita__x3A__svg:cursor.commit.region.instream-foreign-object.Xdata"/>
               </xsl:if>