|
|
@@ -29,7 +29,7 @@
|
|
|
|
|
|
<xsl:param name="element"/> <!-- for manually generate some element -->
|
|
|
<xsl:param name="complexType"/> <!-- for manually generate some element -->
|
|
|
-
|
|
|
+ <xsl:param name="system_cache__appinfo:targetNamespace"/><!-- for manually generate some element -->
|
|
|
<xsl:param name="cache" select="'read'"/>
|
|
|
|
|
|
<!--<xsl:variable name="vrtfNamespaces" select="doc($vrtfNamespaces_file)/system_cache__appinfo:vrtfNamespaces/*"/>-->
|
|
|
@@ -242,7 +242,7 @@
|
|
|
|
|
|
<xsl:template name="system_cache__appinfo:build_element">
|
|
|
<xsl:param name="element" select="$element"/>
|
|
|
- <xsl:param name="namespace_uri_param" required="no"/> <!-- parametr powinny nadpisywac wzajemnie template i zmieniac sie po @type,@base -->
|
|
|
+ <xsl:param name="namespace_uri_param" required="no" select="$system_cache__appinfo:targetNamespace"/> <!-- 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 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>
|
|
|
@@ -376,7 +376,7 @@
|
|
|
<!-- @2016-01-03 glownie na potrzeby 477b complexTYpe bez refow -->
|
|
|
<xsl:template name="system_cache__appinfo:build_complexType">
|
|
|
<xsl:param name="complexType" select="$complexType"/>
|
|
|
- <xsl:param name="namespace_uri_param" required="no"/> <!-- parametr powinny nadpisywac wzajemnie template i zmieniac sie po @type,@base -->
|
|
|
+ <xsl:param name="namespace_uri_param" required="no" select="$system_cache__appinfo:targetNamespace"/> <!-- 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:param name="recurse"/>
|
|
|
@@ -625,7 +625,7 @@
|
|
|
<xsl:param name="element" select="$element"/> <!-- mozna podawac prefix w samym elemencie -->
|
|
|
<xsl:param name="path"/>
|
|
|
<xsl:param name="prefix" select="substring-before($element,':')"/>
|
|
|
- <xsl:param name="namespace_uri_param"/>
|
|
|
+ <xsl:param name="namespace_uri_param" select="$system_cache__appinfo:targetNamespace"/>
|
|
|
<xsl:param name="cache" select="$cache"/> <!-- or refresh -->
|
|
|
<xsl:param name="name" select="substring-after($element,':')"/>
|
|
|
<xsl:variable name="path">
|
|
|
@@ -670,7 +670,8 @@
|
|
|
<xsl:with-param name="namespace_uri_param" select="$namespace_uri_param"/>
|
|
|
<xsl:with-param name="prefix" select="$prefix"/>
|
|
|
<xsl:with-param name="path" select="$path"/>
|
|
|
- <xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ <!--<xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
+ <xsl:with-param name="targetNamespace" select="$namespace_uri_param" />
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:when>
|
|
|
<xsl:when test="not($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::*[ name() = $prefix ]]/simpleType[@name = $name])" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
@@ -688,11 +689,12 @@
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
<xsl:message>#629-663 apply with prefix="<xsl:value-of select="$prefix"/>"; $path="<xsl:value-of select="$path"/>"</xsl:message>
|
|
|
- <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::*[ name() = $prefix ]]/simpleType[@name = $name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
+ <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]/simpleType[@name = $name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
|
|
|
<xsl:with-param name="element" select="$element"/>
|
|
|
<xsl:with-param name="prefix" select="$prefix"/>
|
|
|
<xsl:with-param name="path" select="$path"/>
|
|
|
- <xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ <!--<xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
+ <xsl:with-param name="targetNamespace" select="$namespace_uri_param" />
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|
|
|
@@ -711,7 +713,8 @@
|
|
|
<xsl:with-param name="namespace_uri_param" select="$namespace_uri_param"/>
|
|
|
<xsl:with-param name="prefix" select="$prefix"/>
|
|
|
<xsl:with-param name="path" select="$path" />
|
|
|
- <xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ <!--<xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
+ <xsl:with-param name="targetNamespace" select="$namespace_uri_param" />
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:when>
|
|
|
<xsl:otherwise>
|
|
|
@@ -720,7 +723,8 @@
|
|
|
<xsl:with-param name="element" select="$element"/>
|
|
|
<xsl:with-param name="prefix" select="$prefix"/>
|
|
|
<xsl:with-param name="path" select="$path"/>
|
|
|
- <xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
|
|
|
+ <!--<xsl:with-param name="targetNamespace" 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::*[ name() = $prefix ]]/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>-->
|
|
|
+ <xsl:with-param name="targetNamespace" select="$namespace_uri_param" />
|
|
|
</xsl:apply-templates>
|
|
|
</xsl:otherwise>
|
|
|
</xsl:choose>
|