|
|
@@ -245,7 +245,7 @@
|
|
|
<xsl:param name="namespace_uri_param" required="no"/> <!-- parametr powinny nadpisywac wzajemnie template i zmieniac sie po @type,@base -->
|
|
|
<xsl:param name="prefix" required="no"/> <!-- parametr prefixu powinny nadpisywac wzajemnie template i zmieniac sie po @type,@base -->
|
|
|
<xsl:param name="path"/>
|
|
|
- <xsl:if test="$debug_level>3"><xsl:message>86:system_cache__appinfo:build_element run for parms: $element:<xsl:value-of select="$element"/>; $namespace_uri_param:<xsl:value-of select="$namespace_uri_param"/>; $prefix:<xsl:value-of select="$prefix"/>;</xsl:message></xsl:if>
|
|
|
+ <xsl:if test="$debug_level>3 or 1=1"><xsl:message>86:system_cache__appinfo:build_element run for parms: $element:"<xsl:value-of select="$element"/>"; $namespace_uri_param:"<xsl:value-of select="$namespace_uri_param"/>"; $prefix:"<xsl:value-of select="$prefix"/>";</xsl:message></xsl:if>
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="not($namespace_uri_param) and not($prefix) and not(substring-before($element,':'))">
|
|
|
<xsl:message terminate="yes">90:system_cache__appinfo:build_element required params are missing: ($targetNamespace or $prefix) ; </xsl:message>
|
|
|
@@ -260,7 +260,20 @@
|
|
|
<xsl:variable name="namespace_uri_param">
|
|
|
<xsl:choose>
|
|
|
<xsl:when test="$namespace_uri_param"><xsl:value-of select="$namespace_uri_param"/></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"/></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/namespace::node()[../@targetNamespace=. and name()=$prefix][1]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
+ <xsl:for-each 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]">
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="position()=1">
|
|
|
+ <xsl:value-of select="."/>
|
|
|
+ </xsl:when>
|
|
|
+ <xsl:otherwise>
|
|
|
+ <xsl:message>#90-272 warning - more schema for $element="<xsl:value-of select="$element"/>";[<xsl:value-of select="position()"/>]</xsl:message>
|
|
|
+ </xsl:otherwise>
|
|
|
+ </xsl:choose>
|
|
|
+ </xsl:for-each>
|
|
|
+ </xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
</xsl:variable>
|
|
|
<xsl:choose>
|
|
|
@@ -268,7 +281,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]/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: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)]"
|
|
|
@@ -613,6 +626,11 @@
|
|
|
<xsl:variable name="path">
|
|
|
<xsl:value-of select="concat($prefix,'/',$element)"/>
|
|
|
</xsl:variable>
|
|
|
+ <xsl:choose>
|
|
|
+ <xsl:when test="string-length($element)=0">
|
|
|
+ <xsl:message terminate="yes">#629-618 string-length($element)=0</xsl:message>
|
|
|
+ </xsl:when>
|
|
|
+ </xsl:choose>
|
|
|
<!--<xsl:variable name="element-filename" select="system_cache__appinfo:escape_object_prefix_to_string($element)"/>-->
|
|
|
<!--<xsl:variable name="element-filename" select="system_cache__appinfo:element-filename('build_element',$element,$prefix,$namespace_uri_param)" >
|
|
|
<xsl:choose>
|