瀏覽代碼

merged from schema

a.binder 8 年之前
父節點
當前提交
2f9722a0ec

+ 15 - 0
SE/schema/default_db_xml_cache.public/build.xsd

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    xmlns:p5om="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling/object_modeling.xsd"
+    xmlns:p5build="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/build.xsd"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/build.xsd"
+    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:annotation>
+        <xs:documentation>To specify main system build.xml functions and relations</xs:documentation>
+    </xs:annotation>
+    <xs:complexType name="schema">
+        <xs:annotation>
+            <xs:documentation>Xml schema which defines structures of objects, which are localized across many directories in system</xs:documentation>
+        </xs:annotation>
+    </xs:complexType>
+</xs:schema>

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

@@ -16,7 +16,7 @@
    <xsl:param name="typeName" required="yes"/> <!-- like p5_default_db:CRM_PROCES to retrieve from simpleSchema_dir correct dir object/map -->
    <xsl:param name="namespace_prefix_p5_tr_map" select="'default_db'"/>
    <!--<xsl:param name="detect_resource_type.local" required="yes"/>-->
-   
+
    <!--<xsl:variable name="simpleSchema" select="doc( concat($simpleSchema_dir,'/',$namespace_prefix_p5_tr_map,'/', system_cache__appinfo:clean_object_prefix($typeName),'.xml' ))"/>-->
    
    <xsl:variable name="simpleSchema" >

+ 34 - 0
SE/schema/default_db_xml_cache.public/namespaces_schema_modeling/namespaces_schema_modeling.xsd

@@ -0,0 +1,34 @@
+<?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/namespaces_schema_modeling/namespaces_schema_modeling.xsd"
+    vc:minVersion="1.1"
+    xmlns:p5nsm="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/namespaces_schema_modeling/namespaces_schema_modeling.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.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">
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+        schemaLocation="../system_cache__appinfo/element-filename.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+        schemaLocation="../p5_simpleSchema_map/element-filename.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+        schemaLocation="../p5_tr_map/element-filename.xsd">
+        <xs:annotation>
+            <xs:documentation>Schema created to integrate all schema namespaces modifications while modelling.
+And also during transformation process to handle correctly 
+1) base file os oryginal schema
+2) base targetnamespace
+3) base prefix
+
+to calculate
+1) save path to buildComplexType
+2) save path to p5_tr_map
+3) save path to detect_resource_type
+4) save path to detect_parent_relations
+5) save path to simpleSchema</xs:documentation>
+        </xs:annotation>
+    </xs:import>
+</xs:schema>

+ 13 - 0
SE/schema/default_db_xml_cache.public/p5_simpleSchema_map/element-filename.xsd

@@ -0,0 +1,13 @@
+<?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_simpleSchema_map.xsd"
+    vc:minVersion="1.1"
+    xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:element name="element-filename">
+        <xs:complexType>
+            <xs:attributeGroup ref="p5_simpleSchema_map:element-filename.params"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:attributeGroup name="element-filename.params"/>
+</xs:schema>

+ 13 - 0
SE/schema/default_db_xml_cache.public/p5_tr_map/element-filename.xsd

@@ -0,0 +1,13 @@
+<?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/procesy5_translate_map.xsd"
+    vc:minVersion="1.1"
+    xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    <xs:element name="element-filename">
+        <xs:complexType>
+            <xs:attributeGroup ref="p5_tr_map:element-filename.params"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:attributeGroup name="element-filename.params"/>
+</xs:schema>

+ 63 - 0
SE/schema/default_db_xml_cache.public/schema/schema.xsd

@@ -0,0 +1,63 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    targetNamespace="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
+    <xs:redefine schemaLocation="http://www.w3.org/2001/XMLSchema">
+        <xs:complexType mixed="false" name="topLevelElement">
+            <xs:complexContent>
+                <xs:extension base="xs:topLevelElement"/>
+            </xs:complexContent>
+        </xs:complexType>
+    </xs:redefine>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+        schemaLocation="../appinfo.xsd"/>
+    <xs:complexType name="annotation.local.element">
+        <xs:complexContent>
+            <xs:extension base="xs:openAttrs">
+                <xs:choice maxOccurs="unbounded" minOccurs="0">
+                    <xs:element name="appinfo" type="xs:appinfo.local.element"/>
+                    <xs:element ref="xs:documentation"/>
+                </xs:choice>
+                <xs:attribute name="id" type="xs:ID"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="annotation.complexType"/>
+    <xs:complexType name="appinfo.complexType.ParentType">
+        <xs:annotation>
+            <xs:documentation>Parent/Base complexType  of some table/namespace schema - e.g. CRM_PROCES</xs:documentation>
+        </xs:annotation>
+        <xs:choice maxOccurs="unbounded" minOccurs="0">
+            <xs:any processContents="lax"/>
+            <xs:element ref="system_cache__appinfo:heritage"/>
+        </xs:choice>
+        <xs:attribute name="source" type="xs:anyURI"/>
+        <xs:attribute name="type"/>
+        <xs:anyAttribute namespace="##other" processContents="lax"/>
+    </xs:complexType>
+    <xs:complexType name="appinfo.complexType">
+        <xs:complexContent>
+            <xs:extension base="xs:appinfo.complexType.ParentType"> </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="appinfo.element">
+        <xs:annotation>
+            <xs:documentation>Top Level element it can be also of root parent complexType (CRM_PROECES) or some derived complexType (PROCES_INIT)</xs:documentation>
+        </xs:annotation>
+        <xs:complexContent>
+            <xs:extension base="xs:appinfo.complexType"> </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="appinfo.local.element">
+        <xs:complexContent>
+            <xs:extension base="xs:appinfo.element">
+                <xs:choice maxOccurs="1" minOccurs="0">
+                    <xs:element ref="system_cache__appinfo:flat_relation_cache" minOccurs="0"/>
+                    <xs:element minOccurs="0"
+                        ref="system_cache__appinfo:acl_rule_inherit_by_primary"/>
+                </xs:choice>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+</xs:schema>

+ 15 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/element-filename.xsd

@@ -0,0 +1,15 @@
+<?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/appinfo.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:element name="element-filename">
+        <xs:complexType>
+            <xs:attributeGroup ref="system_cache__appinfo:element-filename.params"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:attributeGroup name="element-filename.params">
+        <xs:attribute name="document-uri"/>
+    </xs:attributeGroup>
+</xs:schema>

+ 88 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/external_schema_targetNamespace.xsd

@@ -0,0 +1,88 @@
+<?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/appinfo.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
+    <xs:annotation>
+        <xs:documentation>Specification for functions used to translate namespaces for modelling subobject to allow to import to procesy5</xs:documentation>
+    </xs:annotation>
+    <xs:include schemaLocation="procesy5_system_schema.xsd"/>
+    <xs:attribute name="object_install_se_ant_object.create_prefix" type="xs:string">
+        <xs:annotation>
+            <xs:documentation>New prefix being created when derivating schema to smaller in another sequence or subtype</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="targetNamespace" type="xs:anyURI">
+        <xs:annotation>
+            <xs:documentation>param used to calculate localisations of schemas</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:element name="object_install_se_ant_object.create_prefix">
+        <xs:annotation>
+            <xs:documentation>Modelling: To create prefix when new sequence or local type</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="INPUT">
+                    <xs:complexType>
+                        <xs:attribute name="object_install_se_ant_object.create_prefix"
+                            type="xs:string">
+                            <xs:annotation>
+                                <xs:documentation>New prefix being created when derivating schema to smaller in another sequence or subtype</xs:documentation>
+                            </xs:annotation>
+                        </xs:attribute>
+                        <xs:attribute name="generate_tables_from_external_root.path.last_token"
+                            type="xs:string">
+                            <xs:annotation>
+                                <xs:documentation>Parametr to concat name of new prefix</xs:documentation>
+                            </xs:annotation>
+                        </xs:attribute>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="OUTPUT">
+                    <xs:complexType>
+                        <xs:attribute
+                            ref="system_cache__appinfo:object_install_se_ant_object.create_prefix"/>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="object_install_se_ant_object.save-path">
+        <xs:annotation>
+            <xs:documentation>this is function </xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:attribute name="document-uri-orig" type="xs:string"/>
+            <xs:attribute ref="system_cache__appinfo:object_install_se_ant_object.create_prefix"/>
+            <xs:attribute name="targetNamespace" type="xs:anyURI">
+                <xs:annotation>
+                    <xs:documentation>param used to calculate localisations of schemas</xs:documentation>
+                </xs:annotation>
+            </xs:attribute>
+        </xs:complexType>
+    </xs:element>
+    <xs:attribute name="root_obj_name" type="xs:string">
+        <xs:annotation>
+            <xs:documentation>detected root object name by string analysis of document-uri-oryg, should be optimized</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:element name="root_obj_name">
+        <xs:annotation>
+            <xs:documentation>This function should use another calculations than only document-uri-orig!</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:element name="INPUT">
+                    <xs:complexType>
+                        <xs:attribute name="document-uri-orig" type="xs:string"/>
+                    </xs:complexType>
+                </xs:element>
+                <xs:element name="OUTPUT">
+                    <xs:complexType>
+                        <xs:attribute ref="system_cache__appinfo:root_obj_name"/>
+                    </xs:complexType>
+                </xs:element>
+            </xs:sequence>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 60 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/flat_relation_cache.xsd

@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    targetNamespace="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">
+    <xs:annotation>
+        <xs:documentation>To be used in xs:schema/xs:complexType/xs:sequence/xs:element/xs:annotations/xs:appinfo</xs:documentation>
+    </xs:annotation>
+    <xs:simpleType name="ref_engine">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="table"/>
+            <xs:enumeration value="view"/>
+            <xs:enumeration value="backRef"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:element name="source">
+        <xs:complexType>
+            <xs:attribute ref="system_cache__appinfo:xpath" use="required">
+                <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:attribute ref="system_cache__appinfo:ref_engine"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:attribute fixed="true" name="backref_evaluate" type="xs:boolean">
+        <xs:annotation>
+            <xs:documentation>In case of use this attribute, when there are relations r1, r2, ( we are on Y object)
+X ---r1--> Y ---r2---> X  
+So we can use relation r1 from X-->Y to copy its references to r2 from Y-->X . 
+
+</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="ref_engine" type="system_cache__appinfo:ref_engine"/>
+    <xs:attribute name="xpath" type="xs:string"/>
+    <xs:attribute name="name" type="xs:string"/>
+    <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 minOccurs="0">
+                <xs:element ref="system_cache__appinfo:source"/>
+            </xs:sequence>
+            <xs:attribute ref="system_cache__appinfo:backref_evaluate" use="optional"/>
+            <xs:assert
+                test="@system_cache__appinfo:backref_evaluate and system_cache__appinfo:source/@system_cache__appinfo:ref_engine or not(@system_cache__appinfo:backref_evaluate)">
+                <xs:annotation>
+                    <xs:documentation>Jeżeli coś jest na backref to musi być tabela widoku</xs:documentation>
+                </xs:annotation>
+            </xs:assert>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 217 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/heritage.xsd

@@ -0,0 +1,217 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    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"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
+    <xs:attribute name="exherit_ref" type="xs:NCName">
+        <xs:annotation>
+            <xs:documentation>To exherit some options  (name of complexType)</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="heritage_acl" type="xs:boolean">
+        <xs:annotation>
+            <xs:documentation>Attributes for inherit/exherit acl/sort controll. For minimise PROCESS/Resources handling problems</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="heritage_sort" type="xs:boolean">
+        <xs:annotation>
+            <xs:documentation>Attributes for inherit/exherit acl/sort controll. For minimise PROCESS/Resources handling problems</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="inherit_ref" type="xs:NCName">
+        <xs:annotation>
+            <xs:documentation>to inherit from some object name - type element with prefix or if base table use default_db prefix. e.g. default_db:CRM_PROCES or default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:element name="heritage">
+        <xs:annotation>
+            <xs:documentation>Attributes for inherit/exherit acl/sort controll. For minimise PROCESS/Resources handling problems - to be set in xs:appinfo</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:choice>
+                <xs:element ref="system_cache__appinfo:exherit_all"/>
+                <xs:element maxOccurs="unbounded" ref="system_cache__appinfo:exherit"/>
+                <xs:element ref="system_cache__appinfo:inherit"/>
+            </xs:choice>
+        </xs:complexType>
+    </xs:element>
+    <xs:complexType name="heritage-child">
+        <xs:choice maxOccurs="unbounded" minOccurs="1">
+            <xs:element name="acl_rule_inherit_to_all_same_name_elements_and_refs">
+                <xs:annotation>
+                    <xs:documentation>we are on complexType  default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW
+                        to  set all perms to local elements and references by primary key of related reference from @system_cache__appinfo:inherit_ref element (names should be mapped)
+(mapped from) eg.:default_db:CRM_LISTA_ZASOBOW/A_STATUS has perms R,W,X - so  local elements related fields names in element  default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW: e.g. A_STATUS, A_STATUS_INFO gets the same perms C,R</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="acl_rule_inherit_to_all_elements_and_refs_by_primary">
+                <xs:annotation>
+                    <xs:documentation>We are on complexType CRM_LISTA_ZASOBOW
+to  set all perms to local elements and references by primary key of related reference from @system_cache__appinfo:inherit_ref element - eg. CRM_PROCES/ID has perms C,R - so all local elements related fields in element CRM_LISTA_ZASOBOW: e.g. A_STATUS, A_STATUS_INFO gets the same perms C,R</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="acl_rule_inherit_to_all_refs_by_primary">
+                <xs:annotation>
+                    <xs:documentation>To make aviable ref e.g. in CRM_PROCES to CRM_IMAGE_PROCES to be associated by rule of e.g. somebody has access to primary key to READ or CREATE 
+
+but for task of editing references to delete refs use another ruleset task</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element name="acl_rule_inherit_to_single_refs_by_primary">
+                <xs:complexType>
+                    <xs:attribute name="acl_rule_exherit_local_element_name" type="xs:string">
+                        <xs:annotation>
+                            <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
+                        </xs:annotation>
+                    </xs:attribute>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="acl_rule_local_inherit">
+                <xs:annotation>
+                    <xs:documentation>To control single local acl settings </xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_exherit_local_element_name">
+                        <xs:annotation>
+                            <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
+                        </xs:annotation>
+                    </xs:attribute>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="acl_rule_inherit_to_all_refs_by_local_element">
+                <xs:annotation>
+                    <xs:documentation>To allow simply inherit acl from  field to all references. Useful when inherit acl from base table objects, where are not aviable refs in ACL GUI system.</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="acl_rule_inherit_to_single_refs_by_local_element">
+                <xs:annotation>
+                    <xs:documentation>To allow simply inherit acl from  field to some references. Useful when inherit acl from base table objects, where are not aviable refs in ACL GUI system.</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_exherit_local_element_name">
+                        <xs:annotation>
+                            <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
+                        </xs:annotation>
+                    </xs:attribute>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:choice>
+    </xs:complexType>
+    <xs:complexType name="exherit_all">
+        <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:heritage-child">
+                <xs:attribute ref="system_cache__appinfo:heritage_acl"/>
+                <xs:attribute ref="system_cache__appinfo:heritage_sort"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="exherit_all" type="system_cache__appinfo:exherit_all">
+        <xs:annotation>
+            <xs:documentation>To exherit all properties to all child elements/complexTypes</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:complexType name="exherit">
+        <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:heritage-child">
+                <xs:attribute ref="system_cache__appinfo:exherit_ref" use="required"/>
+                <xs:attribute ref="system_cache__appinfo:heritage_sort"/>
+                <xs:attribute ref="system_cache__appinfo:heritage_acl"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="exherit" type="system_cache__appinfo:exherit">
+        <xs:annotation>
+            <xs:documentation>To exherit to selected by attributes elements/complexTypes</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:complexType name="inherit">
+        <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:heritage-child">
+                <xs:attribute ref="system_cache__appinfo:inherit_ref" use="required"/>
+                <xs:attribute ref="system_cache__appinfo:heritage_sort"/>
+                <xs:attribute ref="system_cache__appinfo:heritage_acl"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="inherit" type="system_cache__appinfo:inherit">
+        <xs:annotation>
+            <xs:documentation>To exherit to selected by attributes elements/complexTypes.
+Use acl_ruleset for controll single elements</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:element name="acl_ruleset" type="system_cache__appinfo:acl_ruleset">
+        <xs:annotation>
+            <xs:documentation>To set in appinfo what are default acl for object rules.
+Inherit is for all fields - this is for single fields rules</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:simpleType id="default_d___appinfo-1_CRM_PRZYPA" name="CRM_PRZYPADEK__FORM_TREAT">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value=""/>
+            <xs:enumeration value="R"/>
+            <xs:enumeration value="W"/>
+            <xs:enumeration value="X"/>
+            <xs:enumeration value="C"/>
+            <xs:enumeration value="S"/>
+            <xs:enumeration value="O"/>
+            <xs:enumeration value="V"/>
+            <xs:enumeration value="E"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:attribute name="acl_rule_inherit_acl_set"
+        type="system_cache__appinfo:CRM_PRZYPADEK__FORM_TREAT"/>
+    <xs:attribute name="acl_rule_inherit_local_element_name" type="xs:string">
+        <xs:annotation>
+            <xs:documentation>To describe from which local element to inherit - e.g. ID or another. Subject is to describe which element is subject to edit to share acl to allow edit/delete references from this object</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:attribute name="acl_rule_exherit_local_element_name" type="xs:string">
+        <xs:annotation>
+            <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
+        </xs:annotation>
+    </xs:attribute>
+    <xs:complexType abstract="true" name="acl_ruleset_by_associated_process_owner">
+        <xs:annotation>
+            <xs:documentation>@2018-01 this is nonsense - process should associate object not opposite!!!</xs:documentation>
+        </xs:annotation>
+        <xs:sequence maxOccurs="unbounded">
+            <!--<xs:element ref="wsbpel:process"/>-->
+            <xs:element name="acl_rule_local_set">
+                <xs:annotation>
+                    <xs:documentation>To control single local acl settings based on process owner association. It acts like CRM_WSKAZNIK</xs:documentation>
+                </xs:annotation>
+                <xs:complexType>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_exherit_local_element_name">
+                        <xs:annotation>
+                            <xs:documentation>To select local element to set acl - like default_db__x3A__CRM_IMAGE:CRM_IMAGE_CRM_PROCES on default_db__x3A__CRM_PROCES:CRM_PROCES complexType</xs:documentation>
+                        </xs:annotation>
+                    </xs:attribute>
+                    <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:complexType name="acl_ruleset"> </xs:complexType>
+    <xs:element name="local_element_inherit">
+        <xs:annotation>
+            <xs:documentation>Options to use in local complexType/sequence/element configurations to allow config for single element to be set in schema and be inherited ACL</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_acl_set"/>
+            <xs:attribute ref="system_cache__appinfo:acl_rule_inherit_local_element_name"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="acl_rule_inherit_by_primary">
+        <xs:annotation>
+            <xs:documentation>To be used in local element to inherit ACL from primary key to current local element</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+</xs:schema>

+ 67 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/namespaceNode.xsd

@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    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:SystemObjects__x3A__File="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/File.xsd">
+    <xs:annotation>
+        <xs:documentation>To define in system schema transformations rules for targetNamespace and prefixes in object modelling</xs:documentation>
+    </xs:annotation>
+    <xs:simpleType name="targetNamespace">
+        <xs:restriction base="xs:anyURI"/>
+    </xs:simpleType>
+    <xs:attribute name="prefix" type="xs:string"/>
+    <xs:attribute name="targetNamespace" type="targetNamespace"/>
+    <xs:complexType name="schemaNamespaceNode">
+        <xs:sequence>
+            <xs:element ref="ownNamespace"/>
+            <xs:element maxOccurs="unbounded" minOccurs="0" ref="externatlNamespaces"/>
+        </xs:sequence>
+        <xs:attribute ref="targetNamespace"/>
+        <xs:assert test="@targetNamespace = targetNamespace"/>
+    </xs:complexType>
+    <xs:element name="schemaNamespaceNode" type="schemaNamespaceNode">
+        <xs:annotation>
+            <xs:documentation>This is not exact representation for xml elements.</xs:documentation>
+        </xs:annotation>
+    </xs:element>
+    <xs:complexType name="ownNamespace">
+        <xs:sequence>
+            <xs:element name="prefix">
+                <xs:complexType>
+                    <xs:attribute ref="prefix"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="targetNamespace">
+                <xs:complexType>
+                    <xs:attribute ref="targetNamespace"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="ownNamespace" type="ownNamespace"/>
+    <xs:complexType name="externatlNamespaces">
+        <xs:sequence maxOccurs="unbounded" minOccurs="0">
+            <xs:element name="prefix">
+                <xs:complexType>
+                    <xs:attribute ref="prefix"/>
+                </xs:complexType>
+            </xs:element>
+            <xs:element name="targetNamespace">
+                <xs:complexType>
+                    <xs:attribute ref="targetNamespace"/>
+                </xs:complexType>
+            </xs:element>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="externatlNamespaces" type="externatlNamespaces"/>
+    <xs:element name="prefix" abstract="true">
+        <xs:complexType>
+            <xs:attribute ref="prefix"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="targetNamespace" abstract="true" block="">
+        <xs:complexType>
+            <xs:attribute ref="targetNamespace"/>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 126 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/procesy5_system_schema.xsd

@@ -0,0 +1,126 @@
+<?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/appinfo.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    vc:minVersion="1.1" xmlns:get_all_xsd="http://biuro.biall-net.pl/xmlschema_procesy5/table/"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    xmlns:external_schema_id_namespace_prefix="http://biuro.biall-net.pl/xmlschema_procesy5/external_schema_id_namespace_prefix/"
+    xmlns:default_db="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/">
+    <xs:include schemaLocation="../appinfo.xsd"/>
+    <xs:import namespace="http://biuro.biall-net.pl/xmlschema_procesy5/table/"
+        schemaLocation="../build/table.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/external_schema_id_namespace_prefix/"
+        schemaLocation="../build/external_schema_id_namespace_prefix.xsd"/>
+    <xs:import namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/"
+        schemaLocation="../build/default_db.xsd"/>
+    <xs:element name="get_all_xsd_list">
+        <xs:complexType>
+            <xs:choice maxOccurs="unbounded">
+                <xs:element ref="system_cache__appinfo:get_all_xsd_default_db"/>
+                <xs:element ref="system_cache__appinfo:get_all_xsd.default_db_xml_cache.public"/>
+                <xs:element ref="system_cache__appinfo:get_all_xsd_external_schema"/>
+                <xs:element ref="system_cache__appinfo:get_all_xsd"/>
+                <xs:element
+                    ref="system_cache__appinfo:get_all_xsd_external_schema_id_namespace_prefix"/>
+            </xs:choice>
+        </xs:complexType>
+    </xs:element>
+    <xs:attribute name="document-uri" type="xs:string"/>
+    <xs:attribute name="document-uri-full" type="xs:string"/>
+    <xs:attribute name="document-uri-orig" type="xs:string"/>
+    <xs:attributeGroup name="schema_files_locations">
+        <xs:attribute ref="system_cache__appinfo:document-uri"/>
+        <xs:attribute ref="system_cache__appinfo:document-uri-full"/>
+    </xs:attributeGroup>
+    <xs:attributeGroup name="schema_files_locations_external">
+        <xs:attributeGroup ref="system_cache__appinfo:schema_files_locations"/>
+        <xs:attribute ref="system_cache__appinfo:document-uri-orig"/>
+    </xs:attributeGroup>
+    <xs:element name="get_all_xsd_default_db">
+        <xs:annotation>
+            <xs:documentation>Schemas from imported from API ordinary DB parsed, localized from public_html/default_db/p5_zasob_27011.xsd</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:any maxOccurs="1" minOccurs="1" namespace="http://www.w3.org/2001/XMLSchema"
+                    processContents="lax"/>
+                <xs:element ref="default_db:schema-file"/>
+            </xs:sequence>
+            <xs:attributeGroup ref="system_cache__appinfo:schema_files_locations"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="get_all_xsd.default_db_xml_cache.public">
+        <xs:annotation>
+            <xs:documentation>Schemas internal from e.g. default_db_xml_cache.public/graph_relation_elements.xsd</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:any maxOccurs="1" minOccurs="1" namespace="http://www.w3.org/2001/XMLSchema"
+                    processContents="lax"/>
+            </xs:sequence>
+            <xs:attributeGroup ref="system_cache__appinfo:schema_files_locations"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="get_all_xsd_external_schema">
+        <xs:annotation>
+            <xs:documentation>schemas to import to system localized from directory 
+these elements are elements from local repository original by attribute document-uri-orig
+public_html/external_schema/bravecom/bravecom_ele.xsd
+
+they should be parsed to make sub-modules/schemas</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:any maxOccurs="1" minOccurs="1" namespace="http://www.w3.org/2001/XMLSchema"
+                    processContents="lax"/>
+            </xs:sequence>
+            <xs:attributeGroup ref="system_cache__appinfo:schema_files_locations_external"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="get_all_xsd_external_schema_id_namespace_prefix">
+        <xs:annotation>
+            <xs:documentation>schemas to import to system localized from directory 
+these elements are elements saved to public_html/external_schema_id_namespaces_prefix from  local repository original (public_html/external_schema). Original URL file is shown by attribute document-uri-orig
+
+files from :public_html/external_schema_id_namespaces_prefix/bravecom/bravecom_ele.xsd
+
+they should be parsed to make sub-modules/schemas</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:any maxOccurs="1" minOccurs="1" namespace="http://www.w3.org/2001/XMLSchema"
+                    processContents="lax"/>
+                <xs:element ref="external_schema_id_namespace_prefix:schema-file"/>
+            </xs:sequence>
+            <xs:attributeGroup ref="system_cache__appinfo:schema_files_locations_external"/>
+        </xs:complexType>
+    </xs:element>
+    <xs:element name="get_all_xsd">
+        <xs:annotation>
+            <xs:documentation>Base modelled table objects, in subject to be reusable by all systems
+Should have original namespaces like:
+1) for tables
+https://biuro.biall-net.pl/wfs/default_db/table/BI_audit_KRS.xsd
+2) for objects
+https://biuro.biall-net.pl/wfs/default_db/SystemObjects/File.xsd
+
+This models are subject to being inserted to system.
+
+Files are read from dirs public_html/table and public_html/SystemObjects
+
+For single used models handling use external schema repository</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:sequence>
+                <xs:annotation>
+                    <xs:documentation>TODO there are included and modelled abstractly default_db models</xs:documentation>
+                </xs:annotation>
+                <xs:any maxOccurs="1" minOccurs="1" namespace="http://www.w3.org/2001/XMLSchema"
+                    processContents="lax"/>
+                <xs:element ref="get_all_xsd:schema-file"/>
+            </xs:sequence>
+            <xs:attributeGroup ref="system_cache__appinfo:schema_files_locations"/>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>

+ 77 - 0
SE/schema/default_db_xml_cache.public/system_cache__appinfo/schema_elements.xsd

@@ -0,0 +1,77 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
+    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"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd">
+    <xs:annotation>
+        <xs:documentation>Author Arkadiusz Binder.
+
+This prefixes should be mapped and checked against real xs:schema targetNamespace</xs:documentation>
+    </xs:annotation>
+    <xs:import namespace="http://www.w3.org/2001/XMLSchema" schemaLocation="../schema/schema.xsd"/>
+    <xs:complexType name="schema">
+        <xs:sequence>
+            <xs:element maxOccurs="unbounded" minOccurs="0" ref="system_cache__appinfo:import"/>
+            <xs:element ref="system_cache__appinfo:complexType" maxOccurs="unbounded" minOccurs="1"/>
+            <xs:element ref="system_cache__appinfo:element" maxOccurs="unbounded"/>
+        </xs:sequence>
+    </xs:complexType>
+    <xs:element name="schema" type="system_cache__appinfo:schema"> </xs:element>
+    <xs:complexType name="import">
+        <xs:attribute name="schemaLocation"/>
+        <xs:attribute name="namespace"/>
+    </xs:complexType>
+    <xs:element name="import" type="system_cache__appinfo:import"/>
+    <xs:complexType name="sequence">
+        <xs:choice maxOccurs="unbounded">
+            <xs:element name="element" type="xs:appinfo.local.element">
+                <xs:annotation>
+                    <xs:documentation>Lokalny element</xs:documentation>
+                </xs:annotation>
+            </xs:element>
+            <xs:element ref="system_cache__appinfo:sequence"/>
+            <xs:element ref="system_cache__appinfo:choice"/>
+            <xs:element ref="system_cache__appinfo:all"/>
+        </xs:choice>
+    </xs:complexType>
+    <xs:element name="sequence" type="system_cache__appinfo:sequence"/>
+    <xs:element name="choice" type="system_cache__appinfo:sequence"/>
+    <xs:element name="all" type="system_cache__appinfo:sequence"/>
+    <xs:complexType name="complexType">
+        <xs:complexContent>
+            <xs:extension base="xs:appinfo.complexType.ParentType">
+                <xs:sequence>
+                    <xs:choice>
+                        <xs:element ref="system_cache__appinfo:sequence"/>
+                        <xs:element ref="system_cache__appinfo:choice"/>
+                        <xs:element ref="system_cache__appinfo:all"/>
+                        <xs:element name="element" type="xs:appinfo.element"/>
+                    </xs:choice>
+                    <xs:any namespace="http://www.w3.org/2001/XMLSchema"/>
+                </xs:sequence>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="element">
+        <xs:annotation>
+            <xs:documentation>Glowny element schema tez moze dobic inherit</xs:documentation>
+        </xs:annotation>
+        <xs:complexContent>
+            <xs:extension base="xs:appinfo.complexType.ParentType"/>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="complexType" type="system_cache__appinfo:complexType"/>
+    <xs:element name="element">
+        <xs:annotation>
+            <xs:documentation>Root type element should be one of named @type of named complexTyped from local schema</xs:documentation>
+        </xs:annotation>
+        <xs:complexType>
+            <xs:annotation>
+                <xs:documentation>Glowny element schema tez moze dobic inherit</xs:documentation>
+            </xs:annotation>
+            <xs:complexContent>
+                <xs:extension base="xs:appinfo.complexType.ParentType"/>
+            </xs:complexContent>
+        </xs:complexType>
+    </xs:element>
+</xs:schema>