فهرست منبع

fixed ADM dita

a.binder 6 سال پیش
والد
کامیت
416576803b

+ 19 - 17
SE/schema/SystemObjects/xml.xsd

@@ -1,17 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xs:schema xmlns="http://www.w3.org/2001/XMLSchema"
-           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-           xmlns:xs="http://www.w3.org/2001/XMLSchema"
-           targetNamespace="http://www.w3.org/XML/1998/namespace"
-           vc:minVersion="1.1"><!--#147 when  @targetNamespace and prefix probably exists!-->
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+   xmlns:xs="http://www.w3.org/2001/XMLSchema"
+   system_cache__appinfo:document-uri="SystemObjects/xml.xsd"
+   targetNamespace="http://www.w3.org/XML/1998/namespace" vc:minVersion="1.1">
+   <!--#147 when  @targetNamespace and prefix probably exists!-->
    <xs:annotation>
-      <xs:documentation>
+      <xs:documentation>@2019-09-13 localized to p5 from svg  - may be incompatibile
+
          <xs:div>
             <xs:h1>About the XML namespace</xs:h1>
             <xs:div class="bodytext">
@@ -174,7 +176,7 @@
    </xs:annotation>
    <xs:annotation>
       <xs:documentation>
-         <xs:div xml:id="usage" id="usage">
+         <xs:div id="usage" xml:id="usage">
             <xs:h2>
                <xs:a name="usage">About this schema document</xs:a>
             </xs:h2>
@@ -190,26 +192,26 @@
       the XML namespace, e.g. as follows:
      </xs:p>
                <xs:pre>
-          &lt;schema . . .&gt;
+          &lt;schema . . .>
            . . .
            &lt;import namespace="http://www.w3.org/XML/1998/namespace"
-                      schemaLocation="http://www.w3.org/2001/xml.xsd"/&gt;
+                      schemaLocation="http://www.w3.org/2001/xml.xsd"/>
      </xs:pre>
                <xs:p>
       or
      </xs:p>
                <xs:pre>
            &lt;import namespace="http://www.w3.org/XML/1998/namespace"
-                      schemaLocation="http://www.w3.org/2009/01/xml.xsd"/&gt;
+                      schemaLocation="http://www.w3.org/2009/01/xml.xsd"/>
      </xs:pre>
                <xs:p>
       Subsequently, qualified reference to any of the attributes or the
       group defined below will have the desired effect, e.g.
      </xs:p>
                <xs:pre>
-          &lt;type . . .&gt;
+          &lt;type . . .>
            . . .
-           &lt;attributeGroup ref="xml:specialAttrs"/&gt;
+           &lt;attributeGroup ref="xml:specialAttrs"/>
      </xs:pre>
                <xs:p>
       will define a type which will schema-validate an instance element

+ 90 - 7
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/pismo/ADMIN_USERS.dita

@@ -1,7 +1,10 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <RelatedFeature xpath="ID"  typeName="p5_default_db:ADMIN_USERS" typeNameRealResource="p5_default_db:ADMIN_USERS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-  xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
-  <topic id="untitled4s" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd"
+  xmlns:wfs="http://www.opengis.net/wfs"
+  xmlns:ogc="http://www.opengis.net/ogc"
+  >
+  <topic id="ADMIN_USERS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
     <title><ph>Załącznik do umowy - dane dostępowe oraz wyposazenia dla </ph><ph xpath="ID"/><ph>-</ph><ph xpath="ADM_NAME"/>
     </title>
@@ -18,19 +21,95 @@
             </li>
           </ol>
         </li>
+        
+        <RelatedFeature xpath="ID" xpath_value="../ID_BILLING_USERS" typeName="p5_default_db:COMPANIES" typeNameRealResource="p5_default_db:COMPANIES">
+          
+            <li>Powiązany podmiot:
+              <ol>
+                <li>
+                  <ph xpath="P_NAME"/> <ph> </ph>
+                  <ph xpath="P_NAME_SECOND"/> <ph> </ph>
+                  
+                  <div>
+                    
+                    <p><ph xpath="P_ADDRESS_POST_CODE"/><ph> </ph><ph xpath="P_ADDRESS_CITY"/><ph> ul.</ph><ph xpath="P_ADDRESS_STREET"/><ph> </ph><ph xpath="P_ADDRESS_HOUSE"/><ph xpath="P_ADDRESS_HOME" xpath.match.regex="[0-9a-zA-Z]">/</ph><ph xpath="P_ADDRESS_HOME"/></p>
+                    <p><ph xpath.match.regex="[0-9]" xpath="P_NIP">nip: </ph> <ph xpath="P_NIP"/><ph> </ph> <ph xpath.match.regex="[0-9]" xpath="P_KRS_NUMER">krs:</ph> <ph xpath="P_KRS_NUMER"/><ph xpath="P_PESEL"  xpath.match.regex="[0-9]" > pesel:</ph><ph xpath="P_PESEL"/><ph> </ph></p>
+                    <p id="P_ADRESS_KORESP_1282" 
+                      
+                      xpath.not.match.regex.text=" "
+                      xpath.match.regex="[a-zA-Z]" 
+                      xpath="P_ADRESS_KORESP_1282">Adres koresp. <ph xpath="P_ADRESS_KORESP_1282" /><!-- ^$ --><!-- ul. Al. Niepodległości 797/1, 81-810 Sopot -->
+                    </p>
+                    <!--<p xpath="P_PESEL" xpath.match.regex="(|\s+)" xpath.match.regex.conref="#IN7_DZIENNIK_KORESP/P_ADRESS_KORESP_1282" xpath.match.regex.conaction="pushreplace" xpath.match.regex.text="brak adresu"/>-->
+                    <p xpath.match.regex="[a-z]" xpath="user_mail_contact"><ph>email:</ph><ph xpath="user_mail_contact"/></p>
+                    <p xpath.match.regex="[0-9]" xpath="P_PHONE"><ph> tel:</ph><ph xpath="P_PHONE"/> </p>
+                    <p xpath.match.regex="[0-9]" xpath="nr_rach" xpath.match.regex.text=""><ph>nr r-ku:</ph><ph xpath="nr_rach"/></p>
+                  </div>
+                </li>
+              </ol>
+              
+              
+            </li>
+          
+          
+        </RelatedFeature>
+        
+        
         <li>
           Role:
           <ol>
             <li>Funkcja: <codeph><ph xpath="ADM_ADMIN_DESC"></ph></codeph></li>
             <li>Typ użytkownika: <codeph><ph xpath="EMPLOYEE_TYPE"></ph></codeph></li>
             <li>Domyślna grupa dla tworzonych obiektów: <codeph><ph xpath="DEFAULT_ACL_GROUP"></ph></codeph></li>
+            <RelatedFeature wfs:MAXFEATURES="1" xpath="REMOTE_ID" xpath_value="../ID" typeName="p5_default_db:CRM_AUTH_PROFILE" typeNameRealResource="p5_default_db:CRM_AUTH_PROFILE">
+              <simpleTypeMakeOgcFilter name="CRM_AUTH_PROFILE"><!--  -->
+                <ogc:PropertyIsEqualTo>
+                    <ogc:PropertyName>A_STATUS</ogc:PropertyName>
+                    <ogc:Literal>NORMAL</ogc:Literal>
+                  </ogc:PropertyIsEqualTo>
+              </simpleTypeMakeOgcFilter>
+              <ol>
+                <li>Stanowiska:
+                  <ol>
+                    <RelatedFeature  xpath="REMOTE_ID" xpath_value="../REMOTE_ID" typeName="p5_default_db:CRM_AUTH_PROFILE" typeNameRealResource="p5_default_db:CRM_AUTH_PROFILE">
+                      <!--<simpleTypeMakeOgcFilter  ><!-\- name="CRM_AUTH_PROFILE" -\->
+                        <ogc:PropertyIsEqualTo>
+                          <ogc:PropertyName>A_STATUS</ogc:PropertyName>
+                          <ogc:Literal>NORMAL</ogc:Literal>
+                        </ogc:PropertyIsEqualTo>
+                      </simpleTypeMakeOgcFilter>-->
+                      <!--<div>-->
+                      <RelatedFeature  xpath="ID" xpath_value="../ID_ZASOB" typeName="p5_default_db:CRM_LISTA_ZASOBOW" typeNameRealResource="p5_default_db:CRM_LISTA_ZASOBOW">
+                        <li>
+                          <ph xpath="DESC"/>
+                          <sub xpath="DESC_PL"/>
+                        </li>
+                      </RelatedFeature>
+                      <!--</div>-->
+                      
+                    </RelatedFeature>
+                    <!--<RelatedFeature  xpath="ID" xpath_value="../ID_ZASOB" typeName="p5_default_db:CRM_LISTA_ZASOBOW" typeNameRealResource="p5_default_db:CRM_LISTA_ZASOBOW">
+                    <li>
+                      <ph xpath_value="DESC"/>
+                      <sub xpath_value="DESC_PL"/>
+                    </li>
+                    </RelatedFeature>-->
+                  </ol>
+                </li>
+              </ol>
+            </RelatedFeature>
           </ol>
+          
+          
+          
         </li>
         
         <li>
           Aktualne dane kontaktowe:
           <ol>
-            <li>Przyznany adres email: <codeph><ph xpath="EMAIL_LOCAL_ACCOUNT_ADDRESS"></ph></codeph><note>należy dodać sobie lokalnie na komputerze nowe konto pocztowe w programie pocztowym typu IMAP lub/i korzystać z dostępnego narzędzia WEBMAIL pod adresem 
+            <li xpath.match.regex="[a-zA-Z]"
+              xpath="EMAIL_LOCAL_ACCOUNT_ADDRESS"
+              >Przyznany adres email: <codeph><ph xpath="EMAIL_LOCAL_ACCOUNT_ADDRESS"></ph></codeph><note>należy dodać sobie lokalnie na komputerze nowe konto pocztowe w programie pocztowym typu IMAP lub/i korzystać z dostępnego narzędzia WEBMAIL pod adresem 
               <xref href="https://biuro.biall-net.pl/webmail/" format="html" scope="external"/>
             </note>
               <ol>
@@ -45,10 +124,14 @@
         <li>
           Notatki: 
           <ol>
-            <li>Opis statusu.: <codeph><ph xpath="A_STATUS_INFO"></ph></codeph></li>
-            <li>Notatka: <codeph><ph xpath="L_APPOITMENT_INFO"></ph></codeph></li>
-            <li>Osoba odp.: <codeph><ph xpath="L_APPOITMENT_USER"></ph></codeph></li>
-            <li>Termin.: <codeph><ph xpath="L_APPOITMENT_DATE"></ph></codeph></li>
+            <li xpath.match.regex="[a-zA-Z]"
+               xpath="A_STATUS_INFO">Opis statusu.: <codeph><ph xpath="A_STATUS_INFO"></ph></codeph></li>
+            <li xpath.match.regex="[a-zA-Z]"
+               xpath="L_APPOITMENT_INFO">Notatka: <codeph><ph xpath="L_APPOITMENT_INFO"></ph></codeph></li>
+            <li xpath.match.regex="[a-zA-Z]"
+               xpath="L_APPOITMENT_USER">Osoba odp.: <codeph><ph xpath="L_APPOITMENT_USER"></ph></codeph></li>
+            <li xpath.match.regex="[a-zA-Z]"
+               xpath="L_APPOITMENT_DATE">Termin.: <codeph><ph xpath="L_APPOITMENT_DATE"></ph></codeph></li>
           </ol>
         </li>
         

+ 11 - 2
SE/schema/default_db_xml_cache.public/build_ant_universal_by_xsl_match.xsl

@@ -53,7 +53,7 @@
                         <parallel  failonany="true" threadCount="1" > <!-- {$threadCount} threadCount="4"  -->
                             <xsl:variable name="system_cache__appinfo:element_complexType">
                                 <xsl:for-each select="*">
-                                    <xsl:sort select="number(@id.int.rand)"/>
+                                    <!--<xsl:sort select="number(@id.int.rand)"/>-->
                                     <xsl:copy-of select="."/>
                                 </xsl:for-each>
                             </xsl:variable>
@@ -234,7 +234,7 @@
                      
                         <xsl:comment>#229 lower mode="p5ant-interface:xslt.param" [test root/name()="<xsl:value-of select="root()/name()"/>"; attrs="<xsl:value-of select="$p5ant-interface:xslt.param/name()"/>"</xsl:comment>
                         <xsl:apply-templates mode="p5ant-interface:xslt.param" select="$p5ant-interface:xslt.param"/>
-                        
+                        <xsl:apply-templates mode="p5ant-interface:xslt.param"  select="@system_cache__appinfo:path.2863.len.limit"/>
                         
                         <classpath location="/opt/local/share/java/saxon9he.jar"/>
                     </xslt>
@@ -398,6 +398,15 @@
         <param name="{name()}" expression="{text()}"/>
     </xsl:template>
     
+    <xsl:template mode="p5ant-interface:xslt.param" match="@system_cache__appinfo:path.2863.len.limit">
+        <param  expression="{.}">
+            <xsl:attribute name="name">{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}path.2863.len.limit</xsl:attribute>
+        </param>
+    </xsl:template>
+    
+    <xsl:template mode="p5ant-interface:xslt.param" match="*|text()"/>
+        
+    
     
     
     <xsl:template mode="build_SimpleSchema.xml" match="build_cache">

+ 221 - 160
SE/schema/default_db_xml_cache.public/get_all_xsd.xsl

@@ -784,6 +784,24 @@
                         </system_cache__appinfo:get_all_xsd>
                         
                         
+                        <system_cache__appinfo:get_all_xsd>
+                            <xsl:copy-of  select="$system_cache__appinfo:SVG.xsd//@system_cache__appinfo:document-uri"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri-full" select="$system_cache__appinfo:SVG.xsd//@targetNamespace"/>
+                            <xsl:copy-of select="$system_cache__appinfo:SVG.xsd"/>
+                        </system_cache__appinfo:get_all_xsd>
+                        
+                        <system_cache__appinfo:get_all_xsd>
+                            <xsl:copy-of  select="$system_cache__appinfo:xlink.xsd//@system_cache__appinfo:document-uri"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri-full" select="$system_cache__appinfo:xlink.xsd//@targetNamespace"/>
+                            <xsl:copy-of select="$system_cache__appinfo:xlink.xsd"/>
+                        </system_cache__appinfo:get_all_xsd>
+                        
+                        <system_cache__appinfo:get_all_xsd>
+                            <xsl:copy-of  select="$system_cache__appinfo:xml.xsd//@system_cache__appinfo:document-uri"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri-full" select="$system_cache__appinfo:xml.xsd//@targetNamespace"/>
+                            <xsl:copy-of select="$system_cache__appinfo:xml.xsd"/>
+                        </system_cache__appinfo:get_all_xsd>
+                        
                   </system_cache__appinfo:get_all_xsd_list>
                 </xsl:variable>
                 <!--<xsl:result-document href="{concat('../default_db.instance.xml/transformed/',$element-filename,'.xml')}">
@@ -828,7 +846,8 @@
         <system_cache__appinfo:vrtfNamespaces>
             <xsl:for-each select="//(system_cache__appinfo:get_all_xsd|system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix|system_cache__appinfo:get_all_xsd_default_db)/schema/namespace::node()"
                 xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
-                <ns element="{name(..)}" prefix="{name()}" uri="{.}" system_cache__appinfo:document-uri="{../../@system_cache__appinfo:document-uri}"/>
+                <ns element="{name(..)}" prefix="{name()}" uri="{.}" debug="l.849"
+                    system_cache__appinfo:document-uri="{../../@system_cache__appinfo:document-uri}"/>
             </xsl:for-each>
             <xsl:for-each select="//system_cache__appinfo:get_all_xsd_default_db/schema"
                 xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
@@ -839,7 +858,11 @@
                     </xsl:when>
                     <xsl:otherwise>
                         <xsl:message>#701-B WARNING we should crete prefix ($zasob_id_db_targetNamespace_detect_string=<xsl:value-of select="$zasob_id_db_targetNamespace_detect_string"/>) for $targetNamespace <xsl:value-of select="$targetNamespace"/> = <xsl:value-of select="system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace($targetNamespace)"/> </xsl:message>
-                        <ns element="{name(.)}" prefix="{system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace($targetNamespace)}" uri="{$targetNamespace}" system_cache__appinfo:document-uri="{../@system_cache__appinfo:document-uri}"/>
+                        <ns element="{name(.)}" 
+                            debug="l.862"
+                            prefix="{system_cache__appinfo:object_install_se_ant_object.detect_external_targetNamespace($targetNamespace)}" 
+                            uri="{$targetNamespace}" 
+                            system_cache__appinfo:document-uri="{../@system_cache__appinfo:document-uri}"/>
                     </xsl:otherwise>
                 </xsl:choose>
                 
@@ -867,6 +890,14 @@
         </xsl:choose>
     </xsl:function>
     -->
+    
+    
+    
+    
+    
+    
+    
+    
     <xsl:template match="system_cache__appinfo:get_all_xsd_list" mode="system_cache__appinfo:element_complexType">
         <xsl:param name="targetNamespace" select="$targetNamespace_DEFAULTS"/>    
         <system_cache__appinfo:element_complexType xsl:use-attribute-sets="p5ant-interface:xslt.param.get_all_xsd_list">
@@ -875,172 +906,202 @@
                 <xsl:attribute name="default_db_xml_cache.public" select="$default_db_xml_cache.public"/>
                 <xsl:attribute name="external_schema" select="$external_schema"/>
                 <xsl:attribute name="p5Type.basedir" select="$p5Type.basedir"/>
-                
-                
-            <xsl:for-each select="get_all_xsd[ substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache'  and  substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache.public']" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
-                    <xsl:sort select="max( */*/count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))" order="ascending" data-type="number"/>
-                    <xsl:variable name="get_all_xsd_236" select="."/>
-                    <xsl:comment>
+                <xsl:comment>#909 simpleType</xsl:comment>
+                <xsl:apply-templates mode="#current">
+                    <xsl:with-param name="system_cache__appinfo:element_complexType.requested" select="'simpleType'" tunnel="yes"/>
+                </xsl:apply-templates>
+                <xsl:comment>#913 complexType</xsl:comment>
+                <xsl:apply-templates mode="#current">
+                    <xsl:with-param name="system_cache__appinfo:element_complexType.requested" select="'complexType'" tunnel="yes"/>
+                </xsl:apply-templates>
+                <xsl:comment>#917 element</xsl:comment>
+                <xsl:apply-templates mode="#current">
+                    <xsl:with-param name="system_cache__appinfo:element_complexType.requested" select="'element'" tunnel="yes"/>
+                </xsl:apply-templates>
+            </system_cache__appinfo:element_complexType>
+    </xsl:template>
+    
+    <xsl:template match="system_cache__appinfo:get_all_xsd[ substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache'  and  substring-before(@system_cache__appinfo:document-uri,'/')!='default_db_xml_cache.public']" mode="system_cache__appinfo:element_complexType">
+        <xsl:param name="system_cache__appinfo:element_complexType.requested" required="yes" tunnel="yes"/>
+        <xsl:apply-templates mode="#current"/>        
+    </xsl:template>
+    
+    
+    <xsl:template match="system_cache__appinfo:get_all_xsd" mode="system_cache__appinfo:element_complexType">
+        <xsl:comment>#927 filtered default bypassed <xsl:value-of select="@system_cache__appinfo:document-uri"/></xsl:comment>
+    </xsl:template>
+    
+    <xsl:template match="schema" mode="system_cache__appinfo:element_complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:param name="system_cache__appinfo:element_complexType.requested" required="yes" tunnel="yes"/>
+        
+        <!--    <xsl:sort select="max( */*/count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))" order="ascending" data-type="number"/>-->
+            <xsl:variable name="get_all_xsd_236" select="."/>
+            <!--<xsl:comment>
                         max1="<xsl:value-of select="max( count(*/*/descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))"/>"
                         max1=2<xsl:value-of select="max( */*/count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))"/>"
                         246:detect_resource_type, przetwarzam schemat:<xsl:value-of select="@system_cache__appinfo:document-uri"/>; $targetNamespace:<xsl:value-of select="$targetNamespace"/>;
-                        @targetNamespace:<xsl:value-of select="schema/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>;</xsl:comment>
-                    <xsl:variable name="schema_node_144" select="."/>
-                    <xsl:for-each select="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"><!--[ @targetNamespace != $targetNamespace ] namespace::node() = $targetNamespace   and @targetNamespace='moj_ogrodek' -->
-                        <xsl:sort select="max( */count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))" order="ascending" data-type="number"/>
-                        <xsl:message>#239::detect_resource_type przetwarzam schemat:@targetNamespace:<xsl:value-of select="@targetNamespace"/>;</xsl:message>
-                        <xsl:variable name="prefix_83" select="namespace::node()[. = $targetNamespace]/name()"/>
-                        <xsl:variable name="targetNamespace_134" select="@targetNamespace"/>
-                        <!--<xsl:variable name="prefix_134" select="namespace::node()[. = $targetNamespace_134][1]/name()"/>--><!-- np. test_objects -->
-                        <xsl:variable name="prefix_134">
-                            <xsl:choose>
-                                <xsl:when test="string-length(namespace::node()[. = $targetNamespace_134][1]/name()) &gt; 0">
-                                    <xsl:value-of select="namespace::node()[. = $targetNamespace_134][1]/name()"/>
-                                    <xsl:message>#784-A TODO test=<xsl:value-of select="namespace::node()[. = $targetNamespace_134][1]/name()"/>;</xsl:message>
-                                </xsl:when>
-                                <xsl:when test="$schema_node_144/@WPS_Functions">
-                                    <xsl:message>#784-B TODO ERROR - FORCING PREFIX TO <xsl:value-of select="tokenize($schema_node_144/@system_cache__appinfo:document-uri,'/')[ position() = last()]"/></xsl:message>
-                                    <xsl:value-of select="tokenize(../@system_cache__appinfo:document-uri,'/')[ position() = last()]"/>
-                                </xsl:when>
-                                <xsl:when test="contains(../@system_cache__appinfo:document-uri-full,$p5Type.basedir)">
-                                    <xsl:message>#784-C TODO TYPES WARNING - FORCING PREFIX TO <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(@targetNamespace)"/></xsl:message>
-                                    <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(@targetNamespace)"/>
-                                </xsl:when>
-                            </xsl:choose>
-                        </xsl:variable>
-                        <xsl:if test="not(@targetNamespace) or not( string-length($prefix_134) &gt; 0) ">
-                            <xsl:message terminate="yes">#394 ERROR - schema error - set @targetNamespace and prefix for shema file:<xsl:value-of select="../@system_cache__appinfo:document-uri-full"/> ; ($prefix_134=<xsl:value-of select="$prefix_134"/>)</xsl:message>
-                        </xsl:if>
-                        <xsl:choose>
-                            <xsl:when test="@targetNamespace='http://www.w3.org/2001/XMLSchema'"/>
-                            <xsl:when test="@targetNamespace='http://biuro.biall-net.pl/p5/schema/types'"/>
-                            <xsl:when test="contains(@system_cache__appinfo:document-uri-full,'http://')"/>
-                            <xsl:when test="contains(@system_cache__appinfo:document-uri-full,'https://')"/>
-                            <xsl:otherwise>
-                                <xsl:element name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external.get_all_xsd">
-                                    <xsl:copy-of select="@*"/>
-                                    <xsl:copy-of select=".././@*"/>
-                                </xsl:element>
-                            </xsl:otherwise>
-                        </xsl:choose>
-                        <xsl:if test="count(.//node()[(local-name()='element' or local-name()='simpleType' or local-name()='complexType' or local-name()='sequence' or local-name()='choice' or local-name()='complexContent' or local-name()='extension' ) and not(@id)])=0">
-                            <xsl:for-each select="(element|complexType|simpleType)"  xpath-default-namespace="http://www.w3.org/2001/XMLSchema"><!-- dla ograniczenia mozna [$prefix_134='test_objects']-->
-                                    <xsl:sort select="max( count(descendant-or-self::*[@ref or not(contains(@type,'xs:')) ]))" order="ascending" data-type="number"/>
-                                    <xsl:variable name="complexType_or_element_name186">
-                                        <xsl:choose>
-                                            <xsl:when test="local-name()='element'"><xsl:value-of select="@name"/></xsl:when>
-                                            <xsl:when test="local-name()='complexType'"><xsl:value-of select="@name"/></xsl:when>
-                                            <xsl:when test="local-name()='simpleType'"><xsl:value-of select="@name"/></xsl:when>
-                                            <xsl:otherwise><xsl:message terminate="yes">#391 it should work only for element or complexType</xsl:message></xsl:otherwise>
-                                        </xsl:choose>
-                                    </xsl:variable>
-                                    <xsl:comment>157: count(descendant-or-self::*)="<xsl:value-of select="count(descendant-or-self::*)"/>" 
+                        @targetNamespace:<xsl:value-of select="schema/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>;</xsl:comment>-->
+            <xsl:variable name="schema_node_144" select="parent::*"/>
+            <!--<xsl:for-each select="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">--><!--[ @targetNamespace != $targetNamespace ] namespace::node() = $targetNamespace   and @targetNamespace='moj_ogrodek' -->
+            <!--<xsl:sort select="max( */count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ]))+" order="ascending" data-type="number"/>-->
+            <xsl:message>#239::detect_resource_type przetwarzam schemat:@targetNamespace:<xsl:value-of select="@targetNamespace"/>;</xsl:message>
+            <!--<xsl:variable name="prefix_83" select="namespace::node()[. = $targetNamespace]/name()"/>-->
+            <xsl:variable name="targetNamespace_134" select="@targetNamespace"/>
+            <!--<xsl:variable name="prefix_134" select="namespace::node()[. = $targetNamespace_134][1]/name()"/>--><!-- np. test_objects -->
+            <xsl:variable name="prefix_134">
+                <xsl:choose>
+                    <xsl:when test="string-length(namespace::node()[. = $targetNamespace_134][1]/name()) &gt; 0">
+                        <xsl:value-of select="namespace::node()[. = $targetNamespace_134][1]/name()"/>
+                        <xsl:message>#784-A TODO test=<xsl:value-of select="namespace::node()[. = $targetNamespace_134][1]/name()"/>;</xsl:message>
+                    </xsl:when>
+                    <xsl:when test="$schema_node_144/@WPS_Functions">
+                        <xsl:message>#784-B TODO ERROR - FORCING PREFIX TO <xsl:value-of select="tokenize($schema_node_144/@system_cache__appinfo:document-uri,'/')[ position() = last()]"/></xsl:message>
+                        <xsl:value-of select="tokenize(../@system_cache__appinfo:document-uri,'/')[ position() = last()]"/>
+                    </xsl:when>
+                    <xsl:when test="contains(../@system_cache__appinfo:document-uri-full,$p5Type.basedir)">
+                        <xsl:message>#784-C TODO TYPES WARNING - FORCING PREFIX TO <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(@targetNamespace)"/></xsl:message>
+                        <xsl:value-of select="system_cache__appinfo:escape_object_prefix_to_string(@targetNamespace)"/>
+                    </xsl:when>
+                </xsl:choose>
+            </xsl:variable>
+            <xsl:if test="not(@targetNamespace) or not( string-length($prefix_134) &gt; 0) ">
+                <xsl:message terminate="yes">#394 ERROR - schema error - set @targetNamespace and prefix for shema file:<xsl:value-of select="../@system_cache__appinfo:document-uri-full"/> ; ($prefix_134=<xsl:value-of select="$prefix_134"/>)</xsl:message>
+            </xsl:if>
+            <xsl:choose>
+                <xsl:when test="not($system_cache__appinfo:element_complexType.requested='element')"/>
+                <xsl:when test="@targetNamespace='http://www.w3.org/2001/XMLSchema'"/>
+                <xsl:when test="@targetNamespace='http://biuro.biall-net.pl/p5/schema/types'"/>
+                <xsl:when test="contains(@system_cache__appinfo:document-uri-full,'http://')"/>
+                <xsl:when test="contains(@system_cache__appinfo:document-uri-full,'https://')"/>
+                <xsl:otherwise>
+                    <xsl:element name="system_cache__appinfo:object_install_se_ant_object.generate_tables_from_external.get_all_xsd">
+                        <xsl:copy-of select="@*"/>
+                        <xsl:copy-of select=".././@*"/>
+                    </xsl:element>
+                </xsl:otherwise>
+            </xsl:choose>
+            
+            <!--</xsl:for-each>-->
+        
+        
+        
+        <xsl:if test="count(.//node()[(local-name()='element' or local-name()='simpleType' or local-name()='complexType' or local-name()='sequence' or local-name()='choice' or local-name()='complexContent' or local-name()='extension' ) and not(@id)])=0">
+            <xsl:for-each select="*[local-name()=$system_cache__appinfo:element_complexType.requested]"  xpath-default-namespace="http://www.w3.org/2001/XMLSchema"><!-- dla ograniczenia mozna [$prefix_134='test_objects']-->
+                <xsl:sort select="max( count(descendant-or-self::*[@ref or not(contains(@type,'xs:')) ]))" order="ascending" data-type="number"/>
+                <xsl:variable name="complexType_or_element_name186">
+                    <xsl:choose>
+                        <xsl:when test="local-name()='element'"><xsl:value-of select="@name"/></xsl:when>
+                        <xsl:when test="local-name()='complexType'"><xsl:value-of select="@name"/></xsl:when>
+                        <xsl:when test="local-name()='simpleType'"><xsl:value-of select="@name"/></xsl:when>
+                        <xsl:otherwise><xsl:message terminate="yes">#391 it should work only for element or complexType</xsl:message></xsl:otherwise>
+                    </xsl:choose>
+                </xsl:variable>
+                <xsl:comment>157: count(descendant-or-self::*)="<xsl:value-of select="count(descendant-or-self::*)"/>" 
                                         count2(descendant-or-self::*)="<xsl:value-of select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>"
                                         buduje plaski obiekt/mape przetwarzania w celu przeszukania relacji @id=<xsl:value-of select="@id"/>; targetNamespace:<xsl:value-of select="$prefix_134"/>; 
                                         $complexType_or_element_name186=<xsl:value-of select="$complexType_or_element_name186"/>; name:<xsl:value-of select="@name"/>; namespace-uri-for-prefix=<xsl:value-of select="namespace-uri-for-prefix($prefix_134,.)"/></xsl:comment>
-                                    <xsl:message>157: buduje plaski obiekt/mape przetwarzania w celu przeszukania relacji @id=<xsl:value-of select="@id"/>; targetNamespace:<xsl:value-of select="$prefix_134"/>; $complexType_or_element_name186=<xsl:value-of select="$complexType_or_element_name186"/>; name:<xsl:value-of select="@name"/>; namespace-uri-for-prefix=<xsl:value-of select="namespace-uri-for-prefix($prefix_134,.)"/></xsl:message>
-                                    <xsl:choose>
-                                        <xsl:when test="local-name()='element'">
-                                            <build_cache name="build_element" >
-                                                <xsl:attribute name="id" select="@id"/>
-                                                <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
-                                                <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
-                                                <xsl:attribute name="system_cache__appinfo:document-uri" select="../.././@system_cache__appinfo:document-uri"/>
-                                                <xsl:attribute name="system_cache__appinfo:document-uri-full" select="../.././@system_cache__appinfo:document-uri-full"/>
-                                                <xsl:attribute name="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename" select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
-                                                <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>
-                                                <system_cache__appinfo:element-filename-prefixed><xsl:value-of select="system_cache__appinfo:element-filename-prefixed('build_element',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename-prefixed>
-                                                <p5_tr_map:element-filename><xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_element_cache',concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename>
-                                                <p5_tr_map:element-filename-prefixed><xsl:value-of select="p5_tr_map:element-filename-prefixed(concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename-prefixed>
-                                                <system_cache__appinfo:targetNamespace><xsl:value-of select="../@targetNamespace"/></system_cache__appinfo:targetNamespace>
-                                                <system_cache__appinfo:name><xsl:value-of select="@name"/></system_cache__appinfo:name>
-                                                <system_cache__appinfo:prefix><xsl:value-of select="$prefix_134"/></system_cache__appinfo:prefix>
-                                                <p5_simpleSchema_map:element-filename><xsl:value-of select="p5_simpleSchema_map:element-filename(concat($prefix_134,':',$complexType_or_element_name186),.././@targetNamespace)"/></p5_simpleSchema_map:element-filename>
-                                                <!--<system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename><xsl:value-of select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename('system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type.single_element',concat($prefix_134,':',$complexType_or_element_name186))"/></system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename>-->
-                                            </build_cache>
-                                        </xsl:when>
-                                        <xsl:when test="local-name()='complexType'">
-                                            <build_cache name="build_complexType" >
-                                                <xsl:attribute name="id" select="@id"/>
-                                                <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
-                                                <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
-                                                <!--<xsl:message>#808.1.DEBUG ok</xsl:message>-->
-                                                <xsl:attribute name="system_cache__appinfo:document-uri" select="../.././@system_cache__appinfo:document-uri"/>
-                                                <!--<xsl:message>#808.2.DEBUG ok</xsl:message>-->
-                                                <xsl:attribute name="system_cache__appinfo:document-uri-full" select="../.././@system_cache__appinfo:document-uri-full"/>
-                                                <!--<xsl:message>#808.3.DEBUG ok</xsl:message>-->
-                                                <xsl:attribute name="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename" select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
-                                                <!--<xsl:message>#808.4.DEBUG ok</xsl:message>-->
-                                                <xsl:attribute name="complexType_or_element_name" select="$complexType_or_element_name186"/>
-                                                <!--<xsl:message>#808.5.DEBUG ok</xsl:message>-->
-                                                <xsl:attribute name="p5opr:element-filename" select="p5opr:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
-                                                <!--<xsl:message>#808.6.DEBUG ok</xsl:message>-->
-                                                <xsl:attribute name="system_cache__appinfo:path" select="concat(../@targetNamespace,'/',$complexType_or_element_name186)"/>
-                                                <with-param name="complexType"
-                                                    select="{$prefix_134}:{$complexType_or_element_name186}"/>
-                                                <!--<xsl:message>#808.7.DEBUG ok</xsl:message>-->
-                                                <system_cache__appinfo:element-filename><xsl:value-of select="system_cache__appinfo:element-filename('build_complexType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename>
-                                                <!--<system_cache__appinfo:element-filename-prefixed><xsl:value-of select="system_cache__appinfo:element-filename-prefixed('build_complexType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename-prefixed>-->
-                                                <!--<xsl:message>#808.8.DEBUG ok</xsl:message>-->
-                                                <p5_tr_map:element-filename><xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_complexType_cache',concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename>
-                                                <!--<xsl:message>#808.9.DEBUG ok</xsl:message>-->
-                                                <system_cache__appinfo:targetNamespace><xsl:value-of select="../@targetNamespace"/></system_cache__appinfo:targetNamespace>
-                                                <system_cache__appinfo:name><xsl:value-of select="@name"/></system_cache__appinfo:name>
-                                                <system_cache__appinfo:prefix><xsl:value-of select="$prefix_134"/></system_cache__appinfo:prefix>
-                                                <!--<system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename><xsl:value-of select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename('system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type.single_complexType',concat($prefix_134,':',$complexType_or_element_name186))"/></system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename>-->
-                                            </build_cache>
-                                        </xsl:when>
-                                        
-                                        <xsl:when test="local-name()='simpleType'">
-                                            <build_cache name="build_complexType__simpleType" >
-                                                <xsl:attribute name="id" select="@id"/>
-                                                <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
-                                                <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
-                                                <xsl:attribute name="system_cache__appinfo:document-uri" select="../.././@system_cache__appinfo:document-uri"/>
-                                                <xsl:attribute name="system_cache__appinfo:document-uri-full" select="../.././@system_cache__appinfo:document-uri-full"/>
-                                                <xsl:attribute name="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename" select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
-                                                <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="debug.targetNamespace" select="parent::*/@targetNamespace "/>
-                                                <!--<xsl:attribute name="debug.prefix" select="parent::*/namespace::*[ . = @targetNamespace ]/name()"/>-->
-                                                <xsl:attribute name="debug.prefix" select="parent::*/namespace::*[ . = ../@targetNamespace ]/name()"/>
-                                                <xsl:attribute name="debug.prefix2" select="parent::*/namespace::*[ . = ../@targetNamespace and not(name()='') ]/name()"/>
-                                                <!--<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}"/>-->
-                                                <xsl:choose>
-                                                    <xsl:when test="not(parent::*/namespace::*[ . = ../@targetNamespace and not(name()='') ])">
-                                                        <xsl:message terminate="yes">#952 ERROR WITH @targetNamespace="<xsl:value-of select="parent::*/@targetNamespace "/>"; @system_cache__appinfo:document-uri-full="<xsl:value-of select="../.././@system_cache__appinfo:document-uri-full"/>" </xsl:message>
-                                                    </xsl:when>
-                                                </xsl:choose>
-                                                <with-param name="element" select="{parent::*/namespace::*[ . = ../@targetNamespace and not(name()='')]/name()}:{$complexType_or_element_name186}"/>
-                                                <system_cache__appinfo:element-filename><xsl:value-of select="system_cache__appinfo:element-filename('build_complexType__simpleType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename>
-                                                <system_cache__appinfo:element-filename-prefixed><xsl:value-of select="system_cache__appinfo:element-filename-prefixed('build_complexType__simpleType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename-prefixed>
-                                                <p5_tr_map:element-filename><xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_element_cache',concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename>
-                                                <p5_tr_map:element-filename-prefixed><xsl:value-of select="p5_tr_map:element-filename-prefixed(concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename-prefixed>
-                                                <system_cache__appinfo:targetNamespace><xsl:value-of select="../@targetNamespace"/></system_cache__appinfo:targetNamespace>
-                                                <system_cache__appinfo:name><xsl:value-of select="@name"/></system_cache__appinfo:name>
-                                                <system_cache__appinfo:prefix><xsl:value-of select="$prefix_134"/></system_cache__appinfo:prefix>
-                                                <p5_simpleSchema_map:element-filename><xsl:value-of select="p5_simpleSchema_map:element-filename(concat($prefix_134,':',$complexType_or_element_name186),.././@targetNamespace)"/></p5_simpleSchema_map:element-filename>
-                                                <!--<system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename><xsl:value-of select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename('system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type.single_element',concat($prefix_134,':',$complexType_or_element_name186))"/></system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename>-->
-                                            </build_cache>
-                                        </xsl:when>
-                                        
-                                    </xsl:choose>
-                              </xsl:for-each>
-                        </xsl:if>
-                    </xsl:for-each>
-                </xsl:for-each>
-            </system_cache__appinfo:element_complexType>
+                <xsl:message>157: buduje plaski obiekt/mape przetwarzania w celu przeszukania relacji @id=<xsl:value-of select="@id"/>; targetNamespace:<xsl:value-of select="$prefix_134"/>; $complexType_or_element_name186=<xsl:value-of select="$complexType_or_element_name186"/>; name:<xsl:value-of select="@name"/>; namespace-uri-for-prefix=<xsl:value-of select="namespace-uri-for-prefix($prefix_134,.)"/></xsl:message>
+                <xsl:choose>
+                    <xsl:when test="local-name()='element'">
+                        <build_cache name="build_element" >
+                            <xsl:attribute name="id" select="@id"/>
+                            <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
+                            <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri" select="../.././@system_cache__appinfo:document-uri"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri-full" select="../.././@system_cache__appinfo:document-uri-full"/>
+                            <xsl:attribute name="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename" select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
+                            <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:copy-of select="@system_cache__appinfo:path.2863.len.limit"/>
+                            <!--<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>
+                            <system_cache__appinfo:element-filename-prefixed><xsl:value-of select="system_cache__appinfo:element-filename-prefixed('build_element',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename-prefixed>
+                            <p5_tr_map:element-filename><xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_element_cache',concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename>
+                            <p5_tr_map:element-filename-prefixed><xsl:value-of select="p5_tr_map:element-filename-prefixed(concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename-prefixed>
+                            <system_cache__appinfo:targetNamespace><xsl:value-of select="../@targetNamespace"/></system_cache__appinfo:targetNamespace>
+                            <system_cache__appinfo:name><xsl:value-of select="@name"/></system_cache__appinfo:name>
+                            <system_cache__appinfo:prefix><xsl:value-of select="$prefix_134"/></system_cache__appinfo:prefix>
+                            <p5_simpleSchema_map:element-filename><xsl:value-of select="p5_simpleSchema_map:element-filename(concat($prefix_134,':',$complexType_or_element_name186),.././@targetNamespace)"/></p5_simpleSchema_map:element-filename>
+                            <!--<system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename><xsl:value-of select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename('system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type.single_element',concat($prefix_134,':',$complexType_or_element_name186))"/></system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename>-->
+                        </build_cache>
+                    </xsl:when>
+                    <xsl:when test="local-name()='complexType'">
+                        <build_cache name="build_complexType" >
+                            <xsl:attribute name="id" select="@id"/>
+                            <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
+                            <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
+                            <!--<xsl:message>#808.1.DEBUG ok</xsl:message>-->
+                            <xsl:attribute name="system_cache__appinfo:document-uri" select="../.././@system_cache__appinfo:document-uri"/>
+                            <!--<xsl:message>#808.2.DEBUG ok</xsl:message>-->
+                            <xsl:attribute name="system_cache__appinfo:document-uri-full" select="../.././@system_cache__appinfo:document-uri-full"/>
+                            <!--<xsl:message>#808.3.DEBUG ok</xsl:message>-->
+                            <xsl:attribute name="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename" select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
+                            <!--<xsl:message>#808.4.DEBUG ok</xsl:message>-->
+                            <xsl:attribute name="complexType_or_element_name" select="$complexType_or_element_name186"/>
+                            <!--<xsl:message>#808.5.DEBUG ok</xsl:message>-->
+                            <xsl:attribute name="p5opr:element-filename" select="p5opr:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
+                            <!--<xsl:message>#808.6.DEBUG ok</xsl:message>-->
+                            <xsl:attribute name="system_cache__appinfo:path" select="concat(../@targetNamespace,'/',$complexType_or_element_name186)"/>
+                            <xsl:copy-of select="@system_cache__appinfo:path.2863.len.limit"/>
+                            <with-param name="complexType"
+                                select="{$prefix_134}:{$complexType_or_element_name186}"/>
+                            <!--<xsl:message>#808.7.DEBUG ok</xsl:message>-->
+                            <system_cache__appinfo:element-filename><xsl:value-of select="system_cache__appinfo:element-filename('build_complexType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename>
+                            <!--<system_cache__appinfo:element-filename-prefixed><xsl:value-of select="system_cache__appinfo:element-filename-prefixed('build_complexType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename-prefixed>-->
+                            <!--<xsl:message>#808.8.DEBUG ok</xsl:message>-->
+                            <p5_tr_map:element-filename><xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_complexType_cache',concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename>
+                            <!--<xsl:message>#808.9.DEBUG ok</xsl:message>-->
+                            <system_cache__appinfo:targetNamespace><xsl:value-of select="../@targetNamespace"/></system_cache__appinfo:targetNamespace>
+                            <system_cache__appinfo:name><xsl:value-of select="@name"/></system_cache__appinfo:name>
+                            <system_cache__appinfo:prefix><xsl:value-of select="$prefix_134"/></system_cache__appinfo:prefix>
+                            <!--<system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename><xsl:value-of select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename('system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type.single_complexType',concat($prefix_134,':',$complexType_or_element_name186))"/></system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename>-->
+                        </build_cache>
+                    </xsl:when>
+                    
+                    <xsl:when test="local-name()='simpleType'">
+                        <build_cache name="build_complexType__simpleType" >
+                            <xsl:attribute name="id" select="@id"/>
+                            <xsl:attribute name="count" select="count(descendant-or-self::*[ @ref or not(contains(@type,'xs:')) ])"/>
+                            <xsl:attribute name="id.int.rand" select="system_cache__appinfo:id.int.rand(@id)"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri" select="../.././@system_cache__appinfo:document-uri"/>
+                            <xsl:attribute name="system_cache__appinfo:document-uri-full" select="../.././@system_cache__appinfo:document-uri-full"/>
+                            <xsl:attribute name="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename" select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename(../.././@system_cache__appinfo:document-uri, .././@targetNamespace,local-name(),@name)"/>
+                            <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="debug.targetNamespace" select="parent::*/@targetNamespace "/>
+                            <!--<xsl:attribute name="debug.prefix" select="parent::*/namespace::*[ . = @targetNamespace ]/name()"/>-->
+                            <xsl:attribute name="debug.prefix" select="parent::*/namespace::*[ . = ../@targetNamespace ]/name()"/>
+                            <xsl:attribute name="debug.prefix2" select="parent::*/namespace::*[ . = ../@targetNamespace and not(name()='') ]/name()"/>
+                            <xsl:copy-of select="@system_cache__appinfo:path.2863.len.limit"/>
+                            <!--<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}"/>-->
+                            <xsl:choose>
+                                <xsl:when test="not(parent::*/namespace::*[ . = ../@targetNamespace and not(name()='') ])">
+                                    <xsl:message terminate="yes">#952 ERROR WITH @targetNamespace="<xsl:value-of select="parent::*/@targetNamespace "/>"; @system_cache__appinfo:document-uri-full="<xsl:value-of select="../.././@system_cache__appinfo:document-uri-full"/>" </xsl:message>
+                                </xsl:when>
+                            </xsl:choose>
+                            <with-param name="element" select="{parent::*/namespace::*[ . = ../@targetNamespace and not(name()='')]/name()}:{$complexType_or_element_name186}"/>
+                            <system_cache__appinfo:element-filename><xsl:value-of select="system_cache__appinfo:element-filename('build_complexType__simpleType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename>
+                            <system_cache__appinfo:element-filename-prefixed><xsl:value-of select="system_cache__appinfo:element-filename-prefixed('build_complexType__simpleType',@name,$prefix_134,$targetNamespace_134)"/></system_cache__appinfo:element-filename-prefixed>
+                            <p5_tr_map:element-filename><xsl:value-of select="p5_tr_map:element-filename('go_recurse_from_root_by_build_element_cache',concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename>
+                            <p5_tr_map:element-filename-prefixed><xsl:value-of select="p5_tr_map:element-filename-prefixed(concat($prefix_134,':',$complexType_or_element_name186))"/></p5_tr_map:element-filename-prefixed>
+                            <system_cache__appinfo:targetNamespace><xsl:value-of select="../@targetNamespace"/></system_cache__appinfo:targetNamespace>
+                            <system_cache__appinfo:name><xsl:value-of select="@name"/></system_cache__appinfo:name>
+                            <system_cache__appinfo:prefix><xsl:value-of select="$prefix_134"/></system_cache__appinfo:prefix>
+                            <p5_simpleSchema_map:element-filename><xsl:value-of select="p5_simpleSchema_map:element-filename(concat($prefix_134,':',$complexType_or_element_name186),.././@targetNamespace)"/></p5_simpleSchema_map:element-filename>
+                            <!--<system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename><xsl:value-of select="system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename('system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type.single_element',concat($prefix_134,':',$complexType_or_element_name186))"/></system_cache__resources_tree_generate_xsl_required_occurs_raport:element-filename>-->
+                        </build_cache>
+                    </xsl:when>
+                    
+                </xsl:choose>
+            </xsl:for-each>
+        </xsl:if>
+        
     </xsl:template>
     
-    
     <!-- do aktualizowania pozycji w schemache-->
     <xsl:template name="system_cache__appinfo:position">
         <xsl:param name="xml"/>

+ 3 - 0
SE/schema/default_db_xml_cache.public/xml-schema-primitives.xsl

@@ -9,6 +9,9 @@
     
    <xsl:include href="../Types/types.variable.xsl"/>
    <xsl:include href="../Types/p5.variable.xsl"/>
+   <xsl:include href="../Types/SVG.variable.xsl"/>
+   <xsl:include href="../Types/xlink.variable.xsl"/>
+   <xsl:include href="../SystemObjects/xml.variable.xsl"/>
    
    <xsl:variable name="system_cache__appinfo:primitives.xsd">
       

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

@@ -18,6 +18,7 @@
     
     
     <xsl:output indent="yes"/>
+    <xsl:param name="system_cache__appinfo:path.2863.len.limit" select="1000"/>
     <xsl:param name="debug_level_param" /><!-- select="4" -->
     
     <xsl:param name="default_db.instance.xml" required="yes"/>
@@ -40,7 +41,7 @@
     <xsl:variable name="debug_level">
         <xsl:choose>
             <xsl:when test="$debug_level_param"><xsl:value-of select="$debug_level_param"/></xsl:when>
-            <xsl:otherwise>1</xsl:otherwise>
+            <xsl:otherwise><xsl:value-of select="4"/></xsl:otherwise>
         </xsl:choose>
     </xsl:variable>
     
@@ -3082,7 +3083,7 @@
         <xsl:param name="restriction_base"/>
         <xsl:param name="xpath_local"/>
         <xsl:param name="recurse" />
-        <xsl:if test="$debug_level>3"><xsl:message>
+        <xsl:if test="number($debug_level) &gt; 3"><xsl:message>
             321:odpalilem attributeGroup template, $path:<xsl:value-of select="$path"/>;
         </xsl:message></xsl:if>
         <xsl:element name="{name()}">
@@ -3196,7 +3197,7 @@
                 
                 <!--<xsl:variable name="element-filename" select="system_cache__appinfo:escape_object_prefix_to_string(concat(system_cache__appinfo:prefix_from_targetNamespace($system_cache__appinfo:vrtfNamespaces,$type_uri),':',$complexType))"/>-->
                 <xsl:choose>
-                    <xsl:when test="(string-length($path) &gt; 100 and $type_uri='http://docs.oasis-open.org/wsbpel/2.0/process/executable' ) or string-length($path) &gt; 2000 ">
+                    <xsl:when test="(string-length($path) &gt; 100 and $type_uri='http://docs.oasis-open.org/wsbpel/2.0/process/executable' ) or string-length($path) &gt; number($system_cache__appinfo:path.2863.len.limit) ">
                         <xsl:message terminate="no">#2863 TODO apply mode xp5r:cache </xsl:message>
                         <xp5r:cache xp5r:id="{generate-id(../.)}" xp5r:basedir="{$basedir}" xp5r:stylesheet="{$basedir}/default_db_xml_cache/build_complexType.xsl">
                             <xp5r:apply-template mode="system_cache__appinfo:build_flat_schema">