a.binder 9 роки тому
батько
коміт
0d0d974193

+ 5 - 5
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/build_recurse_ant.xsl

@@ -53,7 +53,6 @@
         <xsl:param name="loop_xpath" select="$loop_xpath"/>
         <xsl:param name="loop_xpath_save" select="$loop_xpath_save"/><!-- tutaj zapisal sie build z wezla z parent -->
         <xsl:param name="input_obj_with_xpath" /> <!-- przekazany z template  match="RelatedFeature" mode="after_first_ant_assing_vars_childs" -->
-        
         <xsl:choose>
             <xsl:when test="name()='RelatedFeature'">
                 <xsl:variable name="RelatedFeatureCount" select="last()"/>
@@ -86,10 +85,11 @@
                             <!--<xsl:variable name="xpath_value_tokens" select="tokenize(@xpath_value,'/')"/>-->
                             <!--<xsl:value-of select="'todo zapytanie xpath do przetworzenia'"/>-->
                             <!--<xsl:copy-of select="$xpath_value_tokens"></xsl:copy-of>-->
-                            <xsl:message>#67 probuje ustali wartosc z @xpath_value=<xsl:value-of select="@xpath_value"/>; $input_obj_with_xpath/node()[@xpath="ID_BILLING_OWNER"] =<xsl:value-of select="$input_obj_with_xpath/node()[@xpath='ID_BILLING_OWNER']"/>; </xsl:message>
+                            <!--<xsl:message>#67 probuje ustalic dla featureID_name=<xsl:value-of select="$featureID_name"/>; wartosc z @xpath_value=<xsl:value-of select="@xpath_value"/>; $input_obj_with_xpath/node()[@xpath="ID_BILLING_OWNER"] =<xsl:value-of select="$input_obj_with_xpath/node()[@xpath='ID_BILLING_OWNER']"/>; </xsl:message>-->
+                            <xsl:message>#67.1 $input_obj_with_xpath: <xsl:copy-of select="$input_obj_with_xpath"/> </xsl:message>
                             <xsl:variable name="xpath_value_token">
                                 <xsl:for-each select=" tokenize(@xpath_value,'/')">
-                                    <xsl:message>#70 znalazlem dla=<xsl:value-of select="."/>; <xsl:value-of select="$input_obj_with_xpath/node()[@xpath=current()]"/></xsl:message>
+                                    <xsl:message>#70 znalazlem dla=<xsl:value-of select="."/>; ; <xsl:value-of select="$input_obj_with_xpath/node()[@xpath=current()]"/></xsl:message>
                                     <xsl:if test="$input_obj_with_xpath/node()[@xpath=current()]">
                                         <xsl:copy-of select="$input_obj_with_xpath/node()[@xpath=current()]"/>
                                     </xsl:if><!-- todo to jest bledne ale dziala tymczasowo-->
@@ -356,7 +356,7 @@
           <!-- tutaj jest blad przetwarzania ze wrzuca po rekordzie do kolumny - trzeba przetworzyc dla kazdego feature member -->
             <xsl:for-each select="$wfs_output_nodes//gml:featureMember">
                 <xsl:variable name="input_obj_with_xpath">
-                    <xsl:apply-templates mode="after_first_ant_assing_xpath"/>
+                    <xsl:apply-templates mode="after_first_ant_assing_xpath" select="node()/*"/> <!-- zeby nie wstawial do xpath nazwy feature - IN7_DZIENNIK_KORESP/ID itp -->
                 </xsl:variable>
                 <!--<input_obj_with_xpath_debug>
                     <xsl:attribute name="xpath" select="$xpath"/>
@@ -401,7 +401,7 @@
                 <xsl:variable name="curr_xpath_tmpl">
                     <xsl:choose>
                         <xsl:when test="$curr_xpath=''">
-                            <xsl:value-of select="local-name()"/>
+                            <xsl:value-of select="local-name()"/> <!-- bylo local-name() - trzeba dorzucic xpath przechodzacy aby budowal sie w kwestii  -->
                         </xsl:when>
                         <xsl:otherwise>
                             <xsl:value-of select="concat($curr_xpath,'/',local-name())"/>