| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475 |
- <?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:bp="https://procesy5.pl/biale_plamy-schema.xsd"
- exclude-result-prefixes="xs"
- version="2.0">
-
- <xsl:param name="edge_paths_with_PE_controll_temp" select="'edge_paths_with_PE_controll_temp'"/>
- <xsl:param name="edge_paths_with_PE_controll_temp.alias" select="'edge_paths_with_PE_controll_temp.alias'"/>
- <xsl:param name="edge_paths_with_PE_controll.xsl" select="'edge_paths_with_PE_controll.xsl'"/>
- <xsl:param name="edge_paths_with_PE_controll.xml" select="'edge_paths_with_PE_controll.xml'"/>
- <xsl:param name="edge_paths_with_PE_controll_paths_temp" select="'edge_paths_with_PE_controll_paths_temp'"/>
-
- <xsl:param name="edge_joins_filled_paths" select="'edge_joins_filled_paths'"/>
- <xsl:param name="PE_Price" select="2500"/>
- <xsl:param name="Cable_Price" select="3"/>
- <xsl:param name="max_combinate_groups_elements" select="10"/> <!-- po ile wezlow mamy grupowac do wyliczania kombinacji kosztow -->
- <xsl:param name="logic" select="'grouped'"/>
-
- <xsl:output indent="yes"/>
- <xsl:strip-space elements="*"/>
-
- <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">
- <record name="build.log" loglevel="verbose" append="true"/>
- <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}"/>
- <delete dir="{$edge_paths_with_PE_controll_paths_temp}"/>
- <mkdir dir="{$edge_paths_with_PE_controll_paths_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"/>
-
-
- </target>
- </project>
- </xsl:template>
-
-
-
- <xsl:template match="item">
-
-
- <delete file="{$edge_paths_with_PE_controll_paths_temp}/{$edge_paths_with_PE_controll.xsl}.{@id}.xml"/>
- <xslt basedir="./" style="{$edge_paths_with_PE_controll.xsl}"
- in="{$edge_joins_filled_paths}/{$edge_joins_filled_paths}.{@id}.xml" destdir="./"
- out="{$edge_paths_with_PE_controll.xsl}.{@id}.xml" >
- <factory name="net.sf.saxon.TransformerFactoryImpl">
- <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
- <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="DITA_PARSE_templ"/>-->
- <!--<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-->
- </factory>
- <classpath location="/opt/local/share/java/saxon9he.jar"/>
- <param name="edge_paths_with_PE_controll_temp" expression="{$edge_paths_with_PE_controll_temp}"/>
- <param name="edge_paths_with_PE_controll_temp.alias" expression="{$edge_paths_with_PE_controll_temp.alias}"/>
- <param name="PE_Price" expression="{$PE_Price}"/>
- <param name="Cable_Price" expression="{$Cable_Price}"/>
- <param name="max_combinate_groups_elements" expression="{$max_combinate_groups_elements}"/> <!-- po ile wezlow mamy grupowac do wyliczania kombinacji kosztow -->
- <param name="logic" expression="{$logic}"/>
- <param name="edge_paths_with_PE_controll_paths_temp" expression="{$edge_paths_with_PE_controll_paths_temp}"/>
- <!--<xsl:param name="logic" select="'sorted'"/>--> <!-- tutaj robi grupy ale analizyje w grupie tylko wazniejsze/bardziej oblozone wezly -->
- </xslt>
- <move file="{$edge_paths_with_PE_controll.xsl}.{@id}.xml" todir="{$edge_paths_with_PE_controll_paths_temp}"/>
- </xsl:template>
-
- </xsl:stylesheet>
|