a.binder 9 anni fa
parent
commit
1f0176762e
1 ha cambiato i file con 10 aggiunte e 7 eliminazioni
  1. 10 7
      SE/dev/php-cli/build_edge_paths_with_PE_controll_loop.xsl

+ 10 - 7
SE/dev/php-cli/build_edge_paths_with_PE_controll_loop.xsl

@@ -23,25 +23,28 @@
     <xsl:template match="edge_joins_filled_paths">
         <project basedir="." name="edge_paths_with_PE_controll_loop.xml" default="edge_paths_with_PE_controll_loop">
             <target name="edge_paths_with_PE_controll_loop">
-                
-                
-                
-                
+                <xsl:comment>test sort nie dziala</xsl:comment>
                 <delete dir="{$edge_paths_with_PE_controll_temp}"/>
                 <delete dir="{$edge_paths_with_PE_controll_temp.alias}"/>
                 <mkdir dir="{$edge_paths_with_PE_controll_temp}"/>
                 <symlink link="{$edge_paths_with_PE_controll_temp.alias}" resource="{$edge_paths_with_PE_controll_temp}"/>
                 
                 
+                <xsl:variable name="item">
+                    <xsl:for-each select="item">
+                        <xsl:sort select="number(asText/@len)" order="descending"/>
+                        <item><xsl:copy-of select="@*"/></item>
+                    </xsl:for-each>
+                </xsl:variable>
+                <xsl:apply-templates select="$item"/>                
+                    
                 
-                <xsl:apply-templates>
-                    <xsl:sort select="item/asText/@len" />
-                </xsl:apply-templates>
             </target>
         </project>
     </xsl:template>
     
     
+    
     <xsl:template match="item">