a.binder před 6 roky
rodič
revize
260a78cdd0

+ 8 - 3
SE/schema/default_db_xml_cache/build_complexType.xsl

@@ -259,7 +259,9 @@
                 <xsl:variable name="prefix" select="substring-before($element,':')"/>
                 <xsl:variable name="namespace_uri_param">
                     <xsl:choose>
-                        <xsl:when test="$namespace_uri_param"><xsl:value-of select="$namespace_uri_param"/></xsl:when>
+                        <xsl:when test="$namespace_uri_param"><xsl:value-of select="$namespace_uri_param"/>
+                            <xsl:message>#90-263 ($namespace_uri_param set to="<xsl:value-of select="$namespace_uri_param"/>")</xsl:message>
+                        </xsl:when>
                         <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/namespace::node()[../@targetNamespace=. and name()=$prefix][1]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
@@ -280,8 +282,11 @@
                     <xsl:when test="count($namespace_uri_param)!=1">
                         <xsl:message terminate="yes">#104a: count($namespace_uri_param):<xsl:value-of select="count($namespace_uri_param)"/>; need to be 1 - probably duplicated schema with the same targetNamespace exits (<xsl:value-of select="$namespace_uri_param"/>);</xsl:message>        
                     </xsl:when>
+                    <xsl:when test="string-length($namespace_uri_param)=0">
+                        <xsl:message terminate="yes">#104-286: string-length($namespace_uri_param)=0:; need to be more 0 - probably error (<xsl:value-of select="$namespace_uri_param"/>);</xsl:message>        
+                    </xsl:when>
                 </xsl:choose>
-                <xsl:message>104:system_cache__appinfo:build_element apply template for detected: 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 = $namespace_uri_param]/element[@name = system_cache__appinfo:clean_object_prefix($element)])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>) for element @name:"<xsl:value-of select="$element"/>"; $namespace_uri:"<xsl:value-of select="$namespace_uri_param"/>"; $prefix:"<xsl:value-of select="$prefix"/>";</xsl:message>
+                <xsl:message>104-285:system_cache__appinfo:build_element apply template for detected: 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 = $namespace_uri_param]/element[@name = system_cache__appinfo:clean_object_prefix($element)])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>) for element @name:"<xsl:value-of select="$element"/>"; $namespace_uri:"<xsl:value-of select="$namespace_uri_param"/>"; $prefix:"<xsl:value-of select="$prefix"/>";</xsl:message>
                 <xsl:variable name="system_cache__appinfo:build_flat_schema">
                     <xsl:apply-templates mode="system_cache__appinfo:build_flat_schema"
                         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 = $namespace_uri_param]/element[@name = system_cache__appinfo:clean_object_prefix($element)]"
@@ -398,7 +403,7 @@
                         <xsl:message terminate="yes">104a: count($namespace_uri_param):<xsl:value-of select="count($namespace_uri_param)"/>; need to be 1 - probably duplicated schema with the same targetNamespace exits (<xsl:value-of select="$namespace_uri_param"/>);</xsl:message>        
                     </xsl:when>
                 </xsl:choose>
-                <xsl:message>104:system_cache__appinfo:build_element apply template for detected: 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 = $namespace_uri_param]/complexType[@name = system_cache__appinfo:clean_object_prefix($complexType)])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>) for element @name:<xsl:value-of select="$complexType"/>; $namespace_uri:<xsl:value-of select="$namespace_uri_param"/>; $prefix:<xsl:value-of select="$prefix"/>;</xsl:message>
+                <xsl:message>104-401:system_cache__appinfo:build_element apply template for detected: 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 = $namespace_uri_param]/complexType[@name = system_cache__appinfo:clean_object_prefix($complexType)])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>) for element @name:<xsl:value-of select="$complexType"/>; $namespace_uri:<xsl:value-of select="$namespace_uri_param"/>; $prefix:<xsl:value-of select="$prefix"/>;</xsl:message>
                 
                 <xsl:variable name="system_cache__appinfo:build_flat_schema">