a.binder 6 年之前
父節點
當前提交
b4fe43b832
共有 1 個文件被更改,包括 5 次插入5 次删除
  1. 5 5
      SE/schema/default_db_xml_cache/build_complexType.xsl

+ 5 - 5
SE/schema/default_db_xml_cache/build_complexType.xsl

@@ -2105,18 +2105,18 @@
             <xsl:otherwise>
                 <xsl:variable name="prefix">
                     <xsl:choose>
-                        <xsl:when test="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $type_uri]/(complexType|simpleType)[@name = $name]) != 1" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                        <xsl:when test="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $targetNamespace]/(complexType|simpleType)[@name = $name]) != 1" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
                             <!--<xsl:message terminate="no">251:a ERROR not found or too many elements with name:<xsl:value-of select="$type"/>; par.tNS:<xsl:value-of select="$targetNamespace"/>; on type_uri:<xsl:value-of select="$type_uri"/>; count:<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $type_uri]/(complexType|simpleType)[@name = system_cache__appinfo:clean_object_prefix($type)])"/></xsl:message>-->
                             <xsl:message>system_cache__appinfo:get_prefix_from_element(.) = <xsl:value-of select="system_cache__appinfo:get_prefix_from_element(.)"/></xsl:message>
                             <xsl:message>parent::node()/name = <xsl:value-of select="parent::node()/name()"/></xsl:message>
                             <xsl:message>parent::node()/@name = <xsl:value-of select="parent::node()/@name"/></xsl:message>
                             <xsl:message>parent::node()/@id = <xsl:value-of select="parent::node()/@id"/></xsl:message>
-                            <xsl:message>debug found <xsl:copy-of select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $type_uri]/(complexType|simpleType)/concat(' jest: ',name(),'/',@name)"/></xsl:message>
-                            <xsl:message terminate="yes">2101:a ERROR not found or too many elements with name:($name)=<xsl:value-of select="$name"/>; par.tNS:<xsl:value-of select="$targetNamespace"/>; on type_uri:<xsl:value-of select="$type_uri"/>; count:<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $type_uri]/(complexType|simpleType)[@name = system_cache__appinfo:clean_object_prefix($name)])"/></xsl:message>
+                            <xsl:message>debug found <xsl:copy-of select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $targetNamespace]/(complexType|simpleType)/concat(' jest: ',name(),'/',@name)"/></xsl:message>
+                            <xsl:message terminate="no">2101:a ERROR not found or too many elements with name:($name)=<xsl:value-of select="$name"/>; par.tNS:<xsl:value-of select="$targetNamespace"/>; on $targetNamespace:<xsl:value-of select="$targetNamespace"/>; count:<xsl:value-of select="count($procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace = $targetNamespace]/(complexType|simpleType)[@name = system_cache__appinfo:clean_object_prefix($name)])"/></xsl:message>
                         </xsl:when>
-                        <xsl:when test="$type_uri='http://www.w3.org/2001/XMLSchema'"><xsl:value-of select="'xs'"/></xsl:when>
+                        <xsl:when test="$targetNamespace='http://www.w3.org/2001/XMLSchema'"><xsl:value-of select="'xs'"/></xsl:when>
                         <!-- @2017-11-2 blad na CRM_PROCESS ERROR fixing ! <xsl:otherwise><xsl:value-of select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace=$type_uri]/namespace::node()[.=$type_uri]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:otherwise>-->
-                        <xsl:otherwise><xsl:value-of select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace=$type_uri]/namespace::node()[.=$type_uri]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:otherwise>
+                        <xsl:otherwise><xsl:value-of select="$procesy5_system_schema/system_cache__appinfo:get_all_xsd_list/(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix)/schema[@targetNamespace=$targetNamespace]/namespace::node()[.=$targetNamespace]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/></xsl:otherwise>
                     </xsl:choose>
                 </xsl:variable>
                 <xsl:message>#2101B TODO save to ($prefix="<xsl:value-of select="$prefix"/>") <xsl:value-of select="system_cache__appinfo:element-filename.symlink('build_complexType__simpleType',@name,$prefix,$targetNamespace)"/></xsl:message>