a.binder 9 роки тому
батько
коміт
29574553a8
21 змінених файлів з 5881 додано та 50 видалено
  1. 4 26
      SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/ADMIN_USERS.dita
  2. 0 4
      SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/build.xml
  3. 606 0
      SE/schema/default_db_xml_cache.public/appinfo.xsd
  4. 37 11
      SE/schema/default_db_xml_cache.public/build_recurse_ant.xsl
  5. 9 0
      SE/schema/default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl
  6. 25 0
      SE/schema/default_db_xml_cache.public/crm_testy_pytania.xsd
  7. 23 0
      SE/schema/default_db_xml_cache.public/crm_wskaznik.xsd
  8. 114 0
      SE/schema/default_db_xml_cache.public/graph_relation_elements.xsd
  9. 1 1
      SE/schema/default_db_xml_cache.public/import_resource_table_xml_from_api.xsl
  10. 513 0
      SE/schema/default_db_xml_cache.public/p5_obj_vars.xsd
  11. 38 0
      SE/schema/default_db_xml_cache.public/p5_obj_vars_php.xsd
  12. 2553 0
      SE/schema/default_db_xml_cache.public/p5_tr_map.xsd
  13. 50 0
      SE/schema/default_db_xml_cache.public/procesy5_bpmn_cache.xsd
  14. 76 0
      SE/schema/default_db_xml_cache.public/procesy5_objects_item_links.xsd
  15. 400 0
      SE/schema/default_db_xml_cache.public/procesy5_xsd_business_objects.xsd
  16. 189 0
      SE/schema/default_db_xml_cache.public/resources_tree_generate_xsl_require_occurs_raport.xsd
  17. 234 0
      SE/schema/default_db_xml_cache.public/sso_procesy5.xsd
  18. 506 0
      SE/schema/default_db_xml_cache.public/struktura_silnika_obiektow_procesy5.xsd
  19. 56 8
      SE/schema/default_db_xml_cache.public/topicProcesy5.xsd
  20. 442 0
      SE/schema/default_db_xml_cache.public/web_ui.xsd
  21. 5 0
      SE/superedit-INSTALL_SES_PROCESY_A.php

+ 4 - 26
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/ADMIN_USERS.dita

@@ -1,9 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <?xml version="1.0" encoding="UTF-8"?>
-<RelatedFeature xpath="ID"  typeName="p5_default_db:ADMIN_USERS"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+<RelatedFeature xpath="ID"  typeName="p5_default_db:ADMIN_USERS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
   xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
   xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
-  <!-- oznacza to refa z w $var=ID_BILLING_OWNER jest FeatureID=BILLING_OWNER.$var do sciagniecia z p5_default_db:BILLING_OWNER -->
-  <!--https://biuro.biall-net.pl/SE/version-git/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/out/null400667363.pdf-->
 <topic id="untitled4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 <topic id="untitled4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
   xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
   <title><ph>Dane wyposazenia dla </ph><ph xpath="ID"/><ph>-</ph><ph xpath="ADM_NAME"/>
   <title><ph>Dane wyposazenia dla </ph><ph xpath="ID"/><ph>-</ph><ph xpath="ADM_NAME"/>
@@ -29,6 +26,8 @@
               <entry/>
               <entry/>
             </row>
             </row>
             <RelatedFeature xpath="ADMIN_USERS_ID" xpath_value="../ID" typeName="p5_default_db:DEVICES">  <!-- test sciagniecia powiazanych pism do sprawy -->
             <RelatedFeature xpath="ADMIN_USERS_ID" xpath_value="../ID" typeName="p5_default_db:DEVICES">  <!-- test sciagniecia powiazanych pism do sprawy -->
+                <RelatedFilter xpath="PARENT_ID" xpath_value=""/>
+              <!-- to disable copied records  -->
               <row>
               <row>
                 <entry xpath="ID" />
                 <entry xpath="ID" />
                 <entry xpath="T_DEVICE_TYPE"/>
                 <entry xpath="T_DEVICE_TYPE"/>
@@ -48,27 +47,6 @@
         </tgroup>
         </tgroup>
       </table>
       </table>
     </p> 
     </p> 
-   <!-- <data-about>
-      <data><apiname base="PROCES_INCLUDE">1607</apiname></data>
-    </data-about>-->
-    <!--<simpletable id="simpletable_uym_ps1_zy">
-      <strow>
-        <stentry>
-          <RelatedFeature xpath="ID" xpath_value="../ID_BILLING_OWNER" typeName="p5_default_db:BILLING_OWNER"></RelatedFeature>
-          
-        </stentry>
-        <stentry>
-        </stentry>
-      </strow>
-    </simpletable>-->
-    
   </body>
   </body>
-  
-  <!--<topic id="topic_e22_jwx_yx">
-    <title>title2</title>
-    <body>
-      <p>body topic2</p>
-    </body>
-  </topic>-->
-</topic>
+  </topic>
 </RelatedFeature>
 </RelatedFeature>

+ 0 - 4
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/build.xml

@@ -27,7 +27,6 @@
     />
     />
     -->
     -->
     
     
-    
     <!---DpasswordBase64Basic="xxxx=="
     <!---DpasswordBase64Basic="xxxx=="
         -DtypeName="p5_default_db:IN7_DZIENNIK_KORESP" 
         -DtypeName="p5_default_db:IN7_DZIENNIK_KORESP" 
         -Dxpath=ID -Dxpath_value=1000 
         -Dxpath=ID -Dxpath_value=1000 
@@ -40,7 +39,6 @@
     <property name="url" value="${url}"/>
     <property name="url" value="${url}"/>
     <property name="webRootUrl" value="${$webRootUrl}"/>
     <property name="webRootUrl" value="${$webRootUrl}"/>
 
 
-
     <property name="api_url" value="https://biuro.biall-net.pl/SE/version-git/wfs-data.php"/>
     <property name="api_url" value="https://biuro.biall-net.pl/SE/version-git/wfs-data.php"/>
     <property name="namespace_prefix" value="p5_default_db"/> <!-- ex: p5_default_db to complete after p5_default_db:IN7_DZIENNIK_KORESP -->
     <property name="namespace_prefix" value="p5_default_db"/> <!-- ex: p5_default_db to complete after p5_default_db:IN7_DZIENNIK_KORESP -->
     <property name="typeName" value="${typeName}"/> <!-- to be set initially ex: p5_default_db:IN7_DZIENNIK_KORESP - be careful not to give it in apostrophs like 'p5_default_db:IN7_DZIENNIK_KORESP' - it wont work! -->
     <property name="typeName" value="${typeName}"/> <!-- to be set initially ex: p5_default_db:IN7_DZIENNIK_KORESP - be careful not to give it in apostrophs like 'p5_default_db:IN7_DZIENNIK_KORESP' - it wont work! -->
@@ -49,8 +47,6 @@
     
     
     <!-- variables to first transform of doc for then get related features -->
     <!-- variables to first transform of doc for then get related features -->
     <!--<property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>--> <!-- katalog z xsl z projektu src-xmlschema.git -->
     <!--<property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>--> <!-- katalog z xsl z projektu src-xmlschema.git -->
-  
-    
     
     
     <!--<tempfile property="uuid" deleteonexit="yes"/>-->
     <!--<tempfile property="uuid" deleteonexit="yes"/>-->
     <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>
     <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>

+ 606 - 0
SE/schema/default_db_xml_cache.public/appinfo.xsd

@@ -0,0 +1,606 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:xml="http://www.w3.org/XML/1998/namespace"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:fg="http://www.FGolubov.com/XMLEditor" vc:minVersion="1.1" elementFormDefault="qualified">
+    <xs:import schemaLocation="http://www.w3.org/2001/xml.xsd"
+        namespace="http://www.w3.org/XML/1998/namespace"/>
+    <xs:annotation>
+        <xs:documentation>Schemat do appinfo do określania informacji o relacjach - doswiadczalny - propozycja - DRAFT
+
+@2015-11-19 modelowa struktura obietkow generowanych przez algorytm tworzenia mapy przetwarzania obiektow</xs:documentation>
+    </xs:annotation>
+    <xs:complexType name="relation_info" id="system_cache__appinfo___d149e9">
+        <xs:annotation id="system_cache__appinfo___d149e11">
+            <xs:documentation>Struktura do wstawiania do appinfo w schematach XSD w miejscu dowiązania relacji do innej tabeli. Z reguły w relacjach 1-1 w kolumnie tabeli lokalnej pojawiał się znacznik klucza tabely zdalnej. </xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__appinfo___d149e17">
+            <xs:element name="local_column_name" type="xs:string"
+                id="system_cache__appinfo___d149e19">
+                <xs:annotation id="system_cache__appinfo___d149e21">
+                    <xs:documentation>W przypadku stworzenia relacji do tabeli zdalnej nie jest możliwe wprowadzenie nazwy kolumny, dla tego należy w tym polu wprowadzić nazwę kolumny, w ramach której dana relacja będzie prowadzona. W danej kolumnie silnik powinien trzymać aktualne dane relacji, mogą być one "cache" oraz obsługiwane przez triggery.</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="schema">
+        <xs:complexContent>
+            <xs:extension base="xs:anyType"/>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="schema" type="system_cache__appinfo:schema"/>
+    <xs:element name="relation_info" type="system_cache__appinfo:relation_info"
+        id="system_cache__appinfo___d149e30"/>
+    <xs:attributeGroup name="change_root_anyelement" id="system_cache__appinfo___d149e32">
+        <xs:attribute default="1" name="dig_recurse" id="system_cache__appinfo___d149e34">
+            <xs:annotation id="system_cache__appinfo___d149e36">
+                <xs:documentation>Kazdy element ktory ma sluzyc przeszukiwaniu/filtrowaniu w glab powinien miec ten atrybut :
+
+W przypadku checi podmiany elementu w jakims complexType - nalezy wlaczyc te atrybuty w elementach:
+complexType, sequence, element . Ostatni będzie podmieniany, ale to zalezy od innego atrybutu.</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attribute name="change_optimize_id" id="system_cache__appinfo___d149e44">
+        <xs:annotation id="system_cache__appinfo___d149e46">
+            <xs:documentation>Jest to unikalny numer elementu dla rekordu zmiany. 
+
+Ostatni wezel bedzie miec powtorzony ten numer w polu @change_optimize_id_root</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attributeGroup name="change_medium_element" id="system_cache__appinfo___d149e54">
+        <xs:attribute default="1" name="dig_recurse" id="system_cache__appinfo___d149e56">
+            <xs:annotation id="system_cache__appinfo___d149e58">
+                <xs:documentation>Kazdy element ktory ma sluzyc przeszukiwaniu/filtrowaniu w glab powinien miec ten atrybut :
+
+W przypadku checi podmiany elementu w jakims complexType - nalezy wlaczyc te atrybuty w elementach:
+complexType, sequence, element . Ostatni będzie podmieniany, ale to zalezy od innego atrybutu.</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="change_replacement_element" id="system_cache__appinfo___d149e66">
+        <xs:attribute default="@name" name="replace_attribute_search"
+            id="system_cache__appinfo___d149e68">
+            <xs:annotation id="system_cache__appinfo___d149e70">
+                <xs:documentation>Po tym atrybucie bedzie odnajdywany odpowiedni element w drzewie docelowym. Ten atrybut dziala w parze z replace_attribute_value, ktory mowi o poszukiwanej wartosci tego atrybutu w drzewie przeszukiwanym. Nasz element zmieniany moze nie posiadac takiego atrybutu.</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="replace_attribute_value" id="system_cache__appinfo___d149e77">
+            <xs:annotation id="system_cache__appinfo___d149e79">
+                <xs:documentation>W przypadku checi podmiany elementu w complexType o nazwie @name='EMPLOYEE_TYPE' , nalezy w tym atrybucie podac jego wartosc:
+system_cache__appinfo:replace_attribute_value="EMPLOYEE_TYPE" </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute default="1" name="dig_recurse" id="system_cache__appinfo___d149e86">
+            <xs:annotation id="system_cache__appinfo___d149e88">
+                <xs:documentation>Kazdy element ktory ma sluzyc przeszukiwaniu/filtrowaniu w glab powinien miec ten atrybut :
+
+W przypadku checi podmiany elementu w jakims complexType - nalezy wlaczyc te atrybuty w elementach:
+complexType, sequence, element . Ostatni będzie podmieniany, ale to zalezy od innego atrybutu.</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attribute default="1" name="change_optimize_id_root" id="system_cache__appinfo___d149e96">
+        <xs:annotation id="system_cache__appinfo___d149e98">
+            <xs:documentation>Jest to numer item elementu zmiany, jaki ma byc wprowadzony do glownego drzewa.</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:complexType name="resource_desc_localized">
+        <xs:sequence>
+            <xs:element name="shortdesc">
+                <xs:simpleType>
+                    <xs:restriction base="xs:string">
+                        <xs:maxLength value="255"/>
+                    </xs:restriction>
+                </xs:simpleType>
+            </xs:element>
+            <xs:element name="longdesc" type="xs:string"/>
+        </xs:sequence>
+        <xs:attribute ref="xml:lang"/>
+    </xs:complexType>
+    <xs:element name="resource_desc_localized"/>
+    <xs:complexType name="change" id="system_cache__appinfo___d149e105">
+        <xs:annotation id="system_cache__appinfo___d149e107">
+            <xs:documentation>Obiekt ze struktura podrzedna, wskazujacy na kawalek struktury, ktory bedzie podmieniany w innym obiekcie. Uzywany przy modyfikacji schematu, definiuje sie complexType/sequence/element - wstawia sie specjalne znaczniki , dzieki czemu w duzym schemacie dany complexType/sequence/element o takich samych nazwach moze byc podmieniony z tym.
+
+Walidacja schematu nie dziala prawidlowo dla tego obiektu - wymagane jest redefine XSD_Schema w celu wlaczenia dodatkowych atrybutow. complexType zrobiony dla lepszej dokumentacji transformacji XSL uzywajacych tych struktur w silniku.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__appinfo___d149e113">
+            <xs:element name="item" id="system_cache__appinfo___d149e115">
+                <xs:complexType id="system_cache__appinfo___d149e117">
+                    <xs:choice id="system_cache__appinfo___d149e119">
+                        <xs:any namespace="##any" id="system_cache__appinfo___d149e121"/>
+                        <xs:element name="complexType" id="system_cache__appinfo___d149e123">
+                            <xs:complexType id="system_cache__appinfo___d149e125">
+                                <xs:sequence id="system_cache__appinfo___d149e127">
+                                    <xs:element name="sequence"
+                                        id="system_cache__appinfo___d149e129">
+                                        <xs:complexType id="system_cache__appinfo___d149e131">
+                                            <xs:sequence id="system_cache__appinfo___d149e133">
+                                                <xs:element name="element"
+                                                  id="system_cache__appinfo___d149e135">
+                                                  <xs:complexType
+                                                  id="system_cache__appinfo___d149e137">
+                                                  <xs:attributeGroup
+                                                  ref="system_cache__appinfo:change_replacement_element"
+                                                  id="system_cache__appinfo___d149e139"/>
+                                                  <xs:anyAttribute
+                                                  namespace="http://www.w3.org/2001/XMLSchema"
+                                                  id="system_cache__appinfo___d149e141"/>
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                            <xs:attributeGroup
+                                                ref="system_cache__appinfo:change_medium_element"
+                                                id="system_cache__appinfo___d149e146"/>
+                                            <xs:anyAttribute
+                                                namespace="http://www.w3.org/2001/XMLSchema"
+                                                id="system_cache__appinfo___d149e148"/>
+                                        </xs:complexType>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute default="@name" name="rel_key"
+                                    id="system_cache__appinfo___d149e153">
+                                    <xs:annotation id="system_cache__appinfo___d149e155">
+                                        <xs:documentation>przyklad: 
+xs:complexType name="ACCESS_REQUESTS" system_cache__appinfo:rel_key="@name" system_cache__appinfo:dig_recurse="1"
+
+Nalezy wprowadzic glowny klucz nazwy do odnalezienia odpowiednika elementu w drzewie edytowanym</xs:documentation>
+                                    </xs:annotation>
+                                </xs:attribute>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:choice>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="change" type="system_cache__appinfo:change"
+        id="system_cache__appinfo___d149e169"/>
+    <xs:complexType name="change_optimize_id" id="system_cache__appinfo___d149e171">
+        <xs:annotation id="system_cache__appinfo___d149e173">
+            <xs:documentation>Obiekt powsatly na podstawie change za pomoca transformacji xsl o nazwie template mode="system_cache__appinfo:change_optimize_id , dodane ma atrybuty niezbedne do przeszukania w drzewie</xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__appinfo___d149e179">
+            <xs:element name="item" id="system_cache__appinfo___d149e181">
+                <xs:complexType id="system_cache__appinfo___d149e183">
+                    <xs:choice id="system_cache__appinfo___d149e185">
+                        <xs:any namespace="##any" id="system_cache__appinfo___d149e187"/>
+                        <xs:element name="complexType" id="system_cache__appinfo___d149e189">
+                            <xs:complexType id="system_cache__appinfo___d149e191">
+                                <xs:sequence id="system_cache__appinfo___d149e193">
+                                    <xs:element name="sequence"
+                                        id="system_cache__appinfo___d149e195">
+                                        <xs:complexType id="system_cache__appinfo___d149e197">
+                                            <xs:sequence id="system_cache__appinfo___d149e199">
+                                                <xs:element name="element"
+                                                  id="system_cache__appinfo___d149e201">
+                                                  <xs:complexType
+                                                  id="system_cache__appinfo___d149e203">
+                                                  <xs:attributeGroup
+                                                  ref="system_cache__appinfo:change_replacement_element"
+                                                  id="system_cache__appinfo___d149e205"/>
+                                                  <xs:attribute default="1"
+                                                  name="change_optimize_id_root"
+                                                  id="system_cache__appinfo___d149e207">
+                                                  <xs:annotation
+                                                  id="system_cache__appinfo___d149e209">
+                                                  <xs:documentation>Jest to numer item elementu zmiany, jaki ma byc wprowadzony do glownego drzewa.</xs:documentation>
+                                                  </xs:annotation>
+                                                  </xs:attribute>
+                                                  <xs:anyAttribute
+                                                  namespace="http://www.w3.org/2001/XMLSchema"
+                                                  id="system_cache__appinfo___d149e216"/>
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                            <xs:attributeGroup
+                                                ref="system_cache__appinfo:change_medium_element"
+                                                id="system_cache__appinfo___d149e221"/>
+                                            <xs:anyAttribute
+                                                namespace="http://www.w3.org/2001/XMLSchema"
+                                                id="system_cache__appinfo___d149e223"/>
+                                        </xs:complexType>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute default="@name" name="rel_key"
+                                    id="system_cache__appinfo___d149e228">
+                                    <xs:annotation id="system_cache__appinfo___d149e230">
+                                        <xs:documentation>przyklad: 
+xs:complexType name="ACCESS_REQUESTS" system_cache__appinfo:rel_key="@name" system_cache__appinfo:dig_recurse="1"
+
+Nalezy wprowadzic glowny klucz nazwy do odnalezienia odpowiednika elementu w drzewie edytowanym</xs:documentation>
+                                    </xs:annotation>
+                                </xs:attribute>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:choice>
+                    <xs:attribute name="change_optimize_id" id="system_cache__appinfo___d149e240">
+                        <xs:annotation id="system_cache__appinfo___d149e242">
+                            <xs:documentation>Jest to unikalny numer elementu dla rekordu zmiany. 
+
+Ostatni wezel bedzie miec powtorzony ten numer w polu @change_optimize_id_root</xs:documentation>
+                        </xs:annotation>
+                    </xs:attribute>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="change_optimize_id" type="system_cache__appinfo:change_optimize_id"
+        id="system_cache__appinfo___d149e254"/>
+    <xs:element name="save_to_api" id="system_cache__appinfo___d10e129207-1">
+        <xs:complexType id="system_cache__appinfo___d10e129209-1">
+            <xs:sequence id="system_cache__appinfo___d10e129211-1">
+                <xs:element ref="system_cache__appinfo:save_to_api_xml"
+                    id="system_cache__appinfo___d10e129213-1"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="new_record" id="system_cache__appinfo___d10e129218-1">
+        <xs:complexType id="system_cache__appinfo___d10e129220-1">
+            <xs:sequence id="system_cache__appinfo___d10e129222-1">
+                <xs:any maxOccurs="unbounded" namespace="##any" processContents="strict">
+                    <xs:annotation>
+                        <xs:documentation>tak samo atrybuty dostepne @read_key_value lub @evaluate_key_value</xs:documentation>
+                    </xs:annotation>
+                </xs:any>
+            </xs:sequence>
+            <xs:attribute name="count_xml_node" type="xs:integer"
+                id="system_cache__appinfo___d10e129234-1"/>
+            <xs:attribute name="create_element" id="system_cache__appinfo___d10e129236-1"/>
+            <xs:attribute name="current_object_xml_name" id="system_cache__appinfo___d10e129238-1"/>
+            <xs:attribute name="event_type" type="xs:integer" use="required"
+                id="system_cache__appinfo___d10e129240-1"/>
+            <xs:attribute name="local-name" type="xs:NCName" use="required"
+                id="system_cache__appinfo___d10e129243-1"/>
+            <xs:attribute name="optional" type="xs:NCName" id="system_cache__appinfo___d10e129245-1"/>
+            <xs:attribute name="table-name" type="xs:NCName" use="required"
+                id="system_cache__appinfo___d10e129247-1"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="edit_record" id="system_cache__appinfo___d10e129251-1">
+        <xs:complexType id="system_cache__appinfo___d10e129253-1">
+            <xs:sequence id="system_cache__appinfo___d10e129255-1">
+                <xs:any maxOccurs="unbounded" namespace="##any">
+                    <xs:annotation>
+                        <xs:documentation>tak samo atrybuty dostepne @read_key_value lub @evaluate_key_value</xs:documentation>
+                    </xs:annotation>
+                </xs:any>
+            </xs:sequence>
+            <xs:attribute name="count_xml_node" type="xs:integer"
+                id="system_cache__appinfo___d10e129267-1"/>
+            <xs:attribute name="create_element" id="system_cache__appinfo___d10e129269-1"/>
+            <xs:attribute name="current_object_xml_name" id="system_cache__appinfo___d10e129271-1"/>
+            <xs:attribute name="event_type" type="xs:integer" use="required"
+                id="system_cache__appinfo___d10e129273-1"/>
+            <xs:attribute name="local-name" type="xs:NCName" use="required"
+                id="system_cache__appinfo___d10e129276-1"/>
+            <xs:attribute name="optional" type="xs:NCName" id="system_cache__appinfo___d10e129278-1"/>
+            <xs:attribute name="table-name" type="xs:NCName" use="required"
+                id="system_cache__appinfo___d10e129280-1"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="save_to_api_xml" id="system_cache__appinfo___d10e129284-1">
+        <xs:complexType id="system_cache__appinfo___d10e129286-1">
+            <xs:choice maxOccurs="unbounded" minOccurs="0" id="system_cache__appinfo___d10e129288-1">
+                <xs:element ref="system_cache__appinfo:save_to_api_xml"
+                    id="system_cache__appinfo___d10e129290-1"/>
+                <xs:element ref="system_cache__appinfo:new_record"
+                    id="system_cache__appinfo___d10e129292-1"/>
+                <xs:element ref="system_cache__appinfo:edit_record"
+                    id="system_cache__appinfo___d10e129294-1"/>
+            </xs:choice>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="gui_to_save_to_api" id="system_cache__appinfo___d10e129299-1">
+        <xs:annotation>
+            <xs:documentation>TODO obiekt do gromadzenia danych komunikacji przez GUI do przygotowania transakcji do zapisu danych/edycji - np. uzytkownik wybral 10 urzadzen, ktore chce pobrac do jakiejs lokalizacji?</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:attribute name="sort"/>
+    <xs:attribute name="root_element_in_schema"/>
+    <xs:attribute name="prefix" type="xs:string"/>
+    <xs:attribute name="namespace_uri"/>
+    <xs:attribute name="id" type="xs:NCName"/>
+    <xs:attribute name="name" type="xs:string"/>
+    <xs:attribute name="name_no_prefix" type="xs:string"/>
+    <xs:attribute name="xpath_full"/>
+    <xs:attribute name="ref"/>
+    <xs:attribute name="xpath_local"/>
+    <xs:attribute name="xpath" type="xs:string"/>
+    <xs:attribute name="restriction_path"/>
+    <xs:attribute name="type"/>
+    <xs:attribute name="restriction_path_TODEL"/>
+    <xs:attribute name="minOccurs"/>
+    <xs:attribute name="maxOccurs"/>
+    <xs:attribute name="use"/>
+    <xs:attribute name="default"/>
+    <xs:attribute name="restriction_base">
+        <xs:annotation>
+            <xs:documentation>Do usuniecia - jest to dlugosc w bajtach podstawy restrykcji w buildCOmplexType.xsl</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="restriction_base_attr"/>
+    <xs:attribute name="id-orig-from-restriction"/>
+    <xs:attribute name="loop"/>
+    <xs:attribute name="restriciction_base_lenght_TODEL"/>
+    <xs:attribute name="path"/>
+    <xs:attribute name="loop_name"/>
+    <xs:attribute name="loop_id"/>
+    <xs:attribute name="targetNamespace"/>
+    <xs:attribute name="mixed"/>
+    <xs:attribute name="event_type"/>
+    <xs:attribute name="loop_name_with_prefix">
+        <xs:annotation>
+            <xs:documentation>zwlaszcza przy 477 w przypadku kiedy na ref nastepuje zapetlenie - zawiera nazwe wyzwalanego obiektu razem z prefixem</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name_with_prefix">
+        <xs:annotation>
+            <xs:documentation>do uzycia zwlasczcza w p5_tr_map:loop - zawiera nazwe zapetlajacego sie elementu z prefixem. Todo nie koniecznie loop wskazuje na wlasciwa instancje</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="parent_complexTypeNamespace" type="xs:string"/>
+    <xs:attribute name="complexTypeNamespace" type="xs:string"/>
+    <xs:attribute name="get_default_db_obj_url_table_name" type="xs:string">
+        <xs:annotation>
+            <xs:documentation>Tabela wykryta gdzie jest przechowywana główna instancja</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:complexType name="detect_first_ref_to_native_procesy5_table">
+        <xs:sequence>
+            <xs:element ref="system_cache__appinfo:detect_first_ref_to_native_procesy5_table"
+                minOccurs="0"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="detect_first_ref_to_native_procesy5_table_list"
+        type="system_cache__appinfo:detect_first_ref_to_native_procesy5_table"/>
+    <xs:element name="detect_first_ref_to_native_procesy5_table">
+        <xs:complexType>
+            <xs:attribute name="event_type" type="xs:string" use="required"/>
+            <xs:attribute form="qualified" name="id" type="xs:NCName" use="required"/>
+            <xs:attribute ref="system_cache__appinfo:ref" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="objects_parent_relation__parent">
+        <xs:complexType>
+            <xs:complexContent>
+                <xs:extension base="system_cache__appinfo:detect_first_ref_to_native_procesy5_table">
+                    <xs:attribute name="apply_template" use="required"/>
+                    <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
+                    <xs:attribute name="name_id" type="xs:NCName" use="required"/>
+                    <xs:attribute name="parent_complexType" type="xs:NMTOKEN" use="required"/>
+                    <xs:attribute name="prefix" type="xs:NCName" use="required"/>
+                    <xs:attribute name="when_type" type="xs:NCName" use="required"/>
+                </xs:extension>
+            </xs:complexContent>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="parent">
+        <xs:complexType>
+            <xs:attribute name="parent_complexType" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+            <xs:attribute form="qualified" name="parent_object" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute form="qualified" name="parent_object_element" type="xs:NCName"
+                use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="child">
+        <xs:complexType>
+            <xs:attribute form="qualified" name="flat_element" type="xs:NCName" use="required"/>
+            <xs:attribute form="qualified" name="id" type="xs:NCName" use="required"/>
+            <xs:attribute form="qualified" name="ref" use="required"/>
+            <xs:attribute form="qualified" name="xpath" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="object_element-to-flat_element_missing">
+        <xs:complexType>
+            <xs:attribute name="parent_complexType" type="xs:NMTOKEN" use="optional"/>
+            <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+            <xs:attribute name="parent_object" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_root_sequence_id">
+        <xs:complexType>
+            <xs:attribute name="id" type="xs:NCName" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_local-elements_relations_references_with_flat_procesy5_table_list">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element
+                    ref="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table"
+                />
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_local-elements_relations_references_with_flat_procesy5_table">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element maxOccurs="unbounded" minOccurs="0"
+                    ref="system_cache__appinfo:flat_element-to-object_element"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_parent_complexType_with_ref_to_procesy5_table" type="xs:string"/>
+    <xs:element name="flat_element-to-object_element">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element minOccurs="0"
+                    ref="system_cache__appinfo:flat_relation_cache_improve_from_schema"/>
+            </xs:sequence>
+            <xs:attribute name="position" type="xs:integer" use="required"/>
+            <xs:attribute form="qualified" name="flat_element" type="xs:NCName" use="required"/>
+            <xs:attribute form="qualified" name="id" type="xs:NCName" use="required"/>
+            <xs:attribute form="qualified" name="maxOccurs" type="xs:integer"/>
+            <xs:attribute form="qualified" name="minOccurs" type="xs:integer"/>
+            <xs:attribute form="qualified" name="object_element" type="xs:NCName" use="required"/>
+            <xs:attribute form="qualified" name="xpath" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="flat_relation_cache_improve_from_schema">
+        <xs:complexType>
+            <xs:attribute form="qualified" name="parent_object" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute form="qualified" name="parent_object_ref_to_name" type="xs:NCName"
+                use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="go_recurse_from_root_only_local_elements_list">
+        <xs:complexType>
+            <xs:sequence minOccurs="0">
+                <xs:element ref="system_cache__appinfo:go_recurse_from_root_only_local_elements"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="go_recurse_from_root_only_local_elements">
+        <xs:complexType>
+            <xs:attribute name="TODO3485"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="objects_parent_relation">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element ref="system_cache__appinfo:objects_parent_relation__parent"/>
+                <xs:element ref="system_cache__appinfo:objects_parent_relation__self"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="objects_parent_relation__self">
+        <xs:complexType>
+            <xs:attribute name="apply_template" use="required"/>
+            <xs:attribute name="name" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute name="name_id" type="xs:NCName" use="required"/>
+            <xs:attribute name="parent_complexType" type="xs:NMTOKEN" use="required"/>
+            <xs:attribute name="prefix" type="xs:NCName" use="required"/>
+            <xs:attribute name="when_type" type="xs:NCName" use="required"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_element_relations_to_objects">
+        <xs:complexType>
+            <xs:attribute ref="system_cache__appinfo:id"/>
+            <xs:attribute ref="system_cache__appinfo:ref" use="required">
+                <xs:annotation>
+                    <xs:documentation>zawartosc nie zawsze oznacza, ze typ odwolania jest referencja - moze to byc uzycie complexType</xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+            <xs:attribute fixed="477b" ref="system_cache__appinfo:event_type">
+                <xs:annotation>
+                    <xs:documentation>W przypadku kiedy relacja do obcego obiektu nie wynika z zastosowania typu 477 (referencja), zamiast tego uzyty jest typ ComplexType nazwany, to wlaczany jest ten atrybut z ta zawartoscia.</xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_element_relations_to_objects_list">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element maxOccurs="unbounded" minOccurs="0"
+                    ref="system_cache__appinfo:detect_element_relations_to_objects"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="object_element-to-flat_element_by_xpath2_list">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element maxOccurs="unbounded" minOccurs="0"
+                    ref="system_cache__appinfo:object_element-to-flat_element_by_xpath2"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_element_local_elements_without_ref_elements_list">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element
+                    ref="system_cache__appinfo:detect_element_local_elements_without_ref_elements"
+                    minOccurs="0"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="detect_element_local_elements_without_ref_elements">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element maxOccurs="unbounded" minOccurs="0"
+                    ref="system_cache__appinfo:detect_element_local_elements_without_ref_elements"/>
+            </xs:sequence>
+            <xs:attribute name="comment"/>
+            <xs:attribute name="create_element" type="xs:NMTOKEN"/>
+            <xs:attribute name="event_name"/>
+            <xs:attribute name="event_type" type="xs:NMTOKEN"/>
+            <xs:attribute ref="system_cache__appinfo:id"/>
+            <xs:attribute name="local-name" type="xs:NCName"/>
+            <xs:attribute name="local-name-name" type="xs:NCName"/>
+            <xs:attribute name="restriciction_base"/>
+            <xs:attribute name="retrieve_ID" type="xs:anyURI"/>
+            <xs:attribute name="retrieve_PARENT_ID" type="xs:anyURI"/>
+            <xs:attribute name="retrieve_REMOTE_ID"/>
+            <xs:attribute name="retrieve_TYPE" type="xs:NMTOKEN"/>
+            <xs:attribute name="retrieve_resource_id" type="xs:NCName"/>
+            <xs:attribute form="qualified" name="final"/>
+            <xs:attribute form="qualified" name="id-orig-from-restriction" type="xs:NCName"/>
+            <xs:attribute form="qualified" name="maxOccurs" type="xs:NMTOKEN"/>
+            <xs:attribute form="qualified" name="minOccurs" type="xs:integer"/>
+            <xs:attribute form="qualified" name="name" type="xs:NCName"/>
+            <xs:attribute form="qualified" name="namespace_uri" type="xs:anyURI"/>
+            <xs:attribute form="qualified" name="prefix" type="xs:NCName"/>
+            <xs:attribute form="qualified" name="restriction_base" type="xs:integer"/>
+            <xs:attribute form="qualified" name="restriction_base_attr"/>
+            <xs:attribute form="qualified" name="restriction_path"/>
+            <xs:attribute form="qualified" name="restriction_path_TODEL"/>
+            <xs:attribute form="qualified" name="root_element_in_schema" type="xs:boolean"/>
+            <xs:attribute form="qualified" name="sort" type="xs:integer"/>
+            <xs:attribute form="qualified" name="targetNamespace" type="xs:anyURI"/>
+            <xs:attribute form="qualified" name="type" type="xs:NMTOKEN"/>
+            <xs:attribute form="qualified" name="xpath"/>
+            <xs:attribute form="qualified" name="xpath_full"/>
+            <xs:attribute form="qualified" name="xpath_local" type="xs:NMTOKEN"/>
+            <xs:attribute ref="system_cache__appinfo:default"/>
+            <xs:attribute ref="system_cache__appinfo:mixed"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="object_element-to-flat_element_by_xpath2">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element minOccurs="0"
+                    ref="system_cache__appinfo:object_element-to-flat_element_by_xpath2_list"/>
+                <xs:choice>
+                    <xs:sequence>
+                        <xs:element ref="system_cache__appinfo:parent"/>
+                        <xs:element ref="system_cache__appinfo:child"/>
+                    </xs:sequence>
+                    <xs:element maxOccurs="unbounded" minOccurs="0"
+                        ref="system_cache__appinfo:object_element-to-flat_element_missing"/>
+                </xs:choice>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="flat_relation_cache">
+        <xs:annotation>
+            <xs:documentation>Element uzyty np w IN7_DZIENNIK_KORESP/ID_PROJECT w celu opisania relacji cache do innego obiektu (opisany od drugiej strony)</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="source">
+                    <xs:complexType>
+                        <xs:attribute use="required" ref="system_cache__appinfo:xpath">
+                            <xs:annotation>
+                                <xs:documentation>np default_db:IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI/ID</xs:documentation>
+                            </xs:annotation>
+                        </xs:attribute>
+                        <xs:attribute ref="system_cache__appinfo:name">
+                            <xs:annotation>
+                                <xs:documentation>np ="ID" dla wskazania, jakie pole jest lokalnie podstawa do zbudowania relacji, np w przypadku URZADZENIE do URZADZENIE bedzie to ID, ktore ma sie pojawic w PARENT_ID</xs:documentation>
+                            </xs:annotation>
+                        </xs:attribute>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="RelatedFilter">
+        <xs:complexType>
+            <xs:attribute name="xpath"/>
+            <xs:attribute name="xpath_value"/>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 37 - 11
SE/schema/default_db_xml_cache.public/build_recurse_ant.xsl

@@ -117,17 +117,16 @@
                             <!--<xsl:copy-of select="$xpath_value_tokens"></xsl:copy-of>-->
                             <!--<xsl:copy-of select="$xpath_value_tokens"></xsl:copy-of>-->
                             <!--<xsl:message>#67 probuje ustalic dla featureID_name=<xsl:value-of select="$featureID_name"/>; wartosc z @xpath_value=<xsl:value-of select="@xpath_value"/>; $input_obj_with_xpath/node()[@xpath="ID_BILLING_OWNER"] =<xsl:value-of select="$input_obj_with_xpath/node()[@xpath='ID_BILLING_OWNER']"/>; </xsl:message>-->
                             <!--<xsl:message>#67 probuje ustalic dla featureID_name=<xsl:value-of select="$featureID_name"/>; wartosc z @xpath_value=<xsl:value-of select="@xpath_value"/>; $input_obj_with_xpath/node()[@xpath="ID_BILLING_OWNER"] =<xsl:value-of select="$input_obj_with_xpath/node()[@xpath='ID_BILLING_OWNER']"/>; </xsl:message>-->
                             <xsl:message>#67.1 $input_obj_with_xpath: <xsl:copy-of select="$input_obj_with_xpath"/> </xsl:message>
                             <xsl:message>#67.1 $input_obj_with_xpath: <xsl:copy-of select="$input_obj_with_xpath"/> </xsl:message>
-                            <xsl:variable name="xpath_value_token">
-                                <xsl:for-each select=" tokenize(@xpath_value,'/')">
-                                    <xsl:message>#70 znalazlem dla=<xsl:value-of select="."/>; ; <xsl:value-of select="$input_obj_with_xpath/node()[@xpath=current()]"/></xsl:message>
-                                    <xsl:if test="$input_obj_with_xpath/node()[@xpath=current()]">
-                                        <xsl:copy-of select="$input_obj_with_xpath/node()[@xpath=current()]"/>
-                                    </xsl:if><!-- todo to jest bledne ale dziala tymczasowo-->
-                                </xsl:for-each>
-                            </xsl:variable>
-                            <xsl:message>#73 ustalam na <xsl:value-of select="$xpath_value_token/node()[1]/text()"/>;</xsl:message>
+                            <!--<xsl:variable name="xpath_value_token">-->
+                                <xsl:call-template name="xpath_filter_apply">
+                                    <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
+                                    <xsl:with-param name="xpath" select="@xpath"/>
+                                    <xsl:with-param name="xpath_value" select="@xpath_value"/>
+                                </xsl:call-template>
+                            <!--</xsl:variable>-->
+                            <!--<xsl:message>#73 ustalam na <xsl:value-of select="$xpath_value_token/node()[1]/text()"/>;</xsl:message>-->
                             <!--<xsl:value-of select="$xpath_value_token/node()[1]/text()"/>-->
                             <!--<xsl:value-of select="$xpath_value_token/node()[1]/text()"/>-->
-                            <xsl:value-of select="$xpath_value_token"/>
+                            <!--<xsl:value-of select="$xpath_value_token"/>-->
                         </xsl:when>
                         </xsl:when>
                         <xsl:otherwise>
                         <xsl:otherwise>
                             <xsl:value-of select="$xpath_value"/><!-- parametr z template narzuca wartosc -->
                             <xsl:value-of select="$xpath_value"/><!-- parametr z template narzuca wartosc -->
@@ -195,6 +194,7 @@
                         <xsl:with-param name="xml_id" select="$xml_id"/>
                         <xsl:with-param name="xml_id" select="$xml_id"/>
                         <!--<xsl:with-param name="xml_id_parent" select="$xml_id_parent"/>-->
                         <!--<xsl:with-param name="xml_id_parent" select="$xml_id_parent"/>-->
                         <xsl:with-param name="feature_pos"   select="$feature_pos"/>
                         <xsl:with-param name="feature_pos"   select="$feature_pos"/>
+                        <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
                     </xsl:apply-templates>
                     </xsl:apply-templates>
                     <!-- na koniec przetwarzania kazdego z wezlow, podmieniamy xsl biezacy wezel -->
                     <!-- na koniec przetwarzania kazdego z wezlow, podmieniamy xsl biezacy wezel -->
                     
                     
@@ -333,6 +333,23 @@
     <xsl:template mode="place_subant" match="text()|comment()"/>
     <xsl:template mode="place_subant" match="text()|comment()"/>
     
     
     
     
+    <xsl:template name="xpath_filter_apply"> <!-- do przetworzenia filtra na podstawie danych wezla poprzedniego $input_obj_with_xpath oraz podanych parametrow @xpath i @xpath_value -->
+        <xsl:param name="input_obj_with_xpath" required="yes"/>
+        <xsl:param name="xpath" required="yes"/>
+        <xsl:param name="xpath_value" required="yes"/>
+        <xsl:variable name="xpath_value_token">
+            <xsl:for-each select=" tokenize($xpath_value,'/')">
+                <xsl:message>#341 znalazlem dla=<xsl:value-of select="."/>; ; <xsl:value-of select="$input_obj_with_xpath/node()[@xpath=current()]"/></xsl:message>
+                <xsl:if test="$input_obj_with_xpath/node()[@xpath=current()]">
+                    <xsl:copy-of select="$input_obj_with_xpath/node()[@xpath=current()]"/>
+                </xsl:if><!-- todo to jest bledne ale dziala tymczasowo-->
+            </xsl:for-each>
+        </xsl:variable>
+        <xsl:message>#345 ustalam na <xsl:value-of select="$xpath_value_token/node()[1]/text()"/>;</xsl:message>
+        <!--<xsl:value-of select="$xpath_value_token/node()[1]/text()"/>-->
+        <xsl:value-of select="$xpath_value_token"/>
+    </xsl:template>
+    
 
 
     
     
     <xsl:template match="RelatedFeature"  mode="ant_target" >  
     <xsl:template match="RelatedFeature"  mode="ant_target" >  
@@ -354,6 +371,7 @@
         <xsl:param name="xml_id"  required="yes"/>
         <xsl:param name="xml_id"  required="yes"/>
         <xsl:param name="feature_pos"   required="yes"/>
         <xsl:param name="feature_pos"   required="yes"/>
         <xsl:param name="loop_xpath_real" required="yes"/>
         <xsl:param name="loop_xpath_real" required="yes"/>
+        <xsl:param name="input_obj_with_xpath" required="yes"/>
         <xsl:choose>
         <xsl:choose>
             <xsl:when test="$wfs_output"/>
             <xsl:when test="$wfs_output"/>
             <xsl:otherwise><xsl:message terminate="yes">Not required param wfs_output - nazwa temp sciagniecia z api xml forsowana przez pierwsze sciagniecie - to set by next parraler step in ant build  </xsl:message></xsl:otherwise>
             <xsl:otherwise><xsl:message terminate="yes">Not required param wfs_output - nazwa temp sciagniecia z api xml forsowana przez pierwsze sciagniecie - to set by next parraler step in ant build  </xsl:message></xsl:otherwise>
@@ -380,8 +398,16 @@
                      <!-- calculate query to api default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:IN7_DZIENNIK_KORESP&SRSNAME=EPSG:3003&featureID=IN7_DZIENNIK_KORESP.1000'-->
                      <!-- calculate query to api default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:IN7_DZIENNIK_KORESP&SRSNAME=EPSG:3003&featureID=IN7_DZIENNIK_KORESP.1000'-->
                      <!--<property name="OGC_Filter">%26lt;ogc:Filter%26gt;%26lt;ogc:PropertyIsNull%26gt;%26lt;ogc:PropertyName%26gt;the_geom%26lt;/ogc:PropertyName%26gt;%26lt;/ogc:PropertyIsNull%26gt;%26lt;/ogc:Filter%26gt;</property>-->
                      <!--<property name="OGC_Filter">%26lt;ogc:Filter%26gt;%26lt;ogc:PropertyIsNull%26gt;%26lt;ogc:PropertyName%26gt;the_geom%26lt;/ogc:PropertyName%26gt;%26lt;/ogc:PropertyIsNull%26gt;%26lt;/ogc:Filter%26gt;</property>-->
                      
                      
-                     <xsl:variable name="OGC_Filter">&amp;Filter=&lt;ogc:Filter&gt;&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;<xsl:value-of select="$xpath_dita"/>&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;<xsl:value-of select="$xpath_value_dita"/>&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;&lt;/ogc:Filter&gt;</xsl:variable>
+                     <!--<xsl:variable name="OGC_Filter">&amp;Filter=&lt;ogc:Filter&gt;&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;<xsl:value-of select="$xpath_dita"/>&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;<xsl:value-of select="$xpath_value_dita"/>&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;&lt;/ogc:Filter&gt;</xsl:variable>-->
                      
                      
+                     
+                     <xsl:variable name="OGC_Filter">
+                         <xsl:choose>
+                             <xsl:when test="RelatedFilter"><xsl:message>#406 we are enabling RelatedFilter <xsl:copy-of select="RelatedFilter" copy-namespaces="no"/></xsl:message>&amp;Filter=&lt;ogc:Filter&gt;&lt;ogc:And&gt;&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;<xsl:value-of select="$xpath_dita"/>&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;<xsl:value-of select="$xpath_value_dita"/>&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;<xsl:for-each select="RelatedFilter">&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;<xsl:value-of select="@xpath"/>&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;<xsl:value-of select="@xpath_value"/>&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;</xsl:for-each>&lt;/ogc:And&gt;&lt;/ogc:Filter&gt;</xsl:when>
+                             <xsl:otherwise>&amp;Filter=&lt;ogc:Filter&gt;&lt;ogc:PropertyIsEqualTo&gt;&lt;ogc:PropertyName&gt;<xsl:value-of select="$xpath_dita"/>&lt;/ogc:PropertyName&gt;&lt;ogc:Literal&gt;<xsl:value-of select="$xpath_value_dita"/>&lt;/ogc:Literal&gt;&lt;/ogc:PropertyIsEqualTo&gt;&lt;/ogc:Filter&gt;</xsl:otherwise>
+                         </xsl:choose>
+                     </xsl:variable>
+                     <xsl:message>#410 final OGC_Filter is <xsl:value-of select="$OGC_Filter"/>; </xsl:message>
                      <xsl:variable name="url">
                      <xsl:variable name="url">
                          <!--<xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=<xsl:value-of select="$typeName_dita"/>&amp;SRSNAME=EPSG:3003&amp;featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>-->
                          <!--<xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=<xsl:value-of select="$typeName_dita"/>&amp;SRSNAME=EPSG:3003&amp;featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>-->
                          <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=<xsl:value-of select="$typeName_dita"/>&amp;SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>
                          <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=<xsl:value-of select="$typeName_dita"/>&amp;SRSNAME=EPSG:3003<xsl:value-of select="$OGC_Filter"/>

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

@@ -51,6 +51,15 @@
         </xsl:element>
         </xsl:element>
     </xsl:template>
     </xsl:template>
     
     
+    <xsl:template match="RelatedFilter">
+        <xsl:message>#55 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
+    </xsl:template>
+    <xsl:template match="RelatedFilter" mode="RelatedFeature">
+        <xsl:message>#58 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
+    </xsl:template>
+    <xsl:template match="RelatedFilter" mode="root">
+        <xsl:message>#61 bypasing RelatedFilter output <xsl:copy-of select="."/></xsl:message>
+    </xsl:template>
     
     
     <xsl:template match="RelatedFeature">
     <xsl:template match="RelatedFeature">
         <!-- podstawamy dane z xml na podstawie path -->
         <!-- podstawamy dane z xml na podstawie path -->

+ 25 - 0
SE/schema/default_db_xml_cache.public/crm_testy_pytania.xsd

@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:default_crm_testy_pytania="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_testy_pytania.xsd"
+    elementFormDefault="qualified"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/crm_testy_pytania.xsd"
+    xmlns:default_crm_proces="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_proces.xsd">
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_proces.xsd"
+        schemaLocation="../default_db_xml_cache/crm_proces.xsd"
+        id="default_crm_testy_pytania___d16e3"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/crm_wskaznik.xsd"
+        schemaLocation="crm_wskaznik.xsd" id="default_crm_testy_pytania___d16e7"/>
+    <xs:complexType name="crm_test_question_object" id="default_crm_testy_pytania___d16e9">
+        <xs:sequence id="default_crm_testy_pytania___d16e11">
+            <xs:element name="idref" id="default_crm_testy_pytania___d16e13"/>
+            <xs:sequence id="default_crm_testy_pytania___d16e15">
+                <xs:element name="id" id="default_crm_testy_pytania___d16e17"/>
+                <xs:choice id="default_crm_testy_pytania___d16e19">
+                    <xs:element name="id_proces" id="default_crm_testy_pytania___d16e21"/>
+                </xs:choice>
+            </xs:sequence>
+        </xs:sequence>
+    </xs:complexType>
+</xs:schema>

+ 23 - 0
SE/schema/default_db_xml_cache.public/crm_wskaznik.xsd

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:default_crm_wskaznik="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_wskaznik.xsd"
+    xmlns:system_cache__procesy5_xsd_business_objects="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_xsd_business_objects.xsd"
+    elementFormDefault="qualified"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_wskaznik.xsd"
+    attributeFormDefault="qualified" vc:minVersion="1.1"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_xsd_business_objects.xsd"
+        schemaLocation="../default_db_xml_cache/procesy5_xsd_business_objects.xsd"
+        id="default_crm_wskaznik___d18e3"/>
+    <xs:complexType name="asocjacja" id="default_crm_wskaznik___d18e7">
+        <xs:choice id="default_crm_wskaznik___d18e9">
+            <xs:element name="idref" type="xs:IDREF" id="default_crm_wskaznik___d18e11"/>
+            <xs:sequence id="default_crm_wskaznik___d18e13">
+                <xs:element name="resource"
+                    type="system_cache__procesy5_xsd_business_objects:procesy5_busines_object"
+                    id="default_crm_wskaznik___d18e15"/>
+            </xs:sequence>
+        </xs:choice>
+    </xs:complexType>
+</xs:schema>

+ 114 - 0
SE/schema/default_db_xml_cache.public/graph_relation_elements.xsd

@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:system_cache__graph_relation_elements="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd">
+   <xs:annotation id="system_cache__graph_relation_elements___d185e3">
+      <xs:documentation>Elementy do interpretacji przez silnik rysowania relacji/paszportyzacji</xs:documentation>
+      
+        
+    </xs:annotation>
+   <xs:complexType name="graphLinkComplex"
+                   id="system_cache__graph_relation_elements___d185e9">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e11">
+         <xs:documentation>Situation:
+                IF:
+                DevicePortLinkL1/DevicePortL1 (2)
+                Than 2 DevicePortLinkL1/DevicePortL1 are linked
+                
+            </xs:documentation>
+         
+            
+        </xs:annotation>
+      
+        
+    </xs:complexType>
+   <xs:simpleType name="graphLink" id="system_cache__graph_relation_elements___d185e18">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e20">
+         <xs:documentation>Situation:
+                IF:
+                DevicePortLinkL1/DevicePortL1 (2)
+                Than 2 DevicePortLinkL1/DevicePortL1 are linked
+                
+            </xs:documentation>
+         
+            
+        </xs:annotation>
+      <xs:restriction base="xs:string" id="system_cache__graph_relation_elements___d185e26"/>
+      
+      
+        
+        
+    </xs:simpleType>
+   <xs:simpleType name="graphLink2Childs"
+                  id="system_cache__graph_relation_elements___d185e29">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e31">
+         <xs:documentation>Situation:
+                IF:
+                DevicePortLinkL1/DevicePortL1 (2)
+                Than 2 DevicePortLinkL1/DevicePortL1 are linked
+            </xs:documentation>
+         
+            
+        </xs:annotation>
+      <xs:restriction base="xs:string" id="system_cache__graph_relation_elements___d185e37"/>
+      
+      
+        
+        
+    </xs:simpleType>
+   <xs:simpleType name="graphLinkChilds"
+                  id="system_cache__graph_relation_elements___d185e40">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e42">
+         <xs:documentation>Make links on graphs for scenario:
+                obj/FibreTube-graphNode
+                obj/FibreThin/Part</xs:documentation>
+         
+            
+        </xs:annotation>
+      <xs:restriction base="xs:string" id="system_cache__graph_relation_elements___d185e48"/>
+      
+      
+        
+        
+    </xs:simpleType>
+   <xs:simpleType name="graph2Links" id="system_cache__graph_relation_elements___d185e52">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e54">
+         <xs:documentation>special link which makes two links . If we have object A1, A2, and B1, than links are make between A1--B1 and B1--A2</xs:documentation>
+         
+            
+        </xs:annotation>
+      <xs:restriction base="xs:string" id="system_cache__graph_relation_elements___d185e60"/>
+      
+      
+        
+        
+    </xs:simpleType>
+   <xs:complexType name="graphNodeComplex"
+                   id="system_cache__graph_relation_elements___d185e63"/>
+   <xs:simpleType name="graphNode" id="system_cache__graph_relation_elements___d185e65">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e67">
+         <xs:documentation>This data type makes sens on logic-graph view. 
+                When used the node-point is placed on the graph with nearest parent's pf5:graphGroup simple-type node.</xs:documentation>
+         
+            
+        </xs:annotation>
+      <xs:restriction base="xs:string" id="system_cache__graph_relation_elements___d185e73"/>
+      
+      
+        
+        
+    </xs:simpleType>
+   <xs:simpleType name="graphGroup" id="system_cache__graph_relation_elements___d185e76">
+      <xs:annotation id="system_cache__graph_relation_elements___d185e78">
+         <xs:documentation>This special data type makes that object is showed on logic graph as a group of parent objects ( box ) </xs:documentation>
+         
+            
+        </xs:annotation>
+      <xs:restriction base="xs:string" id="system_cache__graph_relation_elements___d185e84"/>
+      
+      
+        
+        
+    </xs:simpleType>
+</xs:schema>

+ 1 - 1
SE/schema/default_db_xml_cache.public/import_resource_table_xml_from_api.xsl

@@ -25,7 +25,7 @@
                autor Arkadiusz Binder
                autor Arkadiusz Binder
     -->
     -->
     
     
-    <xsl:import href="file_cache.xsl"/>
+    <xsl:import href="../default_db_xml_cache.public/file_cache.xsl"/>
     
     
     <xsl:output indent="yes" method="xml"/>
     <xsl:output indent="yes" method="xml"/>
     
     

+ 513 - 0
SE/schema/default_db_xml_cache.public/p5_obj_vars.xsd

@@ -0,0 +1,513 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+  targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars.xsd"
+  xmlns:p5_obj_vars="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars.xsd"
+  xmlns:sso_procesy5="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+  xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+  xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+  xmlns:p5_obj_vars_php="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars_php.xsd"
+  vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+  <xs:annotation>
+    <xs:documentation>Schemat dla modulu SSO, ktory z wygenerowanych struktur detect_parent_relations tworzy juz aplikacje - czyli zawiera mapy do finalnego przetwarzania - tworzenia struktur w bazie danych, zapisu obiektow, odczytu obiektow. </xs:documentation>
+  </xs:annotation>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    schemaLocation="appinfo.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars_php.xsd"
+    schemaLocation="p5_obj_vars_php.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    schemaLocation="p5_tr_map.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+    schemaLocation="sso_procesy5.xsd"/>
+  <xs:element name="create_obj_form_html">
+    <xs:complexType>
+      <xs:group maxOccurs="unbounded" ref="p5_obj_vars:table"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="create_obj_array_php" type="p5_obj_vars:p5_obj_vars.create_obj_array"/>
+  <xs:element name="create_obj_array_php_code" type="xs:string"/>
+  <xs:element name="get_encapsulated_to_array_form" type="xs:string"/>
+  <xs:element name="list_obj_form_html">
+    <xs:complexType>
+      <xs:group maxOccurs="unbounded" ref="p5_obj_vars:table"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="list_obj_form_php" type="p5_obj_vars:p5_obj_vars.create_obj_array"/>
+  <xs:element name="list_obj_form_php_code" type="xs:string"/>
+  <xs:element name="merge_keys_list_obj_form_php_code" type="xs:string"/>
+  <xs:element name="merge_keys_list_obj_form_html">
+    <xs:complexType>
+      <xs:group ref="p5_obj_vars:table"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="merge_keys_list_obj_form_json">
+    <xs:complexType/>
+  </xs:element>
+  <xs:complexType name="p5_obj_vars.create_obj_array">
+    <xs:sequence>
+      <xs:element ref="p5_obj_vars:create_obj_array"/>
+    </xs:sequence>
+  </xs:complexType>
+  <xs:element name="create_obj_array">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_434"/>
+        <xs:choice>
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_494"/>
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4942"/>
+        </xs:choice>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_434">
+    <xs:complexType>
+      <xs:attribute name="evaluate_key_value" use="required" form="qualified"/>
+      <xs:attribute name="previous_obj_instance_id" use="required" form="qualified"/>
+      <xs:attribute name="previous_obj_sequence_id" use="required" form="qualified"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_494">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:view_obj_form_html"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_4942">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:group name="table">
+    <xs:sequence>
+      <xs:element name="table" form="unqualified">
+        <xs:complexType>
+          <xs:sequence>
+            <xs:element minOccurs="0" maxOccurs="unbounded" name="tr" form="unqualified">
+              <xs:complexType>
+                <xs:group minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:td"/>
+                <xs:attribute name="create_obj_html_form" form="qualified" type="xs:integer"/>
+                <xs:attribute name="list_obj_form_html" form="qualified" type="xs:integer"/>
+                <xs:attribute ref="p5_obj_vars:merge_keys_list_obj_form_html"/>
+                <xs:attribute name="view_obj_form_html" form="qualified" type="xs:integer"/>
+              </xs:complexType>
+            </xs:element>
+          </xs:sequence>
+          <xs:attribute name="bgcolor" type="xs:NCName"/>
+          <xs:attribute name="border" use="required" type="xs:integer"/>
+          <xs:attribute name="create_obj_html_form" form="qualified" type="xs:integer"/>
+          <xs:attribute name="list_obj_form_html" form="qualified" type="xs:integer"/>
+          <xs:attribute ref="p5_obj_vars:merge_keys_list_obj_form_html"/>
+          <xs:attribute name="view_obj_form_html" form="qualified" type="xs:integer"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:element name="view_obj_form_html">
+    <xs:complexType>
+      <xs:group minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:table"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="create_obj_html_form">
+    <xs:complexType>
+      <xs:group minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:table"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="db_insert_parse_php">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:phpforeach"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:group name="td">
+    <xs:sequence>
+      <xs:element name="td" form="unqualified">
+        <xs:complexType>
+          <xs:sequence>
+            <xs:group minOccurs="0" ref="p5_obj_vars:font"/>
+            <xs:choice minOccurs="0" maxOccurs="unbounded">
+              <xs:group ref="p5_obj_vars:input"/>
+              <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+              <xs:element ref="p5_obj_vars:db_list_obj_form_parse_php"/>
+              <xs:group ref="p5_obj_vars:table"/>
+              <xs:element name="br" form="unqualified">
+                <xs:complexType mixed="true">
+                  <xs:choice minOccurs="0" maxOccurs="unbounded">
+                    <xs:group ref="p5_obj_vars:font"/>
+                    <xs:group ref="p5_obj_vars:input"/>
+                  </xs:choice>
+                  <xs:attribute name="create_obj_html_form" form="qualified" type="xs:integer"/>
+                  <xs:attribute name="list_obj_form_html" form="qualified" type="xs:integer"/>
+                  <xs:attribute name="view_obj_form_html" form="qualified" type="xs:integer"/>
+                </xs:complexType>
+              </xs:element>
+              <xs:element ref="p5_obj_vars_php:phpforeach"/>
+            </xs:choice>
+            <xs:group minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:td"/>
+          </xs:sequence>
+          <xs:attribute name="create_obj_html_form" form="qualified" type="xs:integer"/>
+          <xs:attribute name="list_obj_form_html" form="qualified" type="xs:integer"/>
+          <xs:attribute ref="p5_obj_vars:merge_keys_list_obj_form_html"/>
+          <xs:attribute name="view_obj_form_html" form="qualified" type="xs:integer"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:element name="phpforeach">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_428a"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_434b"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_473"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_473b"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_477"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_477b"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4810"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4811"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4940"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4941"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_720"/>
+        <xs:element ref="p5_obj_vars:http_form_get_variable"/>
+        <xs:element ref="p5_obj_vars:sql_insert_into"/>
+      </xs:choice>
+      <xs:attribute name="comment"/>
+      <xs:attribute name="local-name" type="xs:NCName"/>
+      <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+      <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+      <xs:attribute ref="p5_obj_vars:currentOccur"/>
+      <xs:attribute name="list_obj_form_php_code" form="qualified" type="xs:integer"/>
+      <xs:attribute ref="p5_obj_vars:merge_keys_list_obj_form_html"/>
+      <xs:attribute ref="p5_obj_vars_php:var"/>
+      <xs:attribute ref="p5_tr_map:event_type"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_428a">
+    <xs:complexType>
+      <xs:choice>
+        <xs:element ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element maxOccurs="unbounded" ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_434b">
+    <xs:complexType>
+      <xs:attribute name="evaluate_key_value" use="required" form="qualified"/>
+      <xs:attribute name="previous_obj_instance_id" use="required" form="qualified"/>
+      <xs:attribute name="previous_obj_sequence_id" use="required" form="qualified"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_473">
+    <xs:complexType>
+      <xs:choice>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_473b">
+    <xs:complexType>
+      <xs:choice>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_477">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:sequence minOccurs="0">
+          <xs:element ref="p5_obj_vars:db_list_obj_form_parse_php"/>
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_434c"/>
+        </xs:sequence>
+        <xs:choice minOccurs="0">
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_481"/>
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4812"/>
+        </xs:choice>
+        <xs:choice>
+          <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+          <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:create_obj_html_form"/>
+        </xs:choice>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_477b">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:db_list_obj_form_parse_php"/>
+        <xs:choice minOccurs="0">
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_481"/>
+          <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4812"/>
+        </xs:choice>
+        <xs:choice>
+          <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+          <xs:element minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:create_obj_html_form"/>
+        </xs:choice>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_4810">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_4811">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_4940">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:view_obj_form_html"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_4941">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_720">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="http_form_get_variable" type="xs:string"/>
+  <xs:element name="sql_insert_into">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="p5_obj_vars:table"/>
+        <xs:element ref="p5_obj_vars:sql_fields"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="table" type="xs:NCName"/>
+  <xs:element name="sql_fields">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="p5_obj_vars:sql_fields_list"/>
+        <xs:element ref="p5_obj_vars:sql_values"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="sql_fields_list">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="p5_obj_vars:column_ELEMENT_ID"/>
+        <xs:element minOccurs="0" ref="p5_obj_vars:column_ELEMENT_NAME"/>
+        <xs:element minOccurs="0" ref="p5_obj_vars:column_PARENT_ID"/>
+        <xs:choice minOccurs="0">
+          <xs:element ref="p5_obj_vars:column_REMOTE_ID"/>
+          <xs:element ref="p5_obj_vars:column_VALUE"/>
+        </xs:choice>
+        <xs:element minOccurs="0" ref="p5_obj_vars:column_CACHE_INSTANCE_ID"/>
+        <xs:element maxOccurs="unbounded" ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="sql_values">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="p5_obj_vars:column_ELEMENT_ID"/>
+        <xs:element minOccurs="0" ref="p5_obj_vars:column_PARENT_ID"/>
+        <xs:choice minOccurs="0">
+          <xs:element ref="p5_obj_vars:column_REMOTE_ID"/>
+          <xs:element ref="p5_obj_vars:column_VALUE"/>
+        </xs:choice>
+        <xs:choice>
+          <xs:element ref="p5_obj_vars:column_CACHE_INSTANCE_ID"/>
+          <xs:element ref="p5_obj_vars:column_ELEMENT_NAME"/>
+        </xs:choice>
+        <xs:element maxOccurs="unbounded" ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:group name="font">
+    <xs:sequence>
+      <xs:element name="font" form="unqualified">
+        <xs:complexType mixed="true">
+          <xs:sequence>
+            <xs:element minOccurs="0" maxOccurs="unbounded" name="a" form="unqualified">
+              <xs:complexType mixed="true">
+                <xs:attribute name="href" use="required" type="xs:anyURI"/>
+              </xs:complexType>
+            </xs:element>
+          </xs:sequence>
+          <xs:attribute name="size" use="required" type="xs:integer"/>
+          <xs:attribute name="create_obj_html_form" form="qualified" type="xs:integer"/>
+          <xs:attribute name="list_obj_form_html" form="qualified" type="xs:integer"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:group name="input">
+    <xs:sequence>
+      <xs:element name="input" form="unqualified">
+        <xs:complexType>
+          <xs:attribute name="name" use="required"/>
+          <xs:attribute name="simpleType"/>
+          <xs:attribute name="type" use="required" type="xs:NCName"/>
+          <xs:attribute name="value" use="required"/>
+          <xs:attribute ref="system_cache__appinfo:id"/>
+          <xs:attribute name="create_obj_html_form" form="qualified" type="xs:integer"/>
+          <xs:attribute name="list_obj_form_html" form="qualified" type="xs:integer"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:element name="db_list_obj_form_parse_php">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="p5_obj_vars:phpforeach"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_4812">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element minOccurs="0" ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_434c">
+    <xs:complexType>
+      <xs:attribute name="evaluate_key_value" use="required" form="qualified"/>
+      <xs:attribute name="previous_obj_instance_id" use="required" form="qualified"/>
+      <xs:attribute name="previous_obj_sequence_id" use="required" form="qualified"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="go_recurse_from_root_by_build_element_481">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="p5_obj_vars:create_obj_html_form"/>
+        <xs:element ref="p5_obj_vars:db_insert_parse_php"/>
+      </xs:choice>
+    </xs:complexType>
+  </xs:element>
+  <xs:group name="column_ELEMENT_ID">
+    <xs:sequence>
+      <xs:element name="column_ELEMENT_ID" form="unqualified">
+        <xs:complexType>
+          <xs:group minOccurs="0" ref="p5_obj_vars:COLUMN_VALUE"/>
+          <xs:attribute ref="sso_procesy5:read_key_value"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:group name="column_ELEMENT_NAME">
+    <xs:sequence>
+      <xs:element name="column_ELEMENT_NAME" form="unqualified">
+        <xs:complexType mixed="true">
+          <xs:group minOccurs="0" maxOccurs="unbounded" ref="p5_obj_vars:COLUMN_VALUE"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:group name="columns_CACHE_INSTANCE">
+    <xs:sequence>
+      <xs:element name="columns_CACHE_INSTANCE" form="unqualified">
+        <xs:complexType>
+          <xs:sequence>
+            <xs:element name="COLUMN_NAME" form="unqualified">
+              <xs:complexType>
+                <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+                <xs:attribute ref="system_cache__appinfo:xpath_full" use="required"/>
+              </xs:complexType>
+            </xs:element>
+            <xs:group ref="p5_obj_vars:COLUMN_VALUE"/>
+          </xs:sequence>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:group name="column_PARENT_ID">
+    <xs:sequence>
+      <xs:element name="column_PARENT_ID" form="unqualified">
+        <xs:complexType>
+          <xs:attributeGroup ref="sso_procesy5:evaluate_key_value"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:group name="column_CACHE_INSTANCE_ID">
+    <xs:sequence>
+      <xs:element name="column_CACHE_INSTANCE_ID" form="unqualified">
+        <xs:complexType>
+          <xs:attributeGroup ref="sso_procesy5:evaluate_key_value1"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:element name="column_ELEMENT_ID">
+    <xs:complexType mixed="true">
+      <xs:attribute ref="sso_procesy5:evaluate_from_ref_key_value"/>
+      <xs:attributeGroup ref="sso_procesy5:evaluate_key_value1"/>
+      <xs:attribute ref="sso_procesy5:read_key_value"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="column_ELEMENT_NAME" type="xs:NMTOKEN"/>
+  <xs:element name="column_PARENT_ID">
+    <xs:complexType mixed="true">
+      <xs:attributeGroup ref="sso_procesy5:evaluate_key_value1"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="column_VALUE">
+    <xs:complexType mixed="true">
+      <xs:attribute name="comment"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="column_REMOTE_ID">
+    <xs:complexType mixed="true">
+      <xs:attribute name="evaluate_key_value_remote" form="qualified"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="column_CACHE_INSTANCE_ID">
+    <xs:complexType mixed="true">
+      <xs:attribute name="evaluate_key_value_root_instance" form="qualified"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="columns_CACHE_INSTANCE">
+    <xs:complexType>
+      <xs:simpleContent>
+        <xs:extension base="xs:NCName">
+          <xs:attribute ref="system_cache__appinfo:xpath_full"/>
+        </xs:extension>
+      </xs:simpleContent>
+    </xs:complexType>
+  </xs:element>
+  <xs:group name="COLUMN_VALUE">
+    <xs:sequence>
+      <xs:element name="COLUMN_VALUE" form="unqualified">
+        <xs:complexType mixed="true">
+          <xs:attributeGroup ref="sso_procesy5:evaluate_key_value1"/>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:group>
+  <xs:attribute name="currentOccur" type="xs:integer"/>
+  <xs:attribute name="merge_keys_list_obj_form_html" type="xs:integer"/>
+</xs:schema>

+ 38 - 0
SE/schema/default_db_xml_cache.public/p5_obj_vars_php.xsd

@@ -0,0 +1,38 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+  targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars_php.xsd"
+  xmlns:p5_obj_vars="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars.xsd"
+  xmlns:sso_procesy5="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+  xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+  xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+  xmlns:p5_obj_vars_php="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars_php.xsd"
+  vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+  <xs:annotation>
+    <xs:documentation>Schemat wykorzystywanyny przez modul SSO - glownie zawiera nazwane typy do przetwarzania do aplikacji typowe dla zmiennych/funkcji w srodowisku php.</xs:documentation>
+  </xs:annotation>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    schemaLocation="appinfo.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars.xsd"
+    schemaLocation="p5_obj_vars.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    schemaLocation="p5_tr_map.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+    schemaLocation="sso_procesy5.xsd"/>
+  <xs:element name="phpforeach">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_434c"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_481"/>
+        <xs:element ref="p5_obj_vars:go_recurse_from_root_by_build_element_4812"/>
+      </xs:choice>
+      <xs:attribute ref="p5_obj_vars:currentOccur" use="required"/>
+      <xs:attribute ref="p5_obj_vars:merge_keys_list_obj_form_html" use="required"/>
+      <xs:attribute ref="p5_obj_vars_php:var" use="required"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:attribute name="var"/>
+</xs:schema>

+ 2553 - 0
SE/schema/default_db_xml_cache.public/p5_tr_map.xsd

@@ -0,0 +1,2553 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    vc:minVersion="1.1" attributeFormDefault="unqualified" elementFormDefault="qualified"
+    xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
+    <xs:annotation>
+        <xs:documentation>Schemat do appinfo do określania informacji o relacjach - doswiadczalny - propozycja - DRAFT
+
+@2015-11-19 modelowa struktura obietkow generowanych przez algorytm tworzenia mapy przetwarzania obiektow</xs:documentation>
+    </xs:annotation>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+        schemaLocation="appinfo.xsd"/>
+    <xs:element name="go_recurse_from_root_by_build_element">
+        <xs:complexType>
+            <xs:all>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434_root"/>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434er"/>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494"/>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4942"/>
+            </xs:all>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="objects_derivations_list">
+        <xs:annotation>
+            <xs:documentation>Lista derewiacji stworzona w generate_resources_xsl_require_occurs_raport</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element maxOccurs="unbounded" minOccurs="0" ref="p5_tr_map:derivations"/>
+            </xs:sequence>
+            <xs:attribute name="dereviation_count" type="xs:int"/>
+            <xs:attribute ref="p5_tr_map:parent_name_with_pref"/>
+            <xs:attribute ref="p5_tr_map:parent_id"/>
+            <xs:attribute ref="p5_tr_map:object_type_name_with_pref"/>
+            <xs:attribute ref="p5_tr_map:object_type_id"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:simpleType name="string_not_empty">
+        <xs:restriction base="xs:string">
+            <xs:minLength value="1"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:attribute name="parent_id" type="p5_tr_map:string_not_empty">
+        <xs:annotation>
+            <xs:documentation>np. default_accounting___d6e182 - nadrzedny complexType</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="object_type_id" type="p5_tr_map:string_not_empty">
+        <xs:annotation>
+            <xs:documentation>id uzytego typy dziecka complexType np. default_accounting___d6e182</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="parent_name_with_pref" type="p5_tr_map:string_not_empty">
+        <xs:annotation>
+            <xs:documentation>Nazwa najwyzszego complexType, z ktorego nastepuje dziedziczenie.</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="name_with_pref" type="p5_tr_map:string_not_empty"/>
+    <xs:attribute name="uuid">
+        <xs:annotation>
+            <xs:documentation>unikalny numer dla kazdego z rekordow - uzywany przez sso_procesy5 do wlasciwego przetwoarzenia elementu pod katem znalezienia wlasciwej derewiacji - dla kazdego z elementow @id  moga byc rozne konteksty uzycia pod katem dziedziczen. </xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:element name="derivations"> </xs:element>
+    <xs:element name="detect_parent_complexType_with_ref_to_procesy5_table">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element
+                    ref="system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table"
+                />
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="go_recurse_from_root_by_build_element_434">
+        <xs:annotation>
+            <xs:documentation>Poczatek mapy transformacji obiektu</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:complexContent>
+                <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434">
+                    <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434_root"/>
+                </xs:extension>
+            </xs:complexContent>
+        </xs:complexType>
+    </xs:element>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434">
+        <xs:annotation>
+            <xs:documentation>Z reguly przetwarzamy schemat tak, ze element jest przepuszczany do typu 434, dopiero przetwarzamy kolejny typ ktory jest albo dziedziczeniem albo wlasciwym elementem</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:complexType>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434c">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434c"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_434c">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_434c">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434c">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_434_after_477"
+                            />
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434d_root">
+        <xs:annotation>
+            <xs:documentation>434 w przypadku wglownego wezla
+</xs:documentation>
+        </xs:annotation>
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_434d" minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434d">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494d"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434n">
+        <xs:annotation>
+            <xs:documentation>:when test="local-name()='element' and @type and child::*/local-name()!='simpleType' and $p5_tr_map:last-type='477' and not(@id)"  warunek 434n zaraz po  477 ktore sie tyczy zasobow z bazy danych , ktore nie maja @id  - TODO jakos madrzej trzeba to wykryc</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434n"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_434n">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_434n" maxOccurs="0"
+                minOccurs="0">
+                <xs:annotation>
+                    <xs:documentation>@2016-01-20 przechodzimy na wyzwalanie 4777 i nie ma juz wyjscia do 434n / 734 </xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434n">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_734"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434_root">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_434" minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_494_after_434"
+                            />
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434_after_477">
+        <xs:choice>
+            <!--<xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_734"/>-->
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4812"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_481"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_loop"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_381"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3812"/>
+        </xs:choice>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434_before_481_etc">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_434" minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_434_before_481_etc_groups"
+                            />
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434_before_481_etc_groups">
+        <xs:sequence>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_481"/>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_477_element">
+        <xs:choice>
+            <xs:element name="go_recurse_from_root_by_build_element_459b"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_459b"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434c"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434n"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434d"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_381"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434r"/>
+        </xs:choice>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_459b">
+        <xs:annotation>
+            <xs:documentation>Element po @ref , ktory nie jest complexType - zawiera jedna wartosc wzglednie dodatkowo atrybuty. Wymagane instancjonowanie od razu z wartoscia</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_459b"/>
+    </xs:complexType>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434b">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434b"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_434b">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_434b">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434b">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494_2"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+            <!-- <xs:complexType>
+                    <xs:complexContent>-->
+            <!--<xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434b">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_481"/>
+                        </xs:extension>-->
+            <!--</xs:complexContent>
+                </xs:complexType>-->
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434d">
+        <xs:annotation>
+            <xs:documentation>np. teryt WOJ po refie - ktore nie jest complexType - jest tutaj jedno wstrzymanie na complexType, do przetworzenia na 481 kolejny element.</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434d"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_434d">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_434d">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434d">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_434d_after"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434d_after">
+        <xs:choice>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_481"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494d"/>
+        </xs:choice>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434er">
+        <xs:annotation>
+            <xs:documentation>Element z typem, lokalnie rozszerzony extension/restriction</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434er"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_434er">
+        <xs:all>
+            <xs:element minOccurs="0" name="go_recurse_from_root_by_build_element_434er">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434er">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_434er_after"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_434er_after">
+        <xs:all>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4942"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_473"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_434r">
+        <xs:annotation>
+            <xs:documentation>434r  warunek 434r w !__element__! =  /schema/complexType//@ref/!__element__!/complexType bez @type za @ref</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_434r"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_434r">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_434r">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_434r">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_481"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_381">
+        <xs:annotation>
+            <xs:documentation>Element z zawartoscia simpleContent - na pewno nie moze byc to complexContent. Ten elemenet moze zawierac atrybuty. Instancjonowany w tabeli typu instancja+wartosci. Bez dziedziczenia. </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_381"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_381">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_381">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_381">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_394x"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_3810">
+        <xs:annotation>
+            <xs:documentation>Element z zawartoscia simpleContent - na pewno nie moze byc to complexContent. Ten elemenet moze zawierac atrybuty. Instancjonowany w tabeli typu instancja+wartosci. Ostatnie dziedziczenie w przypadku wiecej niz jednego dziedziczenia.</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_3810"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_3810">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_3810">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_3810">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_394x"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_3811">
+        <xs:annotation>
+            <xs:documentation>Element z zawartoscia simpleContent - na pewno nie moze byc to complexContent. Ten elemenet moze zawierac atrybuty. Instancjonowany w tabeli typu instancja+wartosci. </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_3811"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_3811">
+        <xs:annotation>
+            <xs:documentation>Element z zawartoscia simpleContent - na pewno nie moze byc to complexContent. Ten elemenet moze zawierac atrybuty. Instancjonowany w tabeli typu instancja+wartosci.  Drugie i kolejne dziedziczenia w przypadku wiecej niz dwoch dziedziczen, nie ostatnie.</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_3811">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_3811">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_3811_afater"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_3811_afater">
+        <xs:choice>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3811"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3810"/>
+        </xs:choice>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_3812">
+        <xs:annotation>
+            <xs:documentation>Element z zawartoscia simpleContent - na pewno nie moze byc to complexContent. Ten elemenet moze zawierac atrybuty. Instancjonowany w tabeli typu instancja+wartosci. - Pierwsze dziedziczenie w przypadku wiecej niz jednego dziedziczenia.</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_3812"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_3812">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_3812">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_3812">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_3811_afater"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_481">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_481"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_481">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_481">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_481">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_494_2"
+                                minOccurs="0"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4811">
+        <xs:annotation>
+            <xs:documentation>pomiedzy 4812 a 4810</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4811"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4811">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_4811">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4811">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_4812"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4812">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4812"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4812">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_4812">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4812">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_4812"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4810">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4810"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4810">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_4810">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4810">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_494_2"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_4812">
+        <xs:sequence>
+            <xs:choice>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4811"/>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4810"/>
+            </xs:choice>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_720"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+            <xs:element minOccurs="0" name="go_recurse_from_root_by_build_element_473">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_473">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_473"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_394">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_394"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_394">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_394" minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_394">
+                            <xs:group minOccurs="0"
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_394x"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_3940">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_3940"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_3940">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_3940">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_3940">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_394x"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_3941">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_3941"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_3941">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_3941">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_3941">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_3941"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_3941">
+        <xs:sequence>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3941"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3940"/>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_3942">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_3942"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_3942">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_3942" minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_3942">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_3942"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_3942">
+        <xs:choice>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3940"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3941"/>
+        </xs:choice>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_394x">
+        <xs:all>
+            <xs:element minOccurs="0" ref="system_cache__appinfo:schema"/>
+            <xs:group minOccurs="1" ref="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_494d">
+        <xs:annotation>
+            <xs:documentation>warunek 494d complexType jako instancja elementu complexType bez @type - bez dziedziczen REMOTE_ID=parent::node()/ID</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_494d"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_494d">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_494d">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_494d">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494_2"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_494">
+        <xs:annotation>
+            <xs:documentation>ten typ 494 jest uzywany w przypadku complexType bez dodatkowych dziedziczen - wylacznie jak jest uzyty element jakiego nazwanego typu</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_494"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_494">
+        <xs:all>
+            <xs:element minOccurs="0" name="go_recurse_from_root_by_build_element_494">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_494">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494_2"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4942">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4942"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4942">
+        <xs:all>
+            <xs:element minOccurs="0" name="go_recurse_from_root_by_build_element_4942">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4942">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_4942"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_4942">
+        <xs:sequence>
+            <xs:choice>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4940"/>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4941"/>
+            </xs:choice>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_720"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+            <xs:element minOccurs="0" name="go_recurse_from_root_by_build_element_473">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_473">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_473"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4941">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4941"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4941">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_4941">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4941">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_4941"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_4941">
+        <xs:sequence>
+            <xs:choice>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4940"/>
+                <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4941"/>
+            </xs:choice>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_720"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+            <xs:element minOccurs="0" name="go_recurse_from_root_by_build_element_473">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_473">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_473"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4940">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4940"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4940">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_4940">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4940">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_494_2"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_494_1">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_494" minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_494">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494_2"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_494_after_434">
+        <xs:all>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_494_1"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4942"/>
+            <!--<xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_473"/>-->
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_394"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_3942"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434d_root"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_459"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_473"/>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_494_2">
+        <xs:all>
+            <xs:group minOccurs="1"
+                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_494_2"/>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_494_2">
+        <xs:all>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_473"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4771"/>
+            <xs:element name="go_recurse_from_root_by_build_element_loop"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_loop" minOccurs="0"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_473">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_473"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_473">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_473">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_473">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_473"
+                                maxOccurs="1"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:group name="go_recurse_from_root_by_build_element_after_473">
+        <xs:all>
+            <xs:group maxOccurs="1" minOccurs="1"
+                ref="p5_tr_map:go_recurse_from_root_by_build_element_477"/>
+            <xs:group maxOccurs="1" minOccurs="1"
+                ref="p5_tr_map:go_recurse_from_root_by_build_element_428a"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_428"/>
+            <xs:group maxOccurs="1" minOccurs="1"
+                ref="p5_tr_map:go_recurse_from_root_by_build_element_473"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434_before_481_etc"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_459"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_477b"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_473b"/>
+            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_4777"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_473b">
+        <xs:annotation>
+            <xs:documentation>xsl:when test="local-name()='element' and not(@type) and child::node()/local-name()='complexType' and not(@system_cache__appinfo:root_element_in_schema='true')" 
+element|sequence/complexType/element|sequence|attribute - to jest to cos w rodzaju sequence - element bez wartosci - do ktorego mozna gromadzic atrybuty lub inne elementy - nowy warunek 473b  </xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_473b"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_473b">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_473b" maxOccurs="unbounded"
+                minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_473b">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_434b"/>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_459">
+        <xs:annotation>
+            <xs:documentation>when test="( local-name()='element'  ) and child::node()/local-name()='simpleType' and $p5_tr_map:last-type!='477'  warunek 459 (podobny do 428) element lub atrybut typu simpleType np. default_default_objects_types___d10e120614-1 - schema/complexType/seq/ELEMENT/simpleType/restriction/@base</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_459"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_459">
+        <xs:all>
+            <xs:element name="go_recurse_from_root_by_build_element_459" maxOccurs="unbounded"
+                minOccurs="0">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_459">
+                            <xs:sequence>
+                                <xs:element minOccurs="0" ref="system_cache__appinfo:schema"/>
+                            </xs:sequence>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_720">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_720">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_720"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_720"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_394-720">
+        <xs:annotation>
+            <xs:documentation>394-720 pobranie wartosci atrybutu po @ref z tabeli instancja+value</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_394-720"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_394-720">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_394-720">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_394-720">
+                            <xs:sequence>
+                                <xs:element minOccurs="0" ref="system_cache__appinfo:schema"/>
+                            </xs:sequence>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_477">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_477"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_477">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_477">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_477">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_after_477_element"
+                            />
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4777">
+        <xs:annotation>
+            <xs:documentation>Wywolanie pseudo instancji kombinowanej do obiektu plaskiego z default_db , ktorego dane maja byc integrowane z obiektem odwolujacym sie. Tylko jedna jest mozliwa taka referencja i powinna byc ona na pierwszym miejscu w schemacie elementu zaraz za pierwszym sequence.</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4777"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4777">
+        <xs:all>
+            <xs:element maxOccurs="1" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_4777">
+                <xs:annotation>
+                    <xs:documentation>od 2016-01-20 jest ref do zasobow natywnej plaskiej tabeli , kombinowanej z instancja, w typie 4777 - tylko jedna taka referencja moze byc</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4777">
+                            <xs:sequence>
+                                <xs:element ref="system_cache__appinfo:schema">
+                                    <xs:annotation>
+                                        <xs:documentation>Powinien tutaj byc schemat elementu do ktorego sie odwoluje</xs:documentation>
+                                    </xs:annotation>
+                                </xs:element>
+                            </xs:sequence>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_477b">
+        <xs:annotation>
+            <xs:documentation>when test="local-name()='element' and @type and child::* and $p5_tr_map:last-type!='477' 
+477b wymuszenie 477 na pierwszym elemencie ktory jest @complexType i nie jest ref 477 
+
+sa to ComplexType nazwanego typu uzyte jako elementy w schemacie analogicznie jak @ref, z tymze na zasadzie @type. W zwiazku z czym jest troche inne przetwarzanie, ale robimy tak samo jak w 477, z tymze odwolujemy sie do innych nazw i inaczej zachowuja sie dziedziczenia- TODO uzyty jest tylko typ, bez elementu - dziedziczenia zgodne z typem.</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_477b"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_477b">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_477b">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_477b">
+                            <xs:group
+                                ref="p5_tr_map:go_recurse_from_root_by_build_element_434_after_477"
+                            />
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_4771">
+        <xs:annotation>
+            <xs:documentation>4771 (aktualizacja @prefix_for_elements) pobranie atrybutu z referencja.  ma @ref i musi miec REMOTE_ID</xs:documentation>
+        </xs:annotation>
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_4771"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_4771">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_4771">
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_4771">
+                            <xs:group ref="p5_tr_map:go_recurse_from_root_by_build_element_394-720"
+                            />
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_428">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_428"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_428">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_428"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_428"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_428a">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_428a"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_428a">
+        <xs:all>
+            <xs:element maxOccurs="unbounded" minOccurs="0"
+                name="go_recurse_from_root_by_build_element_428a"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_428a"/>
+        </xs:all>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_734">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_734"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_734">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_734" maxOccurs="0" minOccurs="0">
+                <xs:annotation>
+                    <xs:documentation>@2016-01-20 przechodzimy na wyzwalanie 4777 i nie ma juz wyjscia do 434n / 734 </xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:complexContent>
+                        <xs:extension base="p5_tr_map:go_recurse_from_root_by_build_element_734">
+                            <xs:sequence>
+                                <xs:element ref="system_cache__appinfo:schema">
+                                    <xs:annotation>
+                                        <xs:documentation>Pobranie danych z plaskiej tabeli z API</xs:documentation>
+                                    </xs:annotation>
+                                </xs:element>
+                            </xs:sequence>
+                        </xs:extension>
+                    </xs:complexContent>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:group>
+    <xs:complexType name="go_recurse_from_root_by_build_element_loop">
+        <xs:attributeGroup ref="p5_tr_map:go_recurse_from_root_by_build_element_loop"/>
+    </xs:complexType>
+    <xs:group name="go_recurse_from_root_by_build_element_loop">
+        <xs:sequence>
+            <xs:element name="go_recurse_from_root_by_build_element_loop"
+                type="p5_tr_map:go_recurse_from_root_by_build_element_loop" minOccurs="0"/>
+        </xs:sequence>
+    </xs:group>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_381">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. RESOURCE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="381" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. RESOURCE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. RESOURCE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:root_element_in_schema"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type"/>
+        <xs:attribute ref="system_cache__appinfo:loop"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_3810">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="3810" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>tutaj pusty</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. teryt</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required">
+            <xs:annotation>
+                <xs:documentation>np. http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+        <xs:attribute ref="system_cache__appinfo:loop"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_3811">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="3811" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>tutaj pusty</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. teryt</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required">
+            <xs:annotation>
+                <xs:documentation>np. http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+        <xs:attribute ref="system_cache__appinfo:loop"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_3812">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Adres_Prawidlowy</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="3812" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Adres_Prawidlowy</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Adres_Prawidlowy</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. teryt</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required">
+            <xs:annotation>
+                <xs:documentation>np. http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type" use="optional"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4810">
+        <xs:annotation>
+            <xs:documentation>4810 tutaj jest tabela z dodatkowa derewiacja @type, z instancjami,  obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) </xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="4810" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>tutaj pusty</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. teryt</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required">
+            <xs:annotation>
+                <xs:documentation>np. http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+        <xs:attribute ref="system_cache__appinfo:loop"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4811">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="4811" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>tutaj pusty</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Opcje_Adresowe</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. teryt</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required">
+            <xs:annotation>
+                <xs:documentation>np. http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+        <xs:attribute ref="system_cache__appinfo:loop"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4812">
+        <xs:annotation>
+            <xs:documentation>4812 derewiacja na child::node=complexType , z instancjami,  obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) </xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Adres_Prawidlowy</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="4812" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Adres_Prawidlowy</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. Teryt_Adres_Prawidlowy</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. teryt</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required">
+            <xs:annotation>
+                <xs:documentation>np. http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type" use="optional"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_481">
+        <xs:annotation>
+            <xs:documentation>481 tutaj jest tabela z instancjami obych obiektow (ComplexType) , pytamy sie o konkretne ID=@REMOTE_ID w konkretnej tabeli (nie ma parent_type) </xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. RESOURCE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="481" name="event_type" use="required"/>
+        <xs:attribute name="parent_name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. RESOURCE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name">
+            <xs:annotation>
+                <xs:documentation>np. RESOURCE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:root_element_in_schema"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="p5_tr_map:parent_type"/>
+        <xs:attribute ref="system_cache__appinfo:loop"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434">
+        <xs:annotation>
+            <xs:documentation>434 przepuszczenie pierwszego elementu jezeli ma @type - magazynujemy go w complexType nizej local-name:element @name:TELBOXES @id: INSTANCE_ID: np. dla elementu MAGAZYN, ktory ma @type MAGAZYN</xs:documentation>
+        </xs:annotation>
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434" name="event_type" use="required"/>
+        <xs:attribute use="required" ref="system_cache__appinfo:id"/>
+        <xs:attribute fixed="element[@type]/node()" name="event_name" use="required"/>
+        <xs:attribute name="parent_type">
+            <xs:annotation>
+                <xs:documentation>np. default_corespondence:document_position_offer</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434b">
+        <xs:annotation>
+            <xs:documentation>434b przepuszczenie pierszego elementu dla przypadku //schema/element/complexType - magazynujemy go w complexType nizej local-name:element @name:WOJ @id:TERYT_terc_xml_import_after_main___d44e20 INSTANCE_ID: np. dla elementu teryt(..):WOJ , ktory ma nizej complexType</xs:documentation>
+        </xs:annotation>
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434b" name="event_type" use="required"/>
+        <xs:attribute name="id" use="required"/>
+        <xs:attribute fixed="element[]/complexType" name="event_name" use="required"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434c">
+        <xs:annotation>
+            <xs:documentation>434c po 477 po refie ktory jest na element</xs:documentation>
+        </xs:annotation>
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434c" name="event_type" use="required"/>
+        <xs:attribute use="required" ref="system_cache__appinfo:id"/>
+        <xs:attribute fixed="element[@type]/node()" name="event_name" use="required"/>
+        <xs:attribute name="parent_type"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434d">
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434d" name="event_type" use="required"/>
+        <xs:attribute use="required" ref="system_cache__appinfo:id"/>
+        <xs:attribute fixed="element[@type]/node()" name="event_name" use="required"/>
+        <xs:attribute name="parent_type"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434n">
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434n" name="event_type" use="required"/>
+        <xs:attribute use="prohibited" ref="system_cache__appinfo:id"/>
+        <xs:attribute fixed="element[@type]/node()" name="event_name" use="required"/>
+        <xs:attribute name="parent_type"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434r">
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434r" name="event_type" use="required"/>
+        <xs:attribute use="required" ref="system_cache__appinfo:id"/>
+        <xs:attribute fixed="element[@type]/node()" name="event_name" use="required"/>
+        <xs:attribute name="parent_type"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_434er">
+        <xs:attribute name="comment"/>
+        <xs:attribute fixed="434er" name="event_type" use="required"/>
+        <xs:attribute use="required" ref="system_cache__appinfo:id"/>
+        <xs:attribute fixed="element[@type]/node()" name="event_name" use="required"/>
+        <xs:attribute name="parent_type"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_473">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_PARENT_ID" use="required"/>
+        <xs:attribute name="retrieve_resource_id" use="required"/>
+        <xs:attribute name="local-name" use="required">
+            <xs:simpleType>
+                <xs:restriction base="xs:string">
+                    <xs:enumeration value="sequence"/>
+                    <xs:enumeration value="choice"/>
+                    <xs:enumeration value="all"/>
+                </xs:restriction>
+            </xs:simpleType>
+        </xs:attribute>
+        <xs:attribute fixed="473" name="event_type" use="required"/>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_473b">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_PARENT_ID" use="required"/>
+        <xs:attribute name="retrieve_resource_id" use="required"/>
+        <xs:attribute name="local-name" use="required">
+            <xs:simpleType>
+                <xs:restriction base="xs:string">
+                    <xs:enumeration value="sequence"/>
+                    <xs:enumeration value="choice"/>
+                    <xs:enumeration value="all"/>
+                    <xs:enumeration value="element"/>
+                </xs:restriction>
+            </xs:simpleType>
+        </xs:attribute>
+        <xs:attribute fixed="473b" name="event_type" use="required"/>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_local"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path"/>
+        <xs:attribute name="parent-name"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_459b">
+        <xs:annotation>
+            <xs:documentation>459b element lub atrybut typu simpleType</xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. NAZWA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. TERYT_terc_xml_import_after_main:NAZWA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="459b" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:type" use="required">
+            <xs:annotation>
+                <xs:documentation>np. xs:int  TODO do potrzebny schemat typu prostego</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>np. TERYT_terc_xml_import_after_main___d44e182</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_local">
+            <xs:annotation>
+                <xs:documentation>TODO? tutaj pusty? czy to dobrze?</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute name="restriction_base_attr">
+            <xs:annotation>
+                <xs:documentation>existient todo look for:xs:int; $restriction_path:_start_/element:ID/;</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="id-orig-from-restriction">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types___d20e438-id-mag-restr
+Jest to @id elementu oryginalne z restrykcji, ktore zostalo podmienione w polu @id na odpowiednik obiektu z bazowego schematu, aby trzymac dane w tej samej tabeli</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>eg. _start_/element:ID/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_459">
+        <xs:annotation>
+            <xs:documentation>459 element lub atrybut typu simpleType</xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>
+</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. prefix:nazwa_attr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="459" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:type">
+            <xs:annotation>
+                <xs:documentation>np. xs:int  TODO do potrzebny schemat typu prostego .
+
+w 459 - w zaleznosci od sposobu wyrazonej restrykcji moze zdarzyc sie tam @type</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>np. TERYT_terc_xml_import_after_main___d44e182</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="optional"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_local"/>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute name="restriction_base_attr">
+            <xs:annotation>
+                <xs:documentation>existient todo look for:xs:int; $restriction_path:_start_/element:ID/;</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="id-orig-from-restriction">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types___d20e438-id-mag-restr
+Jest to @id elementu oryginalne z restrykcji, ktore zostalo podmienione w polu @id na odpowiednik obiektu z bazowego schematu, aby trzymac dane w tej samej tabeli</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>eg. _start_/element:ID/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_720">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="attribute" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. testattr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. testattr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="720" name="event_type" use="required"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. testattr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:use"/>
+        <xs:attribute ref="system_cache__appinfo:type"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full"/>
+        <xs:attribute ref="system_cache__appinfo:xpath"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_local"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_394-720">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="attribute" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. testattr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. testattr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="394-720" name="event_type" use="required"/>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. testattr</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:use"/>
+        <xs:attribute ref="system_cache__appinfo:type"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full"/>
+        <xs:attribute ref="system_cache__appinfo:xpath"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_local"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+        <xs:attribute ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_394">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute fixed="394" name="event_type"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_3940">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="3940" name="event_type"/>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_3941">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="3941" name="event_type"/>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_3942">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute fixed="3942" name="event_type"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_494d">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute fixed="494d" name="event_type"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="prohibited">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:root_element_in_schema" use="prohibited">
+            <xs:annotation>
+                <xs:documentation>raczej jest to complex, wiec root-in schema pojdzie w 343d, nie tu.</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute name="parent_name">
+            <xs:annotation>
+                <xs:documentation>Przeniesiony parametr z poprzedniego typu 343d, zaczytany z @name</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_494">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute fixed="494" name="event_type"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4941">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="4941" name="event_type"/>
+        <xs:attribute fixed="494" name="event_type_old"/>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4942">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute fixed="4942" name="event_type"/>
+        <xs:attribute fixed="494" name="event_type_old"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4940">
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="empty(REMOTE_ID) or REMOTE_ID" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute name="retrieve_TYPE">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="complexType" name="local-name"/>
+        <xs:attribute name="local-name-name">
+            <xs:annotation>
+                <xs:documentation>np. LOKALIZACJA</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="4940" name="event_type"/>
+        <xs:attribute fixed="494" name="event_type_old"/>
+        <xs:attribute name="restriciction_base"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath">
+            <xs:annotation>
+                <xs:documentation>eg. default_default_objects_types:MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>eg. MAGAZYN</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation/>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_477">
+        <xs:annotation>
+            <xs:documentation>477 (aktualizacja @prefix_for_elements) pobranie elementu z referencja do tabeli natywnej SE lub innej - ma @ref i musi miec REMOTE_ID np. MAGAZYN/sequence/default_db:TELBOXES (@ref) pasuje tez element /MAGAZYN//sequence/teryt:AdresUlica TODO element z ref nie moze miec ID </xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_PARENT_ID" use="required"/>
+        <xs:attribute fixed="not empty(REMOTE_ID)" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="477" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:ref" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_local" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>raczej nie potrzebne w dalszym przetwarzaniu _start_/element:@ref:default_default_objects_types:RESOURCE//element:RESOURCE//element:@ref:default_db:CRM_LISTA_ZASOBOW/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:loop_name"/>
+        <xs:attribute ref="system_cache__appinfo:loop_id"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:loop_name_with_prefix"/>
+        <xs:attribute ref="p5_tr_map:detect_loop_from_build_complexType_node_comment"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_477b">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_PARENT_ID" use="required"/>
+        <xs:attribute fixed="not empty(REMOTE_ID)" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="477b" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:ref" use="prohibited">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_local" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>raczej nie potrzebne w dalszym przetwarzaniu _start_/element:@ref:default_default_objects_types:RESOURCE//element:RESOURCE//element:@ref:default_db:CRM_LISTA_ZASOBOW/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:loop_name"/>
+        <xs:attribute ref="system_cache__appinfo:loop_id"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name"/>
+        <xs:attribute ref="system_cache__appinfo:type"/>
+        <xs:attribute ref="system_cache__appinfo:targetNamespace"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4771">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_PARENT_ID" use="required"/>
+        <xs:attribute fixed="not empty(REMOTE_ID)" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute fixed="attribute" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:xxxx</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:xxxx</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="4771" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:ref" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:some_attr_refered
+</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_local" use="prohibited">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>raczej nie potrzebne w dalszym przetwarzaniu _start_/element:@ref:default_default_objects_types:RESOURCE//element:RESOURCE//element:@ref:default_db:CRM_LISTA_ZASOBOW/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:loop_name"/>
+        <xs:attribute ref="system_cache__appinfo:loop_id"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_4777">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_PARENT_ID" use="required"/>
+        <xs:attribute fixed="not empty(REMOTE_ID)" name="retrieve_REMOTE_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="INSTANCE" name="requested-table-type" use="required"/>
+        <xs:attribute fixed="4777" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:ref" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_local" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_db:CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>raczej nie potrzebne w dalszym przetwarzaniu _start_/element:@ref:default_default_objects_types:RESOURCE//element:RESOURCE//element:@ref:default_db:CRM_LISTA_ZASOBOW/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:loop_name"/>
+        <xs:attribute ref="system_cache__appinfo:loop_id"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute fixed="0" name="position" use="required">
+            <xs:annotation>
+                <xs:documentation>Wyliczona pozycja elementu w schemacie - powinna byc pierwsza pozycja na lisciu schematu, zaraz za sequence, wiec=0 </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_734">
+        <xs:annotation>
+            <xs:documentation>734  pobranie elementu zwyczajowo z default_db, bo nie ma @id i jest complextype np.  MAGAZYN/sequence/default_db:TELBOXES/(obiekt z tabeli TELBOXES z ID=@REMOTE_ID)</xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/REMOTE_ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="complexType" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. TELBOXES</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="*" name="copy-retrieved-element" use="required"/>
+        <xs:attribute fixed="734" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="0" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute fixed="true" ref="system_cache__appinfo:root_element_in_schema" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_428">
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. ID</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_full"/>
+        <xs:attribute ref="system_cache__appinfo:xpath"/>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. ID</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="428" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:targetNamespace"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:type" use="optional">
+            <xs:annotation>
+                <xs:documentation>np. xs:int  TODO do potrzebny schemat typu prostego</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_local"/>
+        <xs:attribute name="restriction_base_attr">
+            <xs:annotation>
+                <xs:documentation>existient todo look for:xs:int; $restriction_path:_start_/element:ID/;</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="id-orig-from-restriction">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types___d20e438-id-mag-restr
+Jest to @id elementu oryginalne z restrykcji, ktore zostalo podmienione w polu @id na odpowiednik obiektu z bazowego schematu, aby trzymac dane w tej samej tabeli</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="xpath_local">
+            <xs:annotation>
+                <xs:documentation>TODO BLAD - w przykladzie z MAGAZYNU jest wartosc xs:int</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>eg. _start_/element:ID/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_428a">
+        <xs:annotation>
+            <xs:documentation>428a - parent_name:default_default_objects_types:MAGAZYN pusty element - tylko instancja</xs:documentation>
+        </xs:annotation>
+        <xs:attribute fixed="parent::node()/ID" name="retrieve_ID" use="required"/>
+        <xs:attribute fixed="element" name="local-name" use="required"/>
+        <xs:attribute name="local-name-name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. ID</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_full"/>
+        <xs:attribute ref="system_cache__appinfo:xpath"/>
+        <xs:attribute name="create_element" use="required">
+            <xs:annotation>
+                <xs:documentation>np. ID</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="428a" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:targetNamespace"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_base_attr"/>
+        <xs:attribute ref="system_cache__appinfo:id-orig-from-restriction"/>
+        <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:type" use="optional">
+            <xs:annotation>
+                <xs:documentation>np. xs:int  TODO do potrzebny schemat typu prostego</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:xpath_local"/>
+        <xs:attribute name="restriction_base_attr">
+            <xs:annotation>
+                <xs:documentation>existient todo look for:xs:int; $restriction_path:_start_/element:ID/;</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="id-orig-from-restriction">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types___d20e438-id-mag-restr
+Jest to @id elementu oryginalne z restrykcji, ktore zostalo podmienione w polu @id na odpowiednik obiektu z bazowego schematu, aby trzymac dane w tej samej tabeli</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="xpath_local">
+            <xs:annotation>
+                <xs:documentation>TODO BLAD - w przykladzie z MAGAZYNU jest wartosc xs:int</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="1" ref="system_cache__appinfo:sort" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types__d20e41</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:namespace_uri" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:restriction_path">
+            <xs:annotation>
+                <xs:documentation>eg. _start_/element:ID/</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:default"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="go_recurse_from_root_by_build_element_loop">
+        <xs:attribute fixed="loop" name="local-name" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:xpath_full"/>
+        <xs:attribute ref="system_cache__appinfo:xpath"/>
+        <xs:attribute name="root_name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. default_default_objects_types:URZADZENIE</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute fixed="loop" name="event_type" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:id" use="required">
+            <xs:annotation>
+                <xs:documentation>The same like in retrieve_resource_id</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:path"/>
+        <xs:attribute ref="system_cache__appinfo:name" use="required">
+            <xs:annotation>
+                <xs:documentation>np. CRM_LISTA_ZASOBOW</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute ref="system_cache__appinfo:restriction_path_TODEL"/>
+        <xs:attribute ref="system_cache__appinfo:restriciction_base_lenght_TODEL"/>
+        <xs:attribute name="comment"/>
+        <xs:attribute ref="p5_tr_map:uuid" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+        <xs:attribute ref="system_cache__appinfo:name_with_prefix" use="required"/>
+    </xs:attributeGroup>
+    <!--<xs:attribute name="object_type_name_with_pref" type="xs:NMTOKEN"/>-->
+    <xs:attribute name="object_type_name_with_pref">
+        <xs:annotation>
+            <xs:documentation>jakiego typu dziedziczenia jest uzyty complexType</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attributeGroup name="parent_name_with_pref">
+        <xs:attribute form="qualified" name="parent_name_with_pref" use="required"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="parent_name_with_pref1">
+        <xs:attribute form="qualified" name="parent_name_with_pref" type="xs:NMTOKEN" use="required"
+        />
+    </xs:attributeGroup>
+    <!--<xs:attribute name="object_type_id" type="xs:NCName"/>-->
+    <xs:attribute name="event_type" type="xs:NMTOKEN"/>
+    <xs:attribute name="parent_type"/>
+    <!--<xs:element name="schema_4777">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="element" targetNamespace="http://www.w3.org/2001/XMLSchema">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="element"
+                                targetNamespace="http://www.w3.org/2001/XMLSchema">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="complexType"
+                                            targetNamespace="http://www.w3.org/2001/XMLSchema">
+                                            <xs:complexType>
+                                                <xs:sequence>
+                                                  <xs:element name="sequence"
+                                                  targetNamespace="http://www.w3.org/2001/XMLSchema">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element maxOccurs="unbounded" name="element"
+                                                  targetNamespace="http://www.w3.org/2001/XMLSchema">
+                                                  <xs:complexType>
+                                                  <xs:sequence minOccurs="0">
+                                                  <xs:element name="simpleType"
+                                                  targetNamespace="http://www.w3.org/2001/XMLSchema">
+                                                  <xs:complexType>
+                                                  <xs:sequence minOccurs="0">
+                                                  <xs:element name="restriction"
+                                                  targetNamespace="http://www.w3.org/2001/XMLSchema"
+                                                  />
+                                                  </xs:sequence>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                </xs:sequence>
+                                            </xs:complexType>
+                                        </xs:element>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>-->
+    <xs:attribute name="detect_loop_from_build_complexType_node_comment">
+        <xs:annotation>
+            <xs:documentation>mainly at 477 - to detect if child nodes are loop (recursive action) which could be detected by partially instance object ref.</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+</xs:schema>

+ 50 - 0
SE/schema/default_db_xml_cache.public/procesy5_bpmn_cache.xsd

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
+    xmlns:system_cache__procesy5_xsd_business_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_xsd_business_objects.xsd"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="http://www.omg.org/spec/BPMN/20100524/MODEL" vc:minVersion="1.1"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:annotation>
+        <xs:documentation>Used for correctly generating BPMN diagrams / transforms from Procesy5 process structure.</xs:documentation>
+
+
+    </xs:annotation>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_xsd_business_objects.xsd"
+        schemaLocation="procesy5_xsd_business_objects.xsd" id="redefine___d187e9"/>
+    <xs:redefine schemaLocation="../public_schema_references/www.omg.org/BPMN20.xsd"
+        id="redefine___d187e11">
+        <xs:complexType name="tExtensionElements" id="redefine___d187e13">
+            <xs:complexContent id="redefine___d187e15">
+                <xs:extension base="tExtensionElements" id="redefine2___d187e17">
+                    <xs:sequence maxOccurs="unbounded" minOccurs="0" id="redefine___d187e19">
+                        <xs:annotation id="redefine___d187e21">
+                            <xs:documentation>Dowiązanie zasobów procesy5
+Association of Procesy5 resources notation
+</xs:documentation>
+
+
+                        </xs:annotation>
+                        <xs:element minOccurs="0" name="procesy5_business_object_assoc"
+                            type="system_cache__procesy5_xsd_business_objects:procesy5_busines_object"
+                            id="redefine___d187e27"/>
+
+
+
+
+                    </xs:sequence>
+
+
+
+                </xs:extension>
+
+
+            </xs:complexContent>
+
+
+        </xs:complexType>
+
+
+    </xs:redefine>
+</xs:schema>

+ 76 - 0
SE/schema/default_db_xml_cache.public/procesy5_objects_item_links.xsd

@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__procesy5_objects_item_links="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_objects_item_links.xsd"
+    xmlns:default_db_ITEM_LINKS="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/ITEM_LINKS"
+    xmlns:default_db_ITEM_LINK_TYPES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/ITEM_LINK_TYPES"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_objects_item_links.xsd"
+    vc:minVersion="1.1" xmlns:default_db="http://biuro.biall-net.pl/xmlschema_procesy5/default_db"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:annotation id="system_cache__procesy5_objects_item_links___d189e3">
+        <xs:documentation>TODO @2015-02-15 to chyba nie jest używane i nie ma sensu. System relacyjny w silniku powinien wyprzeć jakieś tabele typu ITEM LINKS?</xs:documentation>
+    </xs:annotation>
+    <xs:import namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db"
+        schemaLocation="../default_db/default_db.xsd"/>
+    <xs:element name="SOURCE_TABLE_RELATION" abstract="true">
+        <xs:annotation>
+            <xs:documentation>@2015-09-16 propozycja draft konfiga dla relacji pomiedzy tabelami w SE z proba ustalania schematow</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="SINGLE_RELATION">
+                    <xs:complexType>
+                        <xs:attribute name="remote_table_name" type="xs:string" use="required"/>
+                        <xs:attribute name="local_key_column" type="xs:string" use="required"/>
+                        <xs:attribute name="remote_key_column" type="xs:string" use="required"/>
+                        <xs:attribute name="remote_object_name" type="xs:string">
+                            <xs:annotation>
+                                <xs:documentation>TODO chodzi o zdefiniowanie filtra do relacji, w przypadku, kiedy oczekujemy konkretnego obiektu z filterm - np: 
+xmlns:default_db__USERS2_OFFERS="default_db:USERS2_OFFERS"
+
+default_db__USERS2_OFFERS, ktore jest oferta typu NET
+</xs:documentation>
+                            </xs:annotation>
+                        </xs:attribute>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="MULTI_RELATION_BY_TABLE">
+                    <xs:complexType>
+                        <xs:attribute name="remote_table_name" type="xs:string" use="required"/>
+                        <xs:attribute name="local_key_column" type="xs:string" use="required"/>
+                        <xs:attribute name="remote_key_column" type="xs:string" use="required"/>
+                        <xs:attribute name="relation_table_name" type="xs:string" use="required"/>
+                        <xs:attribute name="local_occurs_separator">
+                            <xs:simpleType>
+                                <xs:restriction base="xs:string">
+                                    <xs:length value="1"/>
+                                    <xs:enumeration value=","/>
+                                    <xs:enumeration value=" "/>
+                                </xs:restriction>
+                            </xs:simpleType>
+                        </xs:attribute>
+                        <xs:attribute name="max_Occurs" type="xs:int"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="MULTI_RELATION_BY_ITEM_LINKS">
+                    <xs:complexType>
+                        <xs:attribute name="remote_table_name" type="xs:string" use="required"/>
+                        <xs:attribute name="local_key_column" type="xs:string" use="required"/>
+                        <xs:attribute name="remote_key_column" type="xs:string" use="required"/>
+                        <xs:attribute name="local_occurs_separator">
+                            <xs:simpleType>
+                                <xs:restriction base="xs:string">
+                                    <xs:length value="1"/>
+                                    <xs:enumeration value=","/>
+                                    <xs:enumeration value=" "/>
+                                </xs:restriction>
+                            </xs:simpleType>
+                        </xs:attribute>
+                        <xs:attribute name="max_Occurs" type="xs:int"/>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+            <xs:attribute name="source_table_name" type="xs:string" use="required"/>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 400 - 0
SE/schema/default_db_xml_cache.public/procesy5_xsd_business_objects.xsd

@@ -0,0 +1,400 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__procesy5_xsd_business_objects="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_xsd_business_objects.xsd"
+    xmlns:default_default_objects_types="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/default_objects_types.xsd"
+    xmlns:default_crm_proces="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_proces.xsd"
+    xmlns:default_crm_wskaznik="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/crm_wskaznik.xsd"
+    elementFormDefault="qualified"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_xsd_business_objects.xsd"
+    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e3">
+        <xs:documentation>Schemat używany do transformacji procesów do BPMN w pliku XSL. Na podstawie jego jest robiony redefine natywnego schematu BPMN.
+
+Nie powinno się w tym widoku łączyć z obiektami systemu - tylko trzeba korzystać ze struktur danych w tabelach  i z nich robić prototypy czegoś co jest rozumiane jako obiekty w /default_objects_types/</xs:documentation>
+    </xs:annotation>
+    <xs:complexType name="procesy5_resource"
+        id="system_cache__procesy5_xsd_business_objects___d191e15">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e17">
+            <xs:documentation>Zasoby z tabeli zasobow</xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e23">
+            <xs:element name="resource_name"
+                id="system_cache__procesy5_xsd_business_objects___d191e25">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e27">
+                    <xs:documentation>Do DESC. To jest nazwa elementu/obietku, lecz z uwagi na zagnieżdzenia jej w tabeli płaskiej, nie może być kluczem xs:ID tylko inaczej trzeba to obejsc - na UNIQUE</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="resource_type"
+                type="system_cache__procesy5_xsd_business_objects:resource_types"
+                id="system_cache__procesy5_xsd_business_objects___d191e34">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e36">
+                    <xs:documentation>Do TYPE. Każdy wchodzący do tabeli element schematu jest jednym z tych typów.</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="resource_parent_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e43">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e45">
+                    <xs:documentation>do PARENT_ID. Główny rdzeń drzewa powinien mieć nazwę "root" </xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="path" id="system_cache__procesy5_xsd_business_objects___d191e52">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e54">
+                    <xs:documentation>Do ID.  Ścieżka xpath, pomocna w rozumieniu lokalizacji obiektu. 
+Np: prefix/default_db_CRM_LISTA_ZASOBOW/complexContent/complexType 
+Obiekty przy pakowaniu do bazy danych planujemy aby na podstawie path miały unikalność (klucz). 
+
+Czyli to pole powinno być unikalne jako XS:ID</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="annotation_documentation" type="xs:string"
+                id="system_cache__procesy5_xsd_business_objects___d191e61">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e63">
+                    <xs:documentation>Opisy elementu - powinny pojsc do pola OPIS w zasobach</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="php" type="xs:string"
+                id="system_cache__procesy5_xsd_business_objects___d191e71"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="type_can_have_alias_id"
+        id="system_cache__procesy5_xsd_business_objects___d191e76">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e78">
+            <xs:documentation>obiekt do definiowania mozliwych typow jakie moga byc uzywane w CRM_LISTA_ZASOBOW , jakie moga byc importowane z XSD do tabeli</xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e84">
+            <xs:element minOccurs="0" name="alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e86"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:simpleType name="xsd_maxOccurs" id="system_cache__procesy5_xsd_business_objects___d191e90">
+        <xs:union id="system_cache__procesy5_xsd_business_objects___d191e92">
+            <xs:simpleType id="system_cache__procesy5_xsd_business_objects___d191e94">
+                <xs:restriction base="xs:nonNegativeInteger"
+                    id="system_cache__procesy5_xsd_business_objects___d191e96"/>
+            </xs:simpleType>
+            <xs:simpleType id="system_cache__procesy5_xsd_business_objects___d191e99">
+                <xs:restriction
+                    base="system_cache__procesy5_xsd_business_objects:xsd_maxOccurs_unbounded"
+                    id="system_cache__procesy5_xsd_business_objects___d191e101"/>
+            </xs:simpleType>
+        </xs:union>
+    </xs:simpleType>
+    <xs:simpleType name="xsd_maxOccurs_unbounded"
+        id="system_cache__procesy5_xsd_business_objects___d191e106">
+        <xs:restriction base="xs:string" id="system_cache__procesy5_xsd_business_objects___d191e108">
+            <xs:enumeration value="unbounded"
+                id="system_cache__procesy5_xsd_business_objects___d191e110"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:complexType name="type_can_have_alias_id_and_occurs"
+        id="system_cache__procesy5_xsd_business_objects___d191e114">
+        <xs:complexContent id="system_cache__procesy5_xsd_business_objects___d191e116">
+            <xs:extension base="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e118">
+                <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e120">
+                    <xs:element minOccurs="0" name="minOccurs" type="xs:positiveInteger"
+                        id="system_cache__procesy5_xsd_business_objects___d191e122"/>
+                    <xs:element minOccurs="0" name="maxOccurs"
+                        type="system_cache__procesy5_xsd_business_objects:xsd_maxOccurs_unbounded"
+                        id="system_cache__procesy5_xsd_business_objects___d191e124"/>
+                </xs:sequence>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="type_can_have_occurs"
+        id="system_cache__procesy5_xsd_business_objects___d191e130">
+        <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e132">
+            <xs:element minOccurs="0" name="minOccurs" type="xs:nonNegativeInteger"
+                id="system_cache__procesy5_xsd_business_objects___d191e134"/>
+            <xs:element minOccurs="0" name="maxOccurs"
+                type="system_cache__procesy5_xsd_business_objects:xsd_maxOccurs"
+                id="system_cache__procesy5_xsd_business_objects___d191e136"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="type_can_have_alias_occurs_substitution"
+        id="system_cache__procesy5_xsd_business_objects___d191e140">
+        <xs:complexContent id="system_cache__procesy5_xsd_business_objects___d191e142">
+            <xs:extension
+                base="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id_and_occurs"
+                id="system_cache__procesy5_xsd_business_objects___d191e144">
+                <xs:sequence minOccurs="0"
+                    id="system_cache__procesy5_xsd_business_objects___d191e146">
+                    <xs:element name="substitutionGroup" type="xs:string"
+                        id="system_cache__procesy5_xsd_business_objects___d191e148"/>
+                </xs:sequence>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType abstract="false" name="type_for_facets"
+        id="system_cache__procesy5_xsd_business_objects___d191e155">
+        <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e157">
+            <xs:element minOccurs="0" name="fixed" type="xs:string"
+                id="system_cache__procesy5_xsd_business_objects___d191e159"/>
+            <xs:element minOccurs="0" name="value" type="xs:string"
+                id="system_cache__procesy5_xsd_business_objects___d191e161"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="type_cannot_have_alias_id"
+        id="system_cache__procesy5_xsd_business_objects___d191e165">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e167">
+            <xs:documentation>obiekt do definiowania mozliwych typow jakie moga byc uzywane w CRM_LISTA_ZASOBOW , jakie moga byc importowane z XSD do tabeli (te typy nie moga miec ALIAS_ID)</xs:documentation>
+        </xs:annotation>
+    </xs:complexType>
+    <xs:simpleType name="parent_id" id="system_cache__procesy5_xsd_business_objects___d191e174">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e176">
+            <xs:documentation>Typ bazowy do CRM_LISTA_ZASOBOW:ID ktory powinien byc xs:ID ,ale ma integer teraz</xs:documentation>
+        </xs:annotation>
+        <xs:union memberTypes="xs:IDREF" id="system_cache__procesy5_xsd_business_objects___d191e182">
+            <xs:simpleType id="system_cache__procesy5_xsd_business_objects___d191e184">
+                <xs:restriction base="xs:int"
+                    id="system_cache__procesy5_xsd_business_objects___d191e186">
+                    <xs:enumeration value="0"
+                        id="system_cache__procesy5_xsd_business_objects___d191e188"/>
+                </xs:restriction>
+            </xs:simpleType>
+        </xs:union>
+    </xs:simpleType>
+    <xs:complexType name="resource_types" abstract="false"
+        id="system_cache__procesy5_xsd_business_objects___d191e194">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e196">
+            <xs:documentation>Reprezentacja typow z XS schema, ktore mogą być użyte w importowanych zasobach</xs:documentation>
+        </xs:annotation>
+        <xs:choice id="system_cache__procesy5_xsd_business_objects___d191e202">
+            <xs:element name="prefix"
+                type="system_cache__procesy5_xsd_business_objects:type_cannot_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e204">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e206">
+                    <xs:documentation>Typ prefix oznacza zaciągnięty pojedyńczy plik XSD z osobnym namespacem</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="complexType"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e213"/>
+            <xs:element name="complexContent"
+                id="system_cache__procesy5_xsd_business_objects___d191e215">
+                <xs:complexType id="system_cache__procesy5_xsd_business_objects___d191e217">
+                    <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e219">
+                        <xs:element minOccurs="0" name="mixed" type="xs:string"
+                            id="system_cache__procesy5_xsd_business_objects___d191e221"/>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="simpleType"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e226"/>
+            <xs:element name="element"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_alias_occurs_substitution"
+                id="system_cache__procesy5_xsd_business_objects___d191e228"/>
+            <xs:element name="attribute"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e231"/>
+            <xs:element name="attributeGroup"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e233"/>
+            <xs:element name="sequence"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_occurs"
+                id="system_cache__procesy5_xsd_business_objects___d191e235"/>
+            <xs:element name="choice"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_occurs"
+                id="system_cache__procesy5_xsd_business_objects___d191e237"/>
+            <xs:element name="restriction"
+                type="system_cache__procesy5_xsd_business_objects:type_can_have_alias_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e239"/>
+            <xs:element name="minInclusive"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e241">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e243">
+                    <xs:documentation>Uzywane przy facets</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="maxInclusive"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e251">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e253">
+                    <xs:documentation>Uzywane przy facets</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="enumeration"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e260"/>
+            <xs:element name="length"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e262"/>
+            <xs:element name="maxLength"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e264"/>
+            <xs:element name="minExclusive"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e266"/>
+            <xs:element name="maxExclusive"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e268"/>
+            <xs:element name="minLength"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e271"/>
+            <xs:element name="pattern"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e273"/>
+            <xs:element name="totalDigits"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e275"/>
+            <xs:element name="whiteSpace"
+                type="system_cache__procesy5_xsd_business_objects:type_for_facets"
+                id="system_cache__procesy5_xsd_business_objects___d191e277"/>
+        </xs:choice>
+    </xs:complexType>
+    <xs:complexType name="assoc_perm" abstract="true"
+        id="system_cache__procesy5_xsd_business_objects___d191e281">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e283">
+            <xs:documentation>Typy uprawnień możliwe w CRM_WSKAZNIK</xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e289">
+            <xs:element minOccurs="0" name="R"
+                id="system_cache__procesy5_xsd_business_objects___d191e291">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e293">
+                    <xs:documentation>read own group</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="W"
+                id="system_cache__procesy5_xsd_business_objects___d191e300">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e302">
+                    <xs:documentation>write to own group</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="X"
+                id="system_cache__procesy5_xsd_business_objects___d191e309">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e311">
+                    <xs:documentation>execute own group (or allow to associate with own group)</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="C"
+                id="system_cache__procesy5_xsd_business_objects___d191e318">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e320">
+                    <xs:documentation>allow create new object
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="O"
+                id="system_cache__procesy5_xsd_business_objects___d191e327">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e329">
+                    <xs:documentation>read only group that is allowed to write</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="V"
+                id="system_cache__procesy5_xsd_business_objects___d191e337">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e339">
+                    <xs:documentation>read all records </xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="S"
+                id="system_cache__procesy5_xsd_business_objects___d191e346">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e348">
+                    <xs:documentation>write all records</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="E"
+                id="system_cache__procesy5_xsd_business_objects___d191e355">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e357">
+                    <xs:documentation>Allow export
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="procesy5_process" abstract="true"
+        id="system_cache__procesy5_xsd_business_objects___d191e366">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e368">
+            <xs:documentation>Obiekt procesu trzymany w bazie CRM_PROCES</xs:documentation>
+        </xs:annotation>
+        <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e374">
+            <xs:element name="proces_id" id="system_cache__procesy5_xsd_business_objects___d191e376">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e378">
+                    <xs:documentation>To powinno być simple type xs:ID</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element minOccurs="0" name="proces_parent_id"
+                id="system_cache__procesy5_xsd_business_objects___d191e385">
+                <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e387">
+                    <xs:documentation>To jest proces nadrzędny - jest to opcjonalne. Powinien to byc xs:IDREF
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="procesy5_busines_object" abstract="true"
+        id="system_cache__procesy5_xsd_business_objects___d191e397">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e399">
+            <xs:documentation>Obiekt asocjacji trzymany w bazie CRM_WSKAZNIK
+
+Object used to redefine original BPMN2.0 to allow parse of procesy5 notation to bpmn2.0 notation with extra informations from procesy5 objects.
+
+</xs:documentation>
+        </xs:annotation>
+        <xs:sequence maxOccurs="1" id="system_cache__procesy5_xsd_business_objects___d191e405">
+            <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e407">
+                <xs:element name="xpath" id="system_cache__procesy5_xsd_business_objects___d191e409">
+                    <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e411">
+                        <xs:documentation>To jest doszczegółowienie miejsca zapisu w obiekcie. TODO czy dajemy relatywnie czy całą ścieżkę razem xs:IDREF obiektu ? 
+
+example: "/ProjUmowaTpsa/Project_Description/* | /ProjUmowaTpsa/CompanyFromList/*"</xs:documentation>
+                    </xs:annotation>
+                </xs:element>
+                <xs:element name="resource_id"
+                    id="system_cache__procesy5_xsd_business_objects___d191e418">
+                    <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e420">
+                        <xs:documentation>Tutaj chodzi o xs:ID do ID_ZASOBU (rozbudowana o prefix ID_ZASOB + zaimportowane obiekty XSD)
+
+W tej strukturze jest dodatkowo podany z numerem powiązanego procesu ( TODO czy jest to konieczne? )
+
+number of resource from resource table</xs:documentation>
+                    </xs:annotation>
+                </xs:element>
+            </xs:sequence>
+            <xs:element name="permission"
+                type="system_cache__procesy5_xsd_business_objects:assoc_perm"
+                id="system_cache__procesy5_xsd_business_objects___d191e428"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="procesy5_process_association_resource"
+        id="system_cache__procesy5_xsd_business_objects___d191e432">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e434">
+            <xs:documentation>Obiekt definiujący strukturę procesów , asocjacji oraz zasobów. 
+
+Plik wg tego schematu powinien zawierać komplet procesów i zasobów</xs:documentation>
+        </xs:annotation>
+        <xs:complexType id="system_cache__procesy5_xsd_business_objects___d191e440">
+            <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e442">
+                <xs:element maxOccurs="unbounded" minOccurs="0" name="process"
+                    type="system_cache__procesy5_xsd_business_objects:procesy5_process"
+                    id="system_cache__procesy5_xsd_business_objects___d191e444"/>
+                <xs:element maxOccurs="unbounded" minOccurs="0" name="association"
+                    type="system_cache__procesy5_xsd_business_objects:procesy5_busines_object"
+                    id="system_cache__procesy5_xsd_business_objects___d191e446"/>
+                <xs:element maxOccurs="unbounded" minOccurs="0"
+                    ref="system_cache__procesy5_xsd_business_objects:resource"
+                    id="system_cache__procesy5_xsd_business_objects___d191e448"/>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="resource" type="system_cache__procesy5_xsd_business_objects:procesy5_resource"
+        id="system_cache__procesy5_xsd_business_objects___d191e453"/>
+    <xs:element name="resources" id="system_cache__procesy5_xsd_business_objects___d191e455">
+        <xs:annotation id="system_cache__procesy5_xsd_business_objects___d191e457">
+            <xs:documentation>Struktura potrzebna do exportu schematow xsd do tabeli crm_lista_zasobow przez xsl xsd_to_objects_mysql.xsl</xs:documentation>
+        </xs:annotation>
+        <xs:complexType id="system_cache__procesy5_xsd_business_objects___d191e463">
+            <xs:sequence id="system_cache__procesy5_xsd_business_objects___d191e465">
+                <xs:element maxOccurs="unbounded" minOccurs="0"
+                    ref="system_cache__procesy5_xsd_business_objects:resource"
+                    id="system_cache__procesy5_xsd_business_objects___d191e467"/>
+            </xs:sequence>
+        </xs:complexType>
+        <xs:unique name="CRM_LISTA_ZASOBOW_DESC"
+            id="system_cache__procesy5_xsd_business_objects___d191e471">
+            <xs:selector xpath="resources/resource/resource_name"
+                id="system_cache__procesy5_xsd_business_objects___d191e473"/>
+            <xs:field xpath="resource_name"
+                id="system_cache__procesy5_xsd_business_objects___d191e475"/>
+        </xs:unique>
+    </xs:element>
+</xs:schema>

+ 189 - 0
SE/schema/default_db_xml_cache.public/resources_tree_generate_xsl_require_occurs_raport.xsd

@@ -0,0 +1,189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+  targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+  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"
+  vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+  xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd">
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    schemaLocation="appinfo.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    schemaLocation="p5_tr_map.xsd"/>
+  <xs:element name="detect_objects_parent_relations">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element maxOccurs="unbounded"
+          ref="system_cache__resources_tree_generate_xsl_required_occurs_raport:detect_resource_type"
+        />
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="parent_complexType_siblings_list">
+    <xs:complexType>
+      <xs:sequence minOccurs="0">
+        <xs:element
+          ref="system_cache__resources_tree_generate_xsl_required_occurs_raport:parent_complexType_siblings"
+        />
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="parent_complexType_siblings"/>
+  <xs:element name="detect_resource_type">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="system_cache__appinfo:detect_first_ref_to_native_procesy5_table_list">
+          <xs:annotation>
+            <xs:documentation>Zawiera informacje o powiazaniu z obiektem plaskim z Default_DB, ktory wynika z powiaznia typu 4777. Oznacza on koniecznosc synchronizacji obiektu z obiektem plaskim w ramach dzialania niniejszego obiektu - przy zapisie, przy odczycie. Prawidpodobnie koniecznosc istnienia funkcji w GUI do synchronizacji.
+
+Element powiazany detect_first_ref_to_native_procesy5_table zawiera @:ref - np. default_db:DEVICES - jest to nazwa tabeli plaskiej, z którą jest powiązany obiekt; @:id - jest id elementu, w którym następuje powiązanie - nie w tym miejscu ten obiekt traktowany jako miejsce relacji - może to być używane jako jakiś klucz wyzwalania metody. Koniecznosc synchronizacji obiektu nie zawiera informacji o relacji. Obiekt isntancyjny musi miec takie same ID/klucz obiektu natywnego plaskiego; @event_type - oznacza jaki event_type wyznaczyl to, że jest taka relacja.</xs:documentation>
+          </xs:annotation>
+        </xs:element>
+        <xs:element ref="p5_tr_map:detect_parent_complexType_with_ref_to_procesy5_table"/>
+        <xs:element name="detect_root_sequence_id" form="unqualified">
+          <xs:annotation>
+            <xs:documentation>Główny nr @id sekwencji dla obiektu complexType. W przypadku kiedy obiekt dziedziczy z wielu complexType - jest to @id najwyzszego complexType (@2016-02-08) - moze byc z tym klopot. Nie specjalnie ten parametr sie do czegos przydaje.</xs:documentation>
+          </xs:annotation>
+          <xs:complexType>
+            <xs:sequence>
+              <xs:element ref="system_cache__appinfo:detect_root_sequence_id" minOccurs="0"/>
+            </xs:sequence>
+          </xs:complexType>
+        </xs:element>
+        <xs:element ref="system_cache__appinfo:detect_element_relations_to_objects_list">
+          <xs:annotation>
+            <xs:documentation>Wylistowane relacje danego obiektu do innych obcych obiektow. Zawiera elementy o takiej strukturze: 
+system_cache__appinfo:detect_element_relations_to_objects
+            system_cache__appinfo:ref="database_objects:LinearRingType" - prefix oraz nazwa obiektu z relacji
+            system_cache__appinfo:id="default_default_objects_types___d20e125" - w jakim @id nastepuje zapis relacji
+            system_cache__appinfo:event_type="477b" - jaki typ zdarzenia. 
+            
+ Prawdopodobnie potrzebny jest osobny element - jakie obiekty sa wyzwalane z niniejszego obiektu, a jakie z dziedziczonych - pewnie dodac atrybut - TODO.</xs:documentation>
+          </xs:annotation>
+        </xs:element>
+        <xs:element
+          ref="system_cache__appinfo:detect_local-elements_relations_references_with_flat_procesy5_table_list"/>
+        <xs:element
+          ref="system_cache__appinfo:detect_element_local_elements_without_ref_elements_list">
+          <xs:annotation>
+            <xs:documentation>Fragment mapy transportowej p5_tr_map ograniczona do typow prostych z wartosciami, sekwencjami, bez refow i przetwarzania do obcych instancji.</xs:documentation>
+          </xs:annotation>
+        </xs:element>
+        <xs:element ref="system_cache__appinfo:go_recurse_from_root_only_local_elements_list"/>
+        <xs:element ref="p5_tr_map:objects_derivations_list"/>
+        <xs:element
+          ref="system_cache__resources_tree_generate_xsl_required_occurs_raport:parent_complexType_siblings_list">
+          <xs:annotation>
+            <xs:documentation>@2015-12-26 - na tej podstawie ma sie generowac menu w danym obiekcie jakie sa jego szczegolowe typy itp</xs:documentation>
+          </xs:annotation>
+        </xs:element>
+        <xs:element maxOccurs="unbounded" ref="system_cache__appinfo:objects_parent_relation"
+          minOccurs="0">
+          <xs:annotation>
+            <xs:documentation>Nie do wykorzystania logicznego - uzywany tylko do wyznaczenia jakie tabele plaskie maja derewiacje - uzywac dereviations_list !!!</xs:documentation>
+          </xs:annotation>
+        </xs:element>
+        <xs:element
+          ref="system_cache__resources_tree_generate_xsl_required_occurs_raport:from_parent_relations_list">
+          <xs:annotation>
+            <xs:documentation>@2015-11-13 - pokazuje jakie inne obiekty o tym samym glownym typie - jak sie nazywaja, jaki maja gl.typ.plaski oraz z jakim @id - kontrolnie 
+                                        @2015-12-03 wylaczamy obiekty bez @id z analizy - TO CHECKOU</xs:documentation>
+          </xs:annotation>
+        </xs:element>
+        <xs:element ref="system_cache__appinfo:object_element-to-flat_element_by_xpath2"/>
+      </xs:sequence>
+      <xs:attribute name="apply_template" use="required"/>
+      <xs:attribute name="name" use="required" type="xs:NMTOKEN"/>
+      <xs:attribute name="name_id" use="required" type="xs:NCName"/>
+      <xs:attribute name="parent_complexType" use="optional" type="xs:NMTOKEN">
+        <xs:annotation>
+          <xs:documentation>Na podstawie p5_tr_map: najwyzszy complexType - wykryty z 494* - podany jako nazwa+prefix.
+Tylko do wykrywania przypadkow powiwazania do plaskich tabel procesy5 w pierwszej sekwencji - nie uzywac do obiektow biznesowych.
+
+
+Pochodzi z $detect_parent_complexType_with_ref_to_procesy5_table//system_cache__appinfo:detect_parent_complexType_with_ref_to_procesy5_table</xs:documentation>
+        </xs:annotation>
+      </xs:attribute>
+      <xs:attribute name="prefix" use="required" type="xs:NCName"/>
+      <xs:attribute name="when_type" use="required" type="xs:NCName"/>
+      <xs:attribute ref="p5_tr_map:parent_name_with_pref"/>
+      <xs:attribute ref="p5_tr_map:parent_id"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref"/>
+      <xs:attribute ref="p5_tr_map:object_type_id"/>
+      <xs:attribute name="local-name"/>
+      <xs:attribute name="parent_complexTypeNamespace" type="xs:anyURI">
+        <xs:annotation>
+          <xs:documentation>Namespace dla głównego complextype</xs:documentation>
+        </xs:annotation>
+      </xs:attribute>
+      <xs:attribute name="complexTypeNamespace" type="xs:anyURI">
+        <xs:annotation>
+          <xs:documentation>Namespace dla biezacego elementu - z jakiego pochodzi schematu</xs:documentation>
+        </xs:annotation>
+      </xs:attribute>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="from_parent_relations_list">
+    <xs:complexType>
+      <xs:sequence maxOccurs="unbounded" minOccurs="0">
+        <xs:element
+          ref="system_cache__resources_tree_generate_xsl_required_occurs_raport:from_parent_relations"
+        />
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="from_parent_relations">
+    <xs:complexType>
+      <xs:attribute name="parent_complexType" use="optional" type="xs:NMTOKEN"/>
+      <xs:attribute name="parent_object" use="required" type="xs:NMTOKEN"/>
+      <xs:attribute name="prefix" use="required" type="xs:NCName"/>
+      <xs:attribute ref="system_cache__appinfo:id" use="required"/>
+      <xs:attribute ref="system_cache__appinfo:ref" use="required"/>
+      <xs:attribute name="local-name">
+        <xs:annotation>
+          <xs:documentation>W przypadku kiedy wartosc to complexType - oznacza, ze relacja pochodzi z typu complexType. Domyslnie nalezy uzywac do budowania prawidłowuch działających relacji powiązań nie z typów complexType - tylko z element.</xs:documentation>
+        </xs:annotation>
+      </xs:attribute>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="generate_Capabilities_objects_to_WFS">
+    <xs:annotation>
+      <xs:documentation>Do wspomagania wfs</xs:documentation>
+    </xs:annotation>
+    <xs:complexType>
+      <xs:sequence maxOccurs="unbounded">
+        <xs:element name="table">
+          <xs:complexType>
+            <xs:sequence maxOccurs="unbounded">
+              <xs:element name="element_accepted_for_requests">
+                <xs:complexType>
+                  <xs:sequence>
+                    <xs:element name="schema-element-filename">
+                      <xs:simpleType>
+                        <xs:restriction base="xs:string">
+                          <xs:minLength value="3"/>
+                        </xs:restriction>
+                      </xs:simpleType>
+                    </xs:element>
+                  </xs:sequence>
+                  <xs:attribute ref="system_cache__appinfo:parent_complexTypeNamespace"
+                    use="required"/>
+                  <xs:attribute use="required" ref="system_cache__appinfo:name"/>
+                  <xs:attribute ref="system_cache__appinfo:name_no_prefix" use="required"/>
+                  <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+                </xs:complexType>
+              </xs:element>
+            </xs:sequence>
+            <xs:attribute ref="system_cache__appinfo:complexTypeNamespace" use="required"/>
+            <xs:attribute ref="system_cache__appinfo:get_default_db_obj_url_table_name"
+              use="required"/>
+            <xs:attribute ref="system_cache__appinfo:prefix" use="required"/>
+          </xs:complexType>
+        </xs:element>
+      </xs:sequence>
+      <xs:attribute name="public_html_rel_output_dir" type="xs:string" use="required"/>
+      <xs:attribute name="output_dir" type="xs:string" use="required"/>
+    </xs:complexType>
+  </xs:element>
+</xs:schema>

+ 234 - 0
SE/schema/default_db_xml_cache.public/sso_procesy5.xsd

@@ -0,0 +1,234 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+  targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+  xmlns:p5_obj_vars="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars.xsd"
+  xmlns:sso_procesy5="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+  xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+  xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+  xmlns:p5_obj_vars_php="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars_php.xsd"
+  vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+  <xs:annotation>
+    <xs:documentation>Schemat dla SSO - komponentu wykorzystujacego przeanalizowane informacje o relacjach obiektow, do tworzenia aplikacji - np. w php</xs:documentation>
+  </xs:annotation>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    schemaLocation="appinfo.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars.xsd"
+    schemaLocation="p5_obj_vars.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_obj_vars_php.xsd"
+    schemaLocation="p5_obj_vars_php.xsd"/>
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    schemaLocation="p5_tr_map.xsd"/>
+  <xs:element name="create_db_functions_from_go_recurse_from_root_by_build_element_with_cache">
+    <xs:complexType>
+      <xs:sequence minOccurs="0">
+        <xs:element
+          ref="sso_procesy5:create_db_functions_from_go_recurse_from_root_by_build_element_with_cache"/>
+        <xs:element maxOccurs="unbounded" ref="sso_procesy5:function_for_manage_object"/>
+      </xs:sequence>
+      <xs:attribute name="test" type="xs:NCName"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="function_for_manage_object">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="sso_procesy5:methods"/>
+        <xs:element ref="sso_procesy5:instance_cache_informations"/>
+        <xs:element maxOccurs="unbounded" ref="sso_procesy5:unique_structure_table"/>
+        <xs:element ref="sso_procesy5:create_sql_tables_final_just_object"/>
+      </xs:sequence>
+      <xs:attribute name="object_name" use="required" type="xs:NMTOKEN"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="methods">
+    <xs:complexType>
+      <xs:complexContent>
+        <xs:extension base="p5_obj_vars:p5_obj_vars.create_obj_array">
+          <xs:sequence>
+            <xs:element ref="p5_obj_vars:create_obj_form_html"/>
+            <xs:element ref="p5_obj_vars:create_obj_array_php"/>
+            <xs:element ref="p5_obj_vars:create_obj_array_php_code"/>
+            <xs:element ref="p5_obj_vars:get_encapsulated_to_array_form"/>
+            <xs:element ref="p5_obj_vars:view_obj_form_html"/>
+            <xs:element ref="p5_obj_vars:list_obj_form_html"/>
+            <xs:element ref="p5_obj_vars:list_obj_form_php"/>
+            <xs:element ref="p5_obj_vars:list_obj_form_php_code"/>
+            <xs:element ref="p5_obj_vars:merge_keys_list_obj_form_php_code"/>
+            <xs:element ref="p5_obj_vars:merge_keys_list_obj_form_html"/>
+            <xs:element ref="p5_obj_vars:merge_keys_list_obj_form_json"/>
+            <xs:element ref="sso_procesy5:create_object_navgation_menu"/>
+          </xs:sequence>
+        </xs:extension>
+      </xs:complexContent>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="create_object_navgation_menu">
+    <xs:complexType>
+      <xs:group maxOccurs="unbounded" ref="p5_obj_vars:table"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="instance_cache_informations">
+    <xs:annotation>
+      <xs:documentation>Schemat obiektu w widoku do przetwarzania przez baze danych, powstaly na bazie analizy dziedziczen oraz mapy p5_tr_map. Generowana przez template : 
+sso_procesy5:create_sql_tables_from_go_recurse_from_root_by_build_element_with_cache</xs:documentation>
+    </xs:annotation>
+    <xs:complexType>
+      <xs:sequence>
+        <xs:element ref="sso_procesy5:structure_434_info"/>
+      </xs:sequence>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="unique_structure_table">
+    <xs:complexType>
+      <xs:attribute name="table_name" use="required" type="xs:NCName"/>
+      <xs:attribute name="table_type" use="required" type="xs:NCName"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref" use="required"/>
+      <xs:attributeGroup ref="p5_tr_map:parent_name_with_pref"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="create_sql_tables_final_just_object">
+    <xs:complexType/>
+  </xs:element>
+  <xs:element name="structure_434_info">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element ref="sso_procesy5:structure_table_child_instance"/>
+          <xs:element ref="sso_procesy5:structure_table_root_instance"/>
+        </xs:choice>
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:element ref="sso_procesy5:structure_table_sequence"/>
+          <xs:element ref="sso_procesy5:structure_table_value"/>
+        </xs:choice>
+      </xs:sequence>
+      <xs:attribute name="comment" use="required"/>
+      <xs:attribute name="event_name" use="required"/>
+      <xs:attribute name="event_type" use="required" type="xs:NMTOKEN"/>
+      <xs:attribute name="id" type="xs:NCName"/>
+      <xs:attribute name="parent_name"/>
+      <xs:attribute name="parent_type"/>
+      <xs:attribute ref="system_cache__appinfo:id"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="structure_table_child_instance">
+    <xs:complexType>
+      <xs:choice>
+        <xs:element ref="sso_procesy5:structure_table_sequence"/>
+        <xs:choice minOccurs="0" maxOccurs="unbounded">
+          <xs:group ref="p5_obj_vars:column_ELEMENT_ID"/>
+          <xs:group ref="p5_obj_vars:column_ELEMENT_NAME"/>
+          <xs:group ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+          <xs:element ref="sso_procesy5:structure_table_child_instance"/>
+          <xs:element ref="sso_procesy5:structure_table_root_instance"/>
+        </xs:choice>
+      </xs:choice>
+      <xs:attribute name="retrieve_ID" use="required" type="xs:anyURI"/>
+      <xs:attribute name="retrieve_REMOTE_ID" use="required"/>
+      <xs:attribute name="retrieve_TYPE" use="required"/>
+      <xs:attribute name="table_cache_type_name" use="required" type="xs:NCName"/>
+      <xs:attribute name="table_name" use="required" type="xs:NCName"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref" use="required"/>
+      <xs:attributeGroup ref="p5_tr_map:parent_name_with_pref1"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="structure_table_root_instance">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:group ref="p5_obj_vars:column_ELEMENT_ID"/>
+        <xs:group ref="p5_obj_vars:column_ELEMENT_NAME"/>
+        <xs:group ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+        <xs:element ref="sso_procesy5:structure_table_sequence"/>
+        <xs:element ref="sso_procesy5:structure_table_reference"/>
+      </xs:choice>
+      <xs:attribute name="retrieve_ID" use="required" type="xs:anyURI"/>
+      <xs:attribute name="retrieve_REMOTE_ID" use="required"/>
+      <xs:attribute name="retrieve_TYPE" use="required"/>
+      <xs:attribute name="table_cache_type_name" use="required" type="xs:NCName"/>
+      <xs:attribute name="table_name" use="required" type="xs:NCName"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref" use="required"/>
+      <xs:attributeGroup ref="p5_tr_map:parent_name_with_pref1"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="structure_table_reference">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:group ref="p5_obj_vars:column_ELEMENT_ID"/>
+        <xs:group ref="p5_obj_vars:column_PARENT_ID"/>
+        <xs:element name="column_REMOTE_ID" form="unqualified">
+          <xs:complexType>
+            <xs:attribute name="evaluate_key_value_remote" use="required" form="qualified"/>
+          </xs:complexType>
+        </xs:element>
+        <xs:group ref="p5_obj_vars:column_CACHE_INSTANCE_ID"/>
+        <xs:group maxOccurs="unbounded" ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+      </xs:sequence>
+      <xs:attribute name="retrieve_PARENT_ID" use="required" type="xs:anyURI"/>
+      <xs:attribute name="retrieve_REMOTE_ID" use="required"/>
+      <xs:attribute name="table_cache_type_name" use="required" type="xs:NCName"/>
+      <xs:attribute name="table_name" use="required" type="xs:NCName"/>
+      <xs:attribute ref="p5_tr_map:object_type_id" use="required"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref" use="required"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="structure_table_value">
+    <xs:complexType>
+      <xs:sequence>
+        <xs:group ref="p5_obj_vars:column_ELEMENT_ID"/>
+        <xs:group ref="p5_obj_vars:column_PARENT_ID"/>
+        <xs:group ref="p5_obj_vars:column_CACHE_INSTANCE_ID"/>
+        <xs:element name="column_VALUE" form="unqualified">
+          <xs:complexType/>
+        </xs:element>
+        <xs:group maxOccurs="unbounded" ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+      </xs:sequence>
+      <xs:attribute name="retrieve_ID" use="required" type="xs:anyURI"/>
+      <xs:attribute name="table_cache_type_name" use="required" type="xs:NCName"/>
+      <xs:attribute name="table_name" use="required" type="xs:NCName"/>
+      <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+      <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref" use="required"/>
+      <xs:attributeGroup ref="p5_tr_map:parent_name_with_pref1"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="structure_table_sequence">
+    <xs:complexType>
+      <xs:choice minOccurs="0" maxOccurs="unbounded">
+        <xs:group ref="p5_obj_vars:column_CACHE_INSTANCE_ID"/>
+        <xs:group ref="p5_obj_vars:column_ELEMENT_ID"/>
+        <xs:group ref="p5_obj_vars:column_PARENT_ID"/>
+        <xs:group ref="p5_obj_vars:columns_CACHE_INSTANCE"/>
+        <xs:element ref="sso_procesy5:structure_434_info"/>
+        <xs:element ref="sso_procesy5:structure_table_sequence"/>
+        <xs:element ref="sso_procesy5:structure_table_value"/>
+        <xs:element ref="sso_procesy5:structure_477_info"/>
+      </xs:choice>
+      <xs:attribute name="table_cache_type_name" use="required" type="xs:NCName"/>
+      <xs:attribute name="table_name" use="required" type="xs:NCName"/>
+      <xs:attribute ref="system_cache__appinfo:maxOccurs"/>
+      <xs:attribute ref="system_cache__appinfo:minOccurs"/>
+      <xs:attribute ref="p5_tr_map:object_type_name_with_pref" use="required"/>
+      <xs:attributeGroup ref="p5_tr_map:parent_name_with_pref1"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:element name="structure_477_info">
+    <xs:complexType>
+      <xs:choice>
+        <xs:element ref="sso_procesy5:structure_table_child_instance"/>
+        <xs:element ref="sso_procesy5:structure_table_root_instance"/>
+        <xs:element minOccurs="0" maxOccurs="unbounded" ref="sso_procesy5:structure_434_info"/>
+      </xs:choice>
+      <xs:attribute name="comment" use="required"/>
+    </xs:complexType>
+  </xs:element>
+  <xs:attribute name="read_key_value"/>
+  <xs:attributeGroup name="evaluate_key_value">
+    <xs:attribute name="evaluate_key_value" use="required" form="qualified" type="xs:anyURI"/>
+  </xs:attributeGroup>
+  <xs:attributeGroup name="evaluate_key_value1">
+    <xs:attribute name="evaluate_key_value" use="required" form="qualified"/>
+  </xs:attributeGroup>
+  <xs:attribute name="evaluate_from_ref_key_value"/>
+</xs:schema>

+ 506 - 0
SE/schema/default_db_xml_cache.public/struktura_silnika_obiektow_procesy5.xsd

@@ -0,0 +1,506 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+    xmlns:sso_procesy5="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/struktura_silnika_obiektow_procesy5.xsd"
+    vc:minVersion="1.1"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:import namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+        schemaLocation="../system_cache/appinfo.xsd"/>
+    <xs:complexType name="OBSZAR"/>
+    <xs:element name="A" type="sso_procesy5:OBSZAR"/>
+    <xs:element name="B" type="sso_procesy5:OBSZAR"/>
+    <xs:element name="ROOT_A">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="CACHE">
+                    <xs:complexType>
+                        <xs:attribute name="ID_A"/>
+                        <xs:attribute name="ID_B"/>
+                        <xs:attribute name="ID_C"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="A">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="CACHE">
+                                <xs:complexType>
+                                    <xs:attribute name="ID_A"/>
+                                    <xs:attribute name="ID_B"/>
+                                    <xs:attribute name="ID_C"/>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="ID_SEQ_A"/>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+            <xs:attribute name="ID_A"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="CHILD_B">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element ref="sso_procesy5:ROOT_A"/>
+                <xs:element name="CACHE">
+                    <xs:complexType>
+                        <xs:attribute name="ID_A"/>
+                        <xs:attribute name="ID_B"/>
+                        <xs:attribute name="ID_C"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="A">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="CACHE">
+                                <xs:complexType>
+                                    <xs:attribute name="ID_A"/>
+                                    <xs:attribute name="ID_B"/>
+                                    <xs:attribute name="ID_C"/>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="ID_SEQ_B"/>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+            <xs:attribute name="ID_B"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="CHILD_C">
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element ref="sso_procesy5:CHILD_B"/>
+                <xs:element name="CACHE">
+                    <xs:complexType>
+                        <xs:attribute name="ID_A"/>
+                        <xs:attribute name="ID_B"/>
+                        <xs:attribute name="ID_C"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="A">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="CACHE">
+                                <xs:complexType>
+                                    <xs:attribute name="ID_A"/>
+                                    <xs:attribute name="ID_B"/>
+                                    <xs:attribute name="ID_C"/>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="ID_SEQ_C"/>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+            <xs:attribute name="ID_C"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:complexType name="COLUMN_NAME">
+        <xs:attribute ref="system_cache__appinfo:id"/>
+    </xs:complexType>
+    <xs:simpleType name="COLUMN_VALUE_INSTANCE">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="true"/>
+            <xs:enumeration value="derived"/>
+            <xs:enumeration value=""/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="COLUMN_VALUE_in_ELEMENT_NAME">
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:simpleType name="COLUMN_VALUE_in_KEY_ID">
+        <xs:annotation>
+            <xs:documentation>W bazie danych beda to xs:INT ale tutaj beda dane do evaluacji</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:attribute name="evaluate_key_value"/>
+    <xs:attribute name="read_key_value"/>
+    <xs:complexType name="COLUMN_VALUE_in_KEY_ID_to_eval">
+        <xs:annotation>
+            <xs:documentation>W bazie danych beda to xs:INT ale tutaj beda dane do evaluacji</xs:documentation>
+        </xs:annotation>
+        <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+    </xs:complexType>
+    <xs:complexType name="COLUMN_VALUE_in_KEY_ID_to_read">
+        <xs:attribute ref="sso_procesy5:read_key_value"/>
+    </xs:complexType>
+    <xs:element name="create_sql_tables_from_go_recurse_from_root_by_build_element_with_cache">
+        <xs:complexType>
+            <xs:choice maxOccurs="unbounded">
+                <xs:element name="structure_table_root_instance">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="column_ELEMENT_ID"
+                                type="sso_procesy5:COLUMN_VALUE_in_KEY_ID_to_read"/>
+                            <xs:element name="column_ELEMENT_NAME"
+                                type="sso_procesy5:COLUMN_VALUE_in_ELEMENT_NAME"> </xs:element>
+                            <xs:element maxOccurs="0" minOccurs="0" name="column_REMOTE_ID"/>
+                            <xs:element maxOccurs="unbounded" name="columns_CACHE_INSTANCE">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="COLUMN_NAME"
+                                            type="sso_procesy5:COLUMN_NAME"/>
+                                        <xs:element name="COLUMN_VALUE"
+                                            type="sso_procesy5:COLUMN_VALUE_INSTANCE"/>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="table_name" type="xs:ID" use="required"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="structure_table_child_instance">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="column_ELEMENT_ID"
+                                type="sso_procesy5:COLUMN_VALUE_in_KEY_ID_to_eval"/>
+                            <xs:element name="column_ELEMENT_NAME"
+                                type="sso_procesy5:COLUMN_VALUE_in_ELEMENT_NAME"> </xs:element>
+                            <xs:element maxOccurs="0" minOccurs="0" name="column_REMOTE_ID"/>
+                            <xs:element maxOccurs="unbounded" name="columns_CACHE_INSTANCE">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="COLUMN_NAME"
+                                            type="sso_procesy5:COLUMN_NAME"/>
+                                        <xs:element name="COLUMN_VALUE"
+                                            type="sso_procesy5:COLUMN_VALUE_INSTANCE"/>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="table_name" type="xs:ID" use="required"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="structure_table_sequence">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="column_ELEMENT_ID"
+                                type="sso_procesy5:COLUMN_VALUE_in_KEY_ID_to_read"/>
+                            <xs:element name="column_PARENT_ID">
+                                <xs:complexType>
+                                    <xs:annotation>
+                                        <xs:documentation>W bazie danych beda to xs:INT ale tutaj beda dane do evaluacji</xs:documentation>
+                                    </xs:annotation>
+                                    <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element name="column_CACHE_INSTANCE_ID">
+                                <xs:annotation>
+                                    <xs:documentation>Oznaczenie numeru ID instancji glownej - sluzy do cacheowania obiektow</xs:documentation>
+                                </xs:annotation>
+                                <xs:complexType>
+                                    <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element maxOccurs="unbounded" name="columns_CACHE_INSTANCE">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="COLUMN_NAME"
+                                            type="sso_procesy5:COLUMN_NAME"/>
+                                        <xs:element name="COLUMN_VALUE"
+                                            type="sso_procesy5:COLUMN_VALUE_INSTANCE"/>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="table_name" type="xs:ID" use="required"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="structure_table_reference">
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="column_ELEMENT_ID"
+                                type="sso_procesy5:COLUMN_VALUE_in_KEY_ID_to_read"/>
+                            <xs:element name="column_PARENT_ID">
+                                <xs:complexType>
+                                    <xs:annotation>
+                                        <xs:documentation>W bazie danych beda to xs:INT ale tutaj beda dane do evaluacji</xs:documentation>
+                                    </xs:annotation>
+                                    <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element name="column_REMOTE_ID">
+                                <xs:complexType>
+                                    <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element name="column_CACHE_INSTANCE_ID">
+                                <xs:annotation>
+                                    <xs:documentation>Oznaczenie numeru ID instancji glownej - sluzy do cacheowania obiektow</xs:documentation>
+                                </xs:annotation>
+                                <xs:complexType>
+                                    <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element maxOccurs="unbounded" name="column_CACHE_INSTANCE">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="COLUMN_NAME"
+                                            type="sso_procesy5:COLUMN_NAME"/>
+                                        <xs:element name="COLUMN_VALUE"
+                                            type="sso_procesy5:COLUMN_VALUE_INSTANCE"/>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="table_name"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="structure_table_value">
+                    <xs:annotation>
+                        <xs:documentation>For values of elements and also attributes. </xs:documentation>
+                    </xs:annotation>
+                    <xs:complexType>
+                        <xs:sequence>
+                            <xs:element name="column_ELEMENT_ID"
+                                type="sso_procesy5:COLUMN_VALUE_in_KEY_ID_to_read"/>
+                            <xs:element name="column_PARENT_ID">
+                                <xs:complexType>
+                                    <xs:annotation>
+                                        <xs:documentation>W bazie danych beda to xs:INT ale tutaj beda dane do evaluacji</xs:documentation>
+                                    </xs:annotation>
+                                    <xs:attribute ref="sso_procesy5:evaluate_key_value"/>
+                                </xs:complexType>
+                            </xs:element>
+                            <xs:element name="column_VALUE" type="xs:string"/>
+                            <xs:element maxOccurs="unbounded" name="columns_CACHE_INSTANCE">
+                                <xs:complexType>
+                                    <xs:sequence>
+                                        <xs:element name="COLUMN_NAME"
+                                            type="sso_procesy5:COLUMN_NAME"/>
+                                        <xs:element name="COLUMN_VALUE"
+                                            type="sso_procesy5:COLUMN_VALUE_INSTANCE"/>
+                                    </xs:sequence>
+                                </xs:complexType>
+                            </xs:element>
+                        </xs:sequence>
+                        <xs:attribute name="table_name" type="xs:ID" use="required"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="structure_434_info"/>
+                <xs:element
+                    ref="sso_procesy5:create_sql_tables_from_go_recurse_from_root_by_build_element_with_cache"
+                />
+            </xs:choice>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="create_sql_table_cache_instance">
+        <xs:complexType>
+            <xs:attribute name="instance_id_table" type="xs:IDREF"/>
+            <xs:attribute name="instance_id_value" type="xs:IDREF">
+                <xs:annotation>
+                    <xs:documentation>Numer ID danego typu instancji, zapisanej w tabeli z @ID danej instancji</xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+        </xs:complexType>
+    </xs:element>
+    <xs:complexType name="INSTANCE">
+        <xs:annotation>
+            <xs:documentation>Przykładowy obiekt instance np. REWIR, do którego w relacji jest BUDYNEK (INSTANCE2).
+
+Instancje powinny być zgodne z numerami #ID (primary_key) FLAT_TABLE, w związku z czym powinna istniec procedura importu rekordow z tabeli plaskiej do danych obiektowych powinna wyglądać następująco
+
+WHEN INSERT into FLAT_TABLE (ID,SOME_COLUMN,SOME_COLUMN2) then
+insert into INSTANCE ($ID)
+ insert into INSTANCE_SOME_COLUMN(@OBJECT_ID,@value) values ($ID,$SOME_COLUMN);
+  insert into INSTANCE_SOME_COLUMN2(@OBJECT_ID,@value) values ($ID,$SOME_COLUMN2);
+ - liczniki @counter_value powinny sie dodac same na bazie triggerow)
+ 
+procedura importu z weryfikacja powinna dzialac tak samo
+PROCEDURE_IMPORT_UPDATE_FLAT_TABLE  foreach FLAT_TABLE {
+j.w.
+}
+</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element name="FLAT_TABLE">
+                <xs:annotation>
+                    <xs:documentation>Skojarzona z dana instancja tabela plaska, ktora powinna miec zgodny numer OBJECT_ID z kluczem tej tabeli, czyli w wiekszosci przypadków ta sama wartosc pola ID.  W zasadzie te dane powinny przechodzic 1:1</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="ID">
+                            <xs:complexType>
+                                <xs:attribute name="OBJECT_ID" use="required"/>
+                            </xs:complexType>
+                        </xs:element>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="SOME_COLUMN">
+                            <xs:complexType>
+                                <xs:attribute name="SOME_COLUMN_VALUE"/>
+                            </xs:complexType>
+                        </xs:element>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="SOME_COLUMN_WITH_REFS">
+                            <xs:annotation>
+                                <xs:documentation>w przypadku, kiedy dany obiekt plaski zotsał ustawiony, że jest w relacji do jakiegoś innego obiektu, czyli np. REWIR moze zawierac BUDYNEK, oraz relacja zostala nazwana @id=REWIR_do_BUDUNEK, to powinna sie utworzyc kolumna w tabeli BUDYNEK o nazwie @id(REWIR_do_BUDYNEK), która będize zawierać @OBJECT_ID z tabeli BUDYNEK, która to kolumna powinna być wytriggerowana tak, że po zmianie relacji w element_refs będzie ona zaktualizowana. Założenia dla triggera:
+
+when update element_refs then
+update</xs:documentation>
+                            </xs:annotation>
+                            <xs:complexType>
+                                <xs:attribute name="OBJECT_ID"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element maxOccurs="0" name="INSTANCES" minOccurs="0">
+                <xs:annotation>
+                    <xs:documentation>NIEAKTUALNE @2015-11-20 - odtwarzamy całą mapę ułożenia obiektu zgodnie z dziecziczeniami
+
+tabela zawierajaca jakie instanncje reprezentuje dany obiekt - czyli w przypadku obiektu AAAA powinny byc wpisy , ze jest obiektem A, AA, AAA oraz AAAA . 
+zalozenia dla triggerowania: 
+PROCEDURE INSTANCES_DEREVIATIONS_UPDATE {
+  delete from INSTANCES where $OBJECT_ID
+  for each dereviations as $OBJECT_ID,$TYPE {
+ 	insert into INSTANCES (OBJECT_ID,TYPE) values ($OBJECT_ID,$TYPE)
+  }
+}
+
+when NEW INSTANCE then call_procedure INSTANCES_DEREVIATIONS_UPDATE
+when UPDATE INSTANCE TYPE on $OBJECT_ID then call_procedure INSTANCES_DEREVIATIONS_UPDATE
+
+</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID" use="required"/>
+                    <xs:attribute name="TYPE"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="COUNTER">
+                <xs:annotation>
+                    <xs:documentation>Tabela z licznikami dla każdej instancji- aby był osobny licznik kolejności dla każdego z instancji.
+Zasada triggerowania
+WHEN NEW_RECORD on INSTANCE_SOME_COLUMN  then
+ update COUNTER @counter_value +1;
+ return @counter_value + 1;
+ 
+ WHEN UPDATE INSTANCE
+ 
+ REALOCATE(INSTANCE) { nalezy zrealokowac obiekty ustawiajac ich kolejnosc wlasciwa na podstawie danych wejsciowych, czyli jak doszedl jakis element, to musi byc ustawiony jego counter na @counter_value+1 
+ i wszystkie dane mają zwiększony @counter_value
+ </xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID"/>
+                    <xs:attribute name="counter_value"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element maxOccurs="unbounded" minOccurs="0" name="INSTANCE_SOME_COLUMN">
+                <xs:annotation>
+                    <xs:documentation>Kazda kolumna z plaskiego wystepuje pod nazwa tabeli np. DEVICES__a123asdad_ID. 
+
+Przy triggerowaniu regula taka: 
+when NEW_RECORD on FLAT_TABLE then
+.....
+when field SOME_COLUMN then insert into INSTANCE_SOME_COLUMN(@OBJECT_ID,@counter_value,@value) values
+   (`wartosc klucza obiektu np. ID`,`nextval(@counter_value)`,`@SOME_COLUMN_VALUE`)
+   </xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID"/>
+                    <xs:attribute name="counter_value"/>
+                    <xs:attribute name="value"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element maxOccurs="unbounded" minOccurs="0" name="element_refs">
+                <xs:annotation>
+                    <xs:documentation>Informacje o relacjach do obcych obiektów z danego obiektu, tabela zawierajaca nr obiektu, licznik oraz @REMOTE_OBJECT_ID odnoszący się do @OBJECT_ID obcego obiektu, gdzie wiemy o jaki typ chodzi na podstawie schematu oraz nazwy tabeli, w której się znajduje dany rekord - bo do każdej relacji jest osobna tabela. 
+
+dane mogą być cacheowane/triggerowane w z tabelami płaskimi, po stronie obiektu docelowego, z zawartością @OBJECT_ID oraz nazwą kolumny=$nazwa_tabeli_relacji(@id ze schematu). 
+
+w związku z czym założenia do triggerowania są takie:
+when UPDATE on element_refs  (@OBJECT_ID,@REMOTE_OBJECT_ID)
+then update FLAT_TABLE2 set element_refs2=@OBJECT_ID where #ID=@REMOTE_OBJECT_ID
+
+w przypadku triggerowania od strony tabeli płaskiej, to wyglądało by to tak:
+when UPDATE FLAT_TABLE2 where #ID=@OBJECT2_ID and element_refs2=@OBJECT_ID
+delete from element_ref where @ID_OBJECT=OLD.@OBJECT_ID
+insert into element_ref where @ID_OBJECT=NEW.@OBJECT_ID
+
+</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID"/>
+                    <xs:attribute name="counter_value"/>
+                    <xs:attribute name="REMOTE_OBJECT_ID"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+        <xs:attribute name="OBJECT_ID" use="required"/>
+        <xs:attribute name="TYPE" use="required">
+            <xs:annotation>
+                <xs:documentation>Aktualny typ dla którego dany obiekt został zainstancjonowany. Jeżeli obiekt jest typu A i został tylko jako A użyty, to jest tutaj wartość A oraz do INSTANCES tez wchodzi, jako typ A. Natomiast, jeżeli został on użyty jako AAAA, który jest typem dziedziczonym z A/AA/AAA/AAAA, to powinna tam byc wartosc 'AAAA'. </xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+        <xs:attribute name="ELEMENT_NAME">
+            <xs:annotation>
+                <xs:documentation>Jezeli element byl uzyty dla zainstancjonowania obiektu - np. w wyniku zadzialania relacji, to nalezy to pole uzupelnic nazwa tego elementu. W zwiazku z czym dany obiekt nie bedzie mogl wystepowa jako dwa typy elementów? TODO czy jest to wlasciwe? TODO Moze to powinno przejsc na tabele INSTANCES?</xs:documentation>
+            </xs:annotation>
+        </xs:attribute>
+    </xs:complexType>
+    <xs:complexType name="INSTANCE2">
+        <xs:annotation>
+            <xs:documentation>Przykładowy inny obiekt - np podrzędny do INSTANCE np. BUDYNEK</xs:documentation>
+        </xs:annotation>
+        <xs:sequence>
+            <xs:element name="FLAT_TABLE">
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="ID2">
+                            <xs:complexType>
+                                <xs:attribute name="OBJECT_ID" use="required"/>
+                            </xs:complexType>
+                        </xs:element>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="SOME_COLUMN2">
+                            <xs:complexType>
+                                <xs:attribute name="SOME_COLUMN_VALUE"/>
+                            </xs:complexType>
+                        </xs:element>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="element_refs2">
+                            <xs:annotation>
+                                <xs:documentation>w przypadku, kiedy dany obiekt plaski zotsał ustawiony, że jest w relacji do jakiegoś innego obiektu, czyli np. REWIR moze zawierac BUDYNEK, oraz relacja zostala nazwana @id=REWIR_do_BUDUNEK, to powinna sie utworzyc kolumna w tabeli BUDYNEK o nazwie @id(REWIR_do_BUDYNEK), która będize zawierać @OBJECT_ID z tabeli BUDYNEK, która to kolumna powinna być wytriggerowana tak, że po zmianie relacji w element_refs będzie ona zaktualizowana. Założenia dla triggera:
+
+when update element_refs then
+update</xs:documentation>
+                            </xs:annotation>
+                            <xs:complexType>
+                                <xs:attribute name="OBJECT_ID"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                </xs:complexType>
+            </xs:element>
+            <xs:element maxOccurs="0" name="INSTANCES2" minOccurs="0">
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID" use="required"/>
+                    <xs:attribute name="TYPE"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="COUNTER2">
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID"/>
+                    <xs:attribute name="counter_value"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element maxOccurs="unbounded" minOccurs="0" name="INSTANCE_SOME_COLUMN2">
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID"/>
+                    <xs:attribute name="counter_value"/>
+                    <xs:attribute name="value"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element maxOccurs="unbounded" minOccurs="0" name="element_refs2">
+                <xs:complexType>
+                    <xs:attribute name="OBJECT_ID"/>
+                    <xs:attribute name="counter_value"/>
+                    <xs:attribute name="REMOTE_OBJECT_ID"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+        <xs:attribute name="OBJECT2_ID" use="required"/>
+        <xs:attribute name="TYPE2" use="required"/>
+        <xs:attribute name="ELEMENT2_NAME"/>
+    </xs:complexType>
+</xs:schema>

+ 56 - 8
SE/schema/default_db_xml_cache.public/topicProcesy5.xsd

@@ -22,9 +22,14 @@
 <!--             All Rights Reserved.                              -->
 <!--             All Rights Reserved.                              -->
 <!-- ============================================================= -->
 <!-- ============================================================= -->
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
 <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
-  attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/">
+  attributeFormDefault="unqualified" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"
+  xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+  vc:maxVersion="1.1" vc:minVersion="1.0" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
   <!-- Add the domains to the base topic XML Schema -->
   <!-- Add the domains to the base topic XML Schema -->
   <!--  ================ TOPIC DOMAINS =====================  -->
   <!--  ================ TOPIC DOMAINS =====================  -->
+  <xs:import
+    namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    schemaLocation="appinfo.xsd"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:uiDomain.xsd:1.2"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:uiDomain.xsd:1.2"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:softwareDomain.xsd:1.2"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:softwareDomain.xsd:1.2"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.2"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:highlightDomain.xsd:1.2"/>
@@ -55,7 +60,17 @@
       </xs:choice>
       </xs:choice>
     </xs:group>
     </xs:group>
   </xs:redefine>
   </xs:redefine>
-  <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.2"/>
+  <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:tblDeclMod.xsd:1.2">
+    <xs:complexType name="tbody.class">
+      <xs:complexContent>
+        <xs:extension base="tbody.class">
+          <xs:sequence maxOccurs="unbounded" minOccurs="0">
+            <xs:element ref="RelatedFeature"/>
+          </xs:sequence>
+        </xs:extension>
+      </xs:complexContent>
+    </xs:complexType>
+  </xs:redefine>
   <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
   <!-- ======= MetaData elements, plus keyword and indexterm ======= -->
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2"/>
   <xs:include schemaLocation="urn:oasis:names:tc:dita:xsd:metaDeclMod.xsd:1.2"/>
   <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.2">
   <xs:redefine schemaLocation="urn:oasis:names:tc:dita:xsd:commonElementGrp.xsd:1.2">
@@ -139,16 +154,49 @@
     <xs:attribute name="ID_CRM_ASSOC"/>
     <xs:attribute name="ID_CRM_ASSOC"/>
     <xs:attribute name="FIELD"/>
     <xs:attribute name="FIELD"/>
     <xs:attribute name="typeName"/>
     <xs:attribute name="typeName"/>
-    <xs:attribute name="xpath"/>
+    <xs:attribute name="xpath">
+      <xs:annotation>
+        <xs:documentation>To filter sibling and child nodes</xs:documentation>
+      </xs:annotation>
+    </xs:attribute>
   </xs:attributeGroup>
   </xs:attributeGroup>
   <xs:element name="RelatedFeature">
   <xs:element name="RelatedFeature">
     <xs:complexType mixed="true">
     <xs:complexType mixed="true">
-      <xs:choice>
+      <xs:choice maxOccurs="unbounded">
+        <xs:element minOccurs="0" name="RelatedAnalysSum">
+          <xs:annotation>
+            <xs:documentation>Do wstawienia sum oraz innych elementow bazujacych na danych juz wyswietlonych przy finalnym wyswietleniu</xs:documentation>
+          </xs:annotation>
+          <xs:complexType>
+            <xs:attribute name="xpath">
+              <xs:annotation>
+                <xs:documentation>To filter sibling and child nodes</xs:documentation>
+              </xs:annotation>
+            </xs:attribute>
+          </xs:complexType>
+        </xs:element>
+        <xs:element minOccurs="0" name="RelatedFilter">
+          <xs:annotation>
+            <xs:documentation>To add extra content filter (temporary feature to be obsolete after we enable engine instances filters by default)</xs:documentation>
+          </xs:annotation>
+          <xs:complexType>
+            <xs:attribute name="xpath" type="xs:string">
+              <xs:annotation>
+                <xs:documentation>To filter sibling and child nodes</xs:documentation>
+              </xs:annotation>
+            </xs:attribute>
+            <xs:attribute name="xpath_value" type="xs:string">
+              <xs:annotation>
+                <xs:documentation>Wartosc do wstawienia w xpath, moze byc xpath. Jak nie ma, to nadpisac z template</xs:documentation>
+              </xs:annotation>
+            </xs:attribute>
+          </xs:complexType>
+        </xs:element>
+        <xs:group ref="ph"/>
         <xs:group ref="topic"/>
         <xs:group ref="topic"/>
-        <xs:choice maxOccurs="unbounded">
-          <xs:group ref="ph"/>
-          <xs:group ref="p"/>
-        </xs:choice>
+        <xs:group ref="row"/>
+        <xs:group ref="p"/>
+        <xs:element ref="RelatedFeature"/>
       </xs:choice>
       </xs:choice>
       <xs:attribute name="typeName" use="required">
       <xs:attribute name="typeName" use="required">
         <xs:annotation>
         <xs:annotation>

+ 442 - 0
SE/schema/default_db_xml_cache.public/web_ui.xsd

@@ -0,0 +1,442 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__web_ui="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/web_ui"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/web_ui"
+    vc:minVersion="1.1">
+    <xs:annotation>
+        <xs:documentation>Schemat do okreslenia parametrow komunikacji pomiedzy UI a funkcjami XSL wspomagajacy tworzenie argumentow do funkcji @2015-08</xs:documentation>
+    </xs:annotation>
+
+    <xs:import namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+        schemaLocation="appinfo.xsd"/>
+    <xs:complexType name="body">
+        <xs:sequence>
+            <xs:element name="nav">
+                <xs:annotation>
+                    <xs:documentation>TODO nie skonczone menu główne systemu - nie wszystkie paski zdefiniowano w schemacie</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="div">
+                            <xs:complexType>
+                                <xs:sequence>
+                                    <xs:element name="div">
+                                        <xs:complexType>
+                                            <xs:sequence>
+                                                <xs:element name="ul">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="li">
+                                                  <xs:complexType mixed="true">
+                                                  <xs:sequence>
+                                                  <xs:element name="a">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="i">
+                                                  <xs:complexType>
+                                                  <xs:attribute
+                                                  fixed="bookmark-item-add-13332 bookmark-item-add glyphicon glyphicon-star-empty"
+                                                  name="class"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  <xs:element name="ul">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="li">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="a">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="i">
+                                                  <xs:complexType>
+                                                  <xs:attribute name="class">
+                                                  <xs:annotation>
+                                                  <xs:documentation>eg. bookmark-item-add-13332 bookmark-item-add glyphicon glyphicon-star-empty
+
+or  bookmark-item-rem-13332 bookmark-item-rem glyphicon glyphicon-star</xs:documentation>
+                                                  </xs:annotation>
+                                                  </xs:attribute>
+                                                  <xs:attribute name="data-zasobid" type="xs:int">
+                                                  <xs:annotation>
+                                                  <xs:documentation>e.g. 13332</xs:documentation>
+                                                  </xs:annotation>
+                                                  </xs:attribute>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute name="href" type="xs:anyURI">
+                                                  <xs:annotation>
+                                                  <xs:documentation>eg. index.php MENU_INIT=VIEWTABLE_AJAX ZASOB_ID=13332</xs:documentation>
+                                                  </xs:annotation>
+                                                  </xs:attribute>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="dropdown-menu" name="class"/>
+                                                  <xs:attribute fixed="SE-menu-tables" name="id"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="dropdown-toggle" name="class"/>
+                                                  <xs:attribute fixed="#" name="href"
+                                                  type="xs:anyURI"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="dropdown active" name="class"
+                                                  />
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="nav navbar-nav" name="class"
+                                                  />
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                            <xs:attribute fixed="collapse navbar-collapse"
+                                                name="class"/>
+                                        </xs:complexType>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute fixed="container-fluid" name="class"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute default="SE-menu" name="id"/>
+                    <xs:attribute fixed="navbar-nav navbar-inverse" name="class"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="div">
+                <xs:annotation>
+                    <xs:documentation>pasek ulubionych nad główną tabelą</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element maxOccurs="unbounded" minOccurs="0" name="a">
+                            <xs:annotation>
+                                <xs:documentation>eg. korespondencja</xs:documentation>
+                            </xs:annotation>
+                            <xs:complexType>
+                                <xs:simpleContent>
+                                    <xs:extension base="xs:string">
+                                        <xs:attribute fixed="btn btn-xs btn-danger" name="class"/>
+                                        <xs:attribute name="href" type="xs:anyURI">
+                                            <xs:annotation>
+                                                <xs:documentation>eg. index.php?MENU_INIT=VIEWTABLE_AJAX ZASOB_ID=1188</xs:documentation>
+                                            </xs:annotation>
+                                        </xs:attribute>
+                                    </xs:extension>
+                                </xs:simpleContent>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute fixed="SE-menu-sub" name="id"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="div2">
+                <xs:annotation>
+                    <xs:documentation>!!! Original element name is div.
+
+Okno głównej tabeli UI systemowego</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="ul">
+                            <xs:annotation>
+                                <xs:documentation>pasek pokazujący nazwę tabeli, w której jesteśmy aktualnie - np. Zasoby (CRM_LISTA_ZASOBOW)</xs:documentation>
+                            </xs:annotation>
+                            <xs:complexType>
+                                <xs:sequence>
+                                    <xs:element name="li">
+                                        <xs:complexType>
+                                            <xs:sequence>
+                                                <xs:element name="a">
+                                                  <xs:annotation>
+                                                  <xs:documentation>e.g. Zasoby</xs:documentation>
+                                                  </xs:annotation>
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="em" type="xs:string">
+                                                  <xs:annotation>
+                                                  <xs:documentation>e.g. (CRM_LISTA_ZASOBOW)</xs:documentation>
+                                                  </xs:annotation>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="#" name="href"/>
+                                                  <xs:attribute
+                                                  fixed="return tableAjaxBackToTable();"
+                                                  name="onclick"/>
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                        </xs:complexType>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute fixed="breadcrumb" name="class"/>
+                            </xs:complexType>
+                        </xs:element>
+                        <xs:element name="div">
+                            <xs:annotation>
+                                <xs:documentation>Pasek z filtrami domyslnymi - TODO</xs:documentation>
+                            </xs:annotation>
+                            <xs:complexType>
+                                <xs:sequence>
+                                    <xs:element name="div">
+                                        <xs:annotation>
+                                            <xs:documentation>pojedynczy przycisk ktory zawiera ikonke, oraz opcje z danej grupy filtrow</xs:documentation>
+                                        </xs:annotation>
+                                        <xs:complexType>
+                                            <xs:sequence>
+                                                <xs:element name="button">
+                                                  <xs:complexType>
+                                                  <xs:attribute name="class"
+                                                  type="system_cache__web_ui:class-dla-button-filtrr"
+                                                  />
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                            <xs:attribute fixed="btn-group" name="class"/>
+                                        </xs:complexType>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute fixed="btn-toolbar TableAjax-SpecialFilter"
+                                    name="class"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute fixed="AjaxTableCont" name="class"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="div3">
+                <xs:annotation>
+                    <xs:documentation>Oryg element name div
+
+Podstawowa tabela interfejsu przegladania danych w SE</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="table">
+                            <xs:complexType>
+                                <xs:sequence>
+                                    <xs:element name="thead">
+                                        <xs:complexType>
+                                            <xs:sequence>
+                                                <xs:element name="tr">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="th">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element maxOccurs="3" minOccurs="3" name="a">
+                                                  <xs:annotation>
+                                                  <xs:documentation>href # , tutle Long desc
+href #CREATE title Dodaj Nowy Rekord
+href # title Odsiez dane</xs:documentation>
+                                                  </xs:annotation>
+                                                  <xs:complexType>
+                                                  <xs:attribute name="href"/>
+                                                  <xs:attribute name="title"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute
+                                                  fixed="text-right head-info stickyCol1"
+                                                  name="class"/>
+                                                  <xs:attribute
+                                                  fixed="position: absolute; left: 0px; top: auto; width: 71px; height: 46px;"
+                                                  name="style"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="sort" name="class"/>
+                                                  </xs:complexType>
+                                                </xs:element>
+                                                <xs:element name="tr1">
+                                                  <xs:annotation>
+                                                  <xs:documentation>oryg element name tr</xs:documentation>
+                                                  </xs:annotation>
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="th">
+                                                  <xs:complexType>
+                                                  <xs:attribute fixed="text-right stickyCol1"
+                                                  name="class"/>
+                                                  <xs:attribute
+                                                  fixed="position: absolute; left: 0px; top: auto; width: 71px; height: 34px;"
+                                                  name="style"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  <xs:element name="th1">
+                                                  <xs:complexType>
+                                                  <xs:attribute fixed="stickyCol2" name="class"/>
+                                                  <xs:attribute
+                                                  fixed="position: absolute; left: 71px; top: auto; width: 61px; border-right-width: 1px; border-right-style: solid; border-right-color: silver;"
+                                                  name="style"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  <xs:element name="th3">
+                                                  <xs:annotation>
+                                                  <xs:documentation>Filtry dla kolumn</xs:documentation>
+                                                  </xs:annotation>
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="input">
+                                                  <xs:complexType>
+                                                  <xs:attribute fixed="%" name="placeholder"/>
+                                                  <xs:attribute fixed="filter" name="class"/>
+                                                  <xs:attribute name="type" type="text"/>
+                                                  <xs:attribute fixed="8" name="size"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="filter" name="class"/>
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                        </xs:complexType>
+                                    </xs:element>
+                                    <xs:element name="tbody">
+                                        <xs:complexType>
+                                            <xs:sequence>
+                                                <xs:element name="tr">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="td">
+                                                  <xs:complexType>
+                                                  <xs:sequence>
+                                                  <xs:element name="a">
+                                                  <xs:annotation>
+                                                  <xs:documentation>href #EDIT/21715 title - Edytuij rekord
+href #HIST/21715  title Historia
+href #FILES/21715 title Pliki
+href # title Kopiuj rekord  onclick return tableAjaxCopy(21715)</xs:documentation>
+                                                  </xs:annotation>
+                                                  <xs:complexType>
+                                                  <xs:attribute name="href"/>
+                                                  <xs:attribute name="title"/>
+                                                  <xs:attribute name="onclick"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  <xs:attribute fixed="text-right stickyCol1"
+                                                  name="class"/>
+                                                  <xs:attribute
+                                                  fixed="position: absolute; left: 0px; top: auto; width: 71px;"
+                                                  name="style"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  <xs:element name="td1">
+                                                  <xs:annotation>
+                                                  <xs:documentation>oryg name td
+
+pierwsza kolumna z kluczami ID</xs:documentation>
+                                                  </xs:annotation>
+                                                  <xs:complexType>
+                                                  <xs:attribute fixed="stickyCol2" name="class"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  <xs:element name="td2">
+                                                  <xs:complexType>
+                                                  <xs:attribute fixed="tbl-short-txt" name="class"/>
+                                                  </xs:complexType>
+                                                  </xs:element>
+                                                  </xs:sequence>
+                                                  </xs:complexType>
+                                                </xs:element>
+                                            </xs:sequence>
+                                        </xs:complexType>
+                                    </xs:element>
+                                    <xs:element name="tfoot">
+                                        <xs:annotation>
+                                            <xs:documentation>Stopka tabeli - pusta</xs:documentation>
+                                        </xs:annotation>
+                                    </xs:element>
+                                </xs:sequence>
+                                <xs:attribute
+                                    fixed="AjaxTable table table-striped table-hover table-bordered table-condensed"
+                                    name="class"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute name="id">
+                        <xs:annotation>
+                            <xs:documentation>e.g. CRM_LISTA_ZASOBOW</xs:documentation>
+                        </xs:annotation>
+                    </xs:attribute>
+                    <xs:attribute
+                        fixed="width: 1233px; margin-left: 132px; overflow-x: scroll; overflow-y: visible; padding-bottom: 1px;"
+                        name="style"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="div4">
+                <xs:annotation>
+                    <xs:documentation>oryg name div
+
+Nawigator Wiersze od 1 do 10 z 21539  + przewijanie etc</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:sequence>
+                        <xs:element name="div">
+                            <xs:complexType>
+                                <xs:sequence>
+                                    <xs:element fixed="wiersze od 1 do 10" name="p"/>
+                                </xs:sequence>
+                                <xs:attribute fixed="foot-info" name="class"/>
+                            </xs:complexType>
+                        </xs:element>
+                        <xs:element name="div1">
+                            <xs:annotation>
+                                <xs:documentation>Przyciski do przewijania, Liczba Wierszy, Kolumny</xs:documentation>
+                            </xs:annotation>
+                            <xs:complexType>
+                                <xs:attribute fixed="btn-toolbar" name="class"/>
+                            </xs:complexType>
+                        </xs:element>
+                    </xs:sequence>
+                    <xs:attribute fixed="foot" name="class"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:simpleType name="class-button-option">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="btn btn-xs btn-default"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="class-button-option-disabled">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="btn btn-xs btn-default disabled"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:simpleType name="class-dla-button-filtrr">
+        <xs:list>
+            <xs:simpleType>
+                <xs:union>
+                    <xs:simpleType>
+                        <xs:restriction base="system_cache__web_ui:class-button-option"/>
+                    </xs:simpleType>
+                    <xs:simpleType>
+                        <xs:restriction base="system_cache__web_ui:class-button-option-disabled"/>
+                    </xs:simpleType>
+                </xs:union>
+            </xs:simpleType>
+        </xs:list>
+    </xs:simpleType>
+    <xs:complexType name="edit_record_set">
+        <xs:annotation>
+            <xs:documentation>TODO Obiekt do stworzenia transakcji modyfikacji jakis danych</xs:documentation>
+        </xs:annotation>
+        <xs:choice maxOccurs="unbounded">
+            <xs:element name="edit_record"/>
+            <xs:element name="new_record"/>
+        </xs:choice>
+    </xs:complexType>
+</xs:schema>

+ 5 - 0
SE/superedit-INSTALL_SES_PROCESY_A.php

@@ -727,6 +727,11 @@ $cmd[]['rsh']='serveradmin stop web && serveradmin start web';
  $cmd[]['rsh']='which xlsx2csv || port install xlsx2csv';
  $cmd[]['rsh']='which xlsx2csv || port install xlsx2csv';
  $cmd[]['rsh']='ln -s /opt/local/bin/gnutar /usr/sbin/gnutar || echo PASSED';
  $cmd[]['rsh']='ln -s /opt/local/bin/gnutar /usr/sbin/gnutar || echo PASSED';
  $cmd[]['rsh']='which apache-ant || port install apache-ant';
  $cmd[]['rsh']='which apache-ant || port install apache-ant';
+  $cmd[]['rsh']='which md5sum || port install md5sha1sum';
+    $cmd[]['rsh']='which makepasswd || port install makepasswd';
+
+  
+ 
  return $cmd;
  return $cmd;