|
|
@@ -20,7 +20,14 @@
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
- <xsl:template match="Types__x3A__xlsx:main">
|
|
|
+ <xsl:variable name="cennik_2_sheet_name">
|
|
|
+ <cennik_2_sheet_name>
|
|
|
+ <sheet_source sheet_name="spacerowa">leclerc GD</sheet_source>
|
|
|
+ <sheet_source sheet_name="nowowiejska">leclerc GD</sheet_source>
|
|
|
+ <sheet_source sheet_name="Żeromskiego">leclerc GD</sheet_source>
|
|
|
+ <sheet_source sheet_name="polanki">leclerc GD</sheet_source>
|
|
|
+ </cennik_2_sheet_name>
|
|
|
+ </xsl:variable><xsl:template match="Types__x3A__xlsx:main">
|
|
|
|
|
|
<RelatedFeatureRoot>
|
|
|
<map title="raport przetwarzania Procesy5 A.Binder"
|
|
|
@@ -37,57 +44,29 @@
|
|
|
</xsl:variable>
|
|
|
|
|
|
|
|
|
- <xsl:variable name="raszczyk_row_prod_local_sum">
|
|
|
+ <xsl:result-document href="temp/raszczyk_row_prod">
|
|
|
+ <xsl:copy-of select="$raszczyk_row_prod"/>
|
|
|
+ </xsl:result-document><xsl:variable name="raszczyk_row_prod_local_sum">
|
|
|
<raszczyk_row_prod_local_sum>
|
|
|
- <xsl:apply-templates select="$raszczyk_row_prod" mode="raszczyk_row_prod_local_sum"/>
|
|
|
- </raszczyk_row_prod_local_sum>
|
|
|
+ <xsl:apply-templates select="$raszczyk_row_prod" mode="raszczyk_row_prod_local_sum"><xsl:with-param name="raszczyk_row_prod" select="$raszczyk_row_prod"/>
|
|
|
+ </xsl:apply-templates></raszczyk_row_prod_local_sum>
|
|
|
</xsl:variable>
|
|
|
|
|
|
<!--<xsl:copy-of select="$raszczyk_row_prod"/>-->
|
|
|
<!--<xsl:copy-of select="$raszczyk_row_prod_local_sum"/>-->
|
|
|
|
|
|
- <xsl:apply-templates mode="raszczyk_row_prod_local_sum.errors" select="$raszczyk_row_prod_local_sum"/>
|
|
|
-
|
|
|
- <topic id="topic_tabele_efektywnosci_4bb{generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
- <title>Sklepy efektywność tabela porownawcza</title>
|
|
|
- <body>
|
|
|
- <p>
|
|
|
-
|
|
|
- </p>
|
|
|
- </body>
|
|
|
- <xsl:apply-templates mode="SKLEPY_EFEKTYWNOSC_TABELE" select="$raszczyk_row_prod_local_sum"/>
|
|
|
- </topic>
|
|
|
-
|
|
|
- <topic id="topic_x5j_mrk_4bb{generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
- <title>Sklepy efektywność wykresy</title>
|
|
|
- <body>
|
|
|
- <p>
|
|
|
-
|
|
|
- </p>
|
|
|
- </body>
|
|
|
- <xsl:apply-templates mode="SKLEPY_EFEKTYWNOSC" select="$raszczyk_row_prod_local_sum"/>
|
|
|
- </topic>
|
|
|
-
|
|
|
-
|
|
|
- <topic id="topic_x5j_mrk_4baab{generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
- <title>Całość rapor wykresy</title>
|
|
|
- <body>
|
|
|
- <p>
|
|
|
-
|
|
|
- </p>
|
|
|
- </body>
|
|
|
- <xsl:apply-templates mode="CALOSC" select="$raszczyk_row_prod_local_sum"/>
|
|
|
- </topic>
|
|
|
+ <xsl:result-document href="temp/raszczyk_row_prod_local_sum">
|
|
|
+ <xsl:copy-of select="$raszczyk_row_prod_local_sum"></xsl:copy-of>
|
|
|
+ </xsl:result-document>
|
|
|
+ <xsl:apply-templates mode="raszczyk_row_prod_local_sum.errors" select="$raszczyk_row_prod_local_sum"/><xsl:apply-templates mode="SKLEPY_EFEKTYWNOSC_TABELE" select="$raszczyk_row_prod_local_sum"/>
|
|
|
+
|
|
|
|
|
|
</map>
|
|
|
</RelatedFeatureRoot>
|
|
|
</xsl:template>
|
|
|
|
|
|
|
|
|
- <xsl:template match="row[ Nazwa = Grupa ]" mode="raszczyk_row_prod_local_sum">
|
|
|
+ <xsl:template match="row[ lower-case(normalize-space(Nazwa)) = lower-case(normalize-space(Grupa)) ]" mode="raszczyk_row_prod_local_sum">
|
|
|
<xsl:message>#77 group ignored <xsl:value-of select="Grupa"/> = <xsl:value-of select="Nazwa"/></xsl:message>
|
|
|
</xsl:template> <!-- ignore groups -->
|
|
|
|
|
|
@@ -138,23 +117,54 @@
|
|
|
|
|
|
|
|
|
<xsl:template match="row" mode="raszczyk_row_prod_local_sum">
|
|
|
- <row><xsl:copy-of select="@*"/>
|
|
|
+ <xsl:param name="raszczyk_row_prod" required="yes"/>
|
|
|
+ <xsl:variable name="Cena">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="$cennik_2_sheet_name//sheet_source[@sheet_name = current()/@sheet_name]">
|
|
|
+ <xsl:variable name="sheet_source" select="$cennik_2_sheet_name//sheet_source[@sheet_name = current()/@sheet_name]/text()"/>
|
|
|
+ <xsl:message>#158 ustawiam cennik dla <xsl:value-of select="@sheet_name"/> ; produkt <xsl:value-of select="Nazwa"/> , dla zrodla <xsl:value-of select="$sheet_source"/></xsl:message>
|
|
|
+ <xsl:value-of select="$raszczyk_row_prod//row[@sheet_name = $sheet_source and Nazwa = current()/Nazwa ][1]/Cena"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:value-of select="Cena"/>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:variable name="Cena">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" string-length($Cena) < 1 ">
|
|
|
+ <xsl:message>#178 Nie bylo ceny na <xsl:value-of select="Nazwa"/> w cenniku doscelowym - ustalam cene x2 <xsl:value-of select="Cena * 2"/> </xsl:message>
|
|
|
+ <xsl:value-of select="Cena * 2"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise><xsl:value-of select="$Cena"/></xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:variable>
|
|
|
+
|
|
|
+ <xsl:message>#166 ustalam cene na <xsl:value-of select="$Cena"/> - oryg <xsl:value-of select="Cena"/></xsl:message><row><xsl:copy-of select="@*"/>
|
|
|
<xsl:apply-templates mode="raszczyk_row_prod_local_sum"/>
|
|
|
<xsl:element name="wynik">
|
|
|
- <xsl:value-of select="( Sprzed * Cena ) - ( Il_zw * build_stock_optimize_calculations_raszczyk:koszt_wytworzenia(Nazwa) ) "/>
|
|
|
+ <xsl:value-of select="( ( Sprzed - Il_zw ) * ( $Cena - build_stock_optimize_calculations_raszczyk:koszt_wytworzenia_all(Nazwa) ) ) - ( Il_zw * build_stock_optimize_calculations_raszczyk:koszt_wytworzenia(Nazwa) ) "/>
|
|
|
</xsl:element>
|
|
|
<xsl:element name="koszt_zwrotu">
|
|
|
<xsl:value-of select="Il_zw * build_stock_optimize_calculations_raszczyk:koszt_wytworzenia(Nazwa) "/>
|
|
|
</xsl:element>
|
|
|
- <xsl:element name="koszt_wytworzenia">
|
|
|
+ <xsl:element name="Cena_cennik">
|
|
|
+ <xsl:value-of select="$Cena"/>
|
|
|
+ </xsl:element>
|
|
|
+ <xsl:element name="wynik_bez_zwrotu">
|
|
|
+ <xsl:value-of select="( ( Sprzed - Il_zw ) * ( $Cena - build_stock_optimize_calculations_raszczyk:koszt_wytworzenia_all(Nazwa) ) ) "/>
|
|
|
+ </xsl:element><xsl:element name="koszt_wytworzenia">
|
|
|
<xsl:value-of select="build_stock_optimize_calculations_raszczyk:koszt_wytworzenia(Nazwa) "/>
|
|
|
</xsl:element>
|
|
|
- </row>
|
|
|
+ <xsl:element name="koszt_wytworzenia_sur_i_prac">
|
|
|
+ <xsl:value-of select="build_stock_optimize_calculations_raszczyk:koszt_wytworzenia_all(Nazwa) "/>
|
|
|
+ </xsl:element></row>
|
|
|
</xsl:template>
|
|
|
|
|
|
<xsl:template match="raszczyk_row_prod" mode="raszczyk_row_prod_local_sum">
|
|
|
- <xsl:apply-templates mode="raszczyk_row_prod_local_sum"/>
|
|
|
- </xsl:template>
|
|
|
+ <xsl:param name="raszczyk_row_prod" required="yes"/><xsl:apply-templates mode="raszczyk_row_prod_local_sum"><xsl:with-param name="raszczyk_row_prod" select="$raszczyk_row_prod"/>
|
|
|
+ </xsl:apply-templates></xsl:template>
|
|
|
|
|
|
<xsl:template match="*" mode="raszczyk_row_prod_local_sum">
|
|
|
<xsl:copy-of select="."/>
|
|
|
@@ -428,10 +438,7 @@
|
|
|
<xsl:template match="raszczyk_row_prod_local_sum" mode="SKLEPY_EFEKTYWNOSC_TABELE">
|
|
|
|
|
|
|
|
|
- <topic id="topic_x5j_{generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
- xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
- <title>Tabela wyników dla produktów/sklepów (dla dwóch miesięcy na raz - todo rozdzielenie) </title>
|
|
|
- <body>
|
|
|
+ <xsl:variable name="row" select="row"/>
|
|
|
|
|
|
<xsl:variable name="Grupy">
|
|
|
<Grupy>
|
|
|
@@ -443,7 +450,18 @@
|
|
|
|
|
|
<!--<xsl:copy-of select="$Grupy"/>-->
|
|
|
|
|
|
- <p><simpletable frame="all" id="simplet_sklep_able_56_{ generate-id()}">
|
|
|
+ <topic id="topic_x5aaaj_{generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>Tabela wyników dla produktów/sklepów (2) </title>
|
|
|
+ <body>
|
|
|
+
|
|
|
+ <!--<xsl:copy-of select="$Grupy"/>-->
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:for-each-group select="row" group-by="@miesiac">
|
|
|
+ <xsl:variable name="miesiac" select="@miesiac"/>
|
|
|
+ <xsl:variable name="miesiac_group" select=" current-group()"/>
|
|
|
+ <p>Miesiąc <xsl:value-of select="@miesiac"/></p><p><simpletable frame="all" id="simplet_sklep_ablMiese_{position()}_56_{ generate-id()}">
|
|
|
|
|
|
<sthead>
|
|
|
<stentry>Sklep</stentry>
|
|
|
@@ -455,19 +473,19 @@
|
|
|
<stentry>suma</stentry>
|
|
|
</sthead>
|
|
|
|
|
|
- <xsl:for-each-group select="row" group-by="@sheet_name">
|
|
|
+ <xsl:for-each-group select="current-group()" group-by="@sheet_name">
|
|
|
<strow>
|
|
|
<stentry>
|
|
|
<xsl:value-of select="@sheet_name"/>
|
|
|
</stentry>
|
|
|
- <xsl:variable name="sheet_name" select="current-group()"/>
|
|
|
+ <xsl:variable name="sheet_name_group" select="current-group()"/>
|
|
|
<xsl:for-each select="$Grupy/Grupy/Grupa">
|
|
|
<stentry>
|
|
|
- <xsl:value-of select="round(sum($sheet_name/wynik[ ../Grupa = current() and text()]))"/> <!-- [ ../Grupa = current()] -->
|
|
|
+ <xsl:value-of select="round(sum($sheet_name_group[Grupa = current()]/wynik[ text()]))"/> <!-- [ ../Grupa = current()] -->
|
|
|
</stentry>
|
|
|
</xsl:for-each>
|
|
|
<stentry>
|
|
|
- <xsl:value-of select="round(sum($sheet_name/wynik [text()]))"/>
|
|
|
+ <xsl:value-of select="round(sum( current-group()/wynik [ text()]))"/>
|
|
|
</stentry>
|
|
|
</strow>
|
|
|
</xsl:for-each-group>
|
|
|
@@ -475,9 +493,9 @@
|
|
|
<stentry></stentry>
|
|
|
<xsl:for-each select="$Grupy/Grupy/Grupa" >
|
|
|
<stentry>
|
|
|
- </stentry>
|
|
|
+ <xsl:value-of select="round(sum( $miesiac_group [ Grupa = current()]/wynik [text()])) "/></stentry>
|
|
|
</xsl:for-each>
|
|
|
- <stentry><xsl:value-of select="format-number(sum(row/wynik [text()]),'#.####') "/></stentry>
|
|
|
+ <stentry><xsl:value-of select="round(sum( current-group()/wynik[ text()])) "/></stentry>
|
|
|
</strow>
|
|
|
|
|
|
|
|
|
@@ -488,7 +506,109 @@
|
|
|
|
|
|
|
|
|
|
|
|
+ </xsl:for-each-group>
|
|
|
+
|
|
|
+ <!--<p><simpletable frame="all" id="simplet_sklep_able_56_{ generate-id()}">
|
|
|
+ <sthead>
|
|
|
+ <stentry>Sklep</stentry>
|
|
|
+ <xsl:for-each select="$Grupy/Grupy/Grupa" >
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="."/>
|
|
|
+ </stentry>
|
|
|
+ </xsl:for-each>
|
|
|
+ <stentry>suma</stentry>
|
|
|
+ </sthead>
|
|
|
+
|
|
|
+ <xsl:for-each-group select="row" group-by="@sheet_name">
|
|
|
+ <strow>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="@sheet_name"/>
|
|
|
+ </stentry>
|
|
|
+ <xsl:variable name="sheet_name" select="current-group()"/>
|
|
|
+ <xsl:for-each select="$Grupy/Grupy/Grupa">
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="round(sum($sheet_name/wynik[ ../Grupa = current() and text()]))"/> <!-\- [ ../Grupa = current()] -\->
|
|
|
+ </stentry>
|
|
|
+ </xsl:for-each>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="round(sum($sheet_name/wynik [text()]))"/>
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ <strow>
|
|
|
+ <stentry></stentry>
|
|
|
+ <xsl:for-each select="$Grupy/Grupy/Grupa" >
|
|
|
+ <stentry>
|
|
|
+ </stentry>
|
|
|
+ </xsl:for-each>
|
|
|
+ <stentry><xsl:value-of select="format-number(sum(row/wynik [text()]),'#.####') "/></stentry>
|
|
|
+ </strow>
|
|
|
+
|
|
|
+
|
|
|
+ </simpletable>
|
|
|
+ </p>-->
|
|
|
+
|
|
|
</body>
|
|
|
+ <topic id="topic_x5jffas_{generate-id()}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
|
|
|
+ <title>Tabela sprzedazy dla produktów/sklepów (2A) </title>
|
|
|
+ <body>
|
|
|
+ <xsl:for-each-group select="row" group-by="@miesiac">
|
|
|
+ <xsl:variable name="miesiac" select="@miesiac"/>
|
|
|
+ <xsl:variable name="miesiac_group" select=" current-group()"/>
|
|
|
+ <p>Miesiąc - Wart_sprzed <xsl:value-of select="@miesiac"/></p>
|
|
|
+ <p><simpletable frame="all" id="simplaaet_sklep_ablMissese_{position()}_56_{ generate-id()}">
|
|
|
+ <sthead>
|
|
|
+ <stentry>Sklep</stentry>
|
|
|
+ <xsl:for-each select="$Grupy/Grupy/Grupa" >
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="."/>
|
|
|
+ </stentry>
|
|
|
+ </xsl:for-each>
|
|
|
+ <stentry>suma</stentry>
|
|
|
+ </sthead>
|
|
|
+
|
|
|
+ <xsl:for-each-group select="current-group()" group-by="@sheet_name"> <!-- [@sheet_name='real Gdynia'] -->
|
|
|
+ <xsl:variable name="current_group" select="current-group()"/>
|
|
|
+ <strow>
|
|
|
+ <stentry>
|
|
|
+ <xsl:value-of select="@sheet_name"/>
|
|
|
+ </stentry>
|
|
|
+ <xsl:variable name="sheet_name" select="@sheet_name"/>
|
|
|
+ <xsl:message>#661 anal dla <xsl:value-of select="$sheet_name"/> and miesiac <xsl:value-of select="$miesiac"/></xsl:message>
|
|
|
+ <xsl:for-each select="$Grupy/Grupy/Grupa">
|
|
|
+ <xsl:variable name="grupa" select="."/>
|
|
|
+ <stentry>
|
|
|
+ <!--<xsl:value-of select="round(sum(current-group()[ @miesiac = $miesiac and @sheet_name = $sheet_name and Grupa = $grupa ]/Wart_sprzed[ text()]))"/>--> <!-- [ ../Grupa = current()] -->
|
|
|
+ <xsl:value-of select="round(sum($current_group[ Grupa = $grupa ]/Wart_sprzed[ text()]))"/>
|
|
|
+ <!--<debug><xsl:copy-of select="$row[ @miesiac = $miesiac and @sheet_name = $sheet_name and Grupa = $grupa ]"></xsl:copy-of></debug>-->
|
|
|
+ </stentry>
|
|
|
+ </xsl:for-each>
|
|
|
+ <stentry>
|
|
|
+ <!--<xsl:value-of select="round(sum($row [ @miesiac = $miesiac and @sheet_name = $sheet_name ]/Wart_sprzed [ text()] ))"/>-->
|
|
|
+ <xsl:value-of select="round(sum(current-group()/Wart_sprzed [ text()] ))"/>
|
|
|
+ </stentry>
|
|
|
+ </strow>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ <strow>
|
|
|
+ <stentry></stentry>
|
|
|
+ <!--<xsl:variable name="curr_gr" select="current-group()"/>-->
|
|
|
+ <xsl:for-each select="$Grupy/Grupy/Grupa" >
|
|
|
+ <stentry>
|
|
|
+ <!--<xsl:value-of select="round(sum( $row [ @miesiac = $miesiac and ../Grupa = current()]/Wart_sprzed [text()])) "/>-->
|
|
|
+ <xsl:value-of select="round(sum( $miesiac_group [ Grupa = current()]/Wart_sprzed [text()])) "/>
|
|
|
+ </stentry>
|
|
|
+ </xsl:for-each>
|
|
|
+ <stentry><xsl:value-of select="round(sum( current-group()/Wart_sprzed[text()]) div 1000 ) "/> kpln</stentry>
|
|
|
+ </strow>
|
|
|
+
|
|
|
+
|
|
|
+ </simpletable>
|
|
|
+ </p>
|
|
|
+ </xsl:for-each-group>
|
|
|
+ </body>
|
|
|
+ </topic>
|
|
|
+
|
|
|
</topic>
|
|
|
|
|
|
|
|
|
@@ -819,11 +939,11 @@
|
|
|
<row>
|
|
|
<xsl:attribute name="sheet_name" select=" normalize-space($sheet_name)"/>
|
|
|
<xsl:choose>
|
|
|
- <xsl:when test="@r < $row_month">
|
|
|
+ <xsl:when test=" number(@r) < number($row_month)">
|
|
|
<xsl:attribute name="miesiac" select="'biezacy'"/>
|
|
|
</xsl:when>
|
|
|
- <xsl:otherwise><xsl:attribute name="miesiac" select="'poprzedni'"/></xsl:otherwise>
|
|
|
- </xsl:choose>
|
|
|
+ <xsl:when test="number(@r) > number($row_month)"><xsl:attribute name="miesiac" select="'poprzedni'"/></xsl:when>
|
|
|
+ <xsl:otherwise><xsl:message terminate="yes">#979 error with <xsl:copy-of select="@*"></xsl:copy-of> </xsl:message></xsl:otherwise></xsl:choose>
|
|
|
<xsl:attribute name="row_month" select="$row_month"/>
|
|
|
<xsl:attribute name="r" select="@r"/>
|
|
|
<xsl:variable name="c" select="c"/>
|
|
|
@@ -940,7 +1060,22 @@
|
|
|
</xsl:function>
|
|
|
|
|
|
|
|
|
- <xsl:template match="koszty_wytworzenia.csv" mode="build_stock_optimize_calculations_raszczyk:koszty_wytworzenia.xml" xpath-default-namespace="build_stock_optimize_calculations_raszczyk">
|
|
|
+ <xsl:function name="build_stock_optimize_calculations_raszczyk:koszt_wytworzenia_all">
|
|
|
+ <xsl:param name="Nazwa"/>
|
|
|
+ <xsl:message>#991 analyzing <xsl:value-of select="$Nazwa"/></xsl:message>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test=" count($build_stock_optimize_calculations_raszczyk:koszty_wytworzenia.xml//row[Nazwa = $Nazwa]) > 1">
|
|
|
+ <xsl:message>#993 PODWOJNA CENA KOSZTU DLA <xsl:value-of select="$Nazwa"/></xsl:message>
|
|
|
+ <xsl:value-of select="$build_stock_optimize_calculations_raszczyk:koszty_wytworzenia.xml//row[Nazwa = $Nazwa][1]/KOSZTYLACZNIE"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:when test="$build_stock_optimize_calculations_raszczyk:koszty_wytworzenia.xml//row[Nazwa = $Nazwa]/KOSZTYLACZNIE">
|
|
|
+ <xsl:value-of select="$build_stock_optimize_calculations_raszczyk:koszty_wytworzenia.xml//row[Nazwa = $Nazwa]/KOSZTYLACZNIE"/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#993B Nie znany produkt <xsl:value-of select="$Nazwa"/></xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:function><xsl:template match="koszty_wytworzenia.csv" mode="build_stock_optimize_calculations_raszczyk:koszty_wytworzenia.xml" xpath-default-namespace="build_stock_optimize_calculations_raszczyk">
|
|
|
<koszty_wytworzenia.xml>
|
|
|
<xsl:for-each select=" tokenize( text(),'\n')">
|
|
|
<row>
|
|
|
@@ -958,7 +1093,9 @@
|
|
|
<xsl:when test=" position()=4">
|
|
|
<KOSZTPRACY><xsl:value-of select="."/></KOSZTPRACY>
|
|
|
</xsl:when>
|
|
|
- <xsl:otherwise><col><xsl:value-of select="."/></col></xsl:otherwise>
|
|
|
+ <xsl:when test=" position()=5">
|
|
|
+ <KOSZTYLACZNIE><xsl:value-of select="."/></KOSZTYLACZNIE>
|
|
|
+ </xsl:when><xsl:otherwise><col><xsl:value-of select="."/></col></xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
|
|
|
</xsl:for-each>
|