a.binder před 9 roky
rodič
revize
1426a86d5e

+ 3 - 8
SE/schema/default_db_xml_cache.public/build_recurse_ant.xsl

@@ -114,17 +114,12 @@
         <xsl:param name="input_obj_with_xpath" /> <!-- przekazany z template  match="RelatedFeature" mode="after_first_ant_assing_vars_childs" -->
         <xsl:param name="feature_pos"  select="1"/> <!-- przekazany z  template  match="RelatedFeature" mode="after_first_ant_assing_vars_childs"-->
         <xsl:param name="loop_path_recurs"  select="$loop_path_recurs"/> <!-- przekazany z RelatedFeatureLoop z mode="after_first_ant_assing_vars_childs"  -->
-        <xsl:if test="not(@xml_position)">
-            <xsl:message >#118 not set @xml_position </xsl:message>
-        </xsl:if>
         <xsl:choose>
             <xsl:when test="name()='RelatedFeature'">
                 <xsl:variable name="RelatedFeatureCount" select="last()"/>
                 <xsl:variable name="RelatedFeaturePos" select="position()"/> <!-- bylo bug @2017-04 position() -->
                 <xsl:variable name="featureID_name" select="substring-after($typeName,':')"/>
-                <xsl:message>#58 bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>; $basedir=<xsl:value-of select="$basedir"/>;
-                    $RelatedFeaturePos=<xsl:value-of select="position()"/> while @xml_position=<xsl:value-of select="@xml_position"/>
-                </xsl:message>
+                <xsl:message>#58 bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>; $basedir=<xsl:value-of select="$basedir"/>; </xsl:message>
                 <xsl:variable name="loop_xpath_real" select="$loop_xpath"/>
                 <xsl:variable name="loop_xpath">
                     <xsl:choose>
@@ -147,8 +142,8 @@
                 <!--<xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath,'_x2f_',$featureID_name)"/>-->
                 <xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath)"/>
                 <!--<xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.xml')"/>-->
-                <xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.xml')"/> <!-- bylo bug @2017-04 position() -->
-                <xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.dita.xml')"/> <!-- bylo bug @2017-04 position() -->
+                <xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.xml')"/>
+                <xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.',$feature_pos,'.dita.xml')"/>
                 <!--<xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.','.dita.xml')"/>-->
                 <!-- dane z oczekiwanego template .dita -->
                 <xsl:variable name="xpath_dita">

+ 0 - 1
SE/schema/default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl

@@ -126,7 +126,6 @@
                 <xsl:otherwise><xsl:value-of select="1"/></xsl:otherwise><!-- bylo bug @2017-04 position() -->
             </xsl:choose>
         </xsl:variable> 
-        
         <xsl:variable name="feature_pos_child"><!-- bylo bug @2017-04 position() -->
             <xsl:choose>
                 <xsl:when test="@feature_pos"><xsl:value-of select="@feature_pos"/></xsl:when>

+ 1 - 19
SE/schema/default_db_xml_cache.public/main_build_recurse_ant.dita_with_id.xsl

@@ -353,28 +353,10 @@
                 <xsl:with-param name="node" select="."/>
             </xsl:apply-templates>
             <xsl:attribute name="xml_id" select="generate-id()"/>
-            <xsl:apply-templates/>            
+            <xsl:apply-templates/>
         </xsl:element>
     </xsl:template>
     
-    <xsl:template match="RelatedFeature">
-        <xsl:param name="xml_position" select="0"/>
-        <xsl:variable name="element-name">
-            <xsl:value-of select="name()"/>
-        </xsl:variable>
-        <xsl:message>#225 try to name element <xsl:value-of select="$element-name"/>; @event_type = <xsl:value-of select="@event_type"/>; </xsl:message>
-        <xsl:element name="{$element-name}">
-            <xsl:apply-templates select="@*">
-                <xsl:with-param name="element" select="name()"/>
-                <xsl:with-param name="node" select="."/>
-            </xsl:apply-templates>
-            <xsl:attribute name="xml_id" select="generate-id()"/>
-            <xsl:attribute name="xml_position" select="( $xml_position + 1 )"/>
-            <xsl:apply-templates>
-                <xsl:with-param name="xml_position" select="( $xml_position + 1 )"/>
-            </xsl:apply-templates>
-        </xsl:element>
-    </xsl:template>
     
     <xsl:template match="p5_tr_map:go_recurse_from_root_by_build_element_494|p5_tr_map:go_recurse_from_root_by_build_element_4940">
         <xsl:param name="build_complexType" required="yes"/>