a.binder 9 лет назад
Родитель
Сommit
635d84ec48

+ 17 - 3
SE/schema/default_db_xml_cache.public/main_build_recurse_ant.dita_with_id.xsl

@@ -83,8 +83,14 @@
                  <!--<xsl:attribute name="xpath" select="@flat_relation_cache_name"/>-->
                  <!-- wykrycie pierwszego @local-name-name -->
                  <xsl:attribute name="flat_relation_cache_xpath" select="@flat_relation_cache_xpath"/>
-                 <xsl:attribute name="flat_relation_cache_name" select="@flat_relation_cache_name"/>
+                 <xsl:attribute name="flat_relation_cache_name" select="@flat_relation_cache_name"/>            
                  <xsl:attribute name="system_cache__appinfo:get_default_db_obj_url_table_name" select="$detect_resource_type//system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type/@system_cache__appinfo:get_default_db_obj_url_table_name"/>
+                <xsl:choose>
+                    <xsl:when test="@system_cache__appinfo:maxOccurs='0' and @system_cache__appinfo:minOccurs='0'">
+                        <xsl:message>#90 node=<xsl:value-of select="@system_cache__appinfo:ref"/>; to BYPASS! TODO @system_cache__appinfo:maxOccurs=0 and @system_cache__appinfo:minOccurs  </xsl:message>
+                    </xsl:when>
+                </xsl:choose> 
+                <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element_477_attrs" select="@*"/>
                   <xsl:attribute name="xml_id" select="generate-id()"/>
                     <xsl:message>#125 try to name element <xsl:value-of select="concat($namespace_prefix,':',$detect_resource_type//system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type/@system_cache__appinfo:get_default_db_obj_url_table_name)"/>; </xsl:message>
                 <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element_477_backref" select="."/>
@@ -96,7 +102,8 @@
                      <xsl:copy-of select="$detect_resource_type"/>
                  </prefixed_object_info>-->
                 <xsl:element name="{concat($namespace_prefix,':',$detect_resource_type//system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type/@system_cache__appinfo:get_default_db_obj_url_table_name)}">
-                    <xsl:attribute name="xml_id" select="generate-id()"/> 
+                    <xsl:attribute name="xml_id" select="generate-id()"/>
+                    <xsl:apply-templates mode="p5_tr_map:go_recurse_from_root_by_build_element_477_attrs" select="@*"/>
                     <xsl:apply-templates/>
                 </xsl:element>
         </RelatedFeature>
@@ -150,10 +157,17 @@
         </xsl:element>
     </xsl:template>
     
-    <xsl:template match="@create_element">
+    <xsl:template match="@local-name-name">
         <xsl:attribute name="xpath" select="."/>
     </xsl:template>
     
+    <xsl:template match="@system_cache__appinfo:id|@system_cache__appinfo:maxOccurs|@system_cache__appinfo:minOccurs" mode="p5_tr_map:go_recurse_from_root_by_build_element_477_attrs">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    <xsl:template match="@*" mode="p5_tr_map:go_recurse_from_root_by_build_element_477_attrs"/>
+        
+    
+    
     <xsl:template match="@*">
         <xsl:param name="element"/>
         <xsl:param name="node"/>