a.binder 6 lat temu
rodzic
commit
6e9ea1d55c

+ 9 - 0
SE/schema/default_db_xml_cache.public/build_ant_universal_by_xsl_match.xsl

@@ -140,6 +140,9 @@
                                     </attribute>
                                 </factory>
                                 <param name="element" expression="{with-param/@select}"/>
+                                <param  expression="{system_cache__appinfo:targetNamespace}">
+                                    <xsl:attribute name="name">{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}targetNamespace</xsl:attribute>
+                                </param>
                             </xsl:when>
                             <xsl:when test="@name='build_complexType'">
                                 <factory name="net.sf.saxon.TransformerFactoryImpl">    
@@ -149,6 +152,9 @@
                                     </attribute>
                                 </factory>
                                 <param name="complexType" expression="{with-param/@select}"/>
+                                <param  expression="{system_cache__appinfo:targetNamespace}">
+                                    <xsl:attribute name="name">{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}targetNamespace</xsl:attribute>
+                                </param>
                             </xsl:when>
                             
                             <xsl:when test="@name='build_complexType__simpleType'">
@@ -159,6 +165,9 @@
                                     </attribute>
                                 </factory>
                                 <param name="element" expression="{with-param/@select}"/>
+                                <param  expression="{system_cache__appinfo:targetNamespace}">
+                                    <xsl:attribute name="name">{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}targetNamespace</xsl:attribute>
+                                </param>
                             </xsl:when>
                             
                             <xsl:otherwise><xsl:message terminate="yes">#72 unexpected type of element !</xsl:message></xsl:otherwise>

+ 1 - 0
SE/schema/default_db_xml_cache.public/get_all_xsd.xsl

@@ -889,6 +889,7 @@
                                                 <xsl:attribute name="complexType_or_element_name" select="$complexType_or_element_name186"/>
                                                 <xsl:attribute name="p5opr:element-filename" select="p5opr:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
                                                 <xsl:attribute name="system_cache__appinfo:path" select="concat(../@targetNamespace,'/',$complexType_or_element_name186)"/>
+                                                
                                                 <!--<xsl:attribute name="system_cache__appinfo:element-filename" select="system_cache__appinfo:element-filename()"/>-->
                                                 <with-param name="element" select="{$prefix_134}:{$complexType_or_element_name186}"/>
                                                 <system_cache__appinfo:element-filename><xsl:value-of select="system_cache__appinfo:element-filename('build_element',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename>

+ 13 - 9
SE/schema/default_db_xml_cache/build_complexType.xsl

@@ -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&gt;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>