Ver Fonte

duze fixy antow

a.binder há 8 anos atrás
pai
commit
deca385c53
100 ficheiros alterados com 18595 adições e 886 exclusões
  1. 101 76
      SE/build_SE.xml
  2. 85 38
      SE/schema/SystemObjects/AccessGroup.xsd
  3. 47 27
      SE/schema/SystemObjects/AccessOwner.xsd
  4. 66 48
      SE/schema/SystemObjects/BI.xsd
  5. 37 28
      SE/schema/SystemObjects/BI_from.xsd
  6. 43 32
      SE/schema/SystemObjects/BI_root.xsd
  7. 36 28
      SE/schema/SystemObjects/BI_row.xsd
  8. 35 25
      SE/schema/SystemObjects/BI_row_object.xsd
  9. 34 29
      SE/schema/SystemObjects/BI_to.xsd
  10. 41 11
      SE/schema/SystemObjects/File.xsd
  11. 2605 0
      SE/schema/SystemObjects/maven-4.0.0.xsd
  12. 131 0
      SE/schema/Types/Default.xsd
  13. 54 0
      SE/schema/Types/Empty.xsd
  14. 21 0
      SE/schema/Types/gml.xsd
  15. 4710 0
      SE/schema/Types/infrastructure.xsd
  16. 138 0
      SE/schema/Types/types.xsd
  17. 3 3
      SE/schema/WPS_Functions/BI_audit/build_BI_audit.xml
  18. 19 0
      SE/schema/WPS_Functions/Storage_AclStruct/Storage_AclStruct.Storage_AclUsage.list_process.xsl
  19. 86 0
      SE/schema/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd
  20. 14 0
      SE/schema/WPS_Functions/Storage_AclStruct/build.Storage_AclStruct.INSTALL.xml
  21. 83 0
      SE/schema/WPS_Functions/Storage_AclStruct/build.Storage_AclStruct.PRODUCT.xml
  22. 7 0
      SE/schema/WPS_Functions/Storage_AclStruct/build.Storage_AclStruct.SYSTEM.xml
  23. 59 0
      SE/schema/WPS_Functions/Storage_AclStruct/build_Storage_AclStruct.ifproc.xml
  24. 1611 0
      SE/schema/WPS_Functions/Storage_AclStruct/build_Storage_AclStruct.xml
  25. 1578 0
      SE/schema/WPS_Functions/Storage_AclStruct/build_Storage_AclStruct.xml.fixed.xsd
  26. 16 7
      SE/schema/WPS_Functions/ant/build_ant.xml
  27. 1 1
      SE/schema/WPS_Functions/ant/p5ant.create_new_WPS_Function_xsd.xsl
  28. 13 0
      SE/schema/WPS_Functions/ant_interface/ant_interface-request.xsd
  29. 13 0
      SE/schema/WPS_Functions/ant_interface/ant_interface-resp.xsd
  30. 138 0
      SE/schema/WPS_Functions/ant_interface/ant_interface.xsd
  31. 75 12
      SE/schema/WPS_Functions/build.WPS_Functions.PRODUCT.xml
  32. 13 6
      SE/schema/WPS_Functions/build_WPS_Function_properties.xml
  33. 168 186
      SE/schema/WPS_Functions/build_WPS_Functions.xml
  34. 1 0
      SE/schema/WPS_Functions/build_WPS_Functions.xsl
  35. 17 15
      SE/schema/WPS_Functions/default_db/CRM_PROCES_tree/build_CRM_PROCES_tree.xml
  36. 39 0
      SE/schema/WPS_Functions/default_db/check_java_process_count/build.check_java_process_count.PRODUCT.xml
  37. 58 0
      SE/schema/WPS_Functions/default_db/recurse_ant/build.recurse_ant.PRODUCT.xml
  38. 319 47
      SE/schema/WPS_Functions/default_db/recurse_ant/build_recurse_ant.xml
  39. 2 0
      SE/schema/WPS_Functions/documentation_generator/build.graph.PRODUCT.xml
  40. 18 1
      SE/schema/WPS_Functions/documentation_generator/build.p5dg.PRODUCT.xml
  41. 47 10
      SE/schema/WPS_Functions/documentation_generator/build_documentation_generator.xml
  42. 28 7
      SE/schema/WPS_Functions/documentation_generator/documentation_generator.xsl
  43. 44 0
      SE/schema/WPS_Functions/documentation_generator/graph.graph-to-analyze-evaluated.xsl
  44. 42 6
      SE/schema/WPS_Functions/documentation_generator/graph.xsl
  45. 14 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/build.fix_se_defaultdb_schema.INSTALL.xml
  46. 90 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/build.fix_se_defaultdb_schema.PRODUCT.xml
  47. 7 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/build.fix_se_defaultdb_schema.SYSTEM.xml
  48. 334 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/build_fix_se_defaultdb_schema.xml
  49. 23 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.M_DIST_TYPE.xsl
  50. 1189 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.from_schema.xsl
  51. 46 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.from_schema_create_dir.xsl
  52. 36 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.to_schema.xsl
  53. 67 0
      SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd
  54. 4 0
      SE/schema/WPS_Functions/get_wfs/build.get_wfs.PRODUCT.xml
  55. 130 10
      SE/schema/WPS_Functions/get_wfs/build_get_wfs.xml
  56. 65 0
      SE/schema/WPS_Functions/get_wfs/get_wfs.Insert.xsl
  57. 29 0
      SE/schema/WPS_Functions/get_wfs/get_wfs.propertyName.xsl
  58. 134 33
      SE/schema/WPS_Functions/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml
  59. 114 0
      SE/schema/WPS_Functions/get_wfs_recurse_xsl/get_wfs_recurse_xsl.xsd
  60. 265 54
      SE/schema/WPS_Functions/get_wfs_recurse_xsl/get_wfs_recurse_xsl.xsl
  61. 3 0
      SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/build.grapht.PRODUCT.xml
  62. 52 9
      SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/build_graph_tree.xml
  63. 1 1
      SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/graph_tree_yed_from_wfs.xsl
  64. 456 60
      SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/grapht.xsl
  65. 71 0
      SE/schema/WPS_Functions/mapserver_gml_to_png/build.mapserver_gml_to_png.PRODUCT.xml
  66. 1 1
      SE/schema/WPS_Functions/mapserver_gml_to_png/build_mapserver_gml_to_png.xml
  67. 14 0
      SE/schema/WPS_Functions/object_merge_ant_object/build.object_merge_ant_object.INSTALL.xml
  68. 97 0
      SE/schema/WPS_Functions/object_merge_ant_object/build.object_merge_ant_object.PRODUCT.xml
  69. 7 0
      SE/schema/WPS_Functions/object_merge_ant_object/build.object_merge_ant_object.SYSTEM.xml
  70. 226 0
      SE/schema/WPS_Functions/object_merge_ant_object/build_object_merge_ant_object.xml
  71. 901 0
      SE/schema/WPS_Functions/object_merge_ant_object/object_merge_ant_object.merge.xsl
  72. 33 0
      SE/schema/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsd
  73. 76 0
      SE/schema/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsl
  74. 72 0
      SE/schema/WPS_Functions/object_modeling_by_default_db_xml_schema/build.object_modeling_by_default_db_xml_schema.PRODUCT.xml
  75. 1 0
      SE/schema/WPS_Functions/object_modeling_by_default_db_xml_schema/build_object_modeling_by_default_db_xml_schema.xml
  76. 94 0
      SE/schema/WPS_Functions/object_modeling_new/build.object_modeling_new.PRODUCT.xml
  77. 112 73
      SE/schema/WPS_Functions/object_modeling_new/build_object_modeling_new.xml
  78. 46 1
      SE/schema/WPS_Functions/object_modeling_new/object_modeling_new.xsd
  79. 56 0
      SE/schema/WPS_Functions/procesy5_package/build.p5pckg.PRODUCT.xml
  80. 16 0
      SE/schema/WPS_Functions/procesy5_package/build.p5pckg.SYSTEM.xml
  81. 91 0
      SE/schema/WPS_Functions/procesy5_package/build_procesy5_package.xml
  82. 284 0
      SE/schema/WPS_Functions/procesy5_package/p5pckg.xsl
  83. 28 0
      SE/schema/WPS_Functions/send_email/build.send_email.INSTALL.xml
  84. 76 0
      SE/schema/WPS_Functions/send_email/build.send_email.PRODUCT.xml
  85. 7 0
      SE/schema/WPS_Functions/send_email/build.send_email.SYSTEM.xml
  86. 58 0
      SE/schema/WPS_Functions/send_email/build_send_email.xml
  87. BIN
      SE/schema/WPS_Functions/send_email/install/javax.mail-1.6.1.jar
  88. 33 0
      SE/schema/WPS_Functions/send_email/send_email.xsd
  89. 79 0
      SE/schema/WPS_Functions/send_email/send_email.xsl
  90. 1 1
      SE/schema/WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml
  91. 17 0
      SE/schema/WPS_Functions/tidy/build.tidy.INSTALL.xml
  92. 71 0
      SE/schema/WPS_Functions/tidy/build.tidy.PRODUCT.xml
  93. 7 0
      SE/schema/WPS_Functions/tidy/build.tidy.SYSTEM.xml
  94. 24 0
      SE/schema/WPS_Functions/tidy/build_tidy.xml
  95. 33 0
      SE/schema/WPS_Functions/tidy/tidy.xsd
  96. 50 0
      SE/schema/WPS_Functions/upgrade_offline_procesy5_bocian/build_upgrade_offline_procesy5_bocian.xml
  97. 73 0
      SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.PRODUCT.xml
  98. 15 0
      SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.SYSTEM.xml
  99. 33 0
      SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.local.SYSTEM.xml
  100. 37 0
      SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.remote.SYSTEM.xml

+ 101 - 76
SE/build_SE.xml

@@ -8,7 +8,11 @@
     
     <!-- main properties controlled by licence -->
     <!-- @2018 property correct structure -->
+    
+    
+    
     <include file="${basedir}/build_SE_basedir/build.p5build_SE.PRODUCT.xml"/>
+    <include file="schema/build_SE_basedir/build.p5build_SE.PRODUCT.xml" optional="true"/>
     <include file="${basedir}/build_SE_basedir/build.p5build_SE.SYSTEM.xml" as="SYSTEM"/>
     <include file="${basedir}/build.p5build.GLOBALS.xml"/>
     <!--<property name="p5build_SE.PRODUCT.name" value="p5build_SE"/>
@@ -17,52 +21,20 @@
         <property name="p5build_SE.PRODUCT.name.PROCESY5.temp" value="${p5build_SE.PRODUCT.name.PROCESY5.basedir}/temp"/>-->
     <!-- EOF @2018 property correct structure -->
     
-    <property name="SERVER_ADDRESS" value="biuro.biall-net.pl"/> <!-- to be set in licence file and to be generated -->
     
     
     
-    <property name="TargetNamespaceBindings" value="https://biuro.biall-net.pl"/> <!-- default https://biuro.biall-net.pl for API working in this domain -->
-    <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindings}/wfs"/>
-    <property name="TargetNamespaceBindingsApiUrl" value="${TargetNamespaceBindingsApi}/wfs-data.php"/>
-    <property name="targetNamespace_DEFAULTS_prefix" value="default_db"/>
-    <property name="targetNamespace_DEFAULTS_prefix_objects" value="default_objects"/>
-    <property name="targetNamespace_DEFAULTS" value="${TargetNamespaceBindings}/xmlschema_procesy5/${targetNamespace_DEFAULTS_prefix}"/> <!-- namespace do lokalnego bindowania do default_db http://biuro.biall-net.pl/xmlschema_procesy5/default_db -->
-    <property name="config_dir" value="${basedir}/config"/>
-    <property name="NamespaceBinding.xml" value="${config_dir}/NamespaceBinding.xml"/> <!-- file with binding informations -->
     
     
     
     
     
-    <!-- this built own properties -->
-    <property name="build_SE.xml" value="${basedir}/../build_SE.xml"/>
-    <property name="build_SE_basedir" value="${basedir}/build_SE_basedir"/> <!-- to keep files there some temp etc -->
-    <property name="build_SE_basedir.temp" value="${build_SE_basedir}/temp"/>
-    <property name="build_SE.properties" value="${build_SE_basedir}/.build_SE.properties"/>
-    <property name="build_SE.properties.xml" value="${build_SE.properties}.xml"/>
     
-    <property name="procesy5_config.folders.xsl" value="${build_SE_basedir}/procesy5_config.folders.xsl"/>
-    <property name="procesy5_config.default_db.xsl" value="${build_SE_basedir}/procesy5_config.default_db.xsl"/>
-    <property name="procesy5_config.default_db.properties.xml" value="${build_SE_basedir}/.procesy5_config.default_db.properties.xml"/>
-    <property name="procesy5_config.default_db.properties" value="${build_SE_basedir}/.procesy5_config.default_db.properties"/>
     
-    <property name="default_db_targetNamespace_detect_string" value="default_db/table/"/> <!-- intended to be in ${basedir}/table ? -->
-    <property name="zasob_id_db_targetNamespace_detect_string" value="https://biuro.biall-net.pl/api/"/> <!-- example targetNamespace="https://biuro.biall-net.pl/api/17666/" -->
-    <!-- components -->
-    <property name="dita-ot-toolkit" value="${basedir}/../stuff/dita-ot-2.3.3"/>
-    <property name="procesy5_config" value="${basedir}/../config"/>
-    <property name="bin.launchctl" value="/bin/launchctl"/>
-        <!--<property name="procesy5_config.folders" value="${procesy5_config}/.cnf-\-folders.ini.php"/>-->
-        <property name="procesy5_config.folders.server" value="${procesy5_config}/.cnf--folders-${SERVER_ADDRESS}.ini.php"/>
-        <property name="procesy5_config.default_db.server" value="${procesy5_config}/.cnf--default_db-${SERVER_ADDRESS}.ini.php"/>
-    <property name="procesy5_config.folders.properties.xml" value="${build_SE_basedir}/.procesy5_config.folders.properties.xml"/>
+   
   
     <!-- TODO in build_resource_ant.xml <property name="dita.dir" value="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
     
-    <!-- TODO config/licence/to handle params to SYNC with xmlschema and WPS_Functions -->
-  
-    <property name="bootstrap.php" value="${basedir}/../se-lib/bootstrap.php"/> <!-- used in php scripts to execute  as root require("/Library/Server/Web/Data/Sites/SE-producition-git/SE/se-lib/bootstrap.php"); -->
-    
    <!-- task to maintain properties -->
     
     
@@ -76,7 +48,7 @@
                 <available file="${bin.launchctl}" />
             </and>
         </condition>
-        <echo>#61 $os.name= ${os.name} $p5build_SE.LaunchDaemons = ${p5build_SE.LaunchDaemons} to insstall psuis:addToLaunchctl </echo>
+        <echo>#61 $os.name= ${os.name} $p5build_SE.LaunchDaemons test $p5build_SE.LaunchDaemons.test=${p5build_SE.LaunchDaemons.test} against /Library/LaunchDaemons/ ${p5build_SE.LaunchDaemons} to insstall psuis:addToLaunchctl </echo>
     </target>
     
     <target name="p5build_SE:OSX_SERVER.cond" depends="p5build_SE:LaunchDaemons.test,p5build_SE:OSX_SERVER.ok,p5build_SE:OSX_SERVER.fail" description="to detect if it is osx server and get its properties"/>
@@ -85,7 +57,9 @@
     
     <target name="p5build_SE:OSX_SERVER.ok" if="p5build_SE.LaunchDaemons.test" description="to detect if it is osx server and get its properties">
         <property name="p5build_SE.LaunchDaemons" value="/Library/LaunchDaemons/"/>
+        <echo>#86 set  $p5build_SE.LaunchDaemons =  ${p5build_SE.LaunchDaemons} </echo>
     </target>
+    
     <target name="p5build_SE:OSX_SERVER.fail" unless="p5build_SE.LaunchDaemons.test" description="to detect if it is osx server and get its properties">
         <echo>#72 THIS IS NOT p5build_SE:OSX_SERVER ! </echo>
     </target>
@@ -221,68 +195,118 @@
     
     
   
-    <target name="save_build_properties" depends=" SYSTEM.build_SE.SYSTEM ,build_SE.install_dirs,build_SE_read_procesy5_file_properties,build_SE_read_procesy5_default_db_properties,p5build_SE:OSX_SERVER.cond">
-        <echo level="warning">#221 will properties to write ${build_SE.properties} and ${build_SE.properties.xml}</echo>
-        <echoproperties destfile="${p5build_SE.properties}"/>
+    <target name="save_build_properties" depends=" SYSTEM.build_SE.SYSTEM ,build_SE.install_dirs,install_dirs.chmod,install_dirs.symlink,build_SE_read_procesy5_file_properties,build_SE_read_procesy5_default_db_properties,p5build_SE:OSX_SERVER.cond">
+        <echo level="warning">#221 TODO TO REMOVE PROPERTIES !!! will properties to write ${build_SE.properties} and ${build_SE.properties.xml}</echo>
+       <!-- <echoproperties destfile="${p5build_SE.properties}"/>
         <echoproperties destfile="${p5build_SE.properties.xml}" format="xml"/>
             <chmod file="${p5build_SE.properties}" perm="777" failonerror="false"/>
             <chmod file="${p5build_SE.properties.xml}" perm="777"/>
         <chown file="${p5build_SE.properties}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
-        <chown file="${p5build_SE.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
+        <chown file="${p5build_SE.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/> -->
     </target>
     
     <target name="build_SE.install_dirs">
-        <echo level="verbose">#232 will make dir="${p5build_SE.basedir}"  dir="${p5build_SE.temp}" and  owner="${p5build_SE.SYSTEM.local-user}" </echo>
+        <echo level="verbose">#232 will make dir="${p5build_SE.basedir}"  dir="${p5build_SE.temp}" and  owner="${p5build_SE.SYSTEM.local-user}"
+            $p5build_SE.INSTALL_ROOT.basedir = ${p5build_SE.INSTALL_ROOT.basedir}
+            $p5build_SE.INSTALL_ROOT.configuration.dir = ${p5build_SE.INSTALL_ROOT.configuration.dir} </echo>
         <mkdir dir="${p5build_SE.basedir}"/>
         <mkdir dir="${p5build_SE.temp}"/>
-        <chown file="${p5build_SE.basedir}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false" />
-        <chown file="${p5build_SE.temp}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
+        <mkdir dir="${p5build_SE.INSTALL_ROOT.basedir}"/>
+        <mkdir dir="${p5build_SE.INSTALL_ROOT.configuration.dir}"/>
+        <!-- TODO check if created - than chmod once -->
+        <!--<antcall target="install_dirs.chmod"/>-->
+    </target>
+    
+    
+    <target name="install_dirs.chmod">
+        <!--<chown   owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"  type="dir">
+            <fileset dir="${p5build_SE.INSTALL_ROOT.configuration.dir}" />
+            <fileset dir="${p5build_SE.INSTALL_ROOT.basedir}"/>
+            <fileset dir="${p5build_SE.temp}"/>
+            <fileset dir="${p5build_SE.basedir}"/>
+        </chown>-->
+        <chown   owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.INSTALL_ROOT.basedir}" failonerror="false" failifexecutionfails="false"  type="dir"/>
+        <chown   owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.INSTALL_ROOT.configuration.dir}" failonerror="false" failifexecutionfails="false"  type="dir"/>
+        <chown   owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.temp}" failonerror="false" failifexecutionfails="false"  type="dir"/>
+        <chown   owner="${p5build_SE.SYSTEM.local-user}" file="${p5build_SE.basedir}" failonerror="false" failifexecutionfails="false"  type="dir"/>
+        <!--<antcall target="build_SE.install_dirs.symlink"/>-->
     </target>
     
+    <target name="install_dirs.symlink">
+        <echo>#266 Symlink created for  ${p5build_SE.INSTALL_ROOT.temp.symlink} , ${p5build_SE.INSTALL_ROOT.configuration.dir}, ${p5build_SE.INSTALL_ROOT.repository}</echo>
+        <symlink resource="${p5build_SE.INSTALL_ROOT.temp}" link="${p5build_SE.INSTALL_ROOT.temp.symlink}" failonerror="false"/>
+        <symlink resource="${p5build_SE.INSTALL_ROOT.configuration.dir}" link="${p5build_SE.INSTALL_ROOT.configuration.dir.symlink}" failonerror="false"/>
+        <symlink resource="${p5build_SE.INSTALL_ROOT.repository}" link="${p5build_SE.INSTALL_ROOT.repository.symlink}" failonerror="false"/>
+    </target>
     
     <target name="build_SE_read_procesy5_file_properties_check" description="Detect if there are procesy5_config.folders.server configured (in Procesy5 installation folder) ">
         <condition property="build_SE_read_procesy5_file_properties_check" taskname="build_SE_read_procesy5_file_properties">
             <available file="${procesy5_config.folders.server}" />
             <!--<available file="${procesy5_config}" />-->
         </condition>
-        <antcall target="build_SE_read_procesy5_file_properties_failed"/>
+        <!--<antcall target="build_SE_read_procesy5_file_properties_failed"/>-->
     </target>
     
     <target unless="build_SE_read_procesy5_file_properties_check" name="build_SE_read_procesy5_file_properties_failed" description="echo inform that there is not config exists">
         <echo> INFORM : propbably not installed in Procesy5 environment - not detected ${procesy5_config.folders.server} file</echo>
     </target>
     
-    <target if="build_SE_read_procesy5_file_properties_check" name="build_SE_read_procesy5_file_properties" depends="build_SE_read_procesy5_file_properties_check,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
-        <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
-        <loadfile property="procesy5_config.folders.server_loadfile" srcfile="${procesy5_config.folders.server}"/>
-        <mkdir dir="${build_SE_basedir.temp}"/>
-        <tempfile property="procesy5_config.folders_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.folders_loadfile_xml" suffix=".xml" deleteonexit="yes" />
-
-        <echoxml file="${procesy5_config.folders_loadfile_xml}">
-            <procesy5_config>
-                <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
-                <procesy5_config.folders.server>${procesy5_config.folders.server_loadfile}</procesy5_config.folders.server>
-            </procesy5_config>
-        </echoxml>
-        <chown file="${procesy5_config.folders_loadfile_xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
-        <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders_loadfile_xml}"  destdir="./" out="${procesy5_config.folders.properties.xml}" force="yes">
-            <factory name="net.sf.saxon.TransformerFactoryImpl">    
-                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
-            </factory>
-            <classpath location="/opt/local/share/java/saxon9he.jar"/>
-            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
-            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
-            <!--<param name="basedir" expression="${basedir}"/>-->
-        </xslt>
-        <chown file="${procesy5_config.folders.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
-        <loadfile property="procesy5_config.folders.properties.xml.file" srcfile="${procesy5_config.folders.properties.xml}"/>
-        <!--<echo>#60 reading $procesy5_config.folders.properties.xml ${procesy5_config.folders.properties.xml.file}
-            ${procesy5_config.folders.properties.xml.file}
-        </echo>-->        
+    <target if="build_SE_read_procesy5_file_properties_check" name="build_SE_read_procesy5_file_properties" depends="build_SE_read_procesy5_file_properties_check,build_SE_read_procesy5_file_properties_failed,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
+        
+            <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
+            <loadfile property="procesy5_config.folders.server_loadfile" srcfile="${procesy5_config.folders.server}"/>
+            <mkdir dir="${build_SE_basedir.temp}"/>
+            <tempfile property="procesy5_config.folders_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.folders_loadfile_xml" suffix=".xml" deleteonexit="yes" />
+            
+            <echoxml file="${procesy5_config.folders_loadfile_xml}">
+                <procesy5_config>
+                    <!--<procesy5_config.folders>${procesy5_config.folders_loadfile}</procesy5_config.folders>-->
+                    <procesy5_config.folders.server>${procesy5_config.folders.server_loadfile}</procesy5_config.folders.server>
+                </procesy5_config>
+            </echoxml>
+            <chown file="${procesy5_config.folders_loadfile_xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
+            <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders_loadfile_xml}"  destdir="./" out="${procesy5_config.folders.properties.xml}" force="false">
+                <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                    <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                </factory>
+                <classpath location="/opt/local/share/java/saxon9he.jar"/>
+                <param name="basedir" expression="${basedir}"/>
+                <param name="p5build_SE.build_procesy5_config.folders.properties" expression="${p5build_SE.build_procesy5_config.folders.properties}"/>
+                <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+                <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+                <!--<param name="basedir" expression="${basedir}"/>-->
+            </xslt>
+            
+            <!--<exec executable="open"><arg file="${procesy5_config.folders.properties.xml}"/></exec>-->
+            
+            <xslt basedir="./" style="${procesy5_config.folders.xsl}" in="${procesy5_config.folders.properties.xml}"  destdir="./" out="${p5build_SE.build_procesy5_config.folders.properties.xml}" force="yes">
+                <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                    <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                    <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/build_SE.xsd}build_procesy5_config.folders.properties.xml"/>
+                </factory>
+                <classpath location="/opt/local/share/java/saxon9he.jar"/>
+                <param name="basedir" expression="${basedir}"/>
+                <param name="p5build_SE.build_procesy5_config.folders.properties" expression="${p5build_SE.build_procesy5_config.folders.properties}"/>
+                <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+                <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+                <!--<param name="basedir" expression="${basedir}"/>-->
+            </xslt>
+            <!--<exec executable="open"><arg file="${p5build_SE.build_procesy5_config.folders.properties.xml}"/></exec>-->
+            <ant antfile="${p5build_SE.build_procesy5_config.folders.properties.xml}"/>
+            <loadproperties srcfile="${p5build_SE.build_procesy5_config.folders.properties}"/>
+            <echo> #300 loaded $p5build_SE.build_procesy5_config.folders.... BI_audit_KW_requested_COLUMN.mount_point ${procesy5_config.folders.properties.xml} from ${p5build_SE.build_procesy5_config.folders.properties}; antfile ${p5build_SE.build_procesy5_config.folders.properties.xml}
+                and also build with properties to default $p5build_SE.build_procesy5_config.folders.IN7_DZIENNIK_KORESP_COLUMN.mount_point = ${p5build_SE.build_procesy5_config.folders.IN7_DZIENNIK_KORESP_COLUMN.mount_point}
+                $p5build_SE.build_procesy5_config.folders.properties = ${p5build_SE.build_procesy5_config.folders.properties}
+                $p5build_SE.build_procesy5_config.folders.root_points.mount_point = ${p5build_SE.build_procesy5_config.folders.root_points.mount_point}
+            </echo>
+            <chown file="${procesy5_config.folders.properties.xml}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false" failifexecutionfails="false"/>
+            
+        
     </target>
     
     
     
+    
     <!-- default_db -->
     
     
@@ -290,7 +314,7 @@
         <condition property="build_SE_read_procesy5_default_db_properties_check" taskname="build_SE_read_procesy5_default_db_properties">
             <available file="${procesy5_config.default_db.server}" />
         </condition>
-        <antcall target="build_SE_read_procesy5_default_db_properties_failed"/>
+        <!--<antcall target="build_SE_read_procesy5_default_db_properties_failed"/>-->
     </target>
     
     <target unless="build_SE_read_procesy5_default_db_properties_check" name="build_SE_read_procesy5_default_db_properties_failed" description="echo inform that there is not config exists">
@@ -298,10 +322,10 @@
     </target>
     
     
-    <target if="build_SE_read_procesy5_default_db_properties_check" name="build_SE_read_procesy5_default_db_properties" depends="build_SE_read_procesy5_default_db_properties_check,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
+    <target if="build_SE_read_procesy5_default_db_properties_check" name="build_SE_read_procesy5_default_db_properties" depends="build_SE_read_procesy5_default_db_properties_check,build_SE_read_procesy5_default_db_properties_failed,build_SE.install_dirs" description="TO read from procesy5_config.folders and procesy5_config.folders.server further do another direction this in install">
         <!--<loadfile property="procesy5_config.folders_loadfile" srcfile="${procesy5_config.folders}"/>-->
         <loadfile property="procesy5_config.default_db.server_loadfile" srcfile="${procesy5_config.default_db.server}"/>
-        <tempfile property="procesy5_config.default_db_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.default_db_loadfile_xml" suffix=".xml" deleteonexit="no"/>
+        <tempfile property="procesy5_config.default_db_loadfile_xml" destdir="${build_SE_basedir.temp}" prefix="procesy5_config.default_db_loadfile_xml" suffix=".xml" deleteonexit="yes"/>
         
         <echoxml file="${procesy5_config.default_db_loadfile_xml}">
             <procesy5_config>
@@ -309,7 +333,7 @@
                 <procesy5_config.default_db.server>${procesy5_config.default_db.server_loadfile}</procesy5_config.default_db.server>
             </procesy5_config>
         </echoxml>
-        <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db_loadfile_xml}"  destdir="./" out="${procesy5_config.default_db.properties.xml}" >
+        <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db_loadfile_xml}"  destdir="./" out="${procesy5_config.default_db.properties.xml}" force="false" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
             </factory>
@@ -321,7 +345,7 @@
             <!--<param name="basedir" expression="${basedir}"/>-->
         </xslt>
         
-        <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db.properties.xml}"  destdir="./" out="${p5build_SE.build_procesy5_config.default_db.properties.xml}" >
+        <xslt basedir="./" style="${procesy5_config.default_db.xsl}" in="${procesy5_config.default_db.properties.xml}"  destdir="./" out="${p5build_SE.build_procesy5_config.default_db.properties.xml}" force="false"  failonerror="true">
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/build_SE.xsd}build_procesy5_config.default_db.properties.xml"/>
@@ -335,9 +359,10 @@
             <!--<param name="basedir" expression="${basedir}"/>-->
         </xslt>
         <ant antfile="${p5build_SE.build_procesy5_config.default_db.properties.xml}"/>
-        <loadproperties srcfile="${p5build_SE.build_procesy5_config.default_db.properties}"></loadproperties>
-        <echo> loaded $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml}
+        <loadproperties srcfile="${p5build_SE.build_procesy5_config.default_db.properties}"/>
+        <echo> #342 loaded $procesy5_config.default_db.properties.xml ${procesy5_config.default_db.properties.xml} from ${p5build_SE.build_procesy5_config.default_db.properties}; antfile ${p5build_SE.build_procesy5_config.default_db.properties.xml}
             and also build with properties to default database = p5build_SE.procesy5_config.default_db.server.type = ${p5build_SE.procesy5_config.default_db.server.type}
+            $procesy5_config.default_db.properties.xml = ${procesy5_config.default_db.properties.xml}
         </echo>
         
         <loadfile property="procesy5_config.default_db.properties.xml.file" srcfile="${procesy5_config.default_db.properties.xml}"/>

+ 85 - 38
SE/schema/SystemObjects/AccessGroup.xsd

@@ -1,40 +1,87 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
-    xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
-    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
-    xmlns="https://biuro.biall-net.pl/wfs/objects" xmlns:gml="http://www.opengis.net/gml/3.2"
-    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
-    <xs:annotation>
-        <xs:documentation>Schemat dla obiektu systemowego zwracajacego grupy uzytkownikow, specjalnie oprogramowanego, prawdopodobnie bazujacego na dostepnych zasobach, grupach oraz innych wymaganiach szczegolnych</xs:documentation>
-    </xs:annotation>
-    <!--<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>-->
-    <xs:complexType name="AccessGroupType"
-        id="SystemObjects__x3A__AccessGroup___d13e8959-1_AccessGrou">
-        <xs:sequence id="SystemObjects__x3A__AccessGroup___d13e8965-1">
-            <xs:element minOccurs="1" maxOccurs="1" nillable="true" name="id" type="xs:string"
-                id="SystemObjects__x3A__AccessGroup___d13e8967-1_id"/>
-            <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="name" type="xs:string"
-                id="SystemObjects__x3A__AccessGroup___d13e8969-1_name"/>
-            <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="uid" type="xs:string"
-                id="SystemObjects__x3A__AccessGroup___d13e8971-1_uid"/>
-        </xs:sequence>
-    </xs:complexType>
-    <xs:element name="AccessGroup" type="SystemObjects__x3A__AccessGroup:AccessGroupType"
-        id="SystemObjects__x3A__AccessGroup___d13e8977-1_AccessGrou"/>
-    <xs:element name="AccessGroupRead" type="SystemObjects__x3A__AccessGroup:AccessGroupType"
-        id="SystemObjects__x3A__AccessGroup___d13e8979-1_AccessGrou"/>
-    <xs:element name="AccessGroupWrite" type="SystemObjects__x3A__AccessGroup:AccessGroupType"
-        id="SystemObjects__x3A__AccessGroup___d13e8982-1_AccessGrou"/>
-    <xs:element name="A_ADM_COMPANY" type="SystemObjects__x3A__AccessGroup:AccessGroupType"
-        id="SystemObjects__x3A__AccessGroup___d13e8984-1_A_ADM_COMP">
-        <xs:annotation>
-            <xs:documentation>Odpowiednik AccessGroupWrite</xs:documentation>
-        </xs:annotation>
-    </xs:element>
-    <xs:element name="A_CLASSIFIED" type="SystemObjects__x3A__AccessGroup:AccessGroupType"
-        id="SystemObjects__x3A__AccessGroup___d13e8993-1_A_CLASSIFI">
-        <xs:annotation>
-            <xs:documentation>Odpowiednik AccessGroupRead</xs:documentation>
-        </xs:annotation>
-    </xs:element>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+           xmlns="https://biuro.biall-net.pl/wfs/objects"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+           vc:minVersion="1.1">
+   <xs:annotation>
+      <xs:documentation>Schemat dla obiektu systemowego zwracajacego grupy uzytkownikow, specjalnie oprogramowanego, prawdopodobnie bazujacego na dostepnych zasobach, grupach oraz innych wymaganiach szczegolnych</xs:documentation>
+   </xs:annotation>
+   <!--<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>-->
+   <xs:complexType name="AccessGroupType"
+                   id="SystemObjects__x3A__AccessGroup___d13e8959-1_AccessGrou">
+      <xs:sequence id="SystemObjects__x3A__AccessGroup___d13e8965-1">
+         <xs:element minOccurs="1"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="id"
+                     type="xs:string"
+                     id="SystemObjects__x3A__AccessGroup___d13e8967-1_id"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="name"
+                     type="xs:string"
+                     id="SystemObjects__x3A__AccessGroup___d13e8969-1_name"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="uid"
+                     type="xs:string"
+                     id="SystemObjects__x3A__AccessGroup___d13e8971-1_uid"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs:element name="AccessGroup"
+               type="SystemObjects__x3A__AccessGroup:AccessGroupType"
+               id="SystemObjects__x3A__AccessGroup___d13e8977-1_AccessGrou"/>
+   <xs:element name="AccessGroupRead"
+               type="SystemObjects__x3A__AccessGroup:AccessGroupType"
+               id="SystemObjects__x3A__AccessGroup___d13e8979-1_AccessGrou"/>
+   <xs:element name="AccessGroupWrite"
+               type="SystemObjects__x3A__AccessGroup:AccessGroupType"
+               id="SystemObjects__x3A__AccessGroup___d13e8982-1_AccessGrou"/>
+   <!--<xs:element name="A_ADM_COMPANY"
+               type="SystemObjects__x3A__AccessGroup:AccessGroupType"
+               id="SystemObjects__x3A__AccessGroup___d13e8984-1_A_ADM_COMP">
+      <xs:annotation>
+         <xs:documentation>Odpowiednik AccessGroupWrite</xs:documentation>
+      </xs:annotation>
+      <xs:key name="A_ADM_COMPANY.view">
+         <xs:selector xpath="."/>
+         <xs:field xpath="name"/>
+         <xs:field xpath="uid"/>
+      </xs:key>
+      <xs:unique name="primary.A_ADM_COMPANY">
+         <xs:selector xpath="."/>
+         <xs:field xpath="id"/>
+      </xs:unique>
+      <xs:unique name="A_ADM_COMPANY.name">
+         <xs:annotation>
+            <xs:documentation>To provide cache informations</xs:documentation>
+         </xs:annotation>
+         <xs:selector xpath="."/>
+         <xs:field xpath="name"/>
+      </xs:unique>
+   </xs:element>-->
+   <!--<xs:element name="A_CLASSIFIED"
+               type="SystemObjects__x3A__AccessGroup:AccessGroupType"
+               id="SystemObjects__x3A__AccessGroup___d13e8993-1_A_CLASSIFI">
+      <xs:annotation>
+         <xs:documentation>Odpowiednik AccessGroupRead</xs:documentation>
+      </xs:annotation>
+      <xs:unique name="A_CLASSIFIED.name">
+         <xs:selector xpath="."/>
+         <xs:field xpath="name"/>
+      </xs:unique>
+      <xs:unique name="primary.A_CLASSIFIED">
+         <xs:selector xpath="."/>
+         <xs:field xpath="id"/>
+      </xs:unique>
+   </xs:element>-->
 </xs:schema>

+ 47 - 27
SE/schema/SystemObjects/AccessOwner.xsd

@@ -1,29 +1,49 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
-    xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
-    targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
-    xmlns="https://biuro.biall-net.pl/wfs/objects" xmlns:gml="http://www.opengis.net/gml/3.2"
-    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
-    <xs:annotation>
-        <xs:documentation>Schemat dla obiektu systemowego zwracajacego nazwę uzytkownikow, specjalnie oprogramowanego, prawdopodobnie bazujacego na dostepnych zasobach, grupach oraz innych wymaganiach szczegolnych</xs:documentation>
-    </xs:annotation>
-    <!--<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>-->
-    <xs:complexType name="AccessOwnerType" id="AccessOwner___d20e3862-1_AccessOwne">
-        <xs:sequence id="AccessOwner___d20e3863-1">
-            <xs:element minOccurs="1" maxOccurs="1" nillable="true" name="id" type="xs:string"
-                id="AccessOwner___d20e3864-1_id"/>
-            <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="name" type="xs:string"
-                id="AccessOwner___d20e3865-1_name"/>
-            <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="uid" type="xs:string"
-                id="AccessOwner___d20e3866-1_uid"/>
-        </xs:sequence>
-    </xs:complexType>
-    <xs:element name="AccessOwner" type="SystemObjects__x3A__AccessOwner:AccessOwnerType"
-        id="AccessOwner___d20e3867-1_AccessOwne"/>
-    <xs:element name="L_APPOITMENT_USER" type="SystemObjects__x3A__AccessOwner:AccessOwnerType"
-        id="AccessOwner___d20e3868-1_L_APPOITME">
-        <xs:annotation>
-            <xs:documentation>Odpowiednik AccessGroupRead</xs:documentation>
-        </xs:annotation>
-    </xs:element>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+           xmlns="https://biuro.biall-net.pl/wfs/objects"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+           vc:minVersion="1.1">
+   <xs:annotation>
+      <xs:documentation>Schemat dla obiektu systemowego zwracajacego nazwę uzytkownikow, specjalnie oprogramowanego, prawdopodobnie bazujacego na dostepnych zasobach, grupach oraz innych wymaganiach szczegolnych</xs:documentation>
+   </xs:annotation>
+   <!--<xs:import namespace="http://www.opengis.net/gml/3.2" schemaLocation="../Types/gml.xsd"/>-->
+   <xs:complexType name="AccessOwnerType" id="AccessOwner___d20e3862-1_AccessOwne">
+      <xs:sequence id="AccessOwner___d20e3863-1">
+         <xs:element minOccurs="1"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="id"
+                     type="xs:string"
+                     id="AccessOwner___d20e3864-1_id"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="name"
+                     type="xs:string"
+                     id="AccessOwner___d20e3865-1_name"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="uid"
+                     type="xs:string"
+                     id="AccessOwner___d20e3866-1_uid"/>
+      </xs:sequence>
+   </xs:complexType>
+   <xs:element name="AccessOwner"
+               type="SystemObjects__x3A__AccessOwner:AccessOwnerType"
+               id="AccessOwner___d20e3867-1_AccessOwne"/>
+   <!--<xs:element name="L_APPOITMENT_USER"
+               type="SystemObjects__x3A__AccessOwner:AccessOwnerType"
+               id="AccessOwner___d20e3868-1_L_APPOITME">
+      <xs:annotation>
+         <xs:documentation>Odpowiednik AccessGroupRead</xs:documentation>
+      </xs:annotation>
+   </xs:element>-->
 </xs:schema>

+ 66 - 48
SE/schema/SystemObjects/BI.xsd

@@ -1,19 +1,20 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__BI="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
-   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-   elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
-   vc:minVersion="1.1"
-   xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
-   xmlns:SystemObjects__x3A__BI_row="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
-   xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__BI="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
+           xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
+           xmlns:SystemObjects__x3A__BI_row="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
+           xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
+           vc:minVersion="1.1">
    <xs:annotation>
       <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI. 
 
@@ -24,38 +25,42 @@ Jest też czasami konieczność aby znać kolejność wyszukanych elementów.
 Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz ROW (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row), ROW_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)  oraz ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )</xs:documentation>
    </xs:annotation>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
-      schemaLocation="BI_from.xsd"/>
+              schemaLocation="BI_from.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
-      schemaLocation="BI_to.xsd"/>
+              schemaLocation="BI_to.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
-      schemaLocation="BI_row.xsd"/>
-   <xs:complexType name="BI">
+              schemaLocation="BI_row.xsd"/>
+   <xs:complexType name="BI" id="ts__x3A__BI___d15e8755-1_BI">
       <xs:annotation>
          <xs:documentation> ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )
  
  TODO jak rozroznic wyszukiwanie generalne dla wszystkich oraz dla niektorych? Moze lepiej aby bylo zawsze wiadome ktore elementy sa poddane analizie , a ktore nie, aby to kontrolowac - wiec zawsze bedzie ref</xs:documentation>
       </xs:annotation>
    </xs:complexType>
-   <xs:complexType name="BI_instance">
+   <xs:complexType name="BI_instance" id="ts__x3A__BI___d15e8759-1_BI_instanc">
       <xs:annotation>
          <xs:documentation>Schema dla instancjonowania wyszukanych elementow</xs:documentation>
       </xs:annotation>
-      <xs:complexContent>
-         <xs:extension base="SystemObjects__x3A__BI:BI">
-            <xs:sequence>
-               <xs:element name="ID" type="xs:int">
+      <xs:complexContent id="ts__x3A__BI___d15e8763-1">
+         <xs:extension base="SystemObjects__x3A__BI:BI" id="ts__x3A__BI___d15e8764-1">
+            <xs:sequence id="ts__x3A__BI___d15e8765-1">
+               <xs:element name="ID" type="xs:int" id="ts__x3A__BI___d15e8766-1_ID">
                   <xs:annotation>
                      <xs:documentation>Primary</xs:documentation>
                   </xs:annotation>
                </xs:element>
-               <xs:element minOccurs="0" name="BI_analiza_maxDepth" type="xs:int">
+               <xs:element minOccurs="0"
+                           name="BI_analiza_maxDepth"
+                           type="xs:int"
+                           id="ts__x3A__BI___d15e8770-1_BI_analiza">
                   <xs:annotation>
                      <xs:documentation>Mapowane do silnika BI dla glebokosci, uzyte w asserts dla unikalnych wyszukiwan typow</xs:documentation>
                   </xs:annotation>
                </xs:element>
             </xs:sequence>
-            <xs:attribute name="label" type="xs:string"/>
-            <xs:assert test="label = concat('Analiza BI nr ', ID)">
+            <xs:attribute name="label" type="xs:string" id="ts__x3A__BI___d15e8774-1_label"/>
+            <xs:assert test="label = concat('Analiza BI nr ', ID)"
+                       id="ts__x3A__BI___d15e8775-1">
                <xs:annotation>
                   <xs:documentation>Przykładowy label z primary KEY</xs:documentation>
                </xs:annotation>
@@ -63,26 +68,30 @@ Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz RO
          </xs:extension>
       </xs:complexContent>
    </xs:complexType>
-   <xs:complexType name="BI_instance_depth_required">
+   <xs:complexType name="BI_instance_depth_required"
+                   id="ts__x3A__BI___d15e8779-1_BI_instanc">
       <xs:annotation>
          <xs:documentation>Dla patternow ktore wymagaja podania limitu konca - kontrola unikalnosci</xs:documentation>
       </xs:annotation>
-      <xs:complexContent>
+      <xs:complexContent id="ts__x3A__BI___d15e8783-1">
          <xs:restriction base="SystemObjects__x3A__BI:BI_instance">
-            <xs:sequence>
-               <xs:element name="ID" type="xs:int">
+            <xs:sequence id="ts__x3A__BI___d15e8785-1">
+               <xs:element name="ID" type="xs:int" id="ts__x3A__BI___d15e8786-1_ID">
                   <xs:annotation>
                      <xs:documentation>Primary</xs:documentation>
                   </xs:annotation>
                </xs:element>
-               <xs:element minOccurs="1" name="BI_analiza_maxDepth" type="xs:int">
+               <xs:element minOccurs="1"
+                           name="BI_analiza_maxDepth"
+                           type="xs:int"
+                           id="ts__x3A__BI___d15e8790-1_BI_analiza">
                   <xs:annotation>
                      <xs:documentation>Mapowane do silnika BI dla glebokosci, uzyte w asserts dla unikalnych wyszukiwan typow</xs:documentation>
                   </xs:annotation>
                </xs:element>
             </xs:sequence>
-            <xs:assert
-               test="SystemObjects__x3A__BI_row:BI_row/count(SystemObjects__x3A__BI_row_object:BI_row_object) &lt;= BI_analiza_maxDepth">
+            <xs:assert test="SystemObjects__x3A__BI_row:BI_row/count(SystemObjects__x3A__BI_row_object:BI_row_object) &lt;= BI_analiza_maxDepth"
+                       id="ts__x3A__BI___d15e8794-1">
                <xs:annotation>
                   <xs:documentation>Rekursywnosc - dlugosc wyszukiwania scisle zwiazana z parametrem MaxDepth</xs:documentation>
                </xs:annotation>
@@ -90,26 +99,35 @@ Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz RO
          </xs:restriction>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element abstract="false" name="BI" type="SystemObjects__x3A__BI:BI_instance">
+   <xs:element abstract="false"
+               name="BI"
+               type="SystemObjects__x3A__BI:BI_instance"
+               id="ts__x3A__BI___d15e8798-1_BI">
       <xs:annotation>
          <xs:documentation>Abstrakcyjny przykladowy typowy model
 </xs:documentation>
       </xs:annotation>
    </xs:element>
-   <xs:element name="BI_instance">
-      <xs:complexType>
-         <xs:complexContent>
-            <xs:extension base="SystemObjects__x3A__BI:BI_instance">
-               <xs:sequence>
-                  <xs:element maxOccurs="unbounded" ref="SystemObjects__x3A__BI_from:BI_from"/>
-                  <xs:element ref="SystemObjects__x3A__BI_row:BI_row" maxOccurs="unbounded"
-                     minOccurs="0">
+   <xs:element name="BI_instance" id="ts__x3A__BI___d15e8802-1_BI_instanc">
+      <xs:complexType id="ts__x3A__BI___d15e8803-1">
+         <xs:complexContent id="ts__x3A__BI___d15e8804-1">
+            <xs:extension base="SystemObjects__x3A__BI:BI_instance" id="ts__x3A__BI___d15e8805-1">
+               <xs:sequence id="ts__x3A__BI___d15e8806-1">
+                  <xs:element maxOccurs="unbounded"
+                              ref="SystemObjects__x3A__BI_from:BI_from"
+                              id="ts__x3A__BI___d15e8807-1"/>
+                  <xs:element ref="SystemObjects__x3A__BI_row:BI_row"
+                              maxOccurs="unbounded"
+                              minOccurs="0"
+                              id="ts__x3A__BI___d15e8808-1">
                      <xs:annotation>
                         <xs:documentation>TODO chyba nie zawsze musi byc cokolwiek znaleizone?</xs:documentation>
                      </xs:annotation>
                   </xs:element>
-                  <xs:element maxOccurs="unbounded" minOccurs="0"
-                     ref="SystemObjects__x3A__BI_to:BI_to">
+                  <xs:element maxOccurs="unbounded"
+                              minOccurs="0"
+                              ref="SystemObjects__x3A__BI_to:BI_to"
+                              id="ts__x3A__BI___d15e8812-1">
                      <xs:annotation>
                         <xs:documentation>Opcjonalne wskazanie namespace celu lub/i konkretnych instancji</xs:documentation>
                      </xs:annotation>
@@ -138,11 +156,11 @@ Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz RO
          <xs:documentation>Abstrakcyjny przykladowy typowy model
 </xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element ref="SystemObjects__x3A__BI:BI"/>
+      <xs:sequence id="ts__x3A__BI___d15e8832-1">
+         <xs:element ref="SystemObjects__x3A__BI:BI" id="ts__x3A__BI___d15e8833-1"/>
       </xs:sequence>
    </xs:group>
-   <xs:simpleType name="targetNamespace">
+   <xs:simpleType name="targetNamespace" id="ts__x3A__BI___d15e8834-1_targetName">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
 </xs:schema>

+ 37 - 28
SE/schema/SystemObjects/BI_from.xsd

@@ -1,16 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
-   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-   xmlns:p5="https://biuro.biall-net.pl/wfs" elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
-   vc:minVersion="1.1" attributeFormDefault="qualified">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
+           xmlns:p5="https://biuro.biall-net.pl/wfs"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
+           vc:minVersion="1.1"
+           attributeFormDefault="qualified">
    <xs:annotation>
       <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI. 
 
@@ -20,36 +23,41 @@ Jest też czasami konieczność aby znać kolejność wyszukanych elementów.
 
 Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz ROW (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row), ROW_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)  oraz ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )</xs:documentation>
    </xs:annotation>
-   <xs:simpleType name="targetNamespace">
+   <xs:simpleType name="targetNamespace" id="_3A__BI_from___d15e8841-1_targetName">
       <xs:restriction base="xs:anyURI"/>
    </xs:simpleType>
-   <xs:complexType name="BI_from">
+   <xs:complexType name="BI_from" id="_3A__BI_from___d15e8843-1_BI_from">
       <xs:annotation>
          <xs:documentation> ewentualna abstrakcyjna definicja BI_from (było BI_audit_POWIAZANIA_OD )</xs:documentation>
       </xs:annotation>
    </xs:complexType>
-   <xs:complexType name="BI_from_instance">
+   <xs:complexType name="BI_from_instance" id="_3A__BI_from___d15e8847-1_BI_from_in">
       <xs:annotation>
          <xs:documentation>Dla modelu instancjonowania wyszukiwan BI</xs:documentation>
       </xs:annotation>
-      <xs:complexContent>
-         <xs:extension base="SystemObjects__x3A__BI_from:BI_from">
-            <xs:sequence>
-               <xs:element name="ID" type="xs:int"/>
-               <xs:element id="_row_object___d5e8359-1_relation_f" name="targetNamespace"
-                  type="SystemObjects__x3A__BI_from:targetNamespace"/>
+      <xs:complexContent id="_3A__BI_from___d15e8851-1">
+         <xs:extension base="SystemObjects__x3A__BI_from:BI_from"
+                       id="_3A__BI_from___d15e8852-1">
+            <xs:sequence id="_3A__BI_from___d15e8853-1">
+               <xs:element name="ID" type="xs:int" id="_3A__BI_from___d15e8854-1_ID"/>
+               <xs:element id="_row_object___d5e8359-1_relation_f"
+                           name="targetNamespace"
+                           type="SystemObjects__x3A__BI_from:targetNamespace"/>
             </xs:sequence>
          </xs:extension>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element abstract="false" name="BI_from">
+   <xs:element abstract="false"
+               name="BI_from"
+               id="_3A__BI_from___d15e8856-1_BI_from">
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla budowania przykładowej struktury</xs:documentation>
       </xs:annotation>
-      <xs:complexType>
-         <xs:complexContent>
-            <xs:extension base="SystemObjects__x3A__BI_from:BI_from_instance">
-               <xs:sequence>
+      <xs:complexType id="_3A__BI_from___d15e8860-1">
+         <xs:complexContent id="_3A__BI_from___d15e8861-1">
+            <xs:extension base="SystemObjects__x3A__BI_from:BI_from_instance"
+                          id="_3A__BI_from___d15e8862-1">
+               <xs:sequence id="_3A__BI_from___d15e8863-1">
                   <xs:any maxOccurs="unbounded" namespace="##other">
                      <xs:annotation>
                         <xs:documentation>Abstrakcyjnie poczatek wyszukiwania moze być określony konkretnymi początkowymi elementami - jest ich lista</xs:documentation>
@@ -68,8 +76,9 @@ Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz RO
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla budowania przykładowej struktury</xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element ref="SystemObjects__x3A__BI_from:BI_from"/>
+      <xs:sequence id="_3A__BI_from___d15e8875-1">
+         <xs:element ref="SystemObjects__x3A__BI_from:BI_from"
+                     id="_3A__BI_from___d15e8876-1"/>
       </xs:sequence>
    </xs:group>
 </xs:schema>

+ 43 - 32
SE/schema/SystemObjects/BI_root.xsd

@@ -1,19 +1,21 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__BI_root="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_root.xsd"
-   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-   elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_root.xsd"
-   vc:minVersion="1.1" xmlns:p5="https://biuro.biall-net.pl/wfs"
-   xmlns:SystemObjects__x3A__BI="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
-   xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
-   xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__BI_root="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_root.xsd"
+           xmlns:p5="https://biuro.biall-net.pl/wfs"
+           xmlns:SystemObjects__x3A__BI="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
+           xmlns:SystemObjects__x3A__BI_from="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
+           xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_root.xsd"
+           vc:minVersion="1.1">
    <xs:annotation>
       <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI. 
 
@@ -21,43 +23,51 @@ Ten obiekt powinien kontrolować sensowne unikalne typy wyszukiwan dla BI pod k
 </xs:documentation>
    </xs:annotation>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI.xsd"
-      schemaLocation="BI.xsd"/>
+              schemaLocation="BI.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_from.xsd"
-      schemaLocation="BI_from.xsd"/>
+              schemaLocation="BI_from.xsd"/>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
-      schemaLocation="BI_to.xsd"/>
-   <xs:complexType name="BI_root">
+              schemaLocation="BI_to.xsd"/>
+   <xs:complexType name="BI_root" id="_3A__BI_root___d15e8885-1_BI_root">
       <xs:annotation>
          <xs:documentation> ewentualna abstrakcyjna definicja kontroli obiektow BI - w celu zapobiegniecia bezsensownych duplikacji OD oraz DO w ramach tego samego typu wyszukiwania</xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element name="ID">
+      <xs:sequence id="_3A__BI_root___d15e8889-1">
+         <xs:element name="ID" id="_3A__BI_root___d15e8890-1_ID">
             <xs:annotation>
                <xs:documentation>Primary</xs:documentation>
             </xs:annotation>
          </xs:element>
-         <xs:element name="PatternName" type="xs:string">
+         <xs:element name="PatternName"
+                     type="xs:string"
+                     id="_3A__BI_root___d15e8894-1_PatternNam">
             <xs:annotation>
                <xs:documentation>Unikalna nazwa patternu brana z nazwy pierwotnego schema z patterns/*xsd - np BI_PERSON_to_COMPANY.xsd</xs:documentation>
             </xs:annotation>
          </xs:element>
       </xs:sequence>
-      <xs:attribute name="label" type="xs:string"/>
-      <xs:assert test="label = concat('Definicja patternu nr:', ID, '  o nazwie:', PatternName)">
+      <xs:attribute name="label" type="xs:string" id="_3A__BI_root___d15e8898-1_label"/>
+      <xs:assert test="label = concat('Definicja patternu nr:', ID, '  o nazwie:', PatternName)"
+                 id="_3A__BI_root___d15e8899-1">
          <xs:annotation>
             <xs:documentation>Przykładowy label z primary KEY</xs:documentation>
          </xs:annotation>
       </xs:assert>
    </xs:complexType>
-   <xs:element abstract="false" name="BI_root">
+   <xs:element abstract="false"
+               name="BI_root"
+               id="_3A__BI_root___d15e8903-1_BI_root">
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla budowania przykładowej struktury</xs:documentation>
       </xs:annotation>
-      <xs:complexType>
-         <xs:complexContent>
-            <xs:extension base="SystemObjects__x3A__BI_root:BI_root">
-               <xs:sequence>
-                  <xs:element maxOccurs="unbounded" ref="SystemObjects__x3A__BI:BI"/>
+      <xs:complexType id="_3A__BI_root___d15e8907-1">
+         <xs:complexContent id="_3A__BI_root___d15e8908-1">
+            <xs:extension base="SystemObjects__x3A__BI_root:BI_root"
+                          id="_3A__BI_root___d15e8909-1">
+               <xs:sequence id="_3A__BI_root___d15e8910-1">
+                  <xs:element maxOccurs="unbounded"
+                              ref="SystemObjects__x3A__BI:BI"
+                              id="_3A__BI_root___d15e8911-1"/>
                </xs:sequence>
             </xs:extension>
          </xs:complexContent>
@@ -78,8 +88,9 @@ Ten obiekt powinien kontrolować sensowne unikalne typy wyszukiwan dla BI pod k
          <xs:documentation>Abstrakcyjny przykladowy typowy model
 </xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element ref="SystemObjects__x3A__BI_root:BI_root"/>
+      <xs:sequence id="_3A__BI_root___d15e8925-1">
+         <xs:element ref="SystemObjects__x3A__BI_root:BI_root"
+                     id="_3A__BI_root___d15e8926-1"/>
       </xs:sequence>
    </xs:group>
 </xs:schema>

+ 36 - 28
SE/schema/SystemObjects/BI_row.xsd

@@ -1,17 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__BI_row="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
-   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-   elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
-   vc:minVersion="1.1" attributeFormDefault="qualified"
-   xmlns:SystemObjects__x3A__BI_row_object="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__BI_row="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
+           xmlns:SystemObjects__x3A__BI_row_object="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row.xsd"
+           vc:minVersion="1.1"
+           attributeFormDefault="qualified">
    <xs:annotation>
       <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI. 
 
@@ -22,36 +24,38 @@ Jest też czasami konieczność aby znać kolejność wyszukanych elementów.
 Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz ROW (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row), ROW_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)  oraz ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )</xs:documentation>
    </xs:annotation>
    <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd"
-      schemaLocation="BI_row_object.xsd"/>
-   <xs:complexType name="BI_row">
+              schemaLocation="BI_row_object.xsd"/>
+   <xs:complexType name="BI_row" id="x3A__BI_row___d15e8933-1_BI_row">
       <xs:annotation>
          <xs:documentation> ewentualna abstrakcyjna definicja BI_row (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row )
  Schema dla modelu pattern</xs:documentation>
       </xs:annotation>
-      <xs:sequence> </xs:sequence>
-      <xs:attribute name="label">
+      <xs:sequence id="x3A__BI_row___d15e8937-1"/>
+      <xs:attribute name="label" id="x3A__BI_row___d15e8938-1_label">
          <xs:annotation>
             <xs:documentation>TODO doswiadczalny atrybut label brany z obiektu, do ktorego jest podczepione dziedziczenie - TODO nie jest jasne "resolution" dla dziedziczen z innych namespace oraz odwolanie namespace.
 
 Atrybut dziedzicozny z tego obiektu musi byc unikalny, w przypadku unqualified attributes - inaczej jest error.</xs:documentation>
          </xs:annotation>
       </xs:attribute>
-      <xs:assert test="@label = concat('Dlugosc sciezki:', count(*/*))"/>
+      <xs:assert test="@label = concat('Dlugosc sciezki:', count(*/*))"
+                 id="x3A__BI_row___d15e8942-1"/>
    </xs:complexType>
-   <xs:complexType name="BI_row_instance">
+   <xs:complexType name="BI_row_instance" id="x3A__BI_row___d15e8943-1_BI_row_ins">
       <xs:annotation>
          <xs:documentation>Schema dla instancjonowania wynikow</xs:documentation>
       </xs:annotation>
-      <xs:complexContent>
-         <xs:extension base="SystemObjects__x3A__BI_row:BI_row">
-            <xs:sequence>
-               <xs:element name="ID" type="xs:int">
+      <xs:complexContent id="x3A__BI_row___d15e8947-1">
+         <xs:extension base="SystemObjects__x3A__BI_row:BI_row" id="x3A__BI_row___d15e8948-1">
+            <xs:sequence id="x3A__BI_row___d15e8949-1">
+               <xs:element name="ID" type="xs:int" id="x3A__BI_row___d15e8950-1_ID">
                   <xs:annotation>
                      <xs:documentation>Primay key</xs:documentation>
                   </xs:annotation>
                </xs:element>
                <xs:element maxOccurs="unbounded"
-                  ref="SystemObjects__x3A__BI_row_object:BI_row_object">
+                           ref="SystemObjects__x3A__BI_row_object:BI_row_object"
+                           id="x3A__BI_row___d15e8954-1">
                   <xs:annotation>
                      <xs:documentation>Scieżka wyszukiwania</xs:documentation>
                   </xs:annotation>
@@ -60,18 +64,22 @@ Atrybut dziedzicozny z tego obiektu musi byc unikalny, w przypadku unqualified a
          </xs:extension>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element name="BI_row" type="SystemObjects__x3A__BI_row:BI_row_instance">
+   <xs:element name="BI_row"
+               type="SystemObjects__x3A__BI_row:BI_row_instance"
+               id="x3A__BI_row___d15e8958-1_BI_row">
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla budowania przykładowej struktury</xs:documentation>
       </xs:annotation>
    </xs:element>
-   <xs:element name="BI_row_instance" type="SystemObjects__x3A__BI_row:BI_row_instance"/>
+   <xs:element name="BI_row_instance"
+               type="SystemObjects__x3A__BI_row:BI_row_instance"
+               id="x3A__BI_row___d15e8962-1_BI_row_ins"/>
    <xs:group name="BI_row">
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla budowania przykładowej struktury</xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element ref="SystemObjects__x3A__BI_row:BI_row"/>
+      <xs:sequence id="x3A__BI_row___d15e8967-1">
+         <xs:element ref="SystemObjects__x3A__BI_row:BI_row" id="x3A__BI_row___d15e8968-1"/>
       </xs:sequence>
    </xs:group>
 </xs:schema>

+ 35 - 25
SE/schema/SystemObjects/BI_row_object.xsd

@@ -1,16 +1,18 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__BI_row_object="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd"
-   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-   elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd"
-   vc:minVersion="1.1" attributeFormDefault="qualified">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__BI_row_object="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_row_object.xsd"
+           vc:minVersion="1.1"
+           attributeFormDefault="qualified">
    <xs:annotation>
       <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI. 
 
@@ -20,31 +22,38 @@ Jest też czasami konieczność aby znać kolejność wyszukanych elementów.
 
 Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz ROW (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row), ROW_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)  oraz ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )</xs:documentation>
    </xs:annotation>
-   <xs:complexType name="BI_row_object">
+   <xs:complexType name="BI_row_object" id="_row_object___d15e8975-1_BI_row_obj">
       <xs:annotation>
          <xs:documentation> ewentualna abstrakcyjna definicja BI_row_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object )</xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element name="ID" type="xs:int"/>
-         <xs:element id="_row_object___d5e8359-1_relation_f" name="relation_from" type="xs:string"/>
+      <xs:sequence id="_row_object___d15e8979-1">
+         <xs:element name="ID" type="xs:int" id="_row_object___d15e8980-1_ID"/>
+         <xs:element id="_row_object___d5e8359-1_relation_f"
+                     name="relation_from"
+                     type="xs:string"/>
       </xs:sequence>
-      <xs:attribute name="label" type="xs:string">
+      <xs:attribute name="label" type="xs:string" id="_row_object___d15e8982-1_label">
          <xs:annotation>
             <xs:documentation>TODO doswiadczalny atrybut label brany z obiektu, do ktorego jest podczepione dziedziczenie - TODO nie jest jasne "resolution" dla dziedziczen z innych namespace oraz odwolanie namespace.
 
 Atrybut dziedzicozny z tego obiektu musi byc unikalny, w przypadku unqualified attributes - inaczej jest error.</xs:documentation>
          </xs:annotation>
       </xs:attribute>
-      <xs:assert test="@label = concat(relation_from, */name())"/>
+      <xs:assert test="@label = concat(relation_from, */name())"
+                 id="_row_object___d15e8986-1"/>
    </xs:complexType>
-   <xs:element abstract="false" name="BI_row_object" nillable="false">
+   <xs:element abstract="false"
+               name="BI_row_object"
+               nillable="false"
+               id="_row_object___d15e8987-1_BI_row_obj">
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla budowania przykładowej struktury</xs:documentation>
       </xs:annotation>
-      <xs:complexType>
-         <xs:complexContent>
-            <xs:extension base="SystemObjects__x3A__BI_row_object:BI_row_object">
-               <xs:sequence>
+      <xs:complexType id="_row_object___d15e8991-1">
+         <xs:complexContent id="_row_object___d15e8992-1">
+            <xs:extension base="SystemObjects__x3A__BI_row_object:BI_row_object"
+                          id="_row_object___d15e8993-1">
+               <xs:sequence id="_row_object___d15e8994-1">
                   <xs:any namespace="##other">
                      <xs:annotation>
                         <xs:documentation>Abstrakcyjnie moze to być dowolny typ obiektu jako pojedyncze powiazanie</xs:documentation>
@@ -56,8 +65,9 @@ Atrybut dziedzicozny z tego obiektu musi byc unikalny, w przypadku unqualified a
       </xs:complexType>
    </xs:element>
    <xs:group name="BI_row_object">
-      <xs:sequence>
-         <xs:element ref="SystemObjects__x3A__BI_row_object:BI_row_object"/>
+      <xs:sequence id="_row_object___d15e9000-1">
+         <xs:element ref="SystemObjects__x3A__BI_row_object:BI_row_object"
+                     id="_row_object___d15e9001-1"/>
       </xs:sequence>
    </xs:group>
 </xs:schema>

+ 34 - 29
SE/schema/SystemObjects/BI_to.xsd

@@ -1,16 +1,19 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:gml="http://www.opengis.net/gml/3.2"
-   xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
-   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
-   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
-   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
-   xmlns:p5="https://biuro.biall-net.pl/wfs" elementFormDefault="qualified"
-   targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
-   vc:minVersion="1.1" attributeFormDefault="qualified">
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:SystemObjects__x3A__BI_to="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
+           xmlns:p5="https://biuro.biall-net.pl/wfs"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/BI_to.xsd"
+           vc:minVersion="1.1"
+           attributeFormDefault="qualified">
    <xs:annotation>
       <xs:documentation>@2018-03 Bindera: propozycja dla bazowych dziedziczen do tworzenia patternow dla silnik a BI. 
 
@@ -20,34 +23,36 @@ Jest też czasami konieczność aby znać kolejność wyszukanych elementów.
 
 Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz ROW (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row), ROW_object (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)  oraz ewentualna abstrakcyjna definicja BI (było BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA )</xs:documentation>
    </xs:annotation>
-   <xs:simpleType name="targetNamespace">
+   <xs:simpleType name="targetNamespace" id="_x3A__BI_to___d15e9007-1_targetName">
       <xs:restriction base="xs:anyURI"/>
    </xs:simpleType>
-   <xs:complexType name="BI_to">
+   <xs:complexType name="BI_to" id="_x3A__BI_to___d15e9009-1_BI_to">
       <xs:annotation>
          <xs:documentation> ewentualna abstrakcyjna definicja BI_to (było BI_audit_POWIAZANIA_DO )</xs:documentation>
       </xs:annotation>
-      <xs:sequence> </xs:sequence>
+      <xs:sequence id="_x3A__BI_to___d15e9013-1"/>
    </xs:complexType>
-   <xs:complexType name="BI_to_instance">
+   <xs:complexType name="BI_to_instance" id="_x3A__BI_to___d15e9014-1_BI_to_inst">
       <xs:annotation>
          <xs:documentation>Dla modelu instancjonowania wyszukiwan BI</xs:documentation>
       </xs:annotation>
-      <xs:complexContent>
-         <xs:extension base="SystemObjects__x3A__BI_to:BI_to">
-            <xs:sequence>
-               <xs:element name="ID" type="xs:int"/>
-               <xs:element id="_row_object___d5e8359-1_relation_f" name="targetNamespace"
-                  type="SystemObjects__x3A__BI_to:targetNamespace"/>
+      <xs:complexContent id="_x3A__BI_to___d15e9018-1">
+         <xs:extension base="SystemObjects__x3A__BI_to:BI_to" id="_x3A__BI_to___d15e9019-1">
+            <xs:sequence id="_x3A__BI_to___d15e9020-1">
+               <xs:element name="ID" type="xs:int" id="_x3A__BI_to___d15e9021-1_ID"/>
+               <xs:element id="_row_object___d5e8359-1_relation_f"
+                           name="targetNamespace"
+                           type="SystemObjects__x3A__BI_to:targetNamespace"/>
             </xs:sequence>
          </xs:extension>
       </xs:complexContent>
    </xs:complexType>
-   <xs:element name="BI_to">
-      <xs:complexType>
-         <xs:complexContent>
-            <xs:extension base="SystemObjects__x3A__BI_to:BI_to_instance">
-               <xs:sequence>
+   <xs:element name="BI_to" id="_x3A__BI_to___d15e9023-1_BI_to">
+      <xs:complexType id="_x3A__BI_to___d15e9024-1">
+         <xs:complexContent id="_x3A__BI_to___d15e9025-1">
+            <xs:extension base="SystemObjects__x3A__BI_to:BI_to_instance"
+                          id="_x3A__BI_to___d15e9026-1">
+               <xs:sequence id="_x3A__BI_to___d15e9027-1">
                   <xs:any maxOccurs="unbounded" minOccurs="0" namespace="##other"/>
                </xs:sequence>
             </xs:extension>
@@ -66,8 +71,8 @@ Zatem należy zdefiniować OD (było pracownicy), DO (było Kontrahenci) oraz RO
       <xs:annotation>
          <xs:documentation>Abstrakcyjny element dla przykladowej struktury</xs:documentation>
       </xs:annotation>
-      <xs:sequence>
-         <xs:element ref="SystemObjects__x3A__BI_to:BI_to"/>
+      <xs:sequence id="_x3A__BI_to___d15e9039-1">
+         <xs:element ref="SystemObjects__x3A__BI_to:BI_to" id="_x3A__BI_to___d15e9040-1"/>
       </xs:sequence>
    </xs:group>
 </xs:schema>

+ 41 - 11
SE/schema/SystemObjects/File.xsd

@@ -12,12 +12,21 @@
            elementFormDefault="qualified"
            targetNamespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/File.xsd"
            vc:minVersion="1.1"><!-- wchodzi import schematu gdzie jest jakis ref do niego -->
-   <xs:simpleType name="FilePath" id="__x3A__File___d15e121310-1_FilePath">
+   <xs:simpleType name="Path" id="__x3A__File___d15e121072-1_Path">
       <xs:restriction base="xs:string"/>
    </xs:simpleType>
+   <xs:simpleType name="FilePath" id="__x3A__File___d15e121310-1_FilePath">
+      <xs:restriction base="SystemObjects__x3A__File:Path"/>
+   </xs:simpleType>
+   <xs:simpleType name="DirPath" id="__x3A__File___d15e121076-1_DirPath">
+      <xs:restriction base="SystemObjects__x3A__File:Path"/>
+   </xs:simpleType>
    <xs:attribute name="FilePath"
                  type="SystemObjects__x3A__File:FilePath"
                  id="__x3A__File___d15e121312-1_FilePath"/>
+   <xs:attribute name="DirPath"
+                 type="SystemObjects__x3A__File:DirPath"
+                 id="__x3A__File___d15e121079-1_DirPath"/>
    <xs:complexType mixed="false"
                    name="FileContent"
                    id="__x3A__File___d15e118164-1_FileConten">
@@ -27,16 +36,36 @@
    </xs:complexType>
    <xs:complexType name="FileType" id="SystemObjects__x3A__File___d13e9009-1_FileType">
       <xs:sequence id="SystemObjects__x3A__File___d13e9015-1">
-         <xs:element minOccurs="1" maxOccurs="1" nillable="true" name="id" type="xs:integer"
-                id="SystemObjects__x3A__File___d13e9017-1_id"/>
-         <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="name" type="xs:string"
-                id="SystemObjects__x3A__File___d13e9019-1_name"/>
-         <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="size" type="xs:integer"
-                id="SystemObjects__x3A__File___d13e9021-1_size"/>
-         <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="mimeType" type="xs:string"
-                id="SystemObjects__x3A__File___d13e9023-1_mimeType"/>
-         <xs:element minOccurs="0" maxOccurs="1" nillable="true" name="version" type="xs:integer"
-                id="SystemObjects__x3A__File___d13e9025-1_version"/>
+         <xs:element minOccurs="1"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="id"
+                     type="xs:integer"
+                     id="SystemObjects__x3A__File___d13e9017-1_id"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="name"
+                     type="xs:string"
+                     id="SystemObjects__x3A__File___d13e9019-1_name"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="size"
+                     type="xs:integer"
+                     id="SystemObjects__x3A__File___d13e9021-1_size"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="mimeType"
+                     type="xs:string"
+                     id="SystemObjects__x3A__File___d13e9023-1_mimeType"/>
+         <xs:element minOccurs="0"
+                     maxOccurs="1"
+                     nillable="true"
+                     name="version"
+                     type="xs:integer"
+                     id="SystemObjects__x3A__File___d13e9025-1_version"/>
          <xs:choice id="__x3A__File___d15e121323-1">
             <xs:element minOccurs="0"
                         maxOccurs="1"
@@ -64,6 +93,7 @@
          <xs:element ref="SystemObjects__x3A__File:Directory"
                      id="__x3A__File___d15e118188-1"/>
       </xs:choice>
+      <xs:attribute ref="SystemObjects__x3A__File:DirPath" id="__x3A__File___d15e121102-1"/>
    </xs:complexType>
    <xs:element name="Directory"
                type="SystemObjects__x3A__File:Directory"

+ 2605 - 0
SE/schema/SystemObjects/maven-4.0.0.xsd

@@ -0,0 +1,2605 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- =================== DO NOT EDIT THIS FILE ====================         -->
+<!-- Generated by Modello 1.8.3,                                            -->
+<!-- any modifications will be overwritten.                                 -->
+<!-- ==============================================================         -->
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+   xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+   elementFormDefault="qualified" targetNamespace="http://maven.apache.org/POM/4.0.0"
+   xmlns:maven="http://maven.apache.org/POM/4.0.0">
+   <xs:element name="project" type="maven:Model" id="___d15e121186-1_project">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;project&amp;gt;&lt;/code> element is the root of the descriptor.
+        The following table lists all of the possible child elements.
+        
+      </xs:documentation>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="Model" id="___d15e121192-1_Model">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;project&amp;gt;&lt;/code> element is the root of the descriptor.
+        The following table lists all of the possible child elements.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121198-1">
+         <xs:element minOccurs="0" name="modelVersion" type="xs:string"
+            id="___d15e121199-1_modelVersi">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Declares to which version of project descriptor this POM conforms.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="parent" type="maven:Parent" id="___d15e121205-1_parent">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The location of the parent project, if one exists. Values from the parent
+            project will be the default for this project if they are left unspecified. The location
+            is given as a group ID, artifact ID and version.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="groupId" type="xs:string" id="___d15e121211-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            A universally unique identifier for a project. It is normal to
+            use a fully-qualified package name to distinguish it from other
+            projects with a similar name (eg. &lt;code>org.apache.maven&lt;/code>).
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e121217-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The identifier for this artifact that is unique within the group given by the
+            group ID. An artifact is something that is either produced or used by a project.
+            Examples of artifacts produced by Maven for a project include: JARs, source and binary
+            distributions, and WARs.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e121223-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The current version of the artifact produced by this project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="packaging" type="xs:string" default="jar"
+            id="___d15e121229-1_packaging">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The type of artifact this project produces, for example &lt;code>jar&lt;/code>
+              &lt;code>war&lt;/code>
+              &lt;code>ear&lt;/code>
+              &lt;code>pom&lt;/code>.
+            Plugins can create their own packaging, and
+            therefore their own packaging types,
+            so this list does not contain all possible types.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e121235-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The full name of the project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="description" type="xs:string"
+            id="___d15e121241-1_descriptio">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">A detailed description of the project, used by Maven whenever it needs to
+            describe the project, such as on the web site. While this element can be specified as
+            CDATA to enable the use of HTML tags within the description, it is discouraged to allow
+            plain text representation. If you need to modify the index page of the generated web
+            site, you are able to specify your own instead of adjusting this text.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121247-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The URL to the project's homepage.
+            &lt;br />&lt;b>Default value is&lt;/b>: parent value [+ path adjustment] + artifactId
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="inceptionYear" type="xs:string"
+            id="___d15e121253-1_inceptionY">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The year of the project's inception, specified with 4 digits. This value is
+            used when generating copyright notices as well as being informational.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="organization" type="maven:Organization"
+            id="___d15e121259-1_organizati">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">This element describes various attributes of the organization to which the
+            project belongs. These attributes are utilized when documentation is created (for
+            copyright notices and links).</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="licenses" id="___d15e121266-1_licenses">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            This element describes all of the licenses for this project.
+            Each license is described by a &lt;code>license&lt;/code> element, which
+            is then described by additional elements.
+            Projects should only list the license(s) that applies to the project
+            and not the licenses that apply to dependencies.
+            If multiple licenses are listed, it is assumed that the user can select
+            any of them, not that they must accept all.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121272-1">
+               <xs:sequence id="___d15e121273-1">
+                  <xs:element name="license" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:License" id="___d15e121274-1_license"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="developers" id="___d15e121275-1_developers">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Describes the committers of a project.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121281-1">
+               <xs:sequence id="___d15e121282-1">
+                  <xs:element name="developer" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Developer" id="___d15e121283-1_developer"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="contributors" id="___d15e121284-1_contributo">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Describes the contributors to a project that are not yet committers.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121290-1">
+               <xs:sequence id="___d15e121291-1">
+                  <xs:element name="contributor" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Contributor" id="___d15e121292-1_contributo"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="mailingLists" id="___d15e121293-1_mailingLis">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Contains information about a project's mailing lists.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121299-1">
+               <xs:sequence id="___d15e121300-1">
+                  <xs:element name="mailingList" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:MailingList" id="___d15e121301-1_mailingLis"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="prerequisites" type="maven:Prerequisites"
+            id="___d15e121302-1_prerequisi">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Describes the prerequisites in the build environment for this project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="modules" id="___d15e121308-1_modules">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The modules (sometimes called subprojects) to build as a part of this
+            project. Each module listed is a relative path to the directory containing the module.
+            To be consistent with the way default urls are calculated from parent, it is recommended
+            to have module names match artifact ids.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121314-1">
+               <xs:sequence id="___d15e121315-1">
+                  <xs:element name="module" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e121316-1_module"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="scm" type="maven:Scm" id="___d15e121317-1_scm">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Specification for the SCM used by the project, such as CVS, Subversion, etc.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="issueManagement" type="maven:IssueManagement"
+            id="___d15e121323-1_issueManag">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The project's issue management system information.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="ciManagement" type="maven:CiManagement"
+            id="___d15e121329-1_ciManageme">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The project's continuous integration information.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="distributionManagement" type="maven:DistributionManagement"
+            id="___d15e121335-1_distributi">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Distribution information for a project that enables deployment of the site
+            and artifacts to remote web servers and repositories respectively.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="properties" id="___d15e121341-1_properties">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Properties that can be used throughout the POM as a substitution, and
+            are used as filters in resources if enabled.
+            The format is &lt;code>&amp;lt;name&amp;gt;value&amp;lt;/name&amp;gt;&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121347-1">
+               <xs:sequence id="___d15e121348-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="dependencyManagement" type="maven:DependencyManagement"
+            id="___d15e121351-1_dependency">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Default dependency information for projects that inherit from this one. The
+            dependencies in this section are not immediately resolved. Instead, when a POM derived
+            from this one declares a dependency described by a matching groupId and artifactId, the
+            version and other values from this section are used for that dependency if they were not
+            already specified.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="dependencies" id="___d15e121357-1_dependenci">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            This element describes all of the dependencies associated with a
+            project.
+            These dependencies are used to construct a classpath for your
+            project during the build process. They are automatically downloaded from the
+            repositories defined in this project.
+            See &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html">the
+            dependency mechanism&lt;/a> for more information.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121363-1">
+               <xs:sequence id="___d15e121364-1">
+                  <xs:element name="dependency" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Dependency" id="___d15e121365-1_dependency"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="repositories" id="___d15e121366-1_repositori">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The lists of the remote repositories for discovering dependencies and
+            extensions.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121372-1">
+               <xs:sequence id="___d15e121373-1">
+                  <xs:element name="repository" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Repository" id="___d15e121374-1_repository"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="pluginRepositories" id="___d15e121375-1_pluginRepo">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The lists of the remote repositories for discovering plugins for builds and
+            reports.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121381-1">
+               <xs:sequence id="___d15e121382-1">
+                  <xs:element name="pluginRepository" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Repository" id="___d15e121383-1_pluginRepo"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="build" type="maven:Build" id="___d15e121384-1_build">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Information required to build the project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="reports" id="___d15e121390-1_reports">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;b>Deprecated&lt;/b>. Now ignored by Maven.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121396-1">
+               <xs:sequence id="___d15e121397-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="reporting" type="maven:Reporting"
+            id="___d15e121399-1_reporting">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            This element includes the specification of report plugins to use
+            to generate the reports on the Maven-generated site.
+            These reports will be run when a user executes &lt;code>mvn site&lt;/code>.
+            All of the reports will be included in the navigation bar for browsing.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="profiles" id="___d15e121405-1_profiles">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">A listing of project-local build profiles which will modify the build process
+            when activated.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121411-1">
+               <xs:sequence id="___d15e121412-1">
+                  <xs:element name="profile" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Profile" id="___d15e121413-1_profile"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Parent" id="___d15e121414-1_Parent">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;parent&amp;gt;&lt;/code> element contains information required to locate the parent project from which
+        this project will inherit from.
+        &lt;strong>Note:&lt;/strong> The children of this element are not interpolated and must be given as literal values.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121420-1">
+         <xs:element minOccurs="0" name="groupId" type="xs:string" id="___d15e121421-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The group id of the parent project to inherit from.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e121427-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The artifact id of the parent project to inherit from.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e121433-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The version of the parent project to inherit.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="relativePath" type="xs:string" default="../pom.xml"
+            id="___d15e121439-1_relativePa">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The relative path of the parent &lt;code>pom.xml&lt;/code> file within the check out.
+            If not specified, it defaults to &lt;code>../pom.xml&lt;/code>.
+            Maven looks for the parent POM first in this location on
+            the filesystem, then the local repository, and lastly in the remote repo.
+            &lt;code>relativePath&lt;/code> allows you to select a different location,
+            for example when your structure is flat, or deeper without an intermediate parent POM.
+            However, the group ID, artifact ID and version are still required,
+            and must match the file in the location given or it will revert to the repository for the POM.
+            This feature is only for enhancing the development in a local checkout of that project.
+            Set the value to an empty string in case you want to disable the feature and always resolve
+            the parent POM from the repositories.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Organization" id="___d15e121445-1_Organizati">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">Specifies the organization that produces this project.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121451-1">
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e121452-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The full name of the organization.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121458-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The URL to the organization's home page.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="DistributionManagement" id="___d15e121464-1_Distributi">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">This elements describes all that pertains to distribution for a project. It is
+        primarily used for deployment of artifacts and the site produced by the build.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121470-1">
+         <xs:element minOccurs="0" name="repository" type="maven:DeploymentRepository"
+            id="___d15e121471-1_repository">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Information needed to deploy the artifacts generated by the project to a
+            remote repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="snapshotRepository" type="maven:DeploymentRepository"
+            id="___d15e121477-1_snapshotRe">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Where to deploy snapshots of artifacts to. If not given, it defaults to the
+            &lt;code>repository&lt;/code> element.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="site" type="maven:Site" id="___d15e121483-1_site">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Information needed for deploying the web site of the project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="downloadUrl" type="xs:string"
+            id="___d15e121489-1_downloadUr">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The URL of the project's download page. If not given users will be
+            referred to the homepage given by &lt;code>url&lt;/code>.
+            This is given to assist in locating artifacts that are not in the repository due to
+            licensing restrictions.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="relocation" type="maven:Relocation"
+            id="___d15e121495-1_relocation">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Relocation information of the artifact if it has been moved to a new group ID
+            and/or artifact ID.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="status" type="xs:string" id="___d15e121501-1_status">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Gives the status of this artifact in the remote repository.
+            This must not be set in your local project, as it is updated by
+            tools placing it in the reposiory. Valid values are: &lt;code>none&lt;/code> (default),
+            &lt;code>converted&lt;/code> (repository manager converted this from an Maven 1 POM),
+            &lt;code>partner&lt;/code>
+            (directly synced from a partner Maven 2 repository), &lt;code>deployed&lt;/code> (was deployed from a Maven 2
+            instance), &lt;code>verified&lt;/code> (has been hand verified as correct and final).
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Relocation" id="___d15e121507-1_Relocation">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Describes where an artifact has moved to. If any of the values are omitted, it is
+        assumed to be the same as it was before.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121513-1">
+         <xs:element minOccurs="0" name="groupId" type="xs:string" id="___d15e121514-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The group ID the artifact has moved to.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e121520-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The new artifact ID of the artifact.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e121526-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The new version of the artifact.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="message" type="xs:string" id="___d15e121532-1_message">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">An additional message to show the user about the move, such as the reason.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Site" id="___d15e121538-1_Site">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Contains the information needed for deploying websites.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121544-1">
+         <xs:element minOccurs="0" name="id" type="xs:string" id="___d15e121545-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            A unique identifier for a deployment location. This is used to match the
+            site to configuration in the &lt;code>settings.xml&lt;/code> file, for example.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e121551-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Human readable name of the deployment location.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121557-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The url of the location where website is deployed, in the form &lt;code>protocol://hostname/path&lt;/code>.
+            &lt;br />&lt;b>Default value is&lt;/b>: parent value [+ path adjustment] + artifactId
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="DeploymentRepository" id="___d15e121563-1_Deployment">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Repository contains the information needed for deploying to the remote
+        repository.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121569-1">
+         <xs:element minOccurs="0" name="uniqueVersion" type="xs:boolean" default="true"
+            id="___d15e121570-1_uniqueVers">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Whether to assign snapshots a unique version comprised of the timestamp and
+            build number, or to use the same version each time</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="releases" type="maven:RepositoryPolicy"
+            id="___d15e121576-1_releases">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">How to handle downloading of releases from this repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="snapshots" type="maven:RepositoryPolicy"
+            id="___d15e121582-1_snapshots">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">How to handle downloading of snapshots from this repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="id" type="xs:string" id="___d15e121588-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            A unique identifier for a repository. This is used to match the repository
+            to configuration in the &lt;code>settings.xml&lt;/code> file, for example. Furthermore, the identifier is
+            used during POM inheritance and profile injection to detect repositories that should be merged.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e121594-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Human readable name of the repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121600-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The url of the repository, in the form &lt;code>protocol://hostname/path&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="layout" type="xs:string" default="default"
+            id="___d15e121606-1_layout">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The type of layout this repository uses for locating and storing artifacts -
+            can be &lt;code>legacy&lt;/code> or &lt;code>default&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="RepositoryPolicy" id="___d15e121612-1_Repository">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Download policy.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121618-1">
+         <xs:element minOccurs="0" name="enabled" type="xs:string" id="___d15e121619-1_enabled">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether to use this repository for downloading this type of artifact. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>true&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="updatePolicy" type="xs:string"
+            id="___d15e121625-1_updatePoli">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The frequency for downloading updates - can be
+            &lt;code>always,&lt;/code>
+            &lt;code>daily&lt;/code>
+            (default),
+            &lt;code>interval:XXX&lt;/code>
+            (in minutes) or
+            &lt;code>never&lt;/code>
+            (only if it doesn't exist locally).
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="checksumPolicy" type="xs:string"
+            id="___d15e121631-1_checksumPo">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            What to do when verification of an artifact checksum fails. Valid values are
+            &lt;code>ignore&lt;/code>
+            ,
+            &lt;code>fail&lt;/code>
+            or
+            &lt;code>warn&lt;/code>
+            (the default).
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Prerequisites" id="___d15e121637-1_Prerequisi">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Describes the prerequisites a project can have.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121643-1">
+         <xs:element minOccurs="0" name="maven" type="xs:string" default="2.0"
+            id="___d15e121644-1_maven">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            For a plugin project, the minimum version of Maven required to use
+            the resulting plugin.&lt;br />
+            For specifying the minimum version of Maven required to build a
+            project, this element is &lt;b>deprecated&lt;/b>. Use the Maven Enforcer
+            Plugin's &lt;a href="https://maven.apache.org/enforcer/enforcer-rules/requireMavenVersion.html">&lt;code>requireMavenVersion&lt;/code>&lt;/a>
+            rule instead.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Contributor" id="___d15e121650-1_Contributo">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">Description of a person who has contributed to the project, but who does not have
+        commit privileges. Usually, these contributions come in the form of patches submitted.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121656-1">
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e121657-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The full name of the contributor.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="email" type="xs:string" id="___d15e121663-1_email">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The email address of the contributor.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121669-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The URL for the homepage of the contributor.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="organization" type="xs:string"
+            id="___d15e121675-1_organizati">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The organization to which the contributor belongs.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="organizationUrl" type="xs:string"
+            id="___d15e121681-1_organizati">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The URL of the organization.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="roles" id="___d15e121687-1_roles">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The roles the contributor plays in the project. Each role is described by a
+            &lt;code>role&lt;/code> element, the body of which is a role name. This can also be used to
+            describe the contribution.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121693-1">
+               <xs:sequence id="___d15e121694-1">
+                  <xs:element name="role" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e121695-1_role"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="timezone" type="xs:string" id="___d15e121696-1_timezone">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+              The timezone the contributor is in. Typically, this is a number in the range
+              &lt;a href="http://en.wikipedia.org/wiki/UTC%E2%88%9212:00">-12&lt;/a> to &lt;a href="http://en.wikipedia.org/wiki/UTC%2B14:00">+14&lt;/a>
+              or a valid time zone id like "America/Montreal" (UTC-05:00) or "Europe/Paris" (UTC+01:00).
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="properties" id="___d15e121702-1_properties">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Properties about the contributor, such as an instant messenger handle.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121708-1">
+               <xs:sequence id="___d15e121709-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Scm" id="___d15e121712-1_Scm">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;scm&amp;gt;&lt;/code> element contains informations required to the SCM
+        (Source Control Management) of the project.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121718-1">
+         <xs:element minOccurs="0" name="connection" type="xs:string"
+            id="___d15e121719-1_connection">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The source control management system URL
+            that describes the repository and how to connect to the
+            repository. For more information, see the
+            &lt;a href="http://maven.apache.org/scm/scm-url-format.html">URL format&lt;/a>
+            and &lt;a href="http://maven.apache.org/scm/scms-overview.html">list of supported SCMs&lt;/a>.
+            This connection is read-only.
+            &lt;br />&lt;b>Default value is&lt;/b>: parent value [+ path adjustment] + artifactId
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="developerConnection" type="xs:string"
+            id="___d15e121725-1_developerC">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Just like &lt;code>connection&lt;/code>, but for developers, i.e. this scm connection
+            will not be read only.
+            &lt;br />&lt;b>Default value is&lt;/b>: parent value [+ path adjustment] + artifactId
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="tag" type="xs:string" default="HEAD"
+            id="___d15e121731-1_tag">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The tag of current code. By default, it's set to HEAD during development.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121737-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The URL to the project's browsable SCM repository, such as ViewVC or Fisheye.
+            &lt;br />&lt;b>Default value is&lt;/b>: parent value [+ path adjustment] + artifactId
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Repository" id="___d15e121743-1_Repository">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">A repository contains the information needed for establishing connections with
+        remote repository.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121749-1">
+         <xs:element minOccurs="0" name="releases" type="maven:RepositoryPolicy"
+            id="___d15e121750-1_releases">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">How to handle downloading of releases from this repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="snapshots" type="maven:RepositoryPolicy"
+            id="___d15e121756-1_snapshots">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">How to handle downloading of snapshots from this repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="id" type="xs:string" id="___d15e121762-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            A unique identifier for a repository. This is used to match the repository
+            to configuration in the &lt;code>settings.xml&lt;/code> file, for example. Furthermore, the identifier is
+            used during POM inheritance and profile injection to detect repositories that should be merged.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e121768-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Human readable name of the repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121774-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The url of the repository, in the form &lt;code>protocol://hostname/path&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="layout" type="xs:string" default="default"
+            id="___d15e121780-1_layout">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The type of layout this repository uses for locating and storing artifacts -
+            can be &lt;code>legacy&lt;/code> or &lt;code>default&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="IssueManagement" id="___d15e121786-1_IssueManag">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Information about the issue tracking (or bug tracking) system used to manage this
+        project.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121792-1">
+         <xs:element minOccurs="0" name="system" type="xs:string" id="___d15e121793-1_system">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The name of the issue management system, e.g. Bugzilla</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121799-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">URL for the issue management system used by the project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="CiManagement" id="___d15e121805-1_CiManageme">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;CiManagement&amp;gt;&lt;/code> element contains informations required to the
+        continuous integration system of the project.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121811-1">
+         <xs:element minOccurs="0" name="system" type="xs:string" id="___d15e121812-1_system">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The name of the continuous integration system, e.g. &lt;code>continuum&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e121818-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">URL for the continuous integration system used by the project if it has a web
+            interface.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="notifiers" id="___d15e121824-1_notifiers">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Configuration for notifying developers/users when a build is unsuccessful,
+            including user information and notification mode.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121830-1">
+               <xs:sequence id="___d15e121831-1">
+                  <xs:element name="notifier" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Notifier" id="___d15e121832-1_notifier"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Notifier" id="___d15e121833-1_Notifier">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Configures one method for notifying users/developers when a build breaks.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121839-1">
+         <xs:element minOccurs="0" name="type" type="xs:string" default="mail"
+            id="___d15e121840-1_type">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The mechanism used to deliver notifications.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="sendOnError" type="xs:boolean" default="true"
+            id="___d15e121846-1_sendOnErro">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Whether to send notifications on error.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="sendOnFailure" type="xs:boolean" default="true"
+            id="___d15e121852-1_sendOnFail">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Whether to send notifications on failure.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="sendOnSuccess" type="xs:boolean" default="true"
+            id="___d15e121858-1_sendOnSucc">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Whether to send notifications on success.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="sendOnWarning" type="xs:boolean" default="true"
+            id="___d15e121864-1_sendOnWarn">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Whether to send notifications on warning.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="address" type="xs:string" id="___d15e121870-1_address">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;b>Deprecated&lt;/b>. Where to send the notification to - eg email address.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="configuration" id="___d15e121876-1_configurat">
+            <xs:annotation>
+               <xs:documentation source="version">0.0.0+</xs:documentation>
+               <xs:documentation source="description">Extended configuration specific to this notifier goes here.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121882-1">
+               <xs:sequence id="___d15e121883-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Profile" id="___d15e121885-1_Profile">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Modifications to the build process which is activated based on environmental
+        parameters or command line arguments.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121891-1">
+         <xs:element minOccurs="0" name="id" type="xs:string" default="default"
+            id="___d15e121892-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The identifier of this build profile. This is used for command line
+            activation, and identifies profiles to be merged.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="activation" type="maven:Activation"
+            id="___d15e121898-1_activation">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The conditional logic which will automatically trigger the inclusion of this
+            profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="build" type="maven:BuildBase" id="___d15e121904-1_build">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Information required to build the project.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="modules" id="___d15e121910-1_modules">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The modules (sometimes called subprojects) to build as a part of this
+            project. Each module listed is a relative path to the directory containing the module.
+            To be consistent with the way default urls are calculated from parent, it is recommended
+            to have module names match artifact ids.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121916-1">
+               <xs:sequence id="___d15e121917-1">
+                  <xs:element name="module" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e121918-1_module"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="distributionManagement" type="maven:DistributionManagement"
+            id="___d15e121919-1_distributi">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Distribution information for a project that enables deployment of the site
+            and artifacts to remote web servers and repositories respectively.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="properties" id="___d15e121925-1_properties">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Properties that can be used throughout the POM as a substitution, and
+            are used as filters in resources if enabled.
+            The format is &lt;code>&amp;lt;name&amp;gt;value&amp;lt;/name&amp;gt;&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121931-1">
+               <xs:sequence id="___d15e121932-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="dependencyManagement" type="maven:DependencyManagement"
+            id="___d15e121934-1_dependency">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Default dependency information for projects that inherit from this one. The
+            dependencies in this section are not immediately resolved. Instead, when a POM derived
+            from this one declares a dependency described by a matching groupId and artifactId, the
+            version and other values from this section are used for that dependency if they were not
+            already specified.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="dependencies" id="___d15e121940-1_dependenci">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            This element describes all of the dependencies associated with a
+            project.
+            These dependencies are used to construct a classpath for your
+            project during the build process. They are automatically downloaded from the
+            repositories defined in this project.
+            See &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html">the
+            dependency mechanism&lt;/a> for more information.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121946-1">
+               <xs:sequence id="___d15e121947-1">
+                  <xs:element name="dependency" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Dependency" id="___d15e121948-1_dependency"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="repositories" id="___d15e121949-1_repositori">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The lists of the remote repositories for discovering dependencies and
+            extensions.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121955-1">
+               <xs:sequence id="___d15e121956-1">
+                  <xs:element name="repository" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Repository" id="___d15e121957-1_repository"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="pluginRepositories" id="___d15e121958-1_pluginRepo">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The lists of the remote repositories for discovering plugins for builds and
+            reports.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121964-1">
+               <xs:sequence id="___d15e121965-1">
+                  <xs:element name="pluginRepository" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Repository" id="___d15e121966-1_pluginRepo"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="reports" id="___d15e121967-1_reports">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;b>Deprecated&lt;/b>. Now ignored by Maven.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e121973-1">
+               <xs:sequence id="___d15e121974-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="reporting" type="maven:Reporting"
+            id="___d15e121977-1_reporting">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            This element includes the specification of report plugins to use
+            to generate the reports on the Maven-generated site.
+            These reports will be run when a user executes &lt;code>mvn site&lt;/code>.
+            All of the reports will be included in the navigation bar for browsing.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="BuildBase" id="___d15e121983-1_BuildBase">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">Generic informations for a build.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e121989-1">
+         <xs:element minOccurs="0" name="defaultGoal" type="xs:string"
+            id="___d15e121990-1_defaultGoa">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The default goal (or phase in Maven 2) to execute when none is specified for
+            the project. Note that in case of a multi-module build, only the default goal of the top-level
+            project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3,
+            multiple goals/phases can be separated by whitespace.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="resources" id="___d15e121996-1_resources">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element describes all of the classpath resources such as properties
+            files associated with a project. These resources are often included in the final
+            package.
+            The default value is &lt;code>src/main/resources&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122002-1">
+               <xs:sequence id="___d15e122003-1">
+                  <xs:element name="resource" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Resource" id="___d15e122004-1_resource"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="testResources" id="___d15e122005-1_testResour">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element describes all of the classpath resources such as properties
+            files associated with a project's unit tests.
+            The default value is &lt;code>src/test/resources&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122011-1">
+               <xs:sequence id="___d15e122012-1">
+                  <xs:element name="testResource" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Resource" id="___d15e122013-1_testResour"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="directory" type="xs:string" id="___d15e122014-1_directory">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            The directory where all files generated by the build are placed.
+            The default value is &lt;code>target&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="finalName" type="xs:string" id="___d15e122020-1_finalName">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The filename (excluding the extension, and with no path information) that
+            the produced artifact will be called.
+            The default value is &lt;code>${artifactId}-${version}&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="filters" id="___d15e122026-1_filters">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The list of filter properties files that are used when filtering is enabled.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122032-1">
+               <xs:sequence id="___d15e122033-1">
+                  <xs:element name="filter" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122034-1_filter"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="pluginManagement" type="maven:PluginManagement"
+            id="___d15e122035-1_pluginMana">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Default plugin information to be made available for reference by projects
+            derived from this one. This plugin configuration will not be resolved or bound to the
+            lifecycle unless referenced. Any local configuration for a given plugin will override
+            the plugin's entire definition here.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="plugins" id="___d15e122041-1_plugins">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The list of plugins to use.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122047-1">
+               <xs:sequence id="___d15e122048-1">
+                  <xs:element name="plugin" minOccurs="0" maxOccurs="unbounded" type="maven:Plugin"
+                     id="___d15e122049-1_plugin"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Plugin" id="___d15e122050-1_Plugin">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;plugin&amp;gt;&lt;/code> element contains informations required for a plugin.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122056-1">
+         <xs:element minOccurs="0" name="groupId" type="xs:string"
+            default="org.apache.maven.plugins" id="___d15e122057-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The group ID of the plugin in the repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e122063-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The artifact ID of the plugin in the repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e122069-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The version (or valid range of versions) of the plugin to be used.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="extensions" type="xs:string"
+            id="___d15e122075-1_extensions">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether to load Maven extensions (such as packaging and type handlers) from
+            this plugin. For performance reasons, this should only be enabled when necessary. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>false&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="executions" id="___d15e122081-1_executions">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Multiple specifications of a set of goals to execute during the build
+            lifecycle, each having (possibly) a different configuration.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122087-1">
+               <xs:sequence id="___d15e122088-1">
+                  <xs:element name="execution" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:PluginExecution" id="___d15e122089-1_execution"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="dependencies" id="___d15e122090-1_dependenci">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Additional dependencies that this project needs to introduce to the plugin's
+            classloader.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122096-1">
+               <xs:sequence id="___d15e122097-1">
+                  <xs:element name="dependency" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Dependency" id="___d15e122098-1_dependency"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="goals" id="___d15e122099-1_goals">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;b>Deprecated&lt;/b>. Unused by Maven.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122105-1">
+               <xs:sequence id="___d15e122106-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="inherited" type="xs:string" id="___d15e122108-1_inherited">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether any configuration should be propagated to child POMs. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>true&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="configuration" id="___d15e122114-1_configurat">
+            <xs:annotation>
+               <xs:documentation source="version">0.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;p>The configuration as DOM object.&lt;/p>
+            &lt;p>By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
+            &lt;code>xml:space="preserve"&lt;/code> to elements you want to preserve whitespace.&lt;/p>
+            &lt;p>You can control how child POMs inherit configuration from parent POMs by adding &lt;code>combine.children&lt;/code>
+            or &lt;code>combine.self&lt;/code> attributes to the children of the configuration element:&lt;/p>
+            &lt;ul>
+            &lt;li>&lt;code>combine.children&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>append&lt;/code>,&lt;/li>
+            &lt;li>&lt;code>combine.self&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>override&lt;/code>.&lt;/li>
+            &lt;/ul>
+            &lt;p>See &lt;a href="http://maven.apache.org/pom.html#Plugins">POM Reference documentation&lt;/a> and
+            &lt;a href="http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils&lt;/a>
+            for more information.&lt;/p>
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122120-1">
+               <xs:sequence id="___d15e122121-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Dependency" id="___d15e122123-1_Dependency">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;dependency&amp;gt;&lt;/code> element contains information about a dependency
+        of the project.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122129-1">
+         <xs:element minOccurs="0" name="groupId" type="xs:string" id="___d15e122130-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The project group that produced the dependency, e.g.
+            &lt;code>org.apache.maven&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e122136-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The unique id for an artifact produced by the project group, e.g.
+            &lt;code>maven-artifact&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e122142-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The version of the dependency, e.g. &lt;code>3.2.1&lt;/code>. In Maven 2, this can also be
+            specified as a range of versions.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="type" type="xs:string" default="jar"
+            id="___d15e122148-1_type">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The type of dependency. While it
+            usually represents the extension on the filename of the dependency,
+            that is not always the case. A type can be mapped to a different
+            extension and a classifier.
+            The type often corresponds to the packaging used, though this is also
+            not always the case.
+            Some examples are &lt;code>jar&lt;/code>, &lt;code>war&lt;/code>, &lt;code>ejb-client&lt;/code>
+            and &lt;code>test-jar&lt;/code>: see &lt;a href="../maven-core/artifact-handlers.html">default
+            artifact handlers&lt;/a> for a list.
+            New types can be defined by plugins that set
+            &lt;code>extensions&lt;/code> to &lt;code>true&lt;/code>, so this is not a complete list.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="classifier" type="xs:string"
+            id="___d15e122154-1_classifier">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The classifier of the dependency. It is appended to
+            the filename after the version. This allows:
+            &lt;ul>
+            &lt;li>refering to attached artifact, for example &lt;code>sources&lt;/code> and &lt;code>javadoc&lt;/code>:
+            see &lt;a href="../maven-core/artifact-handlers.html">default artifact handlers&lt;/a> for a list,&lt;/li>
+            &lt;li>distinguishing two artifacts
+            that belong to the same POM but were built differently.
+            For example, &lt;code>jdk14&lt;/code> and &lt;code>jdk15&lt;/code>.&lt;/li>
+            &lt;/ul>
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="scope" type="xs:string" id="___d15e122160-1_scope">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The scope of the dependency - &lt;code>compile&lt;/code>, &lt;code>runtime&lt;/code>,
+            &lt;code>test&lt;/code>, &lt;code>system&lt;/code>, and &lt;code>provided&lt;/code>. Used to
+            calculate the various classpaths used for compilation, testing, and so on.
+            It also assists in determining which artifacts to include in a distribution of
+            this project. For more information, see
+            &lt;a href="http://maven.apache.org/guides/introduction/introduction-to-dependency-mechanism.html">the
+            dependency mechanism&lt;/a>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="systemPath" type="xs:string"
+            id="___d15e122166-1_systemPath">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            FOR SYSTEM SCOPE ONLY. Note that use of this property is &lt;b>discouraged&lt;/b>
+            and may be replaced in later versions. This specifies the path on the filesystem
+            for this dependency.
+            Requires an absolute path for the value, not relative.
+            Use a property that gives the machine specific absolute path,
+            e.g. &lt;code>${java.home}&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="exclusions" id="___d15e122172-1_exclusions">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Lists a set of artifacts that should be excluded from this dependency's
+            artifact list when it comes to calculating transitive dependencies.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122178-1">
+               <xs:sequence id="___d15e122179-1">
+                  <xs:element name="exclusion" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Exclusion" id="___d15e122180-1_exclusion"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="optional" type="xs:string" id="___d15e122181-1_optional">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Indicates the dependency is optional for use of this library. While the
+            version of the dependency will be taken into account for dependency calculation if the
+            library is used elsewhere, it will not be passed on transitively. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>false&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Exclusion" id="___d15e122187-1_Exclusion">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;exclusion&amp;gt;&lt;/code> element contains informations required to exclude
+        an artifact to the project.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122193-1">
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e122194-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The artifact ID of the project to exclude.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="groupId" type="xs:string" id="___d15e122200-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The group ID of the project to exclude.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="PluginExecution" id="___d15e122206-1_PluginExec">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;execution&amp;gt;&lt;/code> element contains informations required for the
+        execution of a plugin.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122212-1">
+         <xs:element minOccurs="0" name="id" type="xs:string" default="default"
+            id="___d15e122213-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The identifier of this execution for labelling the goals during the build,
+            and for matching executions to merge during inheritance and profile injection.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="phase" type="xs:string" id="___d15e122219-1_phase">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The build lifecycle phase to bind the goals in this execution to. If omitted,
+            the goals will be bound to the default phase specified by the plugin. </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="goals" id="___d15e122225-1_goals">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The goals to execute with the given configuration.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122231-1">
+               <xs:sequence id="___d15e122232-1">
+                  <xs:element name="goal" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122233-1_goal"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="inherited" type="xs:string" id="___d15e122234-1_inherited">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether any configuration should be propagated to child POMs. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>true&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="configuration" id="___d15e122240-1_configurat">
+            <xs:annotation>
+               <xs:documentation source="version">0.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;p>The configuration as DOM object.&lt;/p>
+            &lt;p>By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
+            &lt;code>xml:space="preserve"&lt;/code> to elements you want to preserve whitespace.&lt;/p>
+            &lt;p>You can control how child POMs inherit configuration from parent POMs by adding &lt;code>combine.children&lt;/code>
+            or &lt;code>combine.self&lt;/code> attributes to the children of the configuration element:&lt;/p>
+            &lt;ul>
+            &lt;li>&lt;code>combine.children&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>append&lt;/code>,&lt;/li>
+            &lt;li>&lt;code>combine.self&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>override&lt;/code>.&lt;/li>
+            &lt;/ul>
+            &lt;p>See &lt;a href="http://maven.apache.org/pom.html#Plugins">POM Reference documentation&lt;/a> and
+            &lt;a href="http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils&lt;/a>
+            for more information.&lt;/p>
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122246-1">
+               <xs:sequence id="___d15e122247-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Resource" id="___d15e122250-1_Resource">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">This element describes all of the classpath resources associated with a project
+        or unit tests.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122256-1">
+         <xs:element minOccurs="0" name="targetPath" type="xs:string"
+            id="___d15e122257-1_targetPath">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Describe the resource target path. The path is relative to the target/classes
+            directory (i.e. &lt;code>${project.build.outputDirectory}&lt;/code>).
+            For example, if you want that resource to appear in a specific package
+            (&lt;code>org.apache.maven.messages&lt;/code>), you must specify this
+            element with this value: &lt;code>org/apache/maven/messages&lt;/code>.
+            This is not required if you simply put the resources in that directory
+            structure at the source, however.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="filtering" type="xs:string" id="___d15e122263-1_filtering">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether resources are filtered to replace tokens with parameterised values or not.
+            The values are taken from the &lt;code>properties&lt;/code> element and from the
+            properties in the files listed in the &lt;code>filters&lt;/code> element. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>false&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="directory" type="xs:string" id="___d15e122269-1_directory">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Describe the directory where the resources are stored. The path is relative
+            to the POM.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="includes" id="___d15e122275-1_includes">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            A list of patterns to include, e.g. &lt;code>**&amp;#47;*.xml&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122281-1">
+               <xs:sequence id="___d15e122282-1">
+                  <xs:element name="include" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122283-1_include"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="excludes" id="___d15e122284-1_excludes">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            A list of patterns to exclude, e.g. &lt;code>**&amp;#47;*.xml&lt;/code>
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122290-1">
+               <xs:sequence id="___d15e122291-1">
+                  <xs:element name="exclude" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122292-1_exclude"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="PluginManagement" id="___d15e122293-1_PluginMana">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Section for management of default plugin information for use in a group of POMs.
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122299-1">
+         <xs:element minOccurs="0" name="plugins" id="___d15e122300-1_plugins">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The list of plugins to use.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122306-1">
+               <xs:sequence id="___d15e122307-1">
+                  <xs:element name="plugin" minOccurs="0" maxOccurs="unbounded" type="maven:Plugin"
+                     id="___d15e122308-1_plugin"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Reporting" id="___d15e122309-1_Reporting">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Section for management of reports and their configuration.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122315-1">
+         <xs:element minOccurs="0" name="excludeDefaults" type="xs:string"
+            id="___d15e122316-1_excludeDef">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            If true, then the default reports are not included in the site generation.
+            This includes the reports in the "Project Info" menu. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>false&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="outputDirectory" type="xs:string"
+            id="___d15e122322-1_outputDire">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Where to store all of the generated reports. The default is
+            &lt;code>${project.build.directory}/site&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="plugins" id="___d15e122328-1_plugins">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The reporting plugins to use and their configuration.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122334-1">
+               <xs:sequence id="___d15e122335-1">
+                  <xs:element name="plugin" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:ReportPlugin" id="___d15e122336-1_plugin"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="ReportPlugin" id="___d15e122337-1_ReportPlug">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;plugin&amp;gt;&lt;/code> element contains informations required for a report plugin.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122343-1">
+         <xs:element minOccurs="0" name="groupId" type="xs:string"
+            default="org.apache.maven.plugins" id="___d15e122344-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The group ID of the reporting plugin in the repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e122350-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The artifact ID of the reporting plugin in the repository.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e122356-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The version of the reporting plugin to be used.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="reportSets" id="___d15e122362-1_reportSets">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Multiple specifications of a set of reports, each having (possibly) different
+            configuration. This is the reporting parallel to an &lt;code>execution&lt;/code> in the build.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122368-1">
+               <xs:sequence id="___d15e122369-1">
+                  <xs:element name="reportSet" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:ReportSet" id="___d15e122370-1_reportSet"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="inherited" type="xs:string" id="___d15e122371-1_inherited">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether any configuration should be propagated to child POMs. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>true&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="configuration" id="___d15e122377-1_configurat">
+            <xs:annotation>
+               <xs:documentation source="version">0.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;p>The configuration as DOM object.&lt;/p>
+            &lt;p>By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
+            &lt;code>xml:space="preserve"&lt;/code> to elements you want to preserve whitespace.&lt;/p>
+            &lt;p>You can control how child POMs inherit configuration from parent POMs by adding &lt;code>combine.children&lt;/code>
+            or &lt;code>combine.self&lt;/code> attributes to the children of the configuration element:&lt;/p>
+            &lt;ul>
+            &lt;li>&lt;code>combine.children&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>append&lt;/code>,&lt;/li>
+            &lt;li>&lt;code>combine.self&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>override&lt;/code>.&lt;/li>
+            &lt;/ul>
+            &lt;p>See &lt;a href="http://maven.apache.org/pom.html#Plugins">POM Reference documentation&lt;/a> and
+            &lt;a href="http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils&lt;/a>
+            for more information.&lt;/p>
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122383-1">
+               <xs:sequence id="___d15e122384-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="ReportSet" id="___d15e122386-1_ReportSet">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Represents a set of reports and configuration to be used to generate them.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122392-1">
+         <xs:element minOccurs="0" name="id" type="xs:string" default="default"
+            id="___d15e122393-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">0.0.0+</xs:documentation>
+               <xs:documentation source="description">The unique id for this report set, to be used during POM inheritance and profile injection
+            for merging of report sets.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="reports" id="___d15e122399-1_reports">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The list of reports from this plugin which should be generated from this set.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122405-1">
+               <xs:sequence id="___d15e122406-1">
+                  <xs:element name="report" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122407-1_report"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="inherited" type="xs:string" id="___d15e122408-1_inherited">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Whether any configuration should be propagated to child POMs. Note: While the type
+            of this field is &lt;code>String&lt;/code> for technical reasons, the semantic type is actually
+            &lt;code>Boolean&lt;/code>. Default value is &lt;code>true&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="configuration" id="___d15e122414-1_configurat">
+            <xs:annotation>
+               <xs:documentation source="version">0.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            &lt;p>The configuration as DOM object.&lt;/p>
+            &lt;p>By default, every element content is trimmed, but starting with Maven 3.1.0, you can add
+            &lt;code>xml:space="preserve"&lt;/code> to elements you want to preserve whitespace.&lt;/p>
+            &lt;p>You can control how child POMs inherit configuration from parent POMs by adding &lt;code>combine.children&lt;/code>
+            or &lt;code>combine.self&lt;/code> attributes to the children of the configuration element:&lt;/p>
+            &lt;ul>
+            &lt;li>&lt;code>combine.children&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>append&lt;/code>,&lt;/li>
+            &lt;li>&lt;code>combine.self&lt;/code>: available values are &lt;code>merge&lt;/code> (default) and &lt;code>override&lt;/code>.&lt;/li>
+            &lt;/ul>
+            &lt;p>See &lt;a href="http://maven.apache.org/pom.html#Plugins">POM Reference documentation&lt;/a> and
+            &lt;a href="http://plexus.codehaus.org/plexus-utils/apidocs/org/codehaus/plexus/util/xml/Xpp3DomUtils.html">Xpp3DomUtils&lt;/a>
+            for more information.&lt;/p>
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122420-1">
+               <xs:sequence id="___d15e122421-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Activation" id="___d15e122423-1_Activation">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">The conditions within the build runtime environment which will trigger the
+        automatic inclusion of the build profile. Multiple conditions can be defined, which must
+        be all satisfied to activate the profile.
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122429-1">
+         <xs:element minOccurs="0" name="activeByDefault" type="xs:boolean" default="false"
+            id="___d15e122430-1_activeByDe">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">If set to true, this profile will be active unless another profile in this
+            pom is activated using the command line -P option or by one of that profile's
+            activators.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="jdk" type="xs:string" id="___d15e122436-1_jdk">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            Specifies that this profile will be activated when a matching JDK is detected.
+            For example, &lt;code>1.4&lt;/code> only activates on JDKs versioned 1.4,
+            while &lt;code>!1.4&lt;/code> matches any JDK that is not version 1.4. Ranges are supported too:
+            &lt;code>[1.5,)&lt;/code> activates when the JDK is 1.5 minimum.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="os" type="maven:ActivationOS" id="___d15e122442-1_os">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Specifies that this profile will be activated when matching operating system
+            attributes are detected.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="property" type="maven:ActivationProperty"
+            id="___d15e122448-1_property">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Specifies that this profile will be activated when this system property is
+            specified.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="file" type="maven:ActivationFile" id="___d15e122454-1_file">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Specifies that this profile will be activated based on existence of a file.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="ActivationProperty" id="___d15e122460-1_Activation">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">This is the property specification used to activate a profile. If the value field
+        is empty, then the existence of the named property will activate the profile, otherwise it
+        does a case-sensitive match against the property value as well.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122466-1">
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e122467-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The name of the property to be used to activate a profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="value" type="xs:string" id="___d15e122473-1_value">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The value of the property required to activate a profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="ActivationOS" id="___d15e122479-1_Activation">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">This is an activator which will detect an operating system's attributes in order
+        to activate its profile.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122485-1">
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e122486-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The name of the operating system to be used to activate the profile. This must be an exact match
+            of the &lt;code>${os.name}&lt;/code> Java property, such as &lt;code>Windows XP&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="family" type="xs:string" id="___d15e122492-1_family">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The general family of the OS to be used to activate the profile, such as
+            &lt;code>windows&lt;/code> or &lt;code>unix&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="arch" type="xs:string" id="___d15e122498-1_arch">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The architecture of the operating system to be used to activate the
+          profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e122504-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The version of the operating system to be used to activate the
+          profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="ActivationFile" id="___d15e122510-1_Activation">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">This is the file specification used to activate the profile. The &lt;code>missing&lt;/code> value
+        is the location of a file that needs to exist, and if it doesn't, the profile will be
+        activated. On the other hand, &lt;code>exists&lt;/code> will test for the existence of the file and if it is
+        there, the profile will be activated.&lt;br/>
+        Variable interpolation for these file specifications is limited to &lt;code>${basedir}&lt;/code>,
+        System properties and request properties.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122516-1">
+         <xs:element minOccurs="0" name="missing" type="xs:string" id="___d15e122517-1_missing">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The name of the file that must be missing to activate the
+          profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="exists" type="xs:string" id="___d15e122523-1_exists">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The name of the file that must exist to activate the profile.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="DependencyManagement" id="___d15e122529-1_Dependency">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Section for management of default dependency information for use in a group of
+        POMs.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122535-1">
+         <xs:element minOccurs="0" name="dependencies" id="___d15e122536-1_dependenci">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The dependencies specified here are not used until they are referenced in a
+            POM within the group. This allows the specification of a "standard" version for a
+            particular dependency.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122542-1">
+               <xs:sequence id="___d15e122543-1">
+                  <xs:element name="dependency" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Dependency" id="___d15e122544-1_dependency"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Build" id="___d15e122545-1_Build">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">
+        
+        The &lt;code>&amp;lt;build&amp;gt;&lt;/code> element contains informations required to build the project.
+        Default values are defined in Super POM.
+        
+      </xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122551-1">
+         <xs:element minOccurs="0" name="sourceDirectory" type="xs:string"
+            id="___d15e122552-1_sourceDire">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element specifies a directory containing the source of the project. The
+            generated build system will compile the sources from this directory when the project is
+            built. The path given is relative to the project descriptor.
+            The default value is &lt;code>src/main/java&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="scriptSourceDirectory" type="xs:string"
+            id="___d15e122558-1_scriptSour">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element specifies a directory containing the script sources of the
+            project. This directory is meant to be different from the sourceDirectory, in that its
+            contents will be copied to the output directory in most cases (since scripts are
+            interpreted rather than compiled).
+            The default value is &lt;code>src/main/scripts&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="testSourceDirectory" type="xs:string"
+            id="___d15e122564-1_testSource">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element specifies a directory containing the unit test source of the
+            project. The generated build system will compile these directories when the project is
+            being tested. The path given is relative to the project descriptor.
+            The default value is &lt;code>src/test/java&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="outputDirectory" type="xs:string"
+            id="___d15e122570-1_outputDire">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            The directory where compiled application classes are placed.
+            The default value is &lt;code>target/classes&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="testOutputDirectory" type="xs:string"
+            id="___d15e122576-1_testOutput">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            The directory where compiled test classes are placed.
+            The default value is &lt;code>target/test-classes&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="extensions" id="___d15e122582-1_extensions">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">A set of build extensions to use from this project.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122588-1">
+               <xs:sequence id="___d15e122589-1">
+                  <xs:element name="extension" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Extension" id="___d15e122590-1_extension"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="defaultGoal" type="xs:string"
+            id="___d15e122591-1_defaultGoa">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The default goal (or phase in Maven 2) to execute when none is specified for
+            the project. Note that in case of a multi-module build, only the default goal of the top-level
+            project is relevant, i.e. the default goals of child modules are ignored. Since Maven 3,
+            multiple goals/phases can be separated by whitespace.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="resources" id="___d15e122597-1_resources">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element describes all of the classpath resources such as properties
+            files associated with a project. These resources are often included in the final
+            package.
+            The default value is &lt;code>src/main/resources&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122603-1">
+               <xs:sequence id="___d15e122604-1">
+                  <xs:element name="resource" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Resource" id="___d15e122605-1_resource"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="testResources" id="___d15e122606-1_testResour">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            This element describes all of the classpath resources such as properties
+            files associated with a project's unit tests.
+            The default value is &lt;code>src/test/resources&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122612-1">
+               <xs:sequence id="___d15e122613-1">
+                  <xs:element name="testResource" minOccurs="0" maxOccurs="unbounded"
+                     type="maven:Resource" id="___d15e122614-1_testResour"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="directory" type="xs:string" id="___d15e122615-1_directory">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            The directory where all files generated by the build are placed.
+            The default value is &lt;code>target&lt;/code>.
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="finalName" type="xs:string" id="___d15e122621-1_finalName">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The filename (excluding the extension, and with no path information) that
+            the produced artifact will be called.
+            The default value is &lt;code>${artifactId}-${version}&lt;/code>.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="filters" id="___d15e122628-1_filters">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The list of filter properties files that are used when filtering is enabled.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122634-1">
+               <xs:sequence id="___d15e122635-1">
+                  <xs:element name="filter" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122636-1_filter"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="pluginManagement" type="maven:PluginManagement"
+            id="___d15e122637-1_pluginMana">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">Default plugin information to be made available for reference by projects
+            derived from this one. This plugin configuration will not be resolved or bound to the
+            lifecycle unless referenced. Any local configuration for a given plugin will override
+            the plugin's entire definition here.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="plugins" id="___d15e122643-1_plugins">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The list of plugins to use.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122649-1">
+               <xs:sequence id="___d15e122650-1">
+                  <xs:element name="plugin" minOccurs="0" maxOccurs="unbounded" type="maven:Plugin"
+                     id="___d15e122651-1_plugin"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Extension" id="___d15e122653-1_Extension">
+      <xs:annotation>
+         <xs:documentation source="version">4.0.0+</xs:documentation>
+         <xs:documentation source="description">Describes a build extension to utilise.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122659-1">
+         <xs:element minOccurs="0" name="groupId" type="xs:string" id="___d15e122660-1_groupId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The group ID of the extension's artifact.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="artifactId" type="xs:string"
+            id="___d15e122666-1_artifactId">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The artifact ID of the extension.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="version" type="xs:string" id="___d15e122672-1_version">
+            <xs:annotation>
+               <xs:documentation source="version">4.0.0+</xs:documentation>
+               <xs:documentation source="description">The version of the extension.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="License" id="___d15e122678-1_License">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">Describes the licenses for this project. This is used to generate the license
+        page of the project's web site, as well as being taken into consideration in other reporting
+        and validation. The licenses listed for the project are that of the project itself, and not
+        of dependencies.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122684-1">
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e122685-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The full legal name of the license.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e122691-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The official url for the license text.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="distribution" type="xs:string"
+            id="___d15e122697-1_distributi">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The primary method by which this project may be distributed.
+            &lt;dl>
+              &lt;dt>repo&lt;/dt>
+              &lt;dd>may be downloaded from the Maven repository&lt;/dd>
+              &lt;dt>manual&lt;/dt>
+              &lt;dd>user must manually download and install the dependency.&lt;/dd>
+            &lt;/dl>
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="comments" type="xs:string" id="___d15e122703-1_comments">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Addendum information pertaining to this license.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="MailingList" id="___d15e122709-1_MailingLis">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">This element describes all of the mailing lists associated with a project. The
+        auto-generated site references this information.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122715-1">
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e122716-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The name of the mailing list.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="subscribe" type="xs:string" id="___d15e122722-1_subscribe">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The email address or link that can be used to subscribe to
+            the mailing list.  If this is an email address, a
+            &lt;code>mailto:&lt;/code> link will automatically be created
+            when the documentation is created.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="unsubscribe" type="xs:string"
+            id="___d15e122728-1_unsubscrib">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The email address or link that can be used to unsubscribe to
+            the mailing list.  If this is an email address, a
+            &lt;code>mailto:&lt;/code> link will automatically be created
+            when the documentation is created.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="post" type="xs:string" id="___d15e122734-1_post">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The email address or link that can be used to post to
+            the mailing list.  If this is an email address, a
+            &lt;code>mailto:&lt;/code> link will automatically be created
+            when the documentation is created.
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="archive" type="xs:string" id="___d15e122740-1_archive">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The link to a URL where you can browse the mailing list archive.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="otherArchives" id="___d15e122746-1_otherArchi">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The link to alternate URLs where you can browse the list archive.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122752-1">
+               <xs:sequence id="___d15e122753-1">
+                  <xs:element name="otherArchive" minOccurs="0" maxOccurs="unbounded"
+                     type="xs:string" id="___d15e122754-1_otherArchi"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+   <xs:complexType name="Developer" id="___d15e122755-1_Developer">
+      <xs:annotation>
+         <xs:documentation source="version">3.0.0+</xs:documentation>
+         <xs:documentation source="description">Information about one of the committers on this project.</xs:documentation>
+      </xs:annotation>
+      <xs:all id="___d15e122761-1">
+         <xs:element minOccurs="0" name="id" type="xs:string" id="___d15e122762-1_id">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The unique ID of the developer in the SCM.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="name" type="xs:string" id="___d15e122768-1_name">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The full name of the contributor.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="email" type="xs:string" id="___d15e122774-1_email">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The email address of the contributor.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="url" type="xs:string" id="___d15e122780-1_url">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The URL for the homepage of the contributor.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="organization" type="xs:string"
+            id="___d15e122786-1_organizati">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The organization to which the contributor belongs.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="organizationUrl" type="xs:string"
+            id="___d15e122792-1_organizati">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">The URL of the organization.</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="roles" id="___d15e122798-1_roles">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+            The roles the contributor plays in the project. Each role is described by a
+            &lt;code>role&lt;/code> element, the body of which is a role name. This can also be used to
+            describe the contribution.
+            
+          </xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122804-1">
+               <xs:sequence id="___d15e122805-1">
+                  <xs:element name="role" minOccurs="0" maxOccurs="unbounded" type="xs:string"
+                     id="___d15e122806-1_role"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+         <xs:element minOccurs="0" name="timezone" type="xs:string" id="___d15e122807-1_timezone">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">
+            
+              The timezone the contributor is in. Typically, this is a number in the range
+              &lt;a href="http://en.wikipedia.org/wiki/UTC%E2%88%9212:00">-12&lt;/a> to &lt;a href="http://en.wikipedia.org/wiki/UTC%2B14:00">+14&lt;/a>
+              or a valid time zone id like "America/Montreal" (UTC-05:00) or "Europe/Paris" (UTC+01:00).
+            
+          </xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element minOccurs="0" name="properties" id="___d15e122813-1_properties">
+            <xs:annotation>
+               <xs:documentation source="version">3.0.0+</xs:documentation>
+               <xs:documentation source="description">Properties about the contributor, such as an instant messenger handle.</xs:documentation>
+            </xs:annotation>
+            <xs:complexType id="___d15e122819-1">
+               <xs:sequence id="___d15e122820-1">
+                  <xs:any minOccurs="0" maxOccurs="unbounded" processContents="skip"/>
+               </xs:sequence>
+            </xs:complexType>
+         </xs:element>
+      </xs:all>
+   </xs:complexType>
+</xs:schema>

+ 131 - 0
SE/schema/Types/Default.xsd

@@ -0,0 +1,131 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:Types__x3A__default_Default="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd"
+           xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+           xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+           xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+           xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd"
+           vc:minVersion="1.1">
+   <xs:annotation>
+      <xs:documentation xml:lang="pl">LICENCJA:
+Wszelkie prawa zastrzeżone na rzecz firmy BIALL-NET sp. z o.o. 80-174 Gdańsk, Otomin ul. Słoneczna 43.
+Rozprowadzanie i dystrybucja i tworzenie materiałów zależnych zabronione.
+
+
+Dokumentacja bazowych elementów do zarządzania infrastrukturą.</xs:documentation>
+   </xs:annotation>
+   <xs:import namespace="http://www.opengis.net/gml/3.2"
+              schemaLocation="../Types/gml.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+              schemaLocation="../SystemObjects/AccessGroup.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+              schemaLocation="../SystemObjects/AccessOwner.xsd"/>
+   <!--<xs:import namespace="https://biuro.biall-net.pl/wfs/default_objects"
+              schemaLocation="../SystemObjects/default_objects.xsd"/>-->
+   <xs:simpleType name="A_STATUS_Type" id="ult_Default___d4e26695-1_A_STATUS_T">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="NORMAL"/>
+         <xs:enumeration value="WAITING"/>
+         <xs:enumeration value="MONITOR"/>
+         <xs:enumeration value="DELETED"/>
+         <xs:enumeration value="WARNING"/>
+         <xs:enumeration value="OFF_SOFT"/>
+         <xs:enumeration value="OFF_HARD"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="Default"
+                   abstract="true"
+                   id="ult_Default___d4e26704-1_Default">
+      <xs:annotation>
+         <xs:documentation>Instancyjny - 
+Protopyowy obiekt, który powinien mieć typy konkretnych rodzaji dla różnych technologii. Podzielony z uwagi na stany projektowania oraz realizacji.
+
+</xs:documentation>
+      </xs:annotation>
+      <xs:sequence id="ult_Default___d4e26708-1"><!--<xs:element name="the_geom"
+                     type="gml:AbstractFeatureType"
+                     id="ult_Default___d4e26709-1_the_geom">
+            <xs:annotation>
+               <xs:documentation>Dane geograficzne obiektu - linia, punkt, polygon</xs:documentation>
+            </xs:annotation>
+         </xs:element>--><!--<xs:element name="A_STATUS"
+                     type="Types__x3A__default_Default:A_STATUS_Type"
+                     id="ult_Default___d4e26713-1_A_STATUS"/>--><!--<xs:element name="A_STATUS_INFO"
+                     type="xs:string"
+                     id="ult_Default___d4e26714-1_A_STATUS_I"/>--><!--<xs:element name="L_APPOITMENT_USER"
+                     type="xs:string"
+                     id="ult_Default___d4e26715-1_L_APPOITME"/>-->
+         <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                     id="ult_Default___d4e26716-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/login"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element name="A_CLASSIFIED"
+                     type="xs:string"
+                     id="ult_Default___d4e26721-1_A_CLASSIFI"/>-->
+         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="ult_Default___d4e26722-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/uid"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element name="A_ADM_COMPANY"
+                     type="xs:string"
+                     id="ult_Default___d4e26727-1_A_ADM_COMP"/>-->
+         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="ult_Default___d4e26728-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/uid"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                id="default_infrastructure___d24e156">
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+         <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                id="default_infrastructure___d24e175">
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+         <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                id="default_infrastructure___d24e184">
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+      </xs:sequence>
+   </xs:complexType>
+   <xs:element name="Default"
+               type="Types__x3A__default_Default:Default"
+               abstract="true"
+               id="ult_Default___d4e26736-1_Default"/>
+</xs:schema>

+ 54 - 0
SE/schema/Types/Empty.xsd

@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:Types__x3A__default_Empty="https://biuro.biall-net.pl/wfs/default_db/Types/Empty.xsd"
+           xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/Types/Empty.xsd"
+           vc:minVersion="1.1">
+   <xs:annotation>
+      <xs:documentation xml:lang="pl">LICENCJA:
+Wszelkie prawa zastrzeżone na rzecz firmy BIALL-NET sp. z o.o. 80-174 Gdańsk, Otomin ul. Słoneczna 43.
+Rozprowadzanie i dystrybucja i tworzenie materiałów zależnych zabronione.
+
+
+Dokumentacja bazowych elementów do zarządzania.</xs:documentation>
+   </xs:annotation>
+   <xs:import namespace="http://www.opengis.net/gml/3.2"
+              schemaLocation="../Types/gml.xsd"/>
+   <xs:complexType name="Empty" abstract="true" id="ult_Default___d4e26704-1_Default">
+      <xs:annotation>
+         <xs:documentation>Instancyjny - 
+Protopyowy obiekt, który powinien mieć typy konkretnych rodzaji dla różnych technologii. Podzielony z uwagi na stany projektowania oraz realizacji.
+
+</xs:documentation>
+      </xs:annotation>
+      <xs:sequence id="ult_Default___d4e26708-1"><!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                id="default_infrastructure___d24e156">
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu --><!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                id="default_infrastructure___d24e175">
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>--><!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                id="default_infrastructure___d24e184">
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>--></xs:sequence>
+   </xs:complexType>
+   <xs:element name="Empty"
+               type="Types__x3A__default_Empty:Empty"
+               abstract="true"
+               id="ult_Default___d4e26736-1_Default"/>
+</xs:schema>

+ 21 - 0
SE/schema/Types/gml.xsd

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" 
+   xmlns:gml="http://www.opengis.net/gml/3.2"
+   xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+   xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+   xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   elementFormDefault="qualified" targetNamespace="http://www.opengis.net/gml/3.2"
+   vc:minVersion="1.1">
+   <xs:annotation>
+      <xs:documentation>Ograniczony sztuczny schemat do prostych dziedziczen dla WFS</xs:documentation>
+   </xs:annotation>
+   <xs:complexType abstract="true" name="AbstractFeatureType" id="gml___d13e10403-1_AbstractFe"/>
+   <xs:element name="AbstractFeature" type="gml:AbstractFeatureType" id="___d19e10604-1_AbstractFe"/>
+   <xs:complexType abstract="true" name="SurfacePropertyType" id="gml___d13e10405-1_SurfacePro">
+      <xs:simpleContent>
+         <xs:extension base="xs:string" id="gml___d13e10409-1"/>
+      </xs:simpleContent>
+   </xs:complexType>
+</xs:schema>

+ 4710 - 0
SE/schema/Types/infrastructure.xsd

@@ -0,0 +1,4710 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:gml="http://www.opengis.net/gml/3.2"
+           xmlns:Types__x3A__default_infrastructure="https://biuro.biall-net.pl/wfs/default_db/Types/infrastructure.xsd"
+           xmlns:default_db__x3A__IN7_DZIENNIK_KORESP="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
+           xmlns:hfp="http://www.w3.org/2001/XMLSchema-hasFacetAndProperty"
+           xmlns:default_db__x3A__ADMIN_USERS="https://biuro.biall-net.pl/wfs/default_db/table/ADMIN_USERS.xsd"
+           xmlns:default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
+           xmlns:SystemObjects__x3A__AccessGroup="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+           xmlns:SystemObjects__x3A__AccessOwner="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+           xmlns:default_db__x3A__CRM_LISTA_ZASOBOW="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
+           xmlns:default_db__x3A__InvestArrangements="https://biuro.biall-net.pl/wfs/default_db/table/InvestArrangements.xsd"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="https://biuro.biall-net.pl/wfs/default_db/Types/infrastructure.xsd"
+           vc:minVersion="1.1">
+   <xs:annotation>
+      <xs:documentation xml:lang="pl">LICENCJA: Wszelkie prawa zastrzeżone na rzecz firmy BIALL-NET
+         sp. z o.o. 80-174 Gdańsk, Otomin ul. Słoneczna 43. Rozprowadzanie i dystrybucja i tworzenie
+         materiałów zależnych zabronione. Dokumentacja bazowych elementów do zarządzania
+         infrastrukturą.</xs:documentation>
+   </xs:annotation>
+   <xs:import namespace="http://www.opengis.net/gml/3.2"
+              schemaLocation="../Types/gml.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd"
+              schemaLocation="../table/IN7_DZIENNIK_KORESP.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"
+              schemaLocation="../table/IN7_MK_BAZA_DYSTRYBUCJI.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessGroup.xsd"
+              schemaLocation="../SystemObjects/AccessGroup.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/AccessOwner.xsd"
+              schemaLocation="../SystemObjects/AccessOwner.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/CRM_LISTA_ZASOBOW.xsd"
+              schemaLocation="../table/CRM_LISTA_ZASOBOW.xsd"/>
+   <xs:import namespace="https://biuro.biall-net.pl/wfs/default_db/table/InvestArrangements.xsd"
+              schemaLocation="../table/InvestArrangements.xsd"/>
+   <!--<xs:import namespace="https://biuro.biall-net.pl/wfs/default_objects"
+              schemaLocation="../SystemObjects/default_objects.xsd"/>-->
+   <xs:simpleType name="ID_KORESP" id="rastructure___d4e39783-1_ID_KORESP">
+      <xs:restriction base="xs:int"/>
+   </xs:simpleType>
+   <xs:simpleType name="ID_KORESP_SET" id="rastructure___d4e39785-1_ID_KORESP_">
+      <xs:restriction base="Types__x3A__default_infrastructure:ID_KORESP">
+         <xs:minInclusive value="1"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="ID_KORESP_UNSET" id="rastructure___d4e39788-1_ID_KORESP_">
+      <xs:restriction base="Types__x3A__default_infrastructure:ID_KORESP">
+         <xs:enumeration value="0"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:complexType name="infrastructure"
+                   abstract="true"
+                   id="rastructure___d4e39792-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Instancyjny - Protopyowy obiekt, który powinien mieć typy konkretnych
+            rodzaji dla różnych technologii. Podzielony z uwagi na stany projektowania oraz
+            realizacji. </xs:documentation>
+      </xs:annotation>
+      <xs:sequence id="rastructure___d4e39796-1">
+         <xs:element name="ID" type="xs:int" id="rastructure___d4e39797-1_ID"/>
+         <xs:element name="the_geom"
+                     type="gml:AbstractFeatureType"
+                     id="rastructure___d4e39798-1_the_geom">
+            <xs:annotation>
+               <xs:documentation>Dane geograficzne obiektu - linia, punkt,
+                  polygon</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="A_STATUS_INFO"
+                     type="xs:string"
+                     id="rastructure___d4e39802-1_A_STATUS_I"/>
+         <xs:element name="opis" type="xs:string" id="rastructure___d4e39803-1_opis">
+            <xs:annotation>
+               <xs:documentation>To zmiany na ID_ZASOBU pod katem kosztorysowym</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_ZASOB"
+                     type="xs:int"
+                     id="rastructure___d4e39807-1_ID_ZASOB"/>
+         <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                     id="rastructure___d4e39808-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                   system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="Dlugosc"
+                     type="xs:double"
+                     id="rastructure___d4e39813-1_Dlugosc"/>
+         <xs:element name="Powierzchnia"
+                     type="xs:double"
+                     id="rastructure___d4e39814-1_Powierzchn"/>
+         <xs:element name="L_APPOITMENT_USER"
+                     type="xs:string"
+                     id="rastructure___d4e39815-1_L_APPOITME"/>
+         <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                     id="rastructure___d4e39816-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/login"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="A_CLASSIFIED"
+                     type="xs:string"
+                     id="rastructure___d4e39821-1_A_CLASSIFI"/>
+         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                     id="rastructure___d4e39823-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/uid"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="A_ADM_COMPANY"
+                     type="xs:string"
+                     id="rastructure___d4e39828-1_A_ADM_COMP"/>
+         <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                     id="rastructure___d4e39829-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                   system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/uid"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_PROJECT"
+                     type="xs:int"
+                     id="rastructure___d4e39834-1_ID_PROJECT"/>
+         <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                     minOccurs="0"
+                     id="rastructure___d4e31111-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+         <xs:element name="ID_KORESP_PROJEKT"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39836-1_ID_KORESP_"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                     maxOccurs="unbounded"
+                     id="rastructure___d4e39837-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z zasadami
+                  projektowania</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_PROJEKT_WYK"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39844-1_ID_KORESP_"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                     maxOccurs="unbounded"
+                     id="rastructure___d4e39845-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z zasadami
+                  projektowania - proj wykonawczy</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_DO_REALIZ"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39852-1_ID_KORESP_"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                     id="rastructure___d4e39853-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_OFFER"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39861-1_ID_KORESP_"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                     id="rastructure___d4e39862-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_DO_UZG"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39869-1_ID_KORESP_"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                     id="rastructure___d4e39870-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu, do
+                  właściciela nieruchomości</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_UZG"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39877-1_ID_KORESP_"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                     id="rastructure___d4e39878-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela. Brak
+                  zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                  zgody</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39885-1_ID_KORESP_"/>
+         <xs:element maxOccurs="unbounded"
+                     minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                     id="rastructure___d4e39886-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie ZUD</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_UZG_ZUD"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39893-1_ID_KORESP_"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                     id="rastructure___d4e39894-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_ZLECENIE"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39901-1_ID_KORESP_"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                     id="rastructure___d4e39903-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Powiązanie obiektu ze zleceniem na wykonanie obiektu przez
+                  wykonawce</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_ZGL_ODB"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39910-1_ID_KORESP_"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                     id="rastructure___d4e39911-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                  odbioru=wykonanie</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_POM_GEOD"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39918-1_ID_KORESP_"/>
+         <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                     minOccurs="0"
+                     id="rastructure___d4e39919-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane oraz są
+                  powiązane do dokumentu z operatem</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <xs:element name="ID_KORESP_PROTOK_ODB"
+                     type="Types__x3A__default_infrastructure:ID_KORESP"
+                     id="rastructure___d4e39926-1_ID_KORESP_"/>
+         <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                     minOccurs="0"
+                     id="rastructure___d4e39927-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel, wykonawca,
+                  inwestor</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+         <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                id="default_infrastructure___d24e156">
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+         <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                id="default_infrastructure___d24e175">
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+         <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                id="default_infrastructure___d24e184">
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+         <xs:element name="InvestArrangements_Network_Crossings"
+                     type="xs:int"
+                     id="rastructure___d4e39937-1_InvestArra"/>
+         <xs:element minOccurs="0"
+                     ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                     id="rastructure___d4e39939-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                   system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+               <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+            </xs:annotation>
+         </xs:element>
+      </xs:sequence>
+      <xs:attribute name="label" type="xs:string" id="rastructure___d5e156011-1_label"/>
+      <xs:assert test="@label = concat(opis, ID_PROJECT, Dlugosc)"
+                 id="rastructure___d6e158274-1"/>
+      <xs:assert test="Dlugosc = gml:shape_size(the_geom)"
+                 id="rastructure___d6e158275-1">
+         <xs:annotation>
+            <xs:documentation>TODO Powinna być funkcja licząca długość dynamicznie na podstawie danych w GMLu - natywnie przeskakujaca jako trigger lub/i w silniku przy aktualizacjach</xs:documentation>
+         </xs:annotation>
+      </xs:assert>
+   </xs:complexType>
+   <xs:element name="infrastructure"
+               type="Types__x3A__default_infrastructure:infrastructure"
+               abstract="true"
+               id="rastructure___d4e39946-1_Infrastruc"/>
+   <xs:complexType name="infrastructure_DRAFT" id="rastructure___d4e39947-1_Infrastruc">
+      <xs:complexContent id="rastructure___d4e39948-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure">
+            <xs:sequence id="rastructure___d4e39950-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e39951-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e39952-1_the_geom">
+                  <xs:annotation>
+                     <xs:documentation>Dane geograficzne obiektu - linia, punkt,
+                        polygon</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e39956-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e39957-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e39961-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e39962-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e39967-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e39968-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e39969-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e39970-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/login"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e39975-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e39977-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/uid"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e39982-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e39983-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/uid"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e39988-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                     minOccurs="0"
+                     id="rastructure___d4e31111-1">
+            <xs:annotation>
+               <xs:appinfo>
+                  <system_cache__appinfo:flat_relation_cache>
+                     <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                   system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                  </system_cache__appinfo:flat_relation_cache>
+               </xs:appinfo>
+            </xs:annotation>
+         </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_UNSET"
+                           id="rastructure___d4e39990-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="0"
+                           id="rastructure___d4e39991-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e39998-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e39999-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40006-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e40007-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40015-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40016-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40023-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40024-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40031-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40032-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40039-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40040-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40047-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           id="rastructure___d4e40048-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40055-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           id="rastructure___d4e40057-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie obiektu ze zleceniem na wykonanie obiektu przez
+                        wykonawce</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40064-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           id="rastructure___d4e40065-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40072-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e40073-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40080-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40081-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                id="default_infrastructure___d24e156">
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                id="default_infrastructure___d24e175">
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                id="default_infrastructure___d24e184">
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e40091-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e40093-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_DRAFT"
+               type="Types__x3A__default_infrastructure:infrastructure_DRAFT"
+               id="rastructure___d4e40100-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="Draft"/>
+         </xs:appinfo>
+      </xs:annotation>
+      <xs:unique name="primary.infrastructure_DRAFT">
+         <xs:selector xpath="."/>
+         <xs:field xpath="ID"/>
+      </xs:unique>
+   </xs:element>
+   <xs:complexType name="infrastructure_PROJEKT"
+                   abstract="true"
+                   id="rastructure___d4e40107-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Generalnie prototyp obiektu już jest jego planem, dla tego na ten moment
+            bedzie to extensions obiektu infrastruktury</xs:documentation>
+      </xs:annotation>
+      <xs:complexContent id="rastructure___d4e40111-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure">
+            <xs:sequence id="rastructure___d4e40113-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e40114-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e40115-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e40117-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e40118-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e40122-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e40123-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e40128-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e40129-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e40130-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e40131-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/login"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e40137-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e40138-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/uid"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e40143-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e40144-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupWrite/uid"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e40149-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e31247-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40151-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40152-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>stworzono i wydrukowano fizycznie dokument projektu dla
+                        danego zakresu elementow</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40159-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40160-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40167-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           minOccurs="0"
+                           id="rastructure___d4e40169-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40176-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40177-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40185-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40186-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40193-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40194-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40201-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40202-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40209-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e40211-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40218-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e40219-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40226-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40227-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40234-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e40235-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40242-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40243-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                >
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                >
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                >
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e40254-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e40255-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+            <xs:attribute name="label" type="xs:string" id="rastructure___d6e158595-1_label">
+               <xs:annotation>
+                  <xs:documentation>Not needed to be there label</xs:documentation>
+               </xs:annotation>
+            </xs:attribute>
+            <xs:assert test="@label = concat('Projekt ', ID)" id="rastructure___d6e158599-1">
+               <xs:annotation>
+                  <xs:documentation>Test override parent assert for @label</xs:documentation>
+               </xs:annotation>
+            </xs:assert>
+            <!--<xs:assert test="@label_projekt = ID">
+               <xs:annotation>
+                  <xs:documentation>Assert new label for child</xs:documentation>
+               </xs:annotation>
+            </xs:assert>-->
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_PROJEKT"
+               type="Types__x3A__default_infrastructure:infrastructure_PROJEKT"
+               abstract="true"
+               id="rastructure___d4e40262-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="PROJEKT"/>
+         </xs:appinfo>
+         <xs:documentation>Zaprojektowany - został wydrukowany projekt dla danego
+            rekordu</xs:documentation>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_DO_REALIZ"
+                   abstract="true"
+                   id="rastructure___d4e40268-1_Infrastruc">
+      <xs:complexContent id="rastructure___d4e40269-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_PROJEKT">
+            <xs:sequence id="rastructure___d4e40271-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e40272-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e40273-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e40275-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e40276-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e40280-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e40281-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e40286-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e40287-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e40288-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e40289-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e40295-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e40296-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e40301-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e40302-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e40307-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e31385-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40309-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           id="rastructure___d4e40310-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40317-1_ID_KORESP_"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40318-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40325-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e40327-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40334-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40335-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40343-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40344-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40351-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40352-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40359-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40360-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40367-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e40369-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40376-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e40377-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40384-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40385-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40392-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e40393-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40400-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40401-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                >
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                >
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                >
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e40412-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e40413-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_DO_REALIZ"
+               type="Types__x3A__default_infrastructure:infrastructure_DO_REALIZ"
+               abstract="true"
+               id="rastructure___d4e40420-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="DO_REALIZ"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_OFFER"
+                   abstract="true"
+                   id="rastructure___d4e40424-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Obiekt, na ktory otryzmalismy oferte</xs:documentation>
+      </xs:annotation>
+      <xs:complexContent id="rastructure___d4e40428-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_PROJEKT">
+            <xs:sequence id="rastructure___d4e40430-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e40431-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e40432-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e40434-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e40435-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e40439-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e40440-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e40445-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e40446-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e40447-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e40448-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e40454-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e40455-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e40460-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e40461-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e40466-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e31522-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40468-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40469-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40476-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40477-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40484-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e40486-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40493-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40494-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40502-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40503-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40510-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40511-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40518-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40519-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40526-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e40528-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40535-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e40536-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40543-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40544-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40551-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e40552-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40559-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40560-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                >
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                >
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                >
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e40571-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e40572-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_OFFER"
+               type="Types__x3A__default_infrastructure:infrastructure_OFFER"
+               abstract="true"
+               id="rastructure___d4e40579-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="OFFER"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_DO_UZG"
+                   abstract="true"
+                   id="rastructure___d4e40583-1_Infrastruc">
+      <xs:complexContent id="rastructure___d4e40584-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_DO_REALIZ">
+            <xs:sequence id="rastructure___d4e40586-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e40587-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e40588-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e40590-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e40591-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e40595-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e40596-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e40601-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e40602-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e40603-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e40604-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e40610-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e40611-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e40616-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e40617-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e40622-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e31656-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40624-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           id="rastructure___d4e40625-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40632-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40633-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40640-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e40642-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40649-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40650-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40658-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40659-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40666-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40667-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40674-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40675-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40682-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e40684-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40691-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e40692-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40699-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40700-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40707-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e40708-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40715-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40716-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                >
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                >
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                >
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e40727-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e40728-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki.
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_DO_UZG"
+               type="Types__x3A__default_infrastructure:infrastructure_DO_UZG"
+               abstract="true"
+               id="rastructure___d4e40736-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="DO_UZG"/>
+         </xs:appinfo>
+         <xs:documentation>Taki co wyszedl do uzgodnien z wlascicielem nieruchomosci / dzialki
+         </xs:documentation>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_UZG"
+                   abstract="true"
+                   id="rastructure___d4e40742-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Został uzgodniony, bo otrzymalismy dokument z uzogdnieniem
+            pozytywnym</xs:documentation>
+      </xs:annotation>
+      <xs:complexContent id="rastructure___d4e40746-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_DO_REALIZ">
+            <xs:sequence id="rastructure___d4e40748-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e40749-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e40750-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e40752-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e40753-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e40757-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e40758-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e40763-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e40764-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e40765-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e40766-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e40772-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e40773-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e40778-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e40779-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e40784-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e31796-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40786-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           id="rastructure___d4e40787-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40794-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40795-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40802-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e40804-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40811-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40812-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40820-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40821-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40828-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40829-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40836-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40837-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40844-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e40846-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40853-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e40854-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40861-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40862-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40869-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e40870-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40877-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e40878-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                >
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                >
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                >
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e40889-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e40890-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki
+
+
+Warunek uzgodnienia na bazie ..network_crossing to:
+./default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/parent::complexTypeNode()[of ComplexType refered base = 'ID_KORESP_INVEST_ARRANGEMENT_DEAL]/ID_KORESP_INVEST_ARRANGEMENT_DEAL_SIGNED</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_UZG"
+               type="Types__x3A__default_infrastructure:infrastructure_UZG"
+               abstract="true"
+               id="rastructure___d4e40897-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="UZG"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_DO_UZG_ZUD"
+                   abstract="true"
+                   id="rastructure___d4e40901-1_Infrastruc">
+      <xs:complexContent id="rastructure___d4e40902-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_DO_REALIZ">
+            <xs:sequence id="rastructure___d4e40904-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e40905-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e40906-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e40908-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e40909-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e40913-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e40914-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e40919-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e40920-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e40921-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e40922-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e40928-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e40929-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e40934-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e40935-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e40940-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e31930-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40942-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           id="rastructure___d4e40943-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40950-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e40951-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40958-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e40960-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40967-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e40968-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40976-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e40977-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e40984-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e40985-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e40992-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e40993-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41000-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e41002-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41009-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e41010-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41017-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41018-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41025-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e41026-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41033-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41034-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_deal"
+                >
+                <xs:annotation>
+                    <xs:documentation>Istnienie obiektu warunkuje stan obiektu dotyczący przyjęcia jego na realizację. Rozumiemy to jako obiekt ustalen, który będize mieć strukturę kto i za ile</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji pozycji dokumentu -->
+               <!--<xs:element minOccurs="0" ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_protocol"
+                >
+                <xs:annotation>
+                    <xs:documentation>Specjalny typ dokumentu dla weryfikacji obiektow przed zakryciem
+</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <!--<xs:element name="protokol_odbioru" minOccurs="0"
+                targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure.xsd"
+                >
+                <xs:annotation>
+                    <xs:documentation>dokument, będący pismem, potwierdzający, że dany obiekt został właściwie odebrany</xs:documentation>
+                </xs:annotation>
+            </xs:element>-->
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e41045-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e41046-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_DO_UZG_ZUD"
+               type="Types__x3A__default_infrastructure:infrastructure_DO_UZG_ZUD"
+               abstract="true"
+               id="rastructure___d4e41053-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="DO_UZG_ZUD"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_UZG_ZUD"
+                   abstract="true"
+                   id="rastructure___d4e41057-1_Infrastruc">
+      <xs:complexContent id="rastructure___d4e41058-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_DO_UZG_ZUD">
+            <xs:sequence id="rastructure___d4e41060-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e41061-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e41062-1_the_geom"/>
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e41063-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e41064-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e41068-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e41069-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e41074-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e41075-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e41076-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e41077-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e41082-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e41084-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e41089-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e41090-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e41095-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e32063-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41097-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           id="rastructure___d4e41098-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41105-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41106-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41113-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e41114-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41122-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e41123-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41130-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e41131-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41138-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e41139-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41146-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e41147-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41154-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="1"
+                           id="rastructure___d4e41155-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41162-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           minOccurs="0"
+                           id="rastructure___d4e41164-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41171-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41172-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41179-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e41180-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41187-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41188-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e41195-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e41196-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_UZG_ZUD"
+               type="Types__x3A__default_infrastructure:infrastructure_UZG_ZUD"
+               abstract="true"
+               id="rastructure___d4e41203-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="UZG_ZUD"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_ZLECENIE"
+                   abstract="true"
+                   id="rastructure___d4e41207-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Popdisano zlecenie na realizacje danego obiektu</xs:documentation>
+      </xs:annotation>
+      <xs:complexContent id="rastructure___d4e41211-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_OFFER">
+            <xs:sequence id="rastructure___d4e41213-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e41214-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e41215-1_the_geom"/>
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e41216-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e41217-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e41221-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e41222-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e41227-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e41228-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e41229-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e41230-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e41235-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e41237-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e41242-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e41243-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e41248-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e32196-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41250-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41251-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41258-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41259-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41266-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e41267-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41275-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e41276-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41283-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e41284-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41291-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e41292-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41299-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e41300-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41307-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e41308-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41315-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           id="rastructure___d4e41317-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41324-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41325-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41332-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e41333-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41340-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41341-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e41346-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e41347-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_ZLECENIE"
+               type="Types__x3A__default_infrastructure:infrastructure_ZLECENIE"
+               abstract="true"
+               id="rastructure___d4e41354-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="ZLECENIE"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_ZGL_ODB"
+                   abstract="true"
+                   id="rastructure___d4e41358-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Wykonawca zgłasza wykonanie danego elementu do jego
+            odbioru</xs:documentation>
+      </xs:annotation>
+      <xs:complexContent id="rastructure___d4e41362-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_ZLECENIE">
+            <xs:sequence id="rastructure___d4e41364-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e41365-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e41366-1_the_geom"/>
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e41367-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e41368-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e41372-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e41373-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e41378-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e41379-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e41380-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e41381-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e41386-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e41388-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e41393-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e41394-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e41399-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e32326-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41401-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41402-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41409-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41410-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41417-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e41418-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41426-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e41427-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41434-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e41435-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41442-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e41443-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41450-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e41451-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41458-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e41459-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41466-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           id="rastructure___d4e41468-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41475-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="1"
+                           id="rastructure___d4e41476-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41483-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e41484-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41491-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41492-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e41499-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e41500-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_ZGL_ODB"
+               type="Types__x3A__default_infrastructure:infrastructure_ZGL_ODB"
+               abstract="true"
+               id="rastructure___d4e41507-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="ZGL_ODB"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_POM_GEOD"
+                   abstract="true"
+                   id="rastructure___d4e41512-1_Infrastruc">
+      <xs:complexContent id="rastructure___d4e41513-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_ZGL_ODB">
+            <xs:sequence id="rastructure___d4e41515-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e41516-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e41517-1_the_geom"/>
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e41518-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e41519-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e41523-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e41524-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e41529-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e41530-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e41531-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e41532-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e41537-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e41539-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e41544-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e41545-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e41550-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e32455-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41552-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41553-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41560-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41561-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41568-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e41569-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41577-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e41578-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41585-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e41586-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41593-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e41594-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41601-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e41602-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41609-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           id="rastructure___d4e41610-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41617-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           id="rastructure___d4e41619-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41626-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="1"
+                           id="rastructure___d4e41627-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41634-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="1"
+                           id="rastructure___d4e41635-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41642-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="0"
+                           id="rastructure___d4e41643-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e41650-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e41651-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki.
+
+</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+   <xs:element name="infrastructure_POM_GEOD"
+               type="Types__x3A__default_infrastructure:infrastructure_POM_GEOD"
+               abstract="true"
+               id="rastructure___d4e41658-1_Infrastruc">
+      <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:base_type system_cache__appinfo:base_type_group="infrastructure"
+                                             system_cache__appinfo:base_type_name="POM_GEOD"/>
+         </xs:appinfo>
+      </xs:annotation>
+   </xs:element>
+   <xs:complexType name="infrastructure_PROTOK_ODB"
+                   abstract="true"
+                   id="rastructure___d4e41662-1_Infrastruc">
+      <xs:annotation>
+         <xs:documentation>Podpisany protokol odbioru z podwykonawca oraz wlascicielem
+         </xs:documentation>
+      </xs:annotation>
+      <xs:complexContent id="rastructure___d4e41666-1">
+         <xs:restriction base="Types__x3A__default_infrastructure:infrastructure_ZGL_ODB">
+            <xs:sequence id="rastructure___d4e41668-1">
+               <xs:element name="ID" type="xs:int" id="rastructure___d4e41669-1_ID"/>
+               <xs:element name="the_geom"
+                           type="gml:AbstractFeatureType"
+                           id="rastructure___d4e41670-1_the_geom"/>
+               <!--<xs:choice maxOccurs="unbounded" minOccurs="0" >
+                <xs:annotation>
+                    <xs:documentation>@2015-03-30 - obiekt moze posiadac wiecej wymagan zgod. Alternatywnie zgody muszą być wszystkie wyrażone, z uwagi na prawidłowe działanie restrykcji, dla obiektów możliwych dla realizacji.</xs:documentation>
+                </xs:annotation>
+                <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement"
+                    />
+                <xs:element
+                    ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_obj_placement_requirement_accepted"
+                    />
+            </xs:choice> Do pozniejszej implementacji zaleznych relacji w sekwencji -->
+               <xs:element name="A_STATUS_INFO"
+                           type="xs:string"
+                           id="rastructure___d4e41672-1_A_STATUS_I"/>
+               <xs:element name="opis" type="xs:string" id="rastructure___d4e41673-1_opis">
+                  <xs:annotation>
+                     <xs:documentation>To zmiany na ID_ZASOBU pod katem
+                        kosztorysowym</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_ZASOB"
+                           type="xs:int"
+                           id="rastructure___d4e41677-1_ID_ZASOB"/>
+               <xs:element ref="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"
+                           id="rastructure___d4e41678-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_ZASOB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="Dlugosc"
+                           type="xs:double"
+                           id="rastructure___d4e41683-1_Dlugosc"/>
+               <xs:element name="Powierzchnia"
+                           type="xs:double"
+                           id="rastructure___d4e41684-1_Powierzchn"/>
+               <xs:element name="L_APPOITMENT_USER"
+                           type="xs:string"
+                           id="rastructure___d4e41685-1_L_APPOITME"/>
+               <xs:element ref="SystemObjects__x3A__AccessOwner:AccessOwner"
+                           id="rastructure___d4e41686-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="L_APPOITMENT_USER"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessOwner:AccessOwner/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_CLASSIFIED"
+                           type="xs:string"
+                           id="rastructure___d4e41692-1_A_CLASSIFI"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                           id="rastructure___d4e41693-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_CLASSIFIED"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="A_ADM_COMPANY"
+                           type="xs:string"
+                           id="rastructure___d4e41698-1_A_ADM_COMP"/>
+               <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupWrite"
+                           id="rastructure___d4e41699-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="A_ADM_COMPANY"
+                                                         system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:A_ADM_COMPANY/name"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_PROJECT"
+                           type="xs:int"
+                           id="rastructure___d4e41704-1_ID_PROJECT"/>
+               <!--<xs:element ref="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"
+                           minOccurs="0"
+                           id="rastructure___d4e32588-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_PROJECT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+               <xs:element name="ID_KORESP_PROJEKT"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41706-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41707-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROJEKT_WYK"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41714-1_ID_KORESP_"/>
+               <xs:element minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK"
+                           maxOccurs="unbounded"
+                           id="rastructure___d4e41715-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROJEKT_WYK"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Obiekt został zatwierdzony, że jest projektowy i zgodny z
+                        zasadami projektowania - proj wykonawczy</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_REALIZ"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41722-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ"
+                           id="rastructure___d4e41724-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_REALIZ"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest decyzja na realizacje</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_OFFER"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41731-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="1"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER"
+                           id="rastructure___d4e41732-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_OFFER"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest oferta na obiekt</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <!--<xs:element maxOccurs="unbounded" minOccurs="0"
+                ref="default_db__x3A__IN7_DZIENNIK_KORESP:document_position_offer"
+                >
+                <xs:annotation >
+                    <xs:documentation>Istnienie ofert na danym obiekcie inftastruktury
+</xs:documentation>
+                </xs:annotation>
+            </xs:element> Do pozniejszej implementacji zaleznych relacji w sekwencji-->
+               <xs:element name="ID_KORESP_DO_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41740-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG"
+                           id="rastructure___d4e41741-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Powiązanie do wysłanego pisma o zgodę na usytuowanie obiektu,
+                        do właściciela nieruchomości</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41748-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG"
+                           id="rastructure___d4e41749-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Fakt wyrażenia zgody na usytuowanie sieci od właściciela.
+                        Brak zgody powinien być wiązany z relacją dla wysyłania wniosków o
+                        zgody</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_DO_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41756-1_ID_KORESP_"/>
+               <xs:element maxOccurs="unbounded"
+                           minOccurs="0"
+                           ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD"
+                           id="rastructure___d4e41757-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_DO_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie nadania wniosku o uzgodnienie
+                        ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_UZG_ZUD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41764-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD"
+                           minOccurs="0"
+                           id="rastructure___d4e41766-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_UZG_ZUD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Potwierdzenie zwrotnego pisma ze zgodą ZUD</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZLECENIE"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41773-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE"
+                           id="rastructure___d4e41774-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZLECENIE"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Czy jest zlecenie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_ZGL_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41781-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB"
+                           minOccurs="1"
+                           id="rastructure___d4e41782-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_ZGL_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Relacja tworzona przez podwykonawcę jako zgłoszenie do
+                        odbioru=wykonanie</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_POM_GEOD"
+                           type="Types__x3A__default_infrastructure:ID_KORESP"
+                           id="rastructure___d4e41789-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD"
+                           minOccurs="0"
+                           id="rastructure___d4e41790-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_POM_GEOD"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Stwierdzenie, że współrzędne obiektu został zaktualizowane
+                        oraz są powiązane do dokumentu z operatem</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="ID_KORESP_PROTOK_ODB"
+                           type="Types__x3A__default_infrastructure:ID_KORESP_SET"
+                           id="rastructure___d4e41797-1_ID_KORESP_"/>
+               <xs:element ref="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB"
+                           minOccurs="1"
+                           id="rastructure___d4e41798-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="ID_KORESP_PROTOK_ODB"
+                                                         system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>Odebranie obiektu przez trójstronny dokument właściciel,
+                        wykonawca, inwestor</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+               <xs:element name="InvestArrangements_Network_Crossings"
+                           type="xs:int"
+                           id="rastructure___d4e41805-1_InvestArra"/>
+               <xs:element minOccurs="0"
+                           ref="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings"
+                           id="rastructure___d4e41806-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:name="InvestArrangements_Network_Crossings"
+                                                         system_cache__appinfo:xpath="default_db__x3A__InvestArrangements:InvestArrangements_Network_Crossings/ID"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                     <xs:documentation>To są kolizje powstałe na bazie przecieć z obiektami zaimportowanymi jako mapa d/c projektowych, które stanowią podstawę do uzgodnień. W to też powinny wejść działki</xs:documentation>
+                  </xs:annotation>
+               </xs:element>
+            </xs:sequence>
+         </xs:restriction>
+      </xs:complexContent>
+   </xs:complexType>
+</xs:schema>

+ 138 - 0
SE/schema/Types/types.xsd

@@ -0,0 +1,138 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           xmlns:p5TypeParam="http://biuro.biall-net.pl/p5/schema/typeParams"
+           xmlns:p5Type="http://biuro.biall-net.pl/p5/schema/types"
+           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+           xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
+           xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:system_cache__resources_tree_generate_xsl_required_occurs_raport="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/resources_tree_generate_xsl_require_occurs_raport"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
+           xmlns:p5_simpleSchema_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/p5_simpleSchema_map.xsd"
+           elementFormDefault="qualified"
+           targetNamespace="http://biuro.biall-net.pl/p5/schema/types"><!--<xs:import namespace="http://biuro.biall-net.pl/p5/schema/typeParams" schemaLocation=""/>
+	@2018-03-23 bindera: widze, ze tego nie ma i raczej jest niepotrzebne?
+	-->
+   <xs:simpleType name="string" id="p___d15e99718-1_string">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="text" id="p___d15e99720-1_text">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="enumeration" id="p___d15e99722-1_enumeratio">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="set" id="p___d15e99724-1_set">
+      <xs:annotation>
+         <xs:documentation>
+Example appinfo for `CRM_PRZYPADEK`.`FORM_TREAT` field defined as set('', 'R', 'W', 'X', 'C', 'S', 'O', 'V', 'E'):
+<xs:appinfo>
+               <p5TypeParam:param name="enumeration">
+                  <p5TypeParam:enumeration value="0" label="" description="Brak"/>
+                  <p5TypeParam:enumeration value="2" label="R" description="Read"/>
+                  <p5TypeParam:enumeration value="4" label="W" description="Write"/>
+                  <p5TypeParam:enumeration value="8" label="X" description="Execute"/>
+                  <p5TypeParam:enumeration value="16" label="C" description="Create"/>
+                  <p5TypeParam:enumeration value="32" label="S" description="..."/>
+                  <p5TypeParam:enumeration value="64" label="O" description="..."/>
+                  <p5TypeParam:enumeration value="124" label="V" description="..."/>
+                  <p5TypeParam:enumeration value="256" label="E" description="Export"/>
+               </p5TypeParam:param>
+            </xs:appinfo>
+
+SELECT ID, `FORM_TREAT`, CAST(`FORM_TREAT` AS UNSIGNED) FROM `CRM_PRZYPADEK`;
+
+	IF 8 == 'X' THEN
+		insert into `CRM_PRZYPADEK`(`FORM_TREAT`) values('X');
+	IS EQUAL TO
+		insert into `CRM_PRZYPADEK`(`FORM_TREAT`) values(8);
+
+			</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:integer"/>
+   </xs:simpleType>
+   <xs:simpleType name="integer" id="p___d15e99741-1_integer">
+      <xs:restriction base="xs:integer"/>
+   </xs:simpleType>
+   <xs:simpleType name="decimal" id="p___d15e99743-1_decimal">
+      <xs:restriction base="xs:decimal"/>
+   </xs:simpleType>
+   <xs:simpleType name="double" id="p___d15e99745-1_double">
+      <xs:restriction base="xs:double"/>
+   </xs:simpleType>
+   <xs:simpleType name="float" id="p___d15e99747-1_float">
+      <xs:restriction base="xs:double"/>
+   </xs:simpleType>
+   <xs:simpleType name="binary" id="p___d15e99749-1_binary">
+      <xs:restriction base="xs:hexBinary"/>
+   </xs:simpleType>
+   <xs:simpleType name="hexBinary" id="p___d15e99751-1_hexBinary">
+      <xs:restriction base="xs:hexBinary"/>
+   </xs:simpleType>
+   <xs:simpleType name="date" id="p___d15e99754-1_date">
+      <xs:union memberTypes="xs:date p5Type:dateZero"/>
+   </xs:simpleType>
+   <xs:simpleType name="dateZero" id="p___d15e99756-1_dateZero">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="0000-00-00"/>
+         <xs:enumeration value="CURRENT_TIMESTAMP"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="dateTime" id="p___d15e99760-1_dateTime">
+      <xs:union memberTypes="xs:dateTime p5Type:dateTimeZero"/>
+   </xs:simpleType>
+   <xs:simpleType name="dateTimeZero" id="p___d15e99762-1_dateTimeZe">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="0000-00-00 00:00:00"/>
+         <xs:enumeration value="CURRENT_TIMESTAMP"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="time" id="p___d15e99766-1_time">
+      <xs:union memberTypes="xs:time p5Type:timeZero"/>
+   </xs:simpleType>
+   <xs:simpleType name="timeZero" id="p___d15e99768-1_timeZero">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="00:00:00"/>
+         <xs:enumeration value="CURRENT_TIMESTAMP"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="year" id="p___d15e99772-1_year">
+      <xs:union memberTypes="xs:gYear p5Type:yearZero"/>
+   </xs:simpleType>
+   <xs:simpleType name="yearZero" id="p___d15e99774-1_yearZero">
+      <xs:restriction base="xs:string">
+         <xs:enumeration value="0000"/>
+         <xs:enumeration value="CURRENT_TIMESTAMP"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <!--
+TODO: Geometry
+TODO: MultiPolygon
+TODO: MultiPoint
+TODO: MultiLineString
+TODO: GeometryCollection
+
+	<gml:MultiPolygon>
+		<gml:polygonMember>
+			<gml:Polygon>
+	...
+-->
+   <xs:simpleType name="geometry" id="p___d15e99779-1_geometry">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="polygon" id="p___d15e99781-1_polygon">
+      <xs:restriction base="xs:string">
+         <xs:pattern value="(\-?\d+\.?\d*,-?\d+\.?\d*)( (\-?\d+\.?\d*,-?\d+\.?\d*))+"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="point" id="p___d15e99785-1_point">
+      <xs:restriction base="xs:string">
+         <xs:pattern value="\-?\d\.?\d*,\-?\d\.?\d*"/>
+      </xs:restriction>
+   </xs:simpleType>
+   <xs:simpleType name="lineString" id="p___d15e99788-1_lineString">
+      <xs:restriction base="xs:string">
+         <xs:pattern value="(\-?\d+\.?\d*,\-?\d+\.?\d*)( (\-?\d+\.?\d*,\-?\d+\.?\d*))+"/>
+      </xs:restriction>
+   </xs:simpleType>
+</xs:schema>

+ 3 - 3
SE/schema/WPS_Functions/BI_audit/build_BI_audit.xml

@@ -45,13 +45,13 @@
         <!--<mkdir dir="${BI_audit_basedir.temp}/BI_audit/${uuid}"/>-->
     </target>
     
-    <target name="read_build_properties" depends="BI_audit:create_tempdir">
+    <!--<target name="read_build_properties" depends="BI_audit:create_tempdir">
         <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>
         <loadproperties srcfile="${WPS_Functions.properties}"/>
-    </target>
+    </target>-->
     
     
-    <target name="BI_audit:create_php_localized_config" depends="read_build_properties" description="To create localized include config for php scripts with bootstrap.php etc">
+    <target name="BI_audit:create_php_localized_config"  description="To create localized include config for php scripts with bootstrap.php etc">
         <echo file="${BI_audit:config_inc.php}">
 #!/usr/bin/env php
 <![CDATA[<?php]]>

+ 19 - 0
SE/schema/WPS_Functions/Storage_AclStruct/Storage_AclStruct.Storage_AclUsage.list_process.xsl

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    
+    <xsl:output indent="yes"/>
+   <xsl:strip-space elements="*"/>
+    
+    
+   <xsl:template match="*">
+       <xsl:copy>
+           test
+       </xsl:copy>
+   </xsl:template>
+    
+</xsl:stylesheet>

+ 86 - 0
SE/schema/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd

@@ -0,0 +1,86 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+   xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+   xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+   xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+   xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+   xmlns:xs="http://www.w3.org/2001/XMLSchema" vc:minVersion="1.1"
+   targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd">
+   <xs:import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd"
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:import
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+      schemaLocation="../WPS_Functions.xsd"/>
+   <xs:import
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+      schemaLocation="../fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:simpleType name="namespace">
+      <xs:annotation>
+         <xs:documentation>Type namespace - like default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="fieldNamespace">
+      <xs:annotation>
+         <xs:documentation>defaultvalue="${Storage_AclStruct.url.post.namespace}/${Storage_AclStruct.addFieldToZasobyAjax.field}" message="Type field Namespace like default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER/default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:group name="PRODUCT">
+      <xs:sequence>
+         <xs:element ref="Storage_AclStruct:PRODUCT"/>
+      </xs:sequence>
+   </xs:group>
+   <!--<xs:element name="StorageAclStruct">
+      <xs:annotation>
+         <xs:documentation>macdodef</xs:documentation>
+      </xs:annotation>
+      <xs:complexType>
+         <xs:sequence maxOccurs="unbounded">
+            <xs:element name="addAclObjectToZasobyAjax">
+               <xs:complexType>
+                  <xs:attribute name="namespace" type="Storage_AclStruct:namespace"/>
+                  <xs:attribute name="fieldNamespace" type="Storage_AclStruct:fieldNamespace"/>
+               </xs:complexType>
+            </xs:element>
+         </xs:sequence>
+         <xs:attribute name="namespace" type="Storage_AclStruct:namespace"/>
+      </xs:complexType>
+   </xs:element>-->
+   <xs:element name="addAclObjectToZasobyAjax">
+      <xs:complexType>
+         <xs:attribute name="name" type="xs:string"/>
+         <xs:attribute name="namespace" type="Storage_AclStruct:namespace"/>
+      </xs:complexType>
+   </xs:element>
+   <xs:element name="addFieldToZasobyAjax">
+      <xs:complexType>
+         <xs:attribute name="fieldNamespace" type="Storage_AclStruct:fieldNamespace"/>
+         <xs:attribute name="namespace" type="Storage_AclStruct:namespace"/>
+         <xs:attribute name="field" type="xs:string"/>
+      </xs:complexType>
+   </xs:element>
+   <xs:element name="activateObjectAjax">
+      <xs:complexType>
+         <xs:attribute name="namespace" type="Storage_AclStruct:namespace"/>
+         <xs:attribute name="name" type="xs:string"/>
+      </xs:complexType>
+   </xs:element>
+</xs:schema>

+ 14 - 0
SE/schema/WPS_Functions/Storage_AclStruct/build.Storage_AclStruct.INSTALL.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." default="INSTALL" name="Storage_AclStruct.INSTALL">
+  <include file="build.Storage_AclStruct.PRODUCT.xml" />
+  <property location="${Storage_AclStruct.install}/install_example.file" name="Storage_AclStruct.INSTALL.install_example" />
+  <condition property="Storage_AclStruct.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
+    <not>
+      <available file="${Storage_AclStruct.repository}/install_example.file" />
+    </not>
+  </condition>
+  <target depends="INSTALL.install_example" name="INSTALL" />
+  <target if="Storage_AclStruct.INSTALL.install_example.ifdef" name="INSTALL.install_example">
+    <copy file="${Storage_AclStruct.INSTALL.install_example}" tofile="${Storage_AclStruct.install_example}" />
+  </target>
+</project>

+ 83 - 0
SE/schema/WPS_Functions/Storage_AclStruct/build.Storage_AclStruct.PRODUCT.xml

@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="Storage_AclStruct.PRODUCT">
+   <description>p5suis:say Created function Storage_AclStruct with prefix Storage_AclStruct by p5ant module</description>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="Storage_AclStruct.PRODUCT.ifdef.parent"
+              taskname="Storage_AclStruct.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="Storage_AclStruct.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.Storage_AclStruct"/>
+   <property name="Storage_AclStruct.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.Storage_AclStruct"/>
+   <property name="Storage_AclStruct.basedir"
+             value="${WPS_Functions.basedir}/Storage_AclStruct"/>
+   <property name="Storage_AclStruct.repository"
+             value="${WPS_Functions.repository}/Storage_AclStruct"/>
+   <property name="Storage_AclStruct.install"
+             value="${Storage_AclStruct.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/Storage_AclStruct"
+             name="Storage_AclStruct.temp"/>
+   <property location="${Storage_AclStruct.basedir}/build_Storage_AclStruct.xml"
+      name="Storage_AclStruct.build.xml"/>
+   <property location="${Storage_AclStruct.basedir}/build_Storage_AclStruct.ifproc.xml"
+      name="Storage_AclStruct.ifproc.build.xml"/>
+   <property location="${Storage_AclStruct.basedir}/Storage_AclStruct.xsl"
+             name="Storage_AclStruct.xsl"/>
+   <property location="${Storage_AclStruct.basedir}/Storage_AclStruct.xsd"
+             name="Storage_AclStruct.xsd"/>
+   <property location="${Storage_AclStruct.basedir}/Storage_AclStruct.include.structure.xml"
+             name="Storage_AclStruct.include.structure.xml"/>
+   <property location="${Storage_AclStruct.basedir}/Storage_AclStruct.include.xsl.p5xsls.xml"
+             name="Storage_AclStruct.include.xsl.p5xsls.xml"/>
+   <property location="${Storage_AclStruct.repository}/install_example.file"
+             name="Storage_AclStruct.install_example"/>
+   <target depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="Storage_AclStruct.local.properties">
+         <propertyref prefix="Storage_AclStruct"/>
+         <mapper from="Storage_AclStruct.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="Storage_AclStruct.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="Storage_AclStruct.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="Storage_AclStruct.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="Storage_AclStruct.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly"
+               file="${Storage_AclStruct.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="Storage_AclStruct"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 7 - 0
SE/schema/WPS_Functions/Storage_AclStruct/build.Storage_AclStruct.SYSTEM.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="Storage_AclStruct.SYSTEM">
+  <include file="../build.WPS_Functions.SYSTEM.xml" optional="true" />
+  <include as="PRODUCT" file="build.Storage_AclStruct.PRODUCT.xml" optional="true" />
+  <property location="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/build_SE_basedir/temp/StandardOutPath/Storage_AclStruct.log" name="Storage_AclStruct.SYSTEM.StandardOutPath" />
+  <property location="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/build_SE_basedir/temp/StandardErrorPath/Storage_AclStruct.log" name="Storage_AclStruct.SYSTEM.StandardErrorPath" />
+</project>

+ 59 - 0
SE/schema/WPS_Functions/Storage_AclStruct/build_Storage_AclStruct.ifproc.xml

@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct.xsd"
+   basedir="../../."
+         
+         name="Storage_AclStruct.ifproc">
+   <include file="build.Storage_AclStruct.PRODUCT.xml" optional="true"/>
+   <!--<include file="${Storage_AclStruct.build.xml}" optional="true" as="Storage_AclStruct.ifproc"/>-->
+   <include file="../get_wfs/build_get_wfs.xml" as="get_wfs" optional="true"/>
+   <include file="../get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml" as="get_wfs_recurse_xsl" optional="true"/>
+   
+   <!--<target name="refresh">
+      <input addproperty="RootTablePrefix"/>
+      <input addproperty="RootTableName"/>
+      <input addproperty="FieldName"/>
+      <input addproperty="enumeration"/>
+      <input addproperty="uuid"/>
+      <input addproperty="namespace"/>
+      <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <fail >#12 chodzi tutaj</fail>
+      
+   </target>-->
+   
+   
+   
+   <!--<macrodef name="ifproc" description="To check if filed has a process - verify with local storage">
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="FieldName"/>
+      <attribute name="enumeration"/>
+      <attribute name="uuid"/>
+      <attribute name="namespace"/>
+      <element name="ifproc"/>
+      <sequential>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="@{uuid}"/>
+         
+         <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>
+         <local name="recurse_ant.wfs_output.xml.local"/>
+         
+         <condition property="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+            <available file="${recurse_ant.wfs_output.xml.local}"/>
+         </condition>
+         <!-\-<include file="build_Storage_AclStruct.xml"/>-\->
+         
+         <antcall target="ifproc.refresh" >
+            <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+            <param name="RootTableName" value="@{RootTableName}"/>
+            <param name="FieldName" value="@{FieldName}"/>
+            <param name="enumeration" value="@{enumeration}"/>
+            <param name="uuid" value="@{uuid}"/>
+            <param name="namespace" value="@{namespace}"/>
+            <param name="recurse_ant.wfs_output.xml.local" value="${recurse_ant.wfs_output.xml.local}"/>
+         </antcall>
+      </sequential>
+   </macrodef>-->
+   
+  
+   
+</project>

+ 1611 - 0
SE/schema/WPS_Functions/Storage_AclStruct/build_Storage_AclStruct.xml

@@ -0,0 +1,1611 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct.xsd"
+         basedir="../../."
+         default="default"
+         name="Storage_AclStruct">
+   
+   <description>
+      Function to cooperate with p5 Storage/Resource calls for rapid add resources
+      
+      <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&_task=addFieldToZasobyAjax
+            Query String Parameters
+            _route: Storage_AclStruct
+            _task: addFieldToZasobyAjax
+
+            Request Data
+            MIME Type: application/x-www-form-urlencoded
+            namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER
+            fieldNamespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER/default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT
+      -->
+   </description>
+   
+   
+   <include as="PRODUCT" file="build.Storage_AclStruct.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.Storage_AclStruct.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.Storage_AclStruct.INSTALL.xml"/>
+   <!--<include file="${Storage_AclStruct.ifproc.build.xml}"/>-->
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+  
+   <!--<include file="build_Storage_AclStruct.ifproc.xml"
+      as="Storage_AclStruct.ifproc"/>-->
+   <!--<include file="${Storage_AclStruct.ifproc.build.xml}" as="Storage_AclStruct.ifproc" optional="true"/>-->
+   <include file="${p5suis.build}" as="p5suis" optional="true"/>
+   
+   <include file="../get_wfs/build_get_wfs.xml" as="get_wfs" optional="true"/>
+   <include file="../tidy/build_tidy.xml" as="tidy" optional="true"/>
+   <include file="../get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml" as="get_wfs_recurse_xsl" optional="true"/>
+   <!--<include file="../get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml" as="get_wfs_recurse_xsl"/>-->
+  
+   <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL" name="default"/>
+   
+   
+   <property name="Storage_AclStruct.url" value="${TargetNamespaceBindings}/SE/version-git/index.php"/>
+   <!--<property name="Storage_AclStruct.url.get._route" value="Storage_AclStruct"/>-->
+   
+   
+   
+   <!--<target name="addAclObjectToZasobyAjax" description="first add object to resources - than add field resources">
+      
+      <!-\- 1 dodanie do zasobow  tabeli; 
+      Brak nr zasobu - dodaj do zasobów
+         https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+         https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+         
+         Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Length: 945
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 00:48:02 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=95
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 113
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: addAclObjectToZasobyAjax
+idStorage: 36
+namespace: default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84
+session-expire.php?task=getTimer	index.php?_route=Storage&_task=addAclObjectToZasobyAjax	session-expire.php?task=getTimer	session-expire.php?task=getTimer	session-expire.php?task=getTimer	validate.min.js	
+      -\->
+      
+   </target>-->
+   
+   
+   <!--<target name="addFieldToZasobyAjax" description="To add some resource to from xsd" depends="INSTALL.INSTALL"> <!-\- depends = addAclObjectToZasobyAjax -\->
+      
+      <local name="Storage_AclStruct.addFieldToZasobyAjax.url.get"/>
+      <local name="Storage_AclStruct.addFieldToZasobyAjax.url"/>
+      
+      <property name="Storage_AclStruct.addFieldToZasobyAjax.url.get" value="?_route=Storage_AclStruct&amp;_task=addFieldToZasobyAjax"/>
+      
+     
+      <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.NamespaceDatabaseStorageDefinitionPrefix" defaultvalue="default_db" message="Type NamespaceDatabaseStorageDefinitionPrefix - like default_db "/>-\->
+      <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.NamespaceObjectInstanceTable" message="Type NamespaceObjectInstanceTable IN7_MK_BAZA_DYSTRYBUCJI"/>-\->
+         <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.typeName.prefix" message="Type typeName - like default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY"/>-\->
+      
+      <input addproperty="Storage_AclStruct.addFieldToZasobyAjax.namespace" message="Type namespace - like default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER"/>
+      <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.field" defaultvalue="EMPTY" message="Type field  like default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT or opis" />-\->
+      <input addproperty="Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace"   message="Type field Namespace like default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER/default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
+      
+      <!-\-<local name="Storage_AclStruct.post.xml"/>
+      <tempfile property="Storage_AclStruct.post.xml" destdir="${Storage_AclStruct.temp}" prefix="Storage_AclStruct.post.xml" suffix=".xml" deleteonexit="no"/>
+      -\->
+      
+      
+      
+      <local name="Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local"/>
+      <property name="Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local">namespace=${Storage_AclStruct.addFieldToZasobyAjax.namespace}&amp;fieldNamespace=${Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace}</property>
+      
+      <property name="Storage_AclStruct.addFieldToZasobyAjax.url" value="${Storage_AclStruct.url}${Storage_AclStruct.addFieldToZasobyAjax.url.get}"/>
+      
+      <echo>
+         
+         vars: 
+            $wfs_input.xml = ${wfs_input.xml}
+            $api_url = ${api_url}
+            $TargetNamespaceBindings = ${TargetNamespaceBindings}
+            
+            $Storage_AclStruct.addFieldToZasobyAjax.namespace = ${Storage_AclStruct.addFieldToZasobyAjax.namespace}
+            $Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace = ${Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace}
+            
+            $Storage_AclStruct.post.xml = ${Storage_AclStruct.post.xml}
+            $Storage_AclStruct.addFieldToZasobyAjax.url = ${Storage_AclStruct.addFieldToZasobyAjax.url}
+            $Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local = ${Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local}
+            $passwordBase64Basic_tested = ${passwordBase64Basic_tested}
+            Will call antcall target="get_wfs.PostHttpForm"
+            $curl = ${curl} 
+         with targets:
+         
+      </echo>
+      <antcall target="get_wfs.PostHttpForm">
+         <param name="get_wfs.PostHttpForm.local" value="${Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local}"/>
+         <param name="api_url.local" value="${Storage_AclStruct.addFieldToZasobyAjax.url}"/>
+      </antcall>
+      
+      <echo> after $passwordBase64Basic_tested = ${passwordBase64Basic_tested} </echo>
+      
+      <!-\-<exec executable="open">
+         <arg file="${Storage_AclStruct.post.xml}"/>
+      </exec>-\->
+      
+   </target>-->
+   
+   
+   <!--<target name="activateObjectAjax" description="after addFieldToZasobyAjax" depends="INSTALL.INSTALL"> <!-\- depends = addFieldToZasobyAjax -\->
+      
+               <!-\- Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=activateObjectAjax
+         Request Method: POST
+         Status Code: 500 Internal Server Error
+         Remote Address: 94.158.130.34:443
+         Referrer Policy: no-referrer-when-downgrade
+         Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+         Connection: close
+         Content-Length: 163
+         Content-Type: application/json
+         Date: Sat, 07 Apr 2018 00:50:21 GMT
+         Expires: Thu, 19 Nov 1981 08:52:00 GMT
+         MS-Author-Via: DAV
+         Pragma: no-cache
+         Server: Apache
+         X-Powered-By: PHP/5.6.30
+         Accept: */*
+         Accept-Encoding: gzip, deflate, br
+         Accept-Language: en-US,en;q=0.9,pl;q=0.8
+         Connection: keep-alive
+         Content-Length: 100
+         Content-Type: application/x-www-form-urlencoded
+         Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+         Host: biuro.biall-net.pl
+         Origin: https://biuro.biall-net.pl
+         Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84
+         User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+         _route: Storage
+         _task: activateObjectAjax
+         namespace: default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84 -\->
+      
+   </target>-->
+   
+   <!-- ADD TABLE TO RES
+      Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Length: 983
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 05:14:30 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=92
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 126
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: addAclObjectToZasobyAjax
+idStorage: 36
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+   -->
+   
+   <!-- REINSTALL
+   
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Request Method: GET
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Type: text/html; charset=UTF-8
+Date: Sat, 07 Apr 2018 04:58:02 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=95
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+Transfer-Encoding: chunked
+X-Powered-By: PHP/5.6.30
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage_AclReinstall
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+
+
+
+     [echo]             /opt/local/bin/curl  -b /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/get_wfs/temp/a.binder.cookie 
+     -d "namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84
+     &_route=Storage_AclReinstall" 
+        Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+
+     'https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84'
+
+
+   -->
+   
+   <!-- REINSTALL SECOND
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Type: text/html; charset=UTF-8
+Date: Sat, 07 Apr 2018 04:59:01 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=82
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+Transfer-Encoding: chunked
+X-Powered-By: PHP/5.6.30
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Cache-Control: max-age=0
+Connection: keep-alive
+Content-Length: 19
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage_AclReinstall
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+_postTask: reinstall
+
+ /opt/local/bin/curl  -b /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/get_wfs/temp/a -d 
+ "namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84
+ &_route=Storage_AclReinstall
+ &_postTask=reinstall" 
+               'https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84'
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+
+   
+   -->
+   
+   
+   
+   <!-- ADD RESOURCE SINGE
+   
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&_task=addFieldToZasobyAjax
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Length: 104
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 05:11:17 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=94
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 246
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage_AclStruct
+_task: addFieldToZasobyAjax
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+fieldNamespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT/ID_KORESP_PROJEKT_WYK
+   -->
+   
+   <!-- ACTIVATE OBJ:
+      
+      Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=activateObjectAjax
+Request Method: POST
+Status Code: 500 Internal Server Error
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: close
+Content-Length: 176
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 05:42:08 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 113
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: activateObjectAjax
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+   
+   -->
+   
+   <taskdef resource="net/sf/antcontrib/antlib.xml"/> <!-- metoda post wymaga ant contrib -->
+   
+   <target name="Storage_AclStruct">
+      <input addproperty="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"/>
+      <input addproperty="fix_se_defaultdb_schema.file"/>
+      <StorageAclStructRoot  StorageAclStructRoot="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}" fixsedefaultdbschemafile="${fix_se_defaultdb_schema.file}"/>
+   </target>
+   
+   <macrodef name="StorageAclStructRoot">
+      <attribute name="StorageAclStructRoot"/>
+      <attribute name="fixsedefaultdbschemafile"/>
+      <element name="StorageAclStructRoot" implicit="no"/>
+      <sequential>
+         <echo> Openning file @{StorageAclStructRoot}</echo>
+         <!--<loadfile property="Storage_AclStruct.StorageAclStructRoot" srcfile="@{StorageAclStructRoot}"/>-->
+         <!--<property name="Storage_AclStruct.StorageAclStructRoot.build.xml" location="@{StorageAclStructRoot}.build.xml"/>-->
+         <!--<echo> Saving to  file $Storage_AclStruct.StorageAclStructRoot.build.xml = ${Storage_AclStruct.StorageAclStructRoot.build.xml}</echo>-->
+         <!--<include file="@{fixsedefaultdbschemafile}"/>-->
+         <ant antfile="@{StorageAclStructRoot}" inheritrefs="true"/>
+      </sequential>
+   </macrodef>
+   
+   <macrodef name="addAclObjectToZasobyAjax">
+      <attribute name="namespace"/>
+      <attribute name="name"/>
+      <element name="addAclObjectToZasobyAjax" />         
+      <sequential>
+         <echo> #####403 
+            addAclObjectToZasobyAjax - @namespace = @{namespace} 
+         ####
+         </echo>
+         <antcall target="p5suis.p5suis:say_to_queue">
+            <param name="p5suis:say_text" value="add Acl Object To Zaso by Ajax p5:object @{name} "/>
+         </antcall>
+         <!--<StorageAclStructCall namespace="@{namespace}" task="addAclObjectToZasobyAjax"/>-->
+         <echo>#411 refreshObjectList</echo>
+         <antcall target="get_wfs.PostHttpForm"><!-- refreshObjectList -->
+            <param name="get_wfs.PostHttpForm.local" value="refreshObjectList=1"/>
+            <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage&amp;_task=tableList&amp;idStorage=36"/> <!-- TODO ID STORAGE -->
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#418 addAclObjectToZasobyAjax</echo>
+         <antcall target="get_wfs.PostHttpForm">
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}"/>
+            <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage&amp;_task=addAclObjectToZasobyAjax&amp;idStorage=36"/> <!-- TODO ID STORAGE -->
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#425 REINSTALL</echo>
+         <antcall target="get_wfs.PostHttpForm"> <!-- REINSTALL -->
+            <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage_AclReinstall"/>
+            <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#431 REINSTALL SECOND</echo>
+         <antcall target="get_wfs.PostHttpForm"> <!-- REINSTALL SECOND -->
+            <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage_AclReinstall&amp;_postTask=reinstall"/>
+            <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#431-B AFTER REINSTALL SECOND</echo>
+      </sequential>
+   </macrodef>
+   
+   <macrodef name="activateObjectAjax">
+      <attribute name="namespace"/>
+      <attribute name="name"/>
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="uuid"/>
+      <element name="activateObjectAjax" />         
+      <sequential>
+         <parallel threadcount="3">
+              <echo>#450 activateObjectAjax - @namespace = @{namespace} </echo>
+              <antcall target="p5suis.p5suis:say_to_queue">
+                 <param name="p5suis:say_text" value="Activating p5:object @{name} "/>
+              </antcall>
+              <antcall target="get_wfs.PostHttpForm">
+                 <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage&amp;_task=activateObjectAjax"/>
+                 <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage&amp;_task=activateObjectAjax"/>
+                 <param name="wfs_output.xml.local" value="/dev/null"/>
+              </antcall>
+              <!--<StorageAclStructCall namespace="@{namespace}" task="activateObjectAjax"/>-->
+            <echo>#460 StorageAclReinstall - @namespace = @{namespace} </echo>
+              <StorageAclReinstall namespace="@{namespace}"/>
+                 <antcall target="get_wfs.PostHttpForm">
+                    <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage&amp;_task=activateObjectAjax"/>
+                    <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage&amp;_task=activateObjectAjax"/>
+                    <param name="wfs_output.xml.local" value="/dev/null"/>
+                 </antcall>
+            <!--<ifproc namespace="@{namespace}" RootTablePrefix="@{RootTablePrefix}" 
+                  RootTableName="@{RootTableName}" FieldName="" enumeration=""
+                  uuid="@{uuid}"/>-->
+               <echo>#469 AFTER activateObjectAjax</echo>
+               <sequential>
+                      <local name="uuid.local"/>
+                      <property name="uuid.local" value="@{uuid}"/>
+                  
+                      <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+                      <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/@{namespace}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>
+                  
+                      
+                      <condition property="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+                         <available file="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                      </condition>
+                      <!--<include file="build_Storage_AclStruct.xml"/>-->
+                      
+                  <!--<ant antfile="${Storage_AclStruct.build.xml} -DRootTablePrefix=@{RootTablePrefix} -D@{RootTableName} -DFieldName=@{FieldName} -Denumeration=@{enumeration} -Duuid=@{uuid} -Dnamespace=@{namespace} -Drecurse_ant.wfs_output.xml.local=${recurse_ant.wfs_output.xml.local}"  target="ifproc.refresh" >-->
+                        <!-- <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+                         <param name="RootTableName" value="@{RootTableName}"/>
+                         <param name="FieldName" value="@{FieldName}"/>
+                         <param name="enumeration" value="@{enumeration}"/>
+                         <param name="uuid" value="@{uuid}"/>
+                         <param name="namespace" value="@{namespace}"/>
+                         <param name="recurse_ant.wfs_output.xml.local" value="${recurse_ant.wfs_output.xml.local}"/>-->
+                      <!--</ant>-->
+                  <echo> #483 antcall - Storage_AclStruct.StorageAclStruct.Refresh 
+                       $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}
+                     = $get_wfs_recurse_xsl.wfs_output.xml.local = ${get_wfs_recurse_xsl.wfs_output.xml.local} </echo>
+                  <antcall  target="Storage_AclStruct.StorageAclStruct.Refresh"  >
+                         <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+                         <param name="RootTableName" value="@{RootTableName}"/>
+                         <param name="FieldName" value="@{FieldName}"/>
+                         <param name="enumeration" value="@{enumeration}"/>
+                         <param name="uuid" value="@{uuid}"/>
+                         <param name="namespace" value="@{namespace}"/>
+                         <param name="get_wfs_recurse_xsl.wfs_output.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                        <param name="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists" value="${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}"/>
+                  </antcall>
+               </sequential>
+         </parallel>
+      </sequential>
+   </macrodef>
+   
+   <macrodef name="addFieldToZasobyAjax">
+      <attribute name="namespace"/>
+      <attribute name="fieldNamespace"/>
+      <attribute name="field"/>
+      <attribute name="RootTableName"/> <!-- To verify heritages -->
+      <element name="addFieldToZasobyAjax" implicit="true"/>
+      <sequential>
+         <echo> addFieldToZasobyAjax  @namespace =  @{namespace}  , fieldNamespace = @{fieldNamespace} </echo>
+         <StorageAclStructCallField namespace="@{namespace}" fieldNamespace="@{fieldNamespace}" task="addFieldToZasobyAjax"/>
+      </sequential>
+   </macrodef>
+   
+   <macrodef name="ifproc" description="To check if filed has a process - verify with local storage">
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="FieldName"/>
+      <attribute name="enumeration"/>
+      <attribute name="uuid"/>
+      <attribute name="namespace"/>
+      <element name="ifproc"/>
+      <sequential>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="@{uuid}"/>
+         
+         <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+         <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>
+         <!--<local name="recurse_ant.wfs_output.xml.local"/>-->
+         <!--<property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>-->
+         
+         <condition property="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+            <available file="${recurse_ant.wfs_output.xml.local}"/>
+         </condition>
+         <!--<include file="build_Storage_AclStruct.xml"/>-->
+         
+         <antcall target="ifproc.refresh" >
+            <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+            <param name="RootTableName" value="@{RootTableName}"/>
+            <param name="FieldName" value="@{FieldName}"/>
+            <param name="enumeration" value="@{enumeration}"/>
+            <param name="uuid" value="@{uuid}"/>
+            <param name="namespace" value="@{namespace}"/>
+            <param name="get_wfs_recurse_xsl.wfs_output.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+         </antcall>
+      </sequential>
+   </macrodef>
+   <!--
+   <target name="ifproc.refresh" depends="ifproc.refresh.exists" description="To check if filed has a process" unless="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+      <input addproperty="RootTablePrefix"/>
+      <input addproperty="RootTableName"/>
+      <input addproperty="FieldName"/>
+      <input addproperty="enumeration"/>
+      <input addproperty="uuid"/>
+      <input addproperty="namespace"/>
+      <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <sequential>
+         
+         <property name="parallel_java_process_max" value="100"/>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="${uuid}"/>
+         <!-\-<local name="FieldName.test.local"/>
+         <property name="FieldName.test.local" value="${FieldName}"/>-\->
+         
+         <local name="RootTableName.test.local"/>
+         <property name="RootTableName.test.local" value="${RootTableName}"/>
+         <local name="namespace.local"/>
+         <property name="namespace.local" value="${namespace}"/>
+         
+         
+              <local name="typeName.local"/>
+         <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/> <!-\- default_db: -\->
+              <local name="typeName.object.local"/>
+              <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+              <local name="pkName.typeName.object.local"/>
+              <property name="pkName.typeName.object.local" value="ID"/>
+              <local name="pkValue.typeName.object.local"/>
+         <!-\-<property name="pkValue.typeName.object.local" value="ID"/>-\->
+         <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+         <local name="Query.xml.local"/>
+         <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+          <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+           
+         <property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>
+         
+         <local name="wfs_output.xml.local"/>
+         <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+         
+         
+         <local name="wfs_timestamp.xml.local"/>
+         <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+         
+         <local name="resolveDepth.local"/>
+         <property name="resolveDepth.local" value="0"/>
+         
+         <local name="p5.links.recurse_level.limit.local"/>
+         <property name="p5.links.recurse_level.limit.local" value="0"/>
+         <local name="p5.links.next.recurse_level.limit.local"/>
+         <property name="p5.links.next.recurse_level.limit.local" value="0"/>
+         
+         
+         
+         <!-\- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -\->
+         
+         <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+            xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+            service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+               <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+               <Filter xmlns="http://www.opengis.net/ogc">
+                  <And xmlns="http://www.opengis.net/ogc">
+                     <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                        <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                        <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                     </PropertyIsEqualTo>
+                     <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                        <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                        <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                     </PropertyIsEqualTo>
+                  </And>
+               </Filter>
+            </Query></GetFeature>
+         </echoxml>
+         
+         
+         
+         <antcall target="get_wfs.GetFeature.local">
+            <!-\-<param name="Query.xml.local" value="${Query.xml.local}" />-\->
+            <param name="Query.xml.local" value="${Query.xml.local}" />
+            <param name="typeName.object.local" value="${typeName.object.local}" />
+            <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+            <param name="wfs_result.xml.local" value="/dev/null" />
+            <param name="wfs_error.xml.local" value="/dev/null" />
+            <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+         </antcall>
+         
+         
+         <!-\-<exec executable="open">
+            <arg file="${wfs_output.xml.local}"/>
+         </exec>-\->
+         
+
+         <local name="GetPropertyValue.properties.local"/>
+         <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+         <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+         
+         
+         <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+         
+         <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+         
+         <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+         <property name="uuid" value="${uuid.local}" />
+         <echo> #433 after set $uuid = ${uuid} 
+            $xpath_query.xsl = ${xpath_query.xsl}
+            deleting ${recurse_ant.temp}/${uuid}
+         </echo>
+         
+         <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+         
+         <!-\-<sequential> WFS Recurse
+            <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" > <!-\\- inheritall="true"?? TODO -\\->
+               <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+               <property name="typeName" value="${typeName.local}" />
+               <!-\\-<property name="uuid" value="${uuid.local}"/>-\\->
+               <property name="xpath" value="${pkName.typeName.object.local}"/>
+               <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+               <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+               <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+            </ant>
+         
+            <exec executable="open">
+               <arg file="${recurse_ant.wfs_output.xml.local}"/>
+            </exec>
+         </sequential>-\->
+         
+         <!-\-<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value=""/>
+            <param name="typeName.object.local" value="${typeName.object.local}"/>
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+            <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+            <param name="debug.local" value="5"/>
+         </antcall>-\->
+         <antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.simpleSchema.xml">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value="${typeName.local}"/>
+            <param name="typeName.object.local" value="${typeName.local}"/> <!-\- ${typeName.object.local} -\->
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <!-\-<param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>-\->
+            <!-\-<param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>-\->
+            <param name="debug.local" value="0"/>
+            <param name="simpleSchema.xml" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+         </antcall>
+         
+         <exec executable="open">
+            <arg file="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+         </exec>
+         
+      </sequential>
+            <!-\-<sequential>
+                       <local name="uuid.local"/>
+                    <property name="uuid.local" value="default_db__x2F__IN7_MK_BAZA_DYSTRYBUCJIINWESTYCJA_BUDOWA_SIECI"/>
+                    
+                      
+                       <local name="FieldName.test.local"/>
+                    <property name="FieldName.test.local" value="A_STATUS"/>
+                    
+                    <local name="RootTableName.test.local"/>
+                    <property name="RootTableName.test.local" value="IN7_MK_BAZA_DYSTRYBUCJI"/>
+                       <local name="namespace.local"/>
+                    <property name="namespace.local" value="default_db/IN7_MK_BAZA_DYSTRYBUCJI/ID_PROJECT"/>
+                    
+                    
+                    <local name="typeName.local"/>
+                    <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/>
+                       <local name="typeName.object.local"/>
+                    <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+                       <local name="pkName.typeName.object.local"/>
+                    <property name="pkName.typeName.object.local" value="ID"/>
+                       <local name="pkValue.typeName.object.local"/>
+                    <!-\\-<property name="pkValue.typeName.object.local" value="ID"/>-\\->
+                    
+                       <local name="Query.xml.local"/>
+                    <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+                      <!-\\- <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+                    <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>-\\->
+                       <local name="recurse_ant.wfs_output.xml.local"/>
+                    <property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>
+                    
+                    <local name="wfs_output.xml.local"/>
+                    <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+                    
+                    
+                    <local name="wfs_timestamp.xml.local"/>
+                    <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+                    
+                       <local name="resolveDepth.local"/>
+                    <property name="resolveDepth.local" value="5"/>
+                    
+                       <local name="p5.links.recurse_level.limit.local"/>
+                    <property name="p5.links.recurse_level.limit.local" value="5"/>
+                       <local name="p5.links.next.recurse_level.limit.local"/>
+                    <property name="p5.links.next.recurse_level.limit.local" value="5"/>
+                    
+                    
+                    <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+                    <!-\\- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -\\->
+                    <!-\\-<echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">PARENT_ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">TYPE</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">DESC</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs" resolve="all" resolveDepth="2">${typeName.object.local}</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                             </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                             </PropertyIsEqualTo>
+                          </And>
+                       </Filter>
+                       </Query></GetFeature>
+                    </echoxml>-\\->
+                    <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                                </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                                </PropertyIsEqualTo>
+                             </And>
+                          </Filter>
+                       </Query></GetFeature>
+                    </echoxml>
+                    
+                    
+                    
+                    <antcall target="get_wfs.GetFeature.local">
+                       <!-\\-<param name="Query.xml.local" value="${Query.xml.local}" />-\\->
+                       <param name="Query.xml.local" value="${Query.xml.local}" />
+                       <param name="typeName.object.local" value="${typeName.object.local}" />
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+                       <param name="wfs_result.xml.local" value="/dev/null" />
+                       <param name="wfs_error.xml.local" value="/dev/null" />
+                       <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+                    </antcall>
+                    
+                    
+                    <exec executable="open">
+                       <arg file="${wfs_output.xml.local}"/>
+                    </exec>
+                    
+                    
+                    
+                    <!-\\-<antcall target="get_wfs.GetPropertyValue" inheritrefs="true">
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}"/>
+                       <param name="PropertyName.local" value="${pkName.typeName.object.local}"/>
+                       <param name="setPropertyName.local" value="pkValue.typeName.object.local"/>
+                    </antcall>-\\->
+                    
+                    
+                    <!-\\-<property name="pkValue.typeName.object.local"  refid="pkValue.typeName.object.local.refid"/>-\\->
+                    <local name="GetPropertyValue.properties.local"/>
+                    <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+                    <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+                    
+                    <!-\\-<exec executable="open">
+                       <arg file="${GetPropertyValue.properties.local}"/>
+                    </exec>-\\->
+                    
+                    <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+                    
+                    
+                    <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+                    
+                    <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+                    <property name="uuid" value="${uuid.local}" />
+                    <echo> #433 after set $uuid = ${uuid} 
+                       $xpath_query.xsl = ${xpath_query.xsl}
+                       deleting ${recurse_ant.temp}/${uuid}
+                    </echo>
+                    
+                    <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+                    
+                    <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" inheritall="true">
+                       <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <property name="typeName" value="${typeName.local}" />
+                       <!-\\-<property name="uuid" value="${uuid.local}"/>-\\->
+                       <property name="xpath" value="${pkName.typeName.object.local}"/>
+                       <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </ant>
+                    
+                    <exec executable="open">
+                       <arg file="${recurse_ant.wfs_output.xml.local}"/>
+                    </exec>
+                    <!-\\-<antcall target="builxml_recursed"> <!-\\\\- recurse_ant. -\\\\->
+                       <param name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <param name="typeName" value="${typeName.local}" />
+                       <param name="uuid" value="${uuid.local}"/>
+                       <param name="xpath" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <param name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <param name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </antcall>-\\->
+                    
+                    <!-\\-<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+                       <param name="uuid.local" value="${uuid.local}" />
+                       <param name="typeName.local" value=""/>
+                       <param name="typeName.object.local" value="${typeName.object.local}"/>
+                       <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+                       <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+                       <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                       <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+                       <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+                       <param name="debug.local" value="5"/>
+                    </antcall>-\\->
+                    
+      </sequential>-\->   
+   </target>
+   
+   <target name="ifproc.refresh.exists" description="To display info that file already exist" if="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+      <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <echo>#842 already exist probe file 
+         $recurse_ant.wfs_output.xml.local = ${recurse_ant.wfs_output.xml.local}
+         ( set $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}
+         - delete to refresh
+      </echo>
+   </target>
+   -->
+   <macrodef name="StorageAclStructCallField">
+      <attribute name="namespace"/>
+      <attribute name="fieldNamespace"/>
+      <attribute name="task"/>
+      <element name="StorageAclStructCallField"/>
+      <sequential>
+         <parallel threadcount="4">
+            <echo>#325 StorageAclStructCall for cell @{fieldNamespace}</echo>
+            <antcall target="get_wfs.PostHttpForm">
+               <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;fieldNamespace=@{fieldNamespace}"/>
+               <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclStruct&amp;_task=@{task}"/>
+               <param name="wfs_output.xml.local" value="/dev/null"/>
+            </antcall>
+            <echo>#325 eof StorageAclStructCall for cell @{fieldNamespace}</echo>
+         </parallel>
+      </sequential>
+   </macrodef>
+   
+   <macrodef name="StorageAclStructCall">
+      <attribute name="namespace"/>
+      <attribute name="task"/>
+      <element name="StorageAclStructCall"/>
+      <sequential>
+         
+      <antcall target="get_wfs.PostHttpForm">
+         <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}"/>
+         <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclStruct&amp;_task=@{task}"/>
+         <param name="wfs_output.xml.local" value="/dev/null"/>
+      </antcall>
+      <!--<antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="Activated object by task @{task}"/>
+      </antcall>-->
+      </sequential>
+   </macrodef>
+   
+   <macrodef name="StorageAclReinstall">
+      <attribute name="namespace"/>
+      <element name="StorageAclReinstall"/>
+      <sequential>
+         <echo>#### 
+            StorageAclReinstall
+            for @{namespace}
+            
+            #######
+         </echo>
+         <antcall target="get_wfs.PostHttpForm"> <!-- REINSTALL -->
+            <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage_AclReinstall"/>
+            <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <antcall target="get_wfs.PostHttpForm"> <!-- REINSTALL SECOND -->
+            <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage_AclReinstall&amp;_postTask=reinstall"/>
+            <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <!--<antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="Activated object by task @{task}"/>
+      </antcall>-->
+      </sequential>
+   </macrodef>
+   
+   
+   
+   <target  name="ifproc.refresh" depends="ifproc.refresh.exists" description="To check if filed has a process" unless="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+      <input addproperty="RootTablePrefix"/>
+      <input addproperty="RootTableName"/>
+      <input addproperty="FieldName"/>
+      <input addproperty="enumeration"/>
+      <input addproperty="uuid"/>
+      <input addproperty="namespace"/>
+      <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+      <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"/>
+      <sequential>
+         <echo>#959 refreshing $get_wfs_recurse_xsl.wfs_output.xml.local = ${get_wfs_recurse_xsl.wfs_output.xml.local} </echo>
+         <property name="parallel_java_process_max" value="100"/>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="${uuid}"/>
+         <!--<local name="FieldName.test.local"/>
+         <property name="FieldName.test.local" value="${FieldName}"/>-->
+         
+         <local name="RootTableName.test.local"/>
+         <property name="RootTableName.test.local" value="${RootTableName}"/>
+         <local name="namespace.local"/>
+         <property name="namespace.local" value="${namespace}"/>
+         
+         
+              <local name="typeName.local"/>
+         <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/> <!-- default_db: -->
+              <local name="typeName.object.local"/>
+              <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+              <local name="pkName.typeName.object.local"/>
+              <property name="pkName.typeName.object.local" value="ID"/>
+              <local name="pkValue.typeName.object.local"/>
+         <!--<property name="pkValue.typeName.object.local" value="ID"/>-->
+         <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+         <local name="Query.xml.local"/>
+         <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+          <!--<local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>-->
+           
+         <!--<property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>-->
+         
+         <local name="wfs_output.xml.local"/>
+         <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+         
+         
+         <local name="wfs_timestamp.xml.local"/>
+         <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+         
+         <local name="resolveDepth.local"/>
+         <property name="resolveDepth.local" value="0"/>
+         
+         <local name="p5.links.recurse_level.limit.local"/>
+         <property name="p5.links.recurse_level.limit.local" value="0"/>
+         <local name="p5.links.next.recurse_level.limit.local"/>
+         <property name="p5.links.next.recurse_level.limit.local" value="0"/>
+         
+         
+         
+         <!-- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -->
+         
+         <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+            xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+            service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+               <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+               <Filter xmlns="http://www.opengis.net/ogc">
+                  <And xmlns="http://www.opengis.net/ogc">
+                     <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                        <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                        <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                     </PropertyIsEqualTo>
+                     <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                        <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                        <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                     </PropertyIsEqualTo>
+                  </And>
+               </Filter>
+            </Query></GetFeature>
+         </echoxml>
+         
+         
+         
+         <antcall target="get_wfs.GetFeature.local">
+            <!--<param name="Query.xml.local" value="${Query.xml.local}" />-->
+            <param name="Query.xml.local" value="${Query.xml.local}" />
+            <param name="typeName.object.local" value="${typeName.object.local}" />
+            <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+            <param name="wfs_result.xml.local" value="/dev/null" />
+            <param name="wfs_error.xml.local" value="/dev/null" />
+            <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+         </antcall>
+         
+         
+         <!--<exec executable="open">
+            <arg file="${wfs_output.xml.local}"/>
+         </exec>-->
+         
+
+         <local name="GetPropertyValue.properties.local"/>
+         <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+         <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+         
+         
+         <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+         
+         <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+         
+         <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+         <property name="uuid" value="${uuid.local}" />
+         <echo> #433 after set $uuid = ${uuid} 
+            $xpath_query.xsl = ${xpath_query.xsl}
+            deleting ${recurse_ant.temp}/${uuid}
+         </echo>
+         
+         <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+         
+         <!--<sequential> WFS Recurse
+            <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" > <!-\- inheritall="true"?? TODO -\->
+               <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+               <property name="typeName" value="${typeName.local}" />
+               <!-\-<property name="uuid" value="${uuid.local}"/>-\->
+               <property name="xpath" value="${pkName.typeName.object.local}"/>
+               <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+               <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+               <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+            </ant>
+         
+            <exec executable="open">
+               <arg file="${recurse_ant.wfs_output.xml.local}"/>
+            </exec>
+         </sequential>-->
+         
+         <!--<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value=""/>
+            <param name="typeName.object.local" value="${typeName.object.local}"/>
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+            <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+            <param name="debug.local" value="5"/>
+         </antcall>-->
+         <antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.simpleSchema.xml">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value="${typeName.local}"/>
+            <param name="typeName.object.local" value="${typeName.local}"/> <!-- ${typeName.object.local} -->
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <!--<param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>-->
+            <!--<param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>-->
+            <param name="debug.local" value="0"/>
+            <param name="simpleSchema.xml" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+         </antcall>
+         
+         <exec executable="open">
+            <arg file="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+         </exec>
+         
+      </sequential>
+            <!--<sequential>
+                       <local name="uuid.local"/>
+                    <property name="uuid.local" value="default_db__x2F__IN7_MK_BAZA_DYSTRYBUCJIINWESTYCJA_BUDOWA_SIECI"/>
+                    
+                      
+                       <local name="FieldName.test.local"/>
+                    <property name="FieldName.test.local" value="A_STATUS"/>
+                    
+                    <local name="RootTableName.test.local"/>
+                    <property name="RootTableName.test.local" value="IN7_MK_BAZA_DYSTRYBUCJI"/>
+                       <local name="namespace.local"/>
+                    <property name="namespace.local" value="default_db/IN7_MK_BAZA_DYSTRYBUCJI/ID_PROJECT"/>
+                    
+                    
+                    <local name="typeName.local"/>
+                    <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/>
+                       <local name="typeName.object.local"/>
+                    <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+                       <local name="pkName.typeName.object.local"/>
+                    <property name="pkName.typeName.object.local" value="ID"/>
+                       <local name="pkValue.typeName.object.local"/>
+                    <!-\-<property name="pkValue.typeName.object.local" value="ID"/>-\->
+                    
+                       <local name="Query.xml.local"/>
+                    <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+                      <!-\- <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+                    <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>-\->
+                       <local name="recurse_ant.wfs_output.xml.local"/>
+                    <property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>
+                    
+                    <local name="wfs_output.xml.local"/>
+                    <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+                    
+                    
+                    <local name="wfs_timestamp.xml.local"/>
+                    <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+                    
+                       <local name="resolveDepth.local"/>
+                    <property name="resolveDepth.local" value="5"/>
+                    
+                       <local name="p5.links.recurse_level.limit.local"/>
+                    <property name="p5.links.recurse_level.limit.local" value="5"/>
+                       <local name="p5.links.next.recurse_level.limit.local"/>
+                    <property name="p5.links.next.recurse_level.limit.local" value="5"/>
+                    
+                    
+                    <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+                    <!-\- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -\->
+                    <!-\-<echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">PARENT_ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">TYPE</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">DESC</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs" resolve="all" resolveDepth="2">${typeName.object.local}</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                             </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                             </PropertyIsEqualTo>
+                          </And>
+                       </Filter>
+                       </Query></GetFeature>
+                    </echoxml>-\->
+                    <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                                </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                                </PropertyIsEqualTo>
+                             </And>
+                          </Filter>
+                       </Query></GetFeature>
+                    </echoxml>
+                    
+                    
+                    
+                    <antcall target="get_wfs.GetFeature.local">
+                       <!-\-<param name="Query.xml.local" value="${Query.xml.local}" />-\->
+                       <param name="Query.xml.local" value="${Query.xml.local}" />
+                       <param name="typeName.object.local" value="${typeName.object.local}" />
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+                       <param name="wfs_result.xml.local" value="/dev/null" />
+                       <param name="wfs_error.xml.local" value="/dev/null" />
+                       <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+                    </antcall>
+                    
+                    
+                    <exec executable="open">
+                       <arg file="${wfs_output.xml.local}"/>
+                    </exec>
+                    
+                    
+                    
+                    <!-\-<antcall target="get_wfs.GetPropertyValue" inheritrefs="true">
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}"/>
+                       <param name="PropertyName.local" value="${pkName.typeName.object.local}"/>
+                       <param name="setPropertyName.local" value="pkValue.typeName.object.local"/>
+                    </antcall>-\->
+                    
+                    
+                    <!-\-<property name="pkValue.typeName.object.local"  refid="pkValue.typeName.object.local.refid"/>-\->
+                    <local name="GetPropertyValue.properties.local"/>
+                    <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+                    <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+                    
+                    <!-\-<exec executable="open">
+                       <arg file="${GetPropertyValue.properties.local}"/>
+                    </exec>-\->
+                    
+                    <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+                    
+                    
+                    <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+                    
+                    <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+                    <property name="uuid" value="${uuid.local}" />
+                    <echo> #433 after set $uuid = ${uuid} 
+                       $xpath_query.xsl = ${xpath_query.xsl}
+                       deleting ${recurse_ant.temp}/${uuid}
+                    </echo>
+                    
+                    <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+                    
+                    <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" inheritall="true">
+                       <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <property name="typeName" value="${typeName.local}" />
+                       <!-\-<property name="uuid" value="${uuid.local}"/>-\->
+                       <property name="xpath" value="${pkName.typeName.object.local}"/>
+                       <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </ant>
+                    
+                    <exec executable="open">
+                       <arg file="${recurse_ant.wfs_output.xml.local}"/>
+                    </exec>
+                    <!-\-<antcall target="builxml_recursed"> <!-\\- recurse_ant. -\\->
+                       <param name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <param name="typeName" value="${typeName.local}" />
+                       <param name="uuid" value="${uuid.local}"/>
+                       <param name="xpath" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <param name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <param name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </antcall>-\->
+                    
+                    <!-\-<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+                       <param name="uuid.local" value="${uuid.local}" />
+                       <param name="typeName.local" value=""/>
+                       <param name="typeName.object.local" value="${typeName.object.local}"/>
+                       <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+                       <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+                       <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                       <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+                       <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+                       <param name="debug.local" value="5"/>
+                    </antcall>-\->
+                    
+      </sequential>-->   
+   </target>
+   
+   <target name="ifproc.refresh.exists" description="To display info that file already exist" if="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+     <!-- <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"/>-->
+      <echo>#842 already exist probe file 
+         $recurse_ant.wfs_output.xml.local = ${recurse_ant.wfs_output.xml.local}
+         ( set $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}
+         - delete to refresh
+      </echo>
+   </target>
+  
+   
+   
+   <target name="Storage_AclUsage.list_process">
+      <!-- TO NIE DZIALA - wyzwala javascript- trzeba inaczej to zrobic - po zasobach -->
+      <property name="name" value="ZAKUP_AUTA_LEASING"/>
+      <property name="namespace" value="default_db/IN7_MK_BAZA_DYSTRYBUCJI/ZAKUP_AUTA_LEASING"/>
+      <property name="namespace.flat" value="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI__x3A__ZAKUP_AUTA_LEASING"/>
+      <local name="Storage_AclUsage.list_process.html"/>
+      <!--<local name="Storage_AclUsage.list_process.html.loadfile"/>-->
+      <local name="Storage_AclUsage.list_process.xml"/>
+      <property name="Storage_AclUsage.list_process.html" location="${Storage_AclStruct.repository}/${namespace.flat}.Storage_AclUsage.list_process.html" />
+      <property name="Storage_AclUsage.list_process.xml" location="${Storage_AclStruct.repository}/${namespace.flat}.Storage_AclUsage.list_process.xml" />
+      <!--  To check if are processes: 
+   https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclUsage&namespace=default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ
+    -->
+      
+      <!-- 
+      
+   
+      <thead>
+<tr>
+<th style="padding:2px">Lp.</th>
+<th style="padding:2px">ID_CELL </th>
+<th style="padding:2px">CELL_NAME </th>
+<th style="padding:2px">ID_TABLE </th>
+<th style="padding:2px">TABLE_NAME </th>
+<th style="padding:2px">TABLE_LABEL </th>
+<th style="padding:2px">TABLE_DESCRIPTION </th>
+<th style="padding:2px">ID_DATABASE </th>
+<th style="padding:2px">ID_PROCES </th>
+<th style="padding:2px">FORM_TREAT </th>
+<th style="padding:2px">R <i class="glyphicon glyphicon-question-sign" title="Odczyt"></i></th>
+<th style="padding:2px">W <i class="glyphicon glyphicon-question-sign" title="Zapis"></i></th>
+<th style="padding:2px">X <i class="glyphicon glyphicon-question-sign" title="Wykonanie"></i></th>
+<th style="padding:2px">C <i class="glyphicon glyphicon-question-sign" title="Tworzenie"></i></th>
+<th style="padding:2px">S <i class="glyphicon glyphicon-question-sign" title="Zapis pomimo braku uprawnień do rekordu"></i></th>
+<th style="padding:2px">O <i class="glyphicon glyphicon-question-sign" title="Tylko własne dane"></i></th>
+<th style="padding:2px">V <i class="glyphicon glyphicon-question-sign" title="Odczyt pomimo braku uprawnień do rekordu"></i></th>
+<th style="padding:2px">E <i class="glyphicon glyphicon-question-sign" title="Export"></i></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<th style="padding:2px; color:#ccc">1</th>
+<td style="padding:2px">42369</td>
+<td style="padding:2px">ID</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">2</th>
+<td style="padding:2px">42370</td>
+<td style="padding:2px">the_geom</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">3</th>
+<td style="padding:2px">42371</td>
+<td style="padding:2px">A_STATUS_INFO</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">4</th>
+<td style="padding:2px">42372</td>
+<td style="padding:2px">opis</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">5</th>
+<td style="padding:2px">42373</td>
+<td style="padding:2px">ID_ZASOB</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">6</th>
+<td style="padding:2px">42374</td>
+<td style="padding:2px">default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td> -->
+      <echo> Saving to $Storage_AclUsage.list_process.xml ${Storage_AclUsage.list_process.xml} </echo>
+      
+      <antcall target="get_wfs.PostHttpForm"> 
+         <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+         <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}&amp;_route=Storage_AclReinstall"/>
+         <param name="api_url.local" value="${Storage_AclStruct.url}?_route=Storage_AclUsage&amp;namespace=@{namespace}"/>
+         <param name="wfs_output.xml.local" value="${Storage_AclUsage.list_process.html}"/>
+      </antcall>
+      
+      <!--<loadfile property="Storage_AclUsage.list_process.html.loadfile" srcfile="${Storage_AclUsage.list_process.html}"/>-->
+      <!--<echoxml file="${Storage_AclUsage.list_process.xml}">
+         <Storage_AclUsage.list_process.html.loadfile>
+            ${Storage_AclUsage.list_process.html.loadfile}
+         </Storage_AclUsage.list_process.html.loadfile>
+      </echoxml>-->
+      
+      <!--<echo file="${Storage_AclUsage.list_process.xml}"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<Storage_AclUsage.list_process.html.loadfile>]]></echo>
+      <echo append="true" file="${Storage_AclUsage.list_process.xml}" message="${Storage_AclUsage.list_process.html.loadfile}"/>
+      <echo append="true" file="${Storage_AclUsage.list_process.xml}">
+         <![CDATA[</Storage_AclUsage.list_process.html.loadfile>]]>
+      </echo>
+      
+      <replaceregexp byline="true">
+         <regexp pattern="&lt;!DOCTYPE html&gt;"/>
+         <substitution expression=""/>
+         <fileset file="${Storage_AclUsage.list_process.xml}"/>
+      </replaceregexp>-->
+      <antcall target="tidy.toxml">
+         <param name="html" value="${Storage_AclUsage.list_process.html}" />
+         <param name="xml" value="${Storage_AclUsage.list_process.xml}" />
+      </antcall>
+      <exec executable="open">
+         <arg file="${Storage_AclUsage.list_process.xml}"/>
+      </exec>
+      
+      
+   </target>
+   
+   <!-- ACTION ADD DEFAULT PROCESS:
+   Summary
+URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addObjectBaseProcesAjax
+Status: 200 OK
+Source: Network
+
+Request
+POST /SE/version-git/index.php HTTP/1.1
+Content-Type: application/x-www-form-urlencoded
+Origin: https://biuro.biall-net.pl
+Host: biuro.biall-net.pl
+Accept: */*
+Connection: keep-alive
+Accept-Language: en-us
+Accept-Encoding: gzip, deflate
+Cookie: TREE_CRM_PROCES=1121%201122%201123%201125%203109%201126%203113%201127%201704%201128%201715; PHPSESSID=eukh8ac49af2nbfgmekv94be4jf1an4qlvi5no5061tc3e321fgfho5gv0g1d92bt53trci8n1ful0i57rmse73qbra86c6bvqgm7k0; language=pl; composesplitterv=248; identviewsplitter=266; prefviewsplitter=266; mailviewsplitterv=226
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclUsage&namespace=default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ
+Content-Length: 118
+
+Response
+HTTP/1.1 200 OK
+Content-Type: application/json
+Pragma: no-cache
+Date: Tue, 10 Apr 2018 19:02:51 GMT
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Server: Apache
+Content-Length: 50
+X-Powered-By: PHP/5.6.30
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Connection: Keep-Alive
+Keep-Alive: timeout=5, max=15
+MS-Author-Via: DAV
+
+Query String Parameters
+_route: Storage
+_task: addObjectBaseProcesAjax
+
+Request Data
+MIME Type: application/x-www-form-urlencoded
+namespace: default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ
+   
+  
+   
+   -->
+   
+   
+   
+   <!--<target name="refreshTables">
+      <!-\- Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=tableList&idStorage=36
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Type: text/html; charset=UTF-8
+Date: Mon, 16 Apr 2018 18:53:43 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=89
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+Transfer-Encoding: chunked
+X-Powered-By: PHP/5.6.30
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Cache-Control: max-age=0
+Connection: keep-alive
+Content-Length: 19
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=o3rktbrmf3k36uoq0np7gj8bm9c4177l95h5kohave7h8vfgfm3d1n91surssdidfl623v5dd4jd7m962mam7hgo5sb7pes029r4oj2
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=tableList&idStorage=36
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: tableList
+idStorage: 36
+
+ - form data!
+refreshObjectList: 1
+      -\->
+   </target>-->
+   
+   
+   <macrodef name="addProjectEnumTypeToZasobyAPI">
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="FieldName"/>
+      <attribute name="enumeration"/>
+      <attribute name="uuid"/>
+      <element name="addProjectEnumTypeToZasobyAPI"/>
+      <sequential/>
+   </macrodef>
+   
+   
+</project>

+ 1578 - 0
SE/schema/WPS_Functions/Storage_AclStruct/build_Storage_AclStruct.xml.fixed.xsd

@@ -0,0 +1,1578 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct.xsd"
+         basedir="../../."
+         default="default"
+         name="Storage_AclStruct">
+   <description>
+      Function to cooperate with p5 Storage/Resource calls for rapid add resources
+      
+      <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&_task=addFieldToZasobyAjax
+            Query String Parameters
+            _route: Storage_AclStruct
+            _task: addFieldToZasobyAjax
+
+            Request Data
+            MIME Type: application/x-www-form-urlencoded
+            namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER
+            fieldNamespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER/default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT
+      --></description>
+   <include as="PRODUCT" file="build.Storage_AclStruct.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.Storage_AclStruct.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.Storage_AclStruct.INSTALL.xml"/>
+   <!--<include file="${Storage_AclStruct.ifproc.build.xml}"/>-->
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <!--<include file="build_Storage_AclStruct.ifproc.xml"
+      as="Storage_AclStruct.ifproc"/>-->
+   <!--<include file="${Storage_AclStruct.ifproc.build.xml}" as="Storage_AclStruct.ifproc" optional="true"/>-->
+   <include file="${p5suis.build}" as="p5suis" optional="true"/>
+   <include file="../get_wfs/build_get_wfs.xml" as="get_wfs" optional="true"/>
+   <include file="../tidy/build_tidy.xml" as="tidy" optional="true"/>
+   <include file="../get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml"
+            as="get_wfs_recurse_xsl"
+            optional="true"/>
+   <!--<include file="../get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml" as="get_wfs_recurse_xsl"/>-->
+   <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL" name="default"/>
+   <property name="Storage_AclStruct.url"
+             value="${TargetNamespaceBindings}/SE/version-git/index.php"/>
+   <!--<property name="Storage_AclStruct.url.get._route" value="Storage_AclStruct"/>-->
+   <!--<target name="addAclObjectToZasobyAjax" description="first add object to resources - than add field resources">
+      
+      <!-\- 1 dodanie do zasobow  tabeli; 
+      Brak nr zasobu - dodaj do zasobów
+         https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+         https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+         
+         Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Length: 945
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 00:48:02 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=95
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 113
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: addAclObjectToZasobyAjax
+idStorage: 36
+namespace: default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84
+session-expire.php?task=getTimer	index.php?_route=Storage&_task=addAclObjectToZasobyAjax	session-expire.php?task=getTimer	session-expire.php?task=getTimer	session-expire.php?task=getTimer	validate.min.js	
+      -\->
+      
+   </target>-->
+   <!--<target name="addFieldToZasobyAjax" description="To add some resource to from xsd" depends="INSTALL.INSTALL"> <!-\- depends = addAclObjectToZasobyAjax -\->
+      
+      <local name="Storage_AclStruct.addFieldToZasobyAjax.url.get"/>
+      <local name="Storage_AclStruct.addFieldToZasobyAjax.url"/>
+      
+      <property name="Storage_AclStruct.addFieldToZasobyAjax.url.get" value="?_route=Storage_AclStruct&amp;_task=addFieldToZasobyAjax"/>
+      
+     
+      <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.NamespaceDatabaseStorageDefinitionPrefix" defaultvalue="default_db" message="Type NamespaceDatabaseStorageDefinitionPrefix - like default_db "/>-\->
+      <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.NamespaceObjectInstanceTable" message="Type NamespaceObjectInstanceTable IN7_MK_BAZA_DYSTRYBUCJI"/>-\->
+         <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.typeName.prefix" message="Type typeName - like default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY"/>-\->
+      
+      <input addproperty="Storage_AclStruct.addFieldToZasobyAjax.namespace" message="Type namespace - like default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER"/>
+      <!-\-<input addproperty="Storage_AclStruct.addFieldToZasobyAjax.field" defaultvalue="EMPTY" message="Type field  like default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT or opis" />-\->
+      <input addproperty="Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace"   message="Type field Namespace like default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER/default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT"/>
+      
+      <!-\-<local name="Storage_AclStruct.post.xml"/>
+      <tempfile property="Storage_AclStruct.post.xml" destdir="${Storage_AclStruct.temp}" prefix="Storage_AclStruct.post.xml" suffix=".xml" deleteonexit="no"/>
+      -\->
+      
+      
+      
+      <local name="Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local"/>
+      <property name="Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local">namespace=${Storage_AclStruct.addFieldToZasobyAjax.namespace}&amp;fieldNamespace=${Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace}</property>
+      
+      <property name="Storage_AclStruct.addFieldToZasobyAjax.url" value="${Storage_AclStruct.url}${Storage_AclStruct.addFieldToZasobyAjax.url.get}"/>
+      
+      <echo>
+         
+         vars: 
+            $wfs_input.xml = ${wfs_input.xml}
+            $api_url = ${api_url}
+            $TargetNamespaceBindings = ${TargetNamespaceBindings}
+            
+            $Storage_AclStruct.addFieldToZasobyAjax.namespace = ${Storage_AclStruct.addFieldToZasobyAjax.namespace}
+            $Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace = ${Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace}
+            
+            $Storage_AclStruct.post.xml = ${Storage_AclStruct.post.xml}
+            $Storage_AclStruct.addFieldToZasobyAjax.url = ${Storage_AclStruct.addFieldToZasobyAjax.url}
+            $Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local = ${Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local}
+            $passwordBase64Basic_tested = ${passwordBase64Basic_tested}
+            Will call antcall target="get_wfs.PostHttpForm"
+            $curl = ${curl} 
+         with targets:
+         
+      </echo>
+      <antcall target="get_wfs.PostHttpForm">
+         <param name="get_wfs.PostHttpForm.local" value="${Storage_AclStruct.addFieldToZasobyAjax.namespace.get_wfs.PostHttpForm.local}"/>
+         <param name="api_url.local" value="${Storage_AclStruct.addFieldToZasobyAjax.url}"/>
+      </antcall>
+      
+      <echo> after $passwordBase64Basic_tested = ${passwordBase64Basic_tested} </echo>
+      
+      <!-\-<exec executable="open">
+         <arg file="${Storage_AclStruct.post.xml}"/>
+      </exec>-\->
+      
+   </target>-->
+   <!--<target name="activateObjectAjax" description="after addFieldToZasobyAjax" depends="INSTALL.INSTALL"> <!-\- depends = addFieldToZasobyAjax -\->
+      
+               <!-\- Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=activateObjectAjax
+         Request Method: POST
+         Status Code: 500 Internal Server Error
+         Remote Address: 94.158.130.34:443
+         Referrer Policy: no-referrer-when-downgrade
+         Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+         Connection: close
+         Content-Length: 163
+         Content-Type: application/json
+         Date: Sat, 07 Apr 2018 00:50:21 GMT
+         Expires: Thu, 19 Nov 1981 08:52:00 GMT
+         MS-Author-Via: DAV
+         Pragma: no-cache
+         Server: Apache
+         X-Powered-By: PHP/5.6.30
+         Accept: */*
+         Accept-Encoding: gzip, deflate, br
+         Accept-Language: en-US,en;q=0.9,pl;q=0.8
+         Connection: keep-alive
+         Content-Length: 100
+         Content-Type: application/x-www-form-urlencoded
+         Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+         Host: biuro.biall-net.pl
+         Origin: https://biuro.biall-net.pl
+         Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84
+         User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+         _route: Storage
+         _task: activateObjectAjax
+         namespace: default_db/Rozdzielcza_Kabel_Swiatlowodowy_wsg84/Rozdzielcza_Kabel_Swiatlowodowy_wsg84 -\->
+      
+   </target>-->
+   <!-- ADD TABLE TO RES
+      Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addAclObjectToZasobyAjax
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Length: 983
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 05:14:30 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=92
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 126
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: addAclObjectToZasobyAjax
+idStorage: 36
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+   -->
+   <!-- REINSTALL
+   
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Request Method: GET
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Type: text/html; charset=UTF-8
+Date: Sat, 07 Apr 2018 04:58:02 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=95
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+Transfer-Encoding: chunked
+X-Powered-By: PHP/5.6.30
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage_AclReinstall
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+
+
+
+     [echo]             /opt/local/bin/curl  -b /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/get_wfs/temp/a.binder.cookie 
+     -d "namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84
+     &_route=Storage_AclReinstall" 
+        Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+
+     'https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84'
+
+
+   -->
+   <!-- REINSTALL SECOND
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Type: text/html; charset=UTF-8
+Date: Sat, 07 Apr 2018 04:59:01 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=82
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+Transfer-Encoding: chunked
+X-Powered-By: PHP/5.6.30
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Cache-Control: max-age=0
+Connection: keep-alive
+Content-Length: 19
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage_AclReinstall
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+_postTask: reinstall
+
+ /opt/local/bin/curl  -b /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/get_wfs/temp/a -d 
+ "namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84
+ &_route=Storage_AclReinstall
+ &_postTask=reinstall" 
+               'https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84/Rozdzielcza_Pakiet5MikrorurekMagistrala_WSG84'
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+
+   
+   -->
+   <!-- ADD RESOURCE SINGE
+   
+   Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&_task=addFieldToZasobyAjax
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Length: 104
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 05:11:17 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=94
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 246
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage_AclStruct
+_task: addFieldToZasobyAjax
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT
+fieldNamespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT/ID_KORESP_PROJEKT_WYK
+   -->
+   <!-- ACTIVATE OBJ:
+      
+      Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=activateObjectAjax
+Request Method: POST
+Status Code: 500 Internal Server Error
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: close
+Content-Length: 176
+Content-Type: application/json
+Date: Sat, 07 Apr 2018 05:42:08 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+X-Powered-By: PHP/5.6.30
+Accept: */*
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Connection: keep-alive
+Content-Length: 113
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=051e9pqieeijkhdljf3herdjvq3snik9k5d4rubjcm69eukj4omarrjnukcuvp3ct48k8auktksqi1tpnubgvfvjmhl32fbpnrm9580
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclStruct&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: activateObjectAjax
+namespace: default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DO_UZG_ZUD
+   
+   -->
+   <taskdef resource="net/sf/antcontrib/antlib.xml"/>
+   <!-- metoda post wymaga ant contrib -->
+   <target name="Storage_AclStruct">
+      <input addproperty="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"/>
+      <input addproperty="fix_se_defaultdb_schema.file"/>
+      <StorageAclStructRoot StorageAclStructRoot="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"
+                            fixsedefaultdbschemafile="${fix_se_defaultdb_schema.file}"/>
+   </target>
+   <macrodef name="StorageAclStructRoot">
+      <attribute name="StorageAclStructRoot"/>
+      <attribute name="fixsedefaultdbschemafile"/>
+      <element name="StorageAclStructRoot" implicit="no"/>
+      <sequential>
+         <echo> Openning file @{StorageAclStructRoot}</echo>
+         <!--<loadfile property="Storage_AclStruct.StorageAclStructRoot" srcfile="@{StorageAclStructRoot}"/>-->
+         <!--<property name="Storage_AclStruct.StorageAclStructRoot.build.xml" location="@{StorageAclStructRoot}.build.xml"/>-->
+         <!--<echo> Saving to  file $Storage_AclStruct.StorageAclStructRoot.build.xml = ${Storage_AclStruct.StorageAclStructRoot.build.xml}</echo>-->
+         <!--<include file="@{fixsedefaultdbschemafile}"/>-->
+         <ant antfile="@{StorageAclStructRoot}" inheritrefs="true"/>
+      </sequential>
+   </macrodef>
+   <macrodef name="addAclObjectToZasobyAjax">
+      <attribute name="namespace"/>
+      <attribute name="name"/>
+      <element name="addAclObjectToZasobyAjax"/>
+      <sequential>
+         <echo> #####403 
+            addAclObjectToZasobyAjax - @namespace = @{namespace} 
+         ####
+         </echo>
+         <antcall target="p5suis.p5suis:say_to_queue">
+            <param name="p5suis:say_text"
+                   value="add Acl Object To Zaso by Ajax p5:object @{name} "/>
+         </antcall>
+         <!--<StorageAclStructCall namespace="@{namespace}" task="addAclObjectToZasobyAjax"/>-->
+         <echo>#411 refreshObjectList</echo>
+         <antcall target="get_wfs.PostHttpForm"><!-- refreshObjectList -->
+            <param name="get_wfs.PostHttpForm.local" value="refreshObjectList=1"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage&amp;_task=tableList&amp;idStorage=36"/>
+            <!-- TODO ID STORAGE -->
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#418 addAclObjectToZasobyAjax</echo>
+         <antcall target="get_wfs.PostHttpForm">
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage&amp;_task=addAclObjectToZasobyAjax&amp;idStorage=36"/>
+            <!-- TODO ID STORAGE -->
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#425 REINSTALL</echo>
+         <antcall target="get_wfs.PostHttpForm"><!-- REINSTALL --><!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local"
+                   value="namespace=@{namespace}&amp;_route=Storage_AclReinstall"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#431 REINSTALL SECOND</echo>
+         <antcall target="get_wfs.PostHttpForm"><!-- REINSTALL SECOND --><!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local"
+                   value="namespace=@{namespace}&amp;_route=Storage_AclReinstall&amp;_postTask=reinstall"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <echo>#431-B AFTER REINSTALL SECOND</echo>
+      </sequential>
+   </macrodef>
+   <macrodef name="activateObjectAjax">
+      <attribute name="namespace"/>
+      <attribute name="name"/>
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="uuid"/>
+      <element name="activateObjectAjax"/>
+      <sequential>
+         <parallel threadcount="3">
+            <echo>#450 activateObjectAjax - @namespace = @{namespace} </echo>
+            <antcall target="p5suis.p5suis:say_to_queue">
+               <param name="p5suis:say_text" value="Activating p5:object @{name} "/>
+            </antcall>
+            <antcall target="get_wfs.PostHttpForm">
+               <param name="get_wfs.PostHttpForm.local"
+                      value="namespace=@{namespace}&amp;_route=Storage&amp;_task=activateObjectAjax"/>
+               <param name="api_url.local"
+                      value="${Storage_AclStruct.url}?_route=Storage&amp;_task=activateObjectAjax"/>
+               <param name="wfs_output.xml.local" value="/dev/null"/>
+            </antcall>
+            <!--<StorageAclStructCall namespace="@{namespace}" task="activateObjectAjax"/>-->
+            <echo>#460 StorageAclReinstall - @namespace = @{namespace} </echo>
+            <StorageAclReinstall namespace="@{namespace}"/>
+            <antcall target="get_wfs.PostHttpForm">
+               <param name="get_wfs.PostHttpForm.local"
+                      value="namespace=@{namespace}&amp;_route=Storage&amp;_task=activateObjectAjax"/>
+               <param name="api_url.local"
+                      value="${Storage_AclStruct.url}?_route=Storage&amp;_task=activateObjectAjax"/>
+               <param name="wfs_output.xml.local" value="/dev/null"/>
+            </antcall>
+            <!--<ifproc namespace="@{namespace}" RootTablePrefix="@{RootTablePrefix}" 
+                  RootTableName="@{RootTableName}" FieldName="" enumeration=""
+                  uuid="@{uuid}"/>-->
+            <echo>#469 AFTER activateObjectAjax</echo>
+            <sequential>
+               <local name="uuid.local"/>
+               <property name="uuid.local" value="@{uuid}"/>
+               <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+               <property name="get_wfs_recurse_xsl.wfs_output.xml.local"
+                         location="${fix_se_defaultdb_schema.repository}/@{namespace}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>
+               <condition property="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+                  <available file="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+               </condition>
+               <!--<include file="build_Storage_AclStruct.xml"/>-->
+               <!--<ant antfile="${Storage_AclStruct.build.xml} -DRootTablePrefix=@{RootTablePrefix} -D@{RootTableName} -DFieldName=@{FieldName} -Denumeration=@{enumeration} -Duuid=@{uuid} -Dnamespace=@{namespace} -Drecurse_ant.wfs_output.xml.local=${recurse_ant.wfs_output.xml.local}"  target="ifproc.refresh" >-->
+               <!-- <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+                         <param name="RootTableName" value="@{RootTableName}"/>
+                         <param name="FieldName" value="@{FieldName}"/>
+                         <param name="enumeration" value="@{enumeration}"/>
+                         <param name="uuid" value="@{uuid}"/>
+                         <param name="namespace" value="@{namespace}"/>
+                         <param name="recurse_ant.wfs_output.xml.local" value="${recurse_ant.wfs_output.xml.local}"/>-->
+               <!--</ant>-->
+               <echo> #483 antcall - Storage_AclStruct.StorageAclStruct.Refresh 
+                       $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}
+                     = $get_wfs_recurse_xsl.wfs_output.xml.local = ${get_wfs_recurse_xsl.wfs_output.xml.local} </echo>
+               <antcall target="Storage_AclStruct.StorageAclStruct.Refresh">
+                  <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+                  <param name="RootTableName" value="@{RootTableName}"/>
+                  <param name="FieldName" value="@{FieldName}"/>
+                  <param name="enumeration" value="@{enumeration}"/>
+                  <param name="uuid" value="@{uuid}"/>
+                  <param name="namespace" value="@{namespace}"/>
+                  <param name="get_wfs_recurse_xsl.wfs_output.xml.local"
+                         value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                  <param name="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"
+                         value="${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}"/>
+               </antcall>
+            </sequential>
+         </parallel>
+      </sequential>
+   </macrodef>
+   <macrodef name="addFieldToZasobyAjax">
+      <attribute name="namespace"/>
+      <attribute name="fieldNamespace"/>
+      <attribute name="field"/>
+      <attribute name="RootTableName"/>
+      <!-- To verify heritages -->
+      <element name="addFieldToZasobyAjax" implicit="true"/>
+      <sequential>
+         <echo> addFieldToZasobyAjax  @namespace =  @{namespace}  , fieldNamespace = @{fieldNamespace} </echo>
+         <StorageAclStructCallField namespace="@{namespace}"
+                                    fieldNamespace="@{fieldNamespace}"
+                                    task="addFieldToZasobyAjax"/>
+      </sequential>
+   </macrodef>
+   <macrodef name="ifproc"
+             description="To check if filed has a process - verify with local storage">
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="FieldName"/>
+      <attribute name="enumeration"/>
+      <attribute name="uuid"/>
+      <attribute name="namespace"/>
+      <element name="ifproc"/>
+      <sequential>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="@{uuid}"/>
+         <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+         <property name="get_wfs_recurse_xsl.wfs_output.xml.local"
+                   location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>
+         <!--<local name="recurse_ant.wfs_output.xml.local"/>-->
+         <!--<property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>-->
+         <condition property="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+            <available file="${recurse_ant.wfs_output.xml.local}"/>
+         </condition>
+         <!--<include file="build_Storage_AclStruct.xml"/>-->
+         <antcall target="ifproc.refresh">
+            <param name="RootTablePrefix" value="@{RootTablePrefix}"/>
+            <param name="RootTableName" value="@{RootTableName}"/>
+            <param name="FieldName" value="@{FieldName}"/>
+            <param name="enumeration" value="@{enumeration}"/>
+            <param name="uuid" value="@{uuid}"/>
+            <param name="namespace" value="@{namespace}"/>
+            <param name="get_wfs_recurse_xsl.wfs_output.xml.local"
+                   value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+         </antcall>
+      </sequential>
+   </macrodef>
+   <!--
+   <target name="ifproc.refresh" depends="ifproc.refresh.exists" description="To check if filed has a process" unless="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+      <input addproperty="RootTablePrefix"/>
+      <input addproperty="RootTableName"/>
+      <input addproperty="FieldName"/>
+      <input addproperty="enumeration"/>
+      <input addproperty="uuid"/>
+      <input addproperty="namespace"/>
+      <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <sequential>
+         
+         <property name="parallel_java_process_max" value="100"/>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="${uuid}"/>
+         <!-\-<local name="FieldName.test.local"/>
+         <property name="FieldName.test.local" value="${FieldName}"/>-\->
+         
+         <local name="RootTableName.test.local"/>
+         <property name="RootTableName.test.local" value="${RootTableName}"/>
+         <local name="namespace.local"/>
+         <property name="namespace.local" value="${namespace}"/>
+         
+         
+              <local name="typeName.local"/>
+         <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/> <!-\- default_db: -\->
+              <local name="typeName.object.local"/>
+              <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+              <local name="pkName.typeName.object.local"/>
+              <property name="pkName.typeName.object.local" value="ID"/>
+              <local name="pkValue.typeName.object.local"/>
+         <!-\-<property name="pkValue.typeName.object.local" value="ID"/>-\->
+         <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+         <local name="Query.xml.local"/>
+         <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+          <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+           
+         <property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>
+         
+         <local name="wfs_output.xml.local"/>
+         <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+         
+         
+         <local name="wfs_timestamp.xml.local"/>
+         <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+         
+         <local name="resolveDepth.local"/>
+         <property name="resolveDepth.local" value="0"/>
+         
+         <local name="p5.links.recurse_level.limit.local"/>
+         <property name="p5.links.recurse_level.limit.local" value="0"/>
+         <local name="p5.links.next.recurse_level.limit.local"/>
+         <property name="p5.links.next.recurse_level.limit.local" value="0"/>
+         
+         
+         
+         <!-\- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -\->
+         
+         <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+            xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+            service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+               <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+               <Filter xmlns="http://www.opengis.net/ogc">
+                  <And xmlns="http://www.opengis.net/ogc">
+                     <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                        <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                        <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                     </PropertyIsEqualTo>
+                     <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                        <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                        <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                     </PropertyIsEqualTo>
+                  </And>
+               </Filter>
+            </Query></GetFeature>
+         </echoxml>
+         
+         
+         
+         <antcall target="get_wfs.GetFeature.local">
+            <!-\-<param name="Query.xml.local" value="${Query.xml.local}" />-\->
+            <param name="Query.xml.local" value="${Query.xml.local}" />
+            <param name="typeName.object.local" value="${typeName.object.local}" />
+            <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+            <param name="wfs_result.xml.local" value="/dev/null" />
+            <param name="wfs_error.xml.local" value="/dev/null" />
+            <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+         </antcall>
+         
+         
+         <!-\-<exec executable="open">
+            <arg file="${wfs_output.xml.local}"/>
+         </exec>-\->
+         
+
+         <local name="GetPropertyValue.properties.local"/>
+         <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+         <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+         
+         
+         <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+         
+         <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+         
+         <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+         <property name="uuid" value="${uuid.local}" />
+         <echo> #433 after set $uuid = ${uuid} 
+            $xpath_query.xsl = ${xpath_query.xsl}
+            deleting ${recurse_ant.temp}/${uuid}
+         </echo>
+         
+         <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+         
+         <!-\-<sequential> WFS Recurse
+            <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" > <!-\\- inheritall="true"?? TODO -\\->
+               <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+               <property name="typeName" value="${typeName.local}" />
+               <!-\\-<property name="uuid" value="${uuid.local}"/>-\\->
+               <property name="xpath" value="${pkName.typeName.object.local}"/>
+               <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+               <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+               <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+            </ant>
+         
+            <exec executable="open">
+               <arg file="${recurse_ant.wfs_output.xml.local}"/>
+            </exec>
+         </sequential>-\->
+         
+         <!-\-<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value=""/>
+            <param name="typeName.object.local" value="${typeName.object.local}"/>
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+            <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+            <param name="debug.local" value="5"/>
+         </antcall>-\->
+         <antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.simpleSchema.xml">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value="${typeName.local}"/>
+            <param name="typeName.object.local" value="${typeName.local}"/> <!-\- ${typeName.object.local} -\->
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <!-\-<param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>-\->
+            <!-\-<param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>-\->
+            <param name="debug.local" value="0"/>
+            <param name="simpleSchema.xml" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+         </antcall>
+         
+         <exec executable="open">
+            <arg file="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+         </exec>
+         
+      </sequential>
+            <!-\-<sequential>
+                       <local name="uuid.local"/>
+                    <property name="uuid.local" value="default_db__x2F__IN7_MK_BAZA_DYSTRYBUCJIINWESTYCJA_BUDOWA_SIECI"/>
+                    
+                      
+                       <local name="FieldName.test.local"/>
+                    <property name="FieldName.test.local" value="A_STATUS"/>
+                    
+                    <local name="RootTableName.test.local"/>
+                    <property name="RootTableName.test.local" value="IN7_MK_BAZA_DYSTRYBUCJI"/>
+                       <local name="namespace.local"/>
+                    <property name="namespace.local" value="default_db/IN7_MK_BAZA_DYSTRYBUCJI/ID_PROJECT"/>
+                    
+                    
+                    <local name="typeName.local"/>
+                    <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/>
+                       <local name="typeName.object.local"/>
+                    <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+                       <local name="pkName.typeName.object.local"/>
+                    <property name="pkName.typeName.object.local" value="ID"/>
+                       <local name="pkValue.typeName.object.local"/>
+                    <!-\\-<property name="pkValue.typeName.object.local" value="ID"/>-\\->
+                    
+                       <local name="Query.xml.local"/>
+                    <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+                      <!-\\- <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+                    <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>-\\->
+                       <local name="recurse_ant.wfs_output.xml.local"/>
+                    <property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>
+                    
+                    <local name="wfs_output.xml.local"/>
+                    <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+                    
+                    
+                    <local name="wfs_timestamp.xml.local"/>
+                    <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+                    
+                       <local name="resolveDepth.local"/>
+                    <property name="resolveDepth.local" value="5"/>
+                    
+                       <local name="p5.links.recurse_level.limit.local"/>
+                    <property name="p5.links.recurse_level.limit.local" value="5"/>
+                       <local name="p5.links.next.recurse_level.limit.local"/>
+                    <property name="p5.links.next.recurse_level.limit.local" value="5"/>
+                    
+                    
+                    <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+                    <!-\\- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -\\->
+                    <!-\\-<echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">PARENT_ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">TYPE</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">DESC</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs" resolve="all" resolveDepth="2">${typeName.object.local}</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                             </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                             </PropertyIsEqualTo>
+                          </And>
+                       </Filter>
+                       </Query></GetFeature>
+                    </echoxml>-\\->
+                    <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                                </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                                </PropertyIsEqualTo>
+                             </And>
+                          </Filter>
+                       </Query></GetFeature>
+                    </echoxml>
+                    
+                    
+                    
+                    <antcall target="get_wfs.GetFeature.local">
+                       <!-\\-<param name="Query.xml.local" value="${Query.xml.local}" />-\\->
+                       <param name="Query.xml.local" value="${Query.xml.local}" />
+                       <param name="typeName.object.local" value="${typeName.object.local}" />
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+                       <param name="wfs_result.xml.local" value="/dev/null" />
+                       <param name="wfs_error.xml.local" value="/dev/null" />
+                       <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+                    </antcall>
+                    
+                    
+                    <exec executable="open">
+                       <arg file="${wfs_output.xml.local}"/>
+                    </exec>
+                    
+                    
+                    
+                    <!-\\-<antcall target="get_wfs.GetPropertyValue" inheritrefs="true">
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}"/>
+                       <param name="PropertyName.local" value="${pkName.typeName.object.local}"/>
+                       <param name="setPropertyName.local" value="pkValue.typeName.object.local"/>
+                    </antcall>-\\->
+                    
+                    
+                    <!-\\-<property name="pkValue.typeName.object.local"  refid="pkValue.typeName.object.local.refid"/>-\\->
+                    <local name="GetPropertyValue.properties.local"/>
+                    <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+                    <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+                    
+                    <!-\\-<exec executable="open">
+                       <arg file="${GetPropertyValue.properties.local}"/>
+                    </exec>-\\->
+                    
+                    <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+                    
+                    
+                    <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+                    
+                    <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+                    <property name="uuid" value="${uuid.local}" />
+                    <echo> #433 after set $uuid = ${uuid} 
+                       $xpath_query.xsl = ${xpath_query.xsl}
+                       deleting ${recurse_ant.temp}/${uuid}
+                    </echo>
+                    
+                    <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+                    
+                    <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" inheritall="true">
+                       <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <property name="typeName" value="${typeName.local}" />
+                       <!-\\-<property name="uuid" value="${uuid.local}"/>-\\->
+                       <property name="xpath" value="${pkName.typeName.object.local}"/>
+                       <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </ant>
+                    
+                    <exec executable="open">
+                       <arg file="${recurse_ant.wfs_output.xml.local}"/>
+                    </exec>
+                    <!-\\-<antcall target="builxml_recursed"> <!-\\\\- recurse_ant. -\\\\->
+                       <param name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <param name="typeName" value="${typeName.local}" />
+                       <param name="uuid" value="${uuid.local}"/>
+                       <param name="xpath" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <param name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <param name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </antcall>-\\->
+                    
+                    <!-\\-<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+                       <param name="uuid.local" value="${uuid.local}" />
+                       <param name="typeName.local" value=""/>
+                       <param name="typeName.object.local" value="${typeName.object.local}"/>
+                       <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+                       <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+                       <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                       <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+                       <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+                       <param name="debug.local" value="5"/>
+                    </antcall>-\\->
+                    
+      </sequential>-\->   
+   </target>
+   
+   <target name="ifproc.refresh.exists" description="To display info that file already exist" if="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+      <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <echo>#842 already exist probe file 
+         $recurse_ant.wfs_output.xml.local = ${recurse_ant.wfs_output.xml.local}
+         ( set $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}
+         - delete to refresh
+      </echo>
+   </target>
+   -->
+   <macrodef name="StorageAclStructCallField">
+      <attribute name="namespace"/>
+      <attribute name="fieldNamespace"/>
+      <attribute name="task"/>
+      <element name="StorageAclStructCallField"/>
+      <sequential>
+         <parallel threadcount="4">
+            <echo>#325 StorageAclStructCall for cell @{fieldNamespace}</echo>
+            <antcall target="get_wfs.PostHttpForm">
+               <param name="get_wfs.PostHttpForm.local"
+                      value="namespace=@{namespace}&amp;fieldNamespace=@{fieldNamespace}"/>
+               <param name="api_url.local"
+                      value="${Storage_AclStruct.url}?_route=Storage_AclStruct&amp;_task=@{task}"/>
+               <param name="wfs_output.xml.local" value="/dev/null"/>
+            </antcall>
+            <echo>#325 eof StorageAclStructCall for cell @{fieldNamespace}</echo>
+         </parallel>
+      </sequential>
+   </macrodef>
+   <macrodef name="StorageAclStructCall">
+      <attribute name="namespace"/>
+      <attribute name="task"/>
+      <element name="StorageAclStructCall"/>
+      <sequential>
+         <antcall target="get_wfs.PostHttpForm">
+            <param name="get_wfs.PostHttpForm.local" value="namespace=@{namespace}"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage_AclStruct&amp;_task=@{task}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <!--<antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="Activated object by task @{task}"/>
+      </antcall>-->
+      </sequential>
+   </macrodef>
+   <macrodef name="StorageAclReinstall">
+      <attribute name="namespace"/>
+      <element name="StorageAclReinstall"/>
+      <sequential>
+         <echo>#### 
+            StorageAclReinstall
+            for @{namespace}
+            
+            #######
+         </echo>
+         <antcall target="get_wfs.PostHttpForm"><!-- REINSTALL --><!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local"
+                   value="namespace=@{namespace}&amp;_route=Storage_AclReinstall"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <antcall target="get_wfs.PostHttpForm"><!-- REINSTALL SECOND --><!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+            <param name="get_wfs.PostHttpForm.local"
+                   value="namespace=@{namespace}&amp;_route=Storage_AclReinstall&amp;_postTask=reinstall"/>
+            <param name="api_url.local"
+                   value="${Storage_AclStruct.url}?_route=Storage_AclReinstall&amp;namespace=@{namespace}"/>
+            <param name="wfs_output.xml.local" value="/dev/null"/>
+         </antcall>
+         <!--<antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="Activated object by task @{task}"/>
+      </antcall>-->
+      </sequential>
+   </macrodef>
+   <target name="ifproc.refresh"
+           depends="ifproc.refresh.exists"
+           description="To check if filed has a process"
+           unless="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists">
+      <input addproperty="RootTablePrefix"/>
+      <input addproperty="RootTableName"/>
+      <input addproperty="FieldName"/>
+      <input addproperty="enumeration"/>
+      <input addproperty="uuid"/>
+      <input addproperty="namespace"/>
+      <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+      <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"/>
+      <sequential>
+         <echo>#959 refreshing $get_wfs_recurse_xsl.wfs_output.xml.local = ${get_wfs_recurse_xsl.wfs_output.xml.local} </echo>
+         <property name="parallel_java_process_max" value="100"/>
+         <local name="uuid.local"/>
+         <property name="uuid.local" value="${uuid}"/>
+         <!--<local name="FieldName.test.local"/>
+         <property name="FieldName.test.local" value="${FieldName}"/>-->
+         <local name="RootTableName.test.local"/>
+         <property name="RootTableName.test.local" value="${RootTableName}"/>
+         <local name="namespace.local"/>
+         <property name="namespace.local" value="${namespace}"/>
+         <local name="typeName.local"/>
+         <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/>
+         <!-- default_db: -->
+         <local name="typeName.object.local"/>
+         <property name="typeName.object.local"
+                   value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+         <local name="pkName.typeName.object.local"/>
+         <property name="pkName.typeName.object.local" value="ID"/>
+         <local name="pkValue.typeName.object.local"/>
+         <!--<property name="pkValue.typeName.object.local" value="ID"/>-->
+         <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+         <local name="Query.xml.local"/>
+         <property name="Query.xml.local"
+                   location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+         <!--<local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>-->
+         <!--<property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>-->
+         <local name="wfs_output.xml.local"/>
+         <property name="wfs_output.xml.local"
+                   location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+         <local name="wfs_timestamp.xml.local"/>
+         <property name="wfs_timestamp.xml.local"
+                   location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+         <local name="resolveDepth.local"/>
+         <property name="resolveDepth.local" value="0"/>
+         <local name="p5.links.recurse_level.limit.local"/>
+         <property name="p5.links.recurse_level.limit.local" value="0"/>
+         <local name="p5.links.next.recurse_level.limit.local"/>
+         <property name="p5.links.next.recurse_level.limit.local" value="0"/>
+         <!-- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -->
+         <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly">
+            <GetFeature xmlns="http://www.opengis.net/wfs/2.0"
+                        xmlns:ogc="http://www.opengis.net/ogc"
+                        xmlns:wfs="http://www.opengis.net/wfs"
+                        service="WFS"
+                        version="2.0.2">
+               <Query xmlns="http://www.opengis.net/wfs">
+                  <PropertyName>ID</PropertyName>
+                  <Filter xmlns="http://www.opengis.net/ogc">
+                     <And>
+                        <PropertyIsEqualTo>
+                           <PropertyName>TYPE</PropertyName>
+                           <Literal>TABELA</Literal>
+                        </PropertyIsEqualTo>
+                        <PropertyIsEqualTo>
+                           <PropertyName>DESC</PropertyName>
+                           <Literal>${namespace.local}</Literal>
+                        </PropertyIsEqualTo>
+                     </And>
+                  </Filter>
+               </Query>
+            </GetFeature>
+         </echoxml>
+         <antcall target="get_wfs.GetFeature.local"><!--<param name="Query.xml.local" value="${Query.xml.local}" />-->
+            <param name="Query.xml.local" value="${Query.xml.local}"/>
+            <param name="typeName.object.local" value="${typeName.object.local}"/>
+            <param name="wfs_output.xml.local" value="${wfs_output.xml.local}"/>
+            <param name="wfs_result.xml.local" value="/dev/null"/>
+            <param name="wfs_error.xml.local" value="/dev/null"/>
+            <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+         </antcall>
+         <!--<exec executable="open">
+            <arg file="${wfs_output.xml.local}"/>
+         </exec>-->
+         <local name="GetPropertyValue.properties.local"/>
+         <tempfile property="GetPropertyValue.properties.local"
+                   destdir="${fix_se_defaultdb_schema.temp}"
+                   prefix="${uuid.local}.GetPropertyValue"
+                   suffix=".properties"/>
+         <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}"
+                           wfsoutputxml="${wfs_output.xml.local}"
+                           PropertyName="${pkName.typeName.object.local}"
+                           setPropertyName="pkValue.typeName.object.local"/>
+         <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+         <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+         <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+         <property name="uuid" value="${uuid.local}"/>
+         <echo> #433 after set $uuid = ${uuid} 
+            $xpath_query.xsl = ${xpath_query.xsl}
+            deleting ${recurse_ant.temp}/${uuid}
+         </echo>
+         <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+         <!--<sequential> WFS Recurse
+            <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" > <!-\- inheritall="true"?? TODO -\->
+               <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+               <property name="typeName" value="${typeName.local}" />
+               <!-\-<property name="uuid" value="${uuid.local}"/>-\->
+               <property name="xpath" value="${pkName.typeName.object.local}"/>
+               <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+               <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+               <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+            </ant>
+         
+            <exec executable="open">
+               <arg file="${recurse_ant.wfs_output.xml.local}"/>
+            </exec>
+         </sequential>-->
+         <!--<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+            <param name="uuid.local" value="${uuid.local}" />
+            <param name="typeName.local" value=""/>
+            <param name="typeName.object.local" value="${typeName.object.local}"/>
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+            <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+            <param name="debug.local" value="5"/>
+         </antcall>-->
+         <antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.simpleSchema.xml">
+            <param name="uuid.local" value="${uuid.local}"/>
+            <param name="typeName.local" value="${typeName.local}"/>
+            <param name="typeName.object.local" value="${typeName.local}"/>
+            <!-- ${typeName.object.local} -->
+            <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+            <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+            <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local"
+                   value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+            <!--<param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>-->
+            <!--<param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>-->
+            <param name="debug.local" value="0"/>
+            <param name="simpleSchema.xml"
+                   value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+         </antcall>
+         <exec executable="open">
+            <arg file="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+         </exec>
+      </sequential>
+      <!--<sequential>
+                       <local name="uuid.local"/>
+                    <property name="uuid.local" value="default_db__x2F__IN7_MK_BAZA_DYSTRYBUCJIINWESTYCJA_BUDOWA_SIECI"/>
+                    
+                      
+                       <local name="FieldName.test.local"/>
+                    <property name="FieldName.test.local" value="A_STATUS"/>
+                    
+                    <local name="RootTableName.test.local"/>
+                    <property name="RootTableName.test.local" value="IN7_MK_BAZA_DYSTRYBUCJI"/>
+                       <local name="namespace.local"/>
+                    <property name="namespace.local" value="default_db/IN7_MK_BAZA_DYSTRYBUCJI/ID_PROJECT"/>
+                    
+                    
+                    <local name="typeName.local"/>
+                    <property name="typeName.local" value="default_db:CRM_LISTA_ZASOBOW"/>
+                       <local name="typeName.object.local"/>
+                    <property name="typeName.object.local" value="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW"/>
+                       <local name="pkName.typeName.object.local"/>
+                    <property name="pkName.typeName.object.local" value="ID"/>
+                       <local name="pkValue.typeName.object.local"/>
+                    <!-\-<property name="pkValue.typeName.object.local" value="ID"/>-\->
+                    
+                       <local name="Query.xml.local"/>
+                    <property name="Query.xml.local"  location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.xml"/>
+                      <!-\- <local name="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+                    <property name="get_wfs_recurse_xsl.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.get_wfs_recurse_xsl.wfs_output.xml"/>-\->
+                       <local name="recurse_ant.wfs_output.xml.local"/>
+                    <property name="recurse_ant.wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.recurse_ant.wfs_output.xml"/>
+                    
+                    <local name="wfs_output.xml.local"/>
+                    <property name="wfs_output.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_output.xml"/>
+                    
+                    
+                    <local name="wfs_timestamp.xml.local"/>
+                    <property name="wfs_timestamp.xml.local" location="${fix_se_defaultdb_schema.repository}/${namespace.local}.test.if_proc.wfs_timestamp.xml.xml"/>
+                    
+                       <local name="resolveDepth.local"/>
+                    <property name="resolveDepth.local" value="5"/>
+                    
+                       <local name="p5.links.recurse_level.limit.local"/>
+                    <property name="p5.links.recurse_level.limit.local" value="5"/>
+                       <local name="p5.links.next.recurse_level.limit.local"/>
+                    <property name="p5.links.next.recurse_level.limit.local" value="5"/>
+                    
+                    
+                    <mkdir dir="${fix_se_defaultdb_schema.repository}/${namespace.local}"/>
+                    <!-\- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" -\->
+                    <!-\-<echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">PARENT_ID</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">TYPE</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs">DESC</PropertyName>
+                          <PropertyName xmlns="http://www.opengis.net/wfs" resolve="all" resolveDepth="2">${typeName.object.local}</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                             </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                             </PropertyIsEqualTo>
+                          </And>
+                       </Filter>
+                       </Query></GetFeature>
+                    </echoxml>-\->
+                    <echoxml file="${Query.xml.local}" namespacepolicy="elementsOnly"><GetFeature xmlns="http://www.opengis.net/wfs/2.0" 
+                       xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs"
+                       service="WFS" version="2.0.2"><Query xmlns="http://www.opengis.net/wfs">
+                          <PropertyName xmlns="http://www.opengis.net/wfs">ID</PropertyName>
+                          <Filter xmlns="http://www.opengis.net/ogc">
+                             <And xmlns="http://www.opengis.net/ogc">
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">TYPE</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">TABELA</Literal>
+                                </PropertyIsEqualTo>
+                                <PropertyIsEqualTo xmlns="http://www.opengis.net/ogc">
+                                   <PropertyName xmlns="http://www.opengis.net/ogc">DESC</PropertyName>
+                                   <Literal xmlns="http://www.opengis.net/ogc">${namespace.local}</Literal>
+                                </PropertyIsEqualTo>
+                             </And>
+                          </Filter>
+                       </Query></GetFeature>
+                    </echoxml>
+                    
+                    
+                    
+                    <antcall target="get_wfs.GetFeature.local">
+                       <!-\-<param name="Query.xml.local" value="${Query.xml.local}" />-\->
+                       <param name="Query.xml.local" value="${Query.xml.local}" />
+                       <param name="typeName.object.local" value="${typeName.object.local}" />
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}" />
+                       <param name="wfs_result.xml.local" value="/dev/null" />
+                       <param name="wfs_error.xml.local" value="/dev/null" />
+                       <param name="wfs_timestamp.xml.local" value="${wfs_timestamp.xml.local}"/>
+                    </antcall>
+                    
+                    
+                    <exec executable="open">
+                       <arg file="${wfs_output.xml.local}"/>
+                    </exec>
+                    
+                    
+                    
+                    <!-\-<antcall target="get_wfs.GetPropertyValue" inheritrefs="true">
+                       <param name="wfs_output.xml.local" value="${wfs_output.xml.local}"/>
+                       <param name="PropertyName.local" value="${pkName.typeName.object.local}"/>
+                       <param name="setPropertyName.local" value="pkValue.typeName.object.local"/>
+                    </antcall>-\->
+                    
+                    
+                    <!-\-<property name="pkValue.typeName.object.local"  refid="pkValue.typeName.object.local.refid"/>-\->
+                    <local name="GetPropertyValue.properties.local"/>
+                    <tempfile property="GetPropertyValue.properties.local" destdir="${fix_se_defaultdb_schema.temp}" prefix="${uuid.local}.GetPropertyValue" suffix=".properties" />
+                    <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${pkName.typeName.object.local}" setPropertyName="pkValue.typeName.object.local" />
+                    
+                    <!-\-<exec executable="open">
+                       <arg file="${GetPropertyValue.properties.local}"/>
+                    </exec>-\->
+                    
+                    <loadproperties srcfile="${GetPropertyValue.properties.local}"/>
+                    
+                    
+                    <echo> $pkValue.typeName.object.local = ${pkValue.typeName.object.local} </echo>
+                    
+                    <echo>Testing same with GET_WFS_RECURSE method - musimy pobrac ID zasobu wczesniej $uuid = ${uuid} $uuid.local = ${uuid.local} </echo>
+                    <property name="uuid" value="${uuid.local}" />
+                    <echo> #433 after set $uuid = ${uuid} 
+                       $xpath_query.xsl = ${xpath_query.xsl}
+                       deleting ${recurse_ant.temp}/${uuid}
+                    </echo>
+                    
+                    <delete dir="${recurse_ant.temp}/${uuid}" failonerror="false"/>
+                    
+                    <ant antfile="${recurse_ant.build.xml}" target="builxml_recursed" inheritall="true">
+                       <property name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <property name="typeName" value="${typeName.local}" />
+                       <!-\-<property name="uuid" value="${uuid.local}"/>-\->
+                       <property name="xpath" value="${pkName.typeName.object.local}"/>
+                       <property name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <property name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <property name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </ant>
+                    
+                    <exec executable="open">
+                       <arg file="${recurse_ant.wfs_output.xml.local}"/>
+                    </exec>
+                    <!-\-<antcall target="builxml_recursed"> <!-\\- recurse_ant. -\\->
+                       <param name="main_build_recurse_ant.dita" value="${fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml}"/>
+                       <param name="typeName" value="${typeName.local}" />
+                       <param name="uuid" value="${uuid.local}"/>
+                       <param name="xpath" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value" value="${pkValue.typeName.object.local}"/>
+                       <param name="passwordBase64Basic" value="${passwordBase64Basic_tested}"/>
+                       <param name="out_task.dita.final" value="${recurse_ant.wfs_output.xml.local}"/>
+                    </antcall>-\->
+                    
+                    <!-\-<antcall target="get_wfs_recurse_xsl.xml_recursed_from_tr_map.api_recurse">
+                       <param name="uuid.local" value="${uuid.local}" />
+                       <param name="typeName.local" value=""/>
+                       <param name="typeName.object.local" value="${typeName.object.local}"/>
+                       <param name="xpath.local" value="${pkName.typeName.object.local}"/>
+                       <param name="xpath_value.local" value="${pkValue.typeName.object.local}"/>
+                       <param name="resolveDepth.local" value="${resolveDepth.local}"/>
+                       <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${get_wfs_recurse_xsl.wfs_output.xml.local}"/>
+                       <param name="p5.links.recurse_level.limit.local" value="${p5.links.recurse_level.limit.local}"/>
+                       <param name="p5.links.next.recurse_level.limit.local" value="${p5.links.next.recurse_level.limit.local}"/>
+                       <param name="debug.local" value="5"/>
+                    </antcall>-\->
+                    
+      </sequential>-->
+   </target>
+   <target name="ifproc.refresh.exists"
+           description="To display info that file already exist"
+           if="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"><!-- <input addproperty="recurse_ant.wfs_output.xml.local"/>
+      <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"/>-->
+      <echo>#842 already exist probe file 
+         $recurse_ant.wfs_output.xml.local = ${recurse_ant.wfs_output.xml.local}
+         ( set $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}
+         - delete to refresh
+      </echo>
+   </target>
+   <target name="Storage_AclUsage.list_process"><!-- TO NIE DZIALA - wyzwala javascript- trzeba inaczej to zrobic - po zasobach -->
+      <property name="name" value="ZAKUP_AUTA_LEASING"/>
+      <property name="namespace"
+                value="default_db/IN7_MK_BAZA_DYSTRYBUCJI/ZAKUP_AUTA_LEASING"/>
+      <property name="namespace.flat"
+                value="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI__x3A__ZAKUP_AUTA_LEASING"/>
+      <local name="Storage_AclUsage.list_process.html"/>
+      <!--<local name="Storage_AclUsage.list_process.html.loadfile"/>-->
+      <local name="Storage_AclUsage.list_process.xml"/>
+      <property name="Storage_AclUsage.list_process.html"
+                location="${Storage_AclStruct.repository}/${namespace.flat}.Storage_AclUsage.list_process.html"/>
+      <property name="Storage_AclUsage.list_process.xml"
+                location="${Storage_AclStruct.repository}/${namespace.flat}.Storage_AclUsage.list_process.xml"/>
+      <!--  To check if are processes: 
+   https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclUsage&namespace=default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ
+    -->
+      <!-- 
+      
+   
+      <thead>
+<tr>
+<th style="padding:2px">Lp.</th>
+<th style="padding:2px">ID_CELL </th>
+<th style="padding:2px">CELL_NAME </th>
+<th style="padding:2px">ID_TABLE </th>
+<th style="padding:2px">TABLE_NAME </th>
+<th style="padding:2px">TABLE_LABEL </th>
+<th style="padding:2px">TABLE_DESCRIPTION </th>
+<th style="padding:2px">ID_DATABASE </th>
+<th style="padding:2px">ID_PROCES </th>
+<th style="padding:2px">FORM_TREAT </th>
+<th style="padding:2px">R <i class="glyphicon glyphicon-question-sign" title="Odczyt"></i></th>
+<th style="padding:2px">W <i class="glyphicon glyphicon-question-sign" title="Zapis"></i></th>
+<th style="padding:2px">X <i class="glyphicon glyphicon-question-sign" title="Wykonanie"></i></th>
+<th style="padding:2px">C <i class="glyphicon glyphicon-question-sign" title="Tworzenie"></i></th>
+<th style="padding:2px">S <i class="glyphicon glyphicon-question-sign" title="Zapis pomimo braku uprawnień do rekordu"></i></th>
+<th style="padding:2px">O <i class="glyphicon glyphicon-question-sign" title="Tylko własne dane"></i></th>
+<th style="padding:2px">V <i class="glyphicon glyphicon-question-sign" title="Odczyt pomimo braku uprawnień do rekordu"></i></th>
+<th style="padding:2px">E <i class="glyphicon glyphicon-question-sign" title="Export"></i></th>
+</tr>
+</thead>
+<tbody>
+<tr>
+<th style="padding:2px; color:#ccc">1</th>
+<td style="padding:2px">42369</td>
+<td style="padding:2px">ID</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">2</th>
+<td style="padding:2px">42370</td>
+<td style="padding:2px">the_geom</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">3</th>
+<td style="padding:2px">42371</td>
+<td style="padding:2px">A_STATUS_INFO</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">4</th>
+<td style="padding:2px">42372</td>
+<td style="padding:2px">opis</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">5</th>
+<td style="padding:2px">42373</td>
+<td style="padding:2px">ID_ZASOB</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+</tr>
+<tr>
+<th style="padding:2px; color:#ccc">6</th>
+<td style="padding:2px">42374</td>
+<td style="padding:2px">default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW</td>
+<td style="padding:2px">36703</td>
+<td style="padding:2px">default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ</td>
+<td style="padding:2px">Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALI</td>
+<td style="padding:2px"><details><summary style="white-space:nowrap"></summary><p></p></details></td>
+<td style="padding:2px">36</td>
+<td style="padding:2px"><a href="procesy5.php?task=CRM_PROCES&filtr_id=6429" class="btn btn-xs btn-link" style="padding:0">6429</a></td>
+<td style="padding:2px">R</td>
+<td style="padding:2px"><span class="label label-success">1</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td>
+<td style="padding:2px"><span class="label label-danger">0</span></td> -->
+      <echo> Saving to $Storage_AclUsage.list_process.xml ${Storage_AclUsage.list_process.xml} </echo>
+      <antcall target="get_wfs.PostHttpForm"><!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclReinstall&namespace=default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_DRAFT -->
+         <param name="get_wfs.PostHttpForm.local"
+                value="namespace=@{namespace}&amp;_route=Storage_AclReinstall"/>
+         <param name="api_url.local"
+                value="${Storage_AclStruct.url}?_route=Storage_AclUsage&amp;namespace=@{namespace}"/>
+         <param name="wfs_output.xml.local"
+                value="${Storage_AclUsage.list_process.html}"/>
+      </antcall>
+      <!--<loadfile property="Storage_AclUsage.list_process.html.loadfile" srcfile="${Storage_AclUsage.list_process.html}"/>-->
+      <!--<echoxml file="${Storage_AclUsage.list_process.xml}">
+         <Storage_AclUsage.list_process.html.loadfile>
+            ${Storage_AclUsage.list_process.html.loadfile}
+         </Storage_AclUsage.list_process.html.loadfile>
+      </echoxml>-->
+      <!--<echo file="${Storage_AclUsage.list_process.xml}"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
+<Storage_AclUsage.list_process.html.loadfile>]]></echo>
+      <echo append="true" file="${Storage_AclUsage.list_process.xml}" message="${Storage_AclUsage.list_process.html.loadfile}"/>
+      <echo append="true" file="${Storage_AclUsage.list_process.xml}">
+         <![CDATA[</Storage_AclUsage.list_process.html.loadfile>]]>
+      </echo>
+      
+      <replaceregexp byline="true">
+         <regexp pattern="&lt;!DOCTYPE html&gt;"/>
+         <substitution expression=""/>
+         <fileset file="${Storage_AclUsage.list_process.xml}"/>
+      </replaceregexp>-->
+      <antcall target="tidy.toxml">
+         <param name="html" value="${Storage_AclUsage.list_process.html}"/>
+         <param name="xml" value="${Storage_AclUsage.list_process.xml}"/>
+      </antcall>
+      <exec executable="open">
+         <arg file="${Storage_AclUsage.list_process.xml}"/>
+      </exec>
+   </target>
+   <!-- ACTION ADD DEFAULT PROCESS:
+   Summary
+URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=addObjectBaseProcesAjax
+Status: 200 OK
+Source: Network
+
+Request
+POST /SE/version-git/index.php HTTP/1.1
+Content-Type: application/x-www-form-urlencoded
+Origin: https://biuro.biall-net.pl
+Host: biuro.biall-net.pl
+Accept: */*
+Connection: keep-alive
+Accept-Language: en-us
+Accept-Encoding: gzip, deflate
+Cookie: TREE_CRM_PROCES=1121%201122%201123%201125%203109%201126%203113%201127%201704%201128%201715; PHPSESSID=eukh8ac49af2nbfgmekv94be4jf1an4qlvi5no5061tc3e321fgfho5gv0g1d92bt53trci8n1ful0i57rmse73qbra86c6bvqgm7k0; language=pl; composesplitterv=248; identviewsplitter=266; prefviewsplitter=266; mailviewsplitterv=226
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.1 Safari/605.1.15
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage_AclUsage&namespace=default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ
+Content-Length: 118
+
+Response
+HTTP/1.1 200 OK
+Content-Type: application/json
+Pragma: no-cache
+Date: Tue, 10 Apr 2018 19:02:51 GMT
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Server: Apache
+Content-Length: 50
+X-Powered-By: PHP/5.6.30
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Connection: Keep-Alive
+Keep-Alive: timeout=5, max=15
+MS-Author-Via: DAV
+
+Query String Parameters
+_route: Storage
+_task: addObjectBaseProcesAjax
+
+Request Data
+MIME Type: application/x-www-form-urlencoded
+namespace: default_db/Rozdzielcza_Wykop_przedmiar_na_mikrorurki/Rozdzielcza_Wykop_przedmiar_na_mikrorurki_DO_REALIZ
+   
+  
+   
+   -->
+   <!--<target name="refreshTables">
+      <!-\- Request URL: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=tableList&idStorage=36
+Request Method: POST
+Status Code: 200 OK
+Remote Address: 94.158.130.34:443
+Referrer Policy: no-referrer-when-downgrade
+Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
+Connection: Keep-Alive
+Content-Type: text/html; charset=UTF-8
+Date: Mon, 16 Apr 2018 18:53:43 GMT
+Expires: Thu, 19 Nov 1981 08:52:00 GMT
+Keep-Alive: timeout=5, max=89
+MS-Author-Via: DAV
+Pragma: no-cache
+Server: Apache
+Transfer-Encoding: chunked
+X-Powered-By: PHP/5.6.30
+Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
+Accept-Encoding: gzip, deflate, br
+Accept-Language: en-US,en;q=0.9,pl;q=0.8
+Cache-Control: max-age=0
+Connection: keep-alive
+Content-Length: 19
+Content-Type: application/x-www-form-urlencoded
+Cookie: PHPSESSID=o3rktbrmf3k36uoq0np7gj8bm9c4177l95h5kohave7h8vfgfm3d1n91surssdidfl623v5dd4jd7m962mam7hgo5sb7pes029r4oj2
+Host: biuro.biall-net.pl
+Origin: https://biuro.biall-net.pl
+Referer: https://biuro.biall-net.pl/SE/version-git/index.php?_route=Storage&_task=tableList&idStorage=36
+Upgrade-Insecure-Requests: 1
+User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36
+_route: Storage
+_task: tableList
+idStorage: 36
+
+ - form data!
+refreshObjectList: 1
+      -\->
+   </target>-->
+   <macrodef name="addProjectEnumTypeToZasobyAPI">
+      <attribute name="RootTablePrefix"/>
+      <attribute name="RootTableName"/>
+      <attribute name="FieldName"/>
+      <attribute name="enumeration"/>
+      <attribute name="uuid"/>
+      <element name="addProjectEnumTypeToZasobyAPI"/>
+      <sequential/>
+   </macrodef>
+</project>

+ 16 - 7
SE/schema/WPS_Functions/ant/build_ant.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="../../." name="ant" default="p5ant.documentation.ant"
+<project basedir="../../." name="ant" default="p5ant.default"
     xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
     xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
     xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
@@ -40,6 +40,11 @@
             <mapper type="glob" from="p5dg.*" to="local.*"/>
         </propertyset>-->
     
+    <target name="p5ant.default">
+        <echo> Use mainly </echo>
+        <echo>  create_new_WPS_Function </echo>
+        <echo>  p5ant.documentation.ant </echo>
+    </target>
     
     <target name="p5ant.documentation.ant" depends="PRODUCT.basedir" >
         <echo> to  ${p5ant.documentation.files.antstructure.dtd}</echo>
@@ -169,10 +174,13 @@
                                                     <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.vendor-domain" value="$${WPS_Functions.PRODUCT.name}.${p5ant.WPS_Functions.PRODUCT.prefix.input}"/>
                                                     
                                                     <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir"     value="$${WPS_Functions.basedir}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
-                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository"  value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/repository"/>
-                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.install"  value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/install"/>
-                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp"         location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/temp"/>
+                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.build.xml"     value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/build_${p5ant.WPS_Functions.PRODUCT.prefix.input}.xml"/>
                                                     
+                                                    <!--<property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository"  value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/repository"/>-->
+                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.repository"     value="$${WPS_Functions.repository}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
+                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.install"  value="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/install"/>
+                                                    <!--<property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp"         location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/temp"/>-->
+                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.temp"         location="$${WPS_Functions.temp}/${p5ant.WPS_Functions.PRODUCT.name.input}"/>
                                                     
                                                     <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsl" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsl"/>
                                                     <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd" location="$${${p5ant.WPS_Functions.PRODUCT.prefix.input}.basedir}/${p5ant.WPS_Functions.PRODUCT.prefix.input}.xsd"/>
@@ -232,7 +240,7 @@
                                             <local name="p5ant.create_new_WPS_Function.project"/>
                                             <tempfile property="p5ant.create_new_WPS_Function.project" destdir="${p5ant.temp}" prefix="create_new_WPS_Function.project" suffix=".xml" deleteonexit="false"/>
                                             <echoxml file="${p5ant.create_new_WPS_Function.project}" namespacepolicy="elementsOnly">
-                                                <project basedir="${basedir}" name="${p5ant.WPS_Functions.PRODUCT.name.input}" default="default" xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
+                                                <project basedir="../../." name="${p5ant.WPS_Functions.PRODUCT.name.input}" default="default" xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
                                                     <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.xml" as="PRODUCT" />
                                                     <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.xml" as="SYSTEM" />
                                                     <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.INSTALL.xml"  as="INSTALL"/>
@@ -286,8 +294,9 @@
                                                     <include file="build.${p5ant.WPS_Functions.PRODUCT.prefix.input}.PRODUCT.xml" optional="true" as="PRODUCT"/>
                                                     
                                                     
-                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.StandardOutPath" location="${p5build_SE.SYSTEM.StandardOutPath}/${p5ant.WPS_Functions.PRODUCT.name.input}.log"/>
-                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.StandardErrorPath" location="${p5build_SE.SYSTEM.StandardErrorPath}/${p5ant.WPS_Functions.PRODUCT.name.input}.log"/>
+                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.StandardOutPath" location="$${p5build_SE.SYSTEM.StandardOutPath}/${p5ant.WPS_Functions.PRODUCT.name.input}.log"/>
+                                                    
+                                                    <property name="${p5ant.WPS_Functions.PRODUCT.prefix.input}.SYSTEM.StandardErrorPath" location="$${p5build_SE.SYSTEM.StandardErrorPath}/${p5ant.WPS_Functions.PRODUCT.name.input}.log"/>
 
                                                 </project>
                                             </echoxml>

+ 1 - 1
SE/schema/WPS_Functions/ant/p5ant.create_new_WPS_Function_xsd.xsl

@@ -53,7 +53,7 @@
             </xs:element>
             <xs:group name="PRODUCT">
                 <xs:sequence>
-                    <xs:element ref="{$$p5ant.WPS_Functions.PRODUCT.prefix.input}:PRODUCT"/>
+                    <xs:element ref="{$p5ant.WPS_Functions.PRODUCT.prefix.input}:PRODUCT"/>
                 </xs:sequence>
             </xs:group>
         </xs:schema>

+ 13 - 0
SE/schema/WPS_Functions/ant_interface/ant_interface-request.xsd

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5ant-interface-request="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-request.xsd"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-request.xsd"
+    elementFormDefault="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.public/ant/ant.xsd"
+        schemaLocation="../../default_db_xml_cache.public/ant/ant.xsd"/>
+    <xs:include
+        schemaLocation="../documentation_generator/repository/p5dg.documentation.files.antstructure-request.xsd"
+    />
+</xs:schema>

+ 13 - 0
SE/schema/WPS_Functions/ant_interface/ant_interface-resp.xsd

@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5ant-interface-resp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-resp.xsd"
+    targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-resp.xsd"
+    elementFormDefault="qualified" vc:minVersion="1.0"
+    xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning" vc:maxVersion="1.1">
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+        schemaLocation="../../default_db_xml_cache.public/ant/ant.xsd"/>
+    <xs:include
+        schemaLocation="../documentation_generator/repository/p5dg.documentation.files.antstructure-resp.xsd"
+    />
+</xs:schema>

+ 138 - 0
SE/schema/WPS_Functions/ant_interface/ant_interface.xsd

@@ -0,0 +1,138 @@
+<?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/WPS_Functions/ant_interface/ant_interface.xsd"
+    xmlns:p5ant-interface="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface.xsd"
+    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
+    xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd">
+    <xs:annotation>
+        <xs:documentation>To document input/output functions for mainly generate documentations and test functionability</xs:documentation>
+    </xs:annotation>
+    <xs:import namespace="http://schemas.xmlsoap.org/wsdl/"
+        schemaLocation="../../SystemObjects/wsdl.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-request.xsd"
+        schemaLocation="ant_interface-request.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-resp.xsd"
+        schemaLocation="ant_interface-resp.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+        schemaLocation="../documentation_generator/repository/p5dg.documentation.files.antstructure.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+        schemaLocation="../documentation_generator/repository/p5dg.documentation.files.antstructure.xsd"/>
+    <xs:import
+        namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+        schemaLocation="../documentation_generator/repository/p5dg.documentation.files.antstructure.xsd"/>
+    <xs:complexType name="tExtensibilityElementOpenAttrs">
+        <xs:complexContent>
+            <xs:extension base="wsdl:tExtensibilityElement">
+                <xs:anyAttribute namespace="##other" processContents="lax"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="binding" type="p5ant-interface:tBinding"/>
+    <xs:complexType name="tBinding">
+        <xs:complexContent>
+            <xs:extension base="p5ant-interface:tExtensibilityElementOpenAttrs">
+                <xs:attribute name="transport" type="xs:anyURI" use="required"/>
+                <xs:attribute name="style" type="p5ant-interface:tStyleChoice" use="optional"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="tStyleChoice">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="rpc"/>
+            <xs:enumeration value="document"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:element name="operation" type="p5ant-interface:tOperation"/>
+    
+    <xs:complexType name="tOperation">
+        <xs:complexContent>
+            <xs:extension base="p5ant-interface:tExtensibilityElementOpenAttrs">
+                <xs:attribute name="soapAction" type="xs:anyURI" use="optional"/>
+                <xs:attribute name="soapActionRequired" type="xs:boolean" use="optional"/>
+                <xs:attribute name="style" type="p5ant-interface:tStyleChoice" use="optional"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:attributeGroup name="soapAction">
+        <xs:attribute default="ant://" name="soapAction.protocol" type="xs:string"/>
+        <xs:attribute name="soapAction.target"/>
+    </xs:attributeGroup>
+    <xs:element name="body" type="p5ant-interface:tBody"/>
+    <xs:attributeGroup name="tBodyAttributes">
+        <!-- The encodingStyle attribute is now a single URI, instead of a list of URIs -->
+        <xs:attribute name="encodingStyle" type="xs:anyURI" use="optional"/>
+        <xs:attribute name="use" type="p5ant-interface:useChoice" use="optional"/>
+        <xs:attribute name="namespace" type="xs:anyURI" use="optional"/>
+    </xs:attributeGroup>
+    <xs:simpleType name="tParts">
+        <xs:list itemType="xs:NMTOKEN"/>
+    </xs:simpleType>
+    <xs:complexType name="tBody">
+        <xs:complexContent>
+            <xs:extension base="p5ant-interface:tExtensibilityElementOpenAttrs">
+                <xs:attribute name="parts" type="p5ant-interface:tParts" use="optional"/>
+                <xs:attributeGroup ref="p5ant-interface:tBodyAttributes"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:simpleType name="useChoice">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="literal"/>
+            <xs:enumeration value="encoded"/>
+        </xs:restriction>
+    </xs:simpleType>
+    <xs:element name="fault" type="p5ant-interface:tFault"/>
+    <xs:complexType name="tFaultRes" abstract="true">
+        <xs:complexContent>
+            <xs:restriction base="p5ant-interface:tBody">
+                <xs:attribute ref="wsdl:required" use="optional"/>
+                <xs:attribute name="parts" type="p5ant-interface:tParts" use="prohibited"/>
+                <xs:attributeGroup ref="p5ant-interface:tBodyAttributes"/>
+            </xs:restriction>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:complexType name="tFault">
+        <xs:complexContent>
+            <xs:extension base="p5ant-interface:tFaultRes">
+                <xs:attribute name="name" type="xs:NCName" use="required"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="header" type="p5ant-interface:tHeader"/>
+    <xs:attributeGroup name="tHeaderAttributes">
+        <xs:attribute name="message" type="xs:QName" use="required"/>
+        <xs:attribute name="part" type="xs:NMTOKEN" use="required"/>
+        <xs:attribute name="use" type="p5ant-interface:useChoice" use="required"/>
+        <xs:attribute name="encodingStyle" type="xs:anyURI" use="optional"/>
+        <xs:attribute name="namespace" type="xs:anyURI" use="optional"/>
+    </xs:attributeGroup>
+    <xs:complexType name="tHeader">
+        <xs:complexContent>
+            <xs:extension base="p5ant-interface:tExtensibilityElementOpenAttrs">
+                <xs:sequence>
+                    <xs:element ref="p5ant-interface:headerfault" minOccurs="0"
+                        maxOccurs="unbounded"/>
+                </xs:sequence>
+                <xs:attributeGroup ref="p5ant-interface:tHeaderAttributes"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+    <xs:element name="headerfault" type="p5ant-interface:tHeaderFault"/>
+    <xs:complexType name="tHeaderFault">
+        <xs:attributeGroup ref="p5ant-interface:tHeaderAttributes"/>
+        <xs:anyAttribute namespace="##other" processContents="lax"/>
+    </xs:complexType>
+    <xs:element name="address" type="p5ant-interface:tAddress"/>
+    <xs:complexType name="tAddress">
+        <xs:complexContent>
+            <xs:extension base="p5ant-interface:tExtensibilityElementOpenAttrs">
+                <xs:attribute name="location" type="xs:anyURI" use="required"/>
+            </xs:extension>
+        </xs:complexContent>
+    </xs:complexType>
+</xs:schema>

+ 75 - 12
SE/schema/WPS_Functions/build.WPS_Functions.PRODUCT.xml

@@ -1,21 +1,84 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="../" name="WPS_Functions.PRODUCT" default="WPS_Functions.parent.PRODUCT.ifdef">
+<project basedir="../" name="WPS_Functions.PRODUCT" default="WPS_Functions.parent.PRODUCT.ifdef"
+    xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+    >
+    
+    <include file="../build.p5build.PRODUCT.xml"/>
+    
+    <property name="public_html" location="${basedir}"/>
+    <property name="bootstrap.php" location="${basedir}/../se-lib/bootstrap.php"/>
+    
+    <property name="WPS_Functions.basedir" location="${basedir}/WPS_Functions"/>
+    
+            <property name="WPS_Functions" location="${WPS_Functions.basedir}"/>
+    
+    <property name="WPS_Functions.build" location="${WPS_Functions.basedir}/build_WPS_Functions.xml"/>
+    <property name="WPS_Functions.xsl" location="${WPS_Functions.basedir}/build_WPS_Functions.xsl"/>
+    <!--<property name="WPS_Functions.temp" location="${WPS_Functions.basedir}/temp"/>-->
+    <property name="WPS_Functions.repository" location="${p5build_SE.INSTALL_ROOT.repository}/WPS_Functions/repository"/>
+    
+    <property name="WPS_Functions.temp" location="${p5build_SE.INSTALL_ROOT.temp}/WPS_Functions/temp"/>
+    
+    <property name="tree_to_dita.xsl"
+        value="${default_db_xml_cache.public}/default_db/tree_to_dita.xsl"/>
+    
+    <!--<property name="WPS_Functions.properties.xml" value="" />-->
+    
+    <property name="WPS_Functions.configuration.dir" value="${p5build.configuration.dir}/${WPS_Functions.PRODUCT.prefix}"/>
+    <tempfile property="WPS_Functions.properties" destdir="${WPS_Functions.temp}" prefix="WPS_Functions." suffix=".properties"/>
+        <property name="WPS_Functions.properties" location="${WPS_Functions.basedir}/.build_WPS_Functions.xml.properties" />
+    <property name="WPS_Functions.childproperties" value="${WPS_Functions.basedir}/.build_WPS_Functions.childproperties"/>
+    
+    
+    
+    <property name="WPS_Functions.childproperties.builds.xml"
+        location="${WPS_Functions.childproperties}/WPS_Functions.builds.xml"/>
+    <property name="build_WPS_Functions.childproperties.builds.xml"
+        location="${WPS_Functions.temp}/build_WPS_Functions.childproperties.builds.xml"/>
+    <property name="build_WPS_Functions.xml" location="${WPS_Functions.build}"/>
+    <!-- call it to get properties -->
+    <property name="build_WPS_Functions.xsl" location="${WPS_Functions.xsl}"/>
+    <property name="build_WPS_Functions.xml.properties"
+        value="${WPS_Functions.properties}"/>
+    
+  
+    <property name="PROCES_INIT_tree_to_dita.xsl"
+        value="${default_db_xml_cache.public}/default_db/CRM_PROCES/PROCES_INIT_tree_to_dita.xsl"/>
+    <!-- to disable and use tree_to_dita.xsl which includes it  -->
+    <property name="tree_to_dita.xsl"
+        value="${default_db_xml_cache.public}/default_db/tree_to_dita.xsl"/>
+    <property name="api_url"
+        value="${TargetNamespaceBindings}/SE/version-git/wfs-data.php"/>
+    <!-- TO BE SET FROM LICENCE -->
+    <property name="namespace_prefix" value="default_db"/>
+    <property name="namespace_prefix_p5_tr_map" value="default_db"/>
+    <property name="p5_tr_map_dir" value="${p5_tr_map.local}"/>
+    <property name="simpleSchema_dir" value="${simpleSchema.local}"/>
+    <property name="detect_resource_type_dir" value="${detect_resource_type.local}"/>
+    <property name="build_complexType_dir" value="${build_complexType.local}"/>
+  
   
-  <include file="../build.p5build.PRODUCT.xml"/>
-  <include file="build_WPS_Function_basedir.xml" as="basedir"/>
+    <property name="postprocess.xsl"
+        location="${basedir}/default_db_xml_cache.public/system_cache__appinfo/postprocess.xsl"/>
+  
+    <include file="build_WPS_Function_basedir.xml" as="basedir"/>
     <condition property="WPS_Functions.PRODUCT.ifdef.parent" taskname="WPS_Functions.parent.PRODUCT.ifdef">
         <isset property="p5build_SE.PRODUCT.name"/>
     </condition>
   
-    <property name="WPS_Functions.PRODUCT.name" value="${p5build_SE.PRODUCT.name}.WPS_Functions"/>
-    <property name="WPS_Functions.PRODUCT.vendor-domain" value="${p5build_SE.PRODUCT.vendor-domain}"/>
-    <property name="WPS_Functions.basedir" location="${basedir}/WPS_Functions"/>
-    <property name="WPS_Functions.build" location="${WPS_Functions.basedir}/build_WPS_Functions.xml"/>
-    <property name="WPS_Functions.xsl" location="${WPS_Functions.basedir}/build_WPS_Functions.xsl"/>
-    <property name="WPS_Functions.temp" location="${WPS_Functions.basedir}/temp"/>
-    <property name="WPS_Functions.properties" location="${WPS_Functions.basedir}/.build_WPS_Functions.xml.properties" />
-    <property name="WPS_Functions.childproperties" value="${WPS_Functions.basedir}/.build_WPS_Functions.childproperties"/>
-    <!--<property name="WPS_Functions.properties.xml" value="" />-->
+    <property name="WPS_Functions.PRODUCT.name" value="${p5build.PRODUCT.name}.WPS_Functions"/>
+    <property name="WPS_Functions.PRODUCT.vendor-domain" value="${p5build.PRODUCT.vendor-domain}.WPS_Functions"/>
+    <property name="WPS_Functions.PRODUCT.prefix" value="p5bws"/>
+    <property name="WPS_Functions.PRODUCT.namespace" value="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"/>
+    
+    
+    <property name="WPS_Functions.parent.name" value="${p5build.PRODUCT.name}"/>
+    <property name="WPS_Functions.parent.artifactId" value="${p5build.PRODUCT.vendor-domain}"/>
+    <property name="WPS_Functions.parent.relativePath" value="../."/>
+    
+    
+    
+  
   
     <target name="WPS_Functions.parent.PRODUCT.ifdef" unless="WPS_Functions.PRODUCT.ifdef.parent">
         <fail>There is not set correct parent PRODUCT from expected file="../build.p5build.PRODUCT.xml" </fail>

+ 13 - 6
SE/schema/WPS_Functions/build_WPS_Function_properties.xml

@@ -31,8 +31,13 @@
     
     <!-- globbal properties -->
     <property name="public_html" value="${basedir}"/>
-    <property name="build_properties" value="${public_html}/.build_properties" />
-    <property name="build_properties.xml" value="${public_html}/.build_properties.xml" />
+   
+    <property name="build_properties" value="${p5build.properties}" />
+    <!--<tempfile property="build_properties" destdir="${basedir}" prefix=".build_properties" />
+        <property name="build_properties" value="${basedir}/.build_properties" />-->
+    <property name="build_properties.xml" value="${p5build.properties.xml}" />
+    <!--<tempfile property="build_properties.xml" destdir="${basedir}" prefix=".build_properties" suffix=".xml" />
+        <property name="build_properties.xml" value="${basedir}/.build_properties.xml" />-->
     
     <property name="WPS_Functions" value="${WPS_Functions.basedir}"/>
     <property name="build_WPS_Functions.xml" value="${WPS_Functions.build}"/> <!-- call it to get properties -->
@@ -68,14 +73,16 @@
     <target name="p5bws:build_WPS_Functions.xml.properties.cond" depends="p5bws:build_WPS_Functions.xml.properties.test,p5bws:build_WPS_Functions.xml.properties.fail,p5bws:build_WPS_Functions.xml.properties.ok"/>
     
     <target name="p5bws:build_WPS_Functions.xml.properties.fail"  unless="${p5bws.build_WPS_Functions.xml.properties.cond}">
-        <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>
+        <echo>#####  76 TO BE REMOVED USING READ PROPERTIES #### </echo>
+        <!--<ant antfile="${WPS_Functions.build}" target="save_build_properties"/>-->
         <!--<property name="build_WPS_Functions.xml.properties" value="${WPS_Functions.build}.properties"/>-->
-        <loadproperties srcfile="${WPS_Functions.properties}"/>
+        <!--<loadproperties srcfile="${WPS_Functions.properties}"/>-->
     </target>
     
     <target name="p5bws:build_WPS_Functions.xml.properties.ok"  if="${p5bws.build_WPS_Functions.xml.properties.cond}">
-        <echo>#66 properties ${WPS_Functions.properties} were ok ${p5bws.build_WPS_Functions.xml.properties.cond} </echo>
-        <loadproperties srcfile="${WPS_Functions.properties}"/>
+        <echo>#66  TO BE REMOVED USING READ PROPERTIES
+            properties ${WPS_Functions.properties} were ok ${p5bws.build_WPS_Functions.xml.properties.cond} </echo>
+        <!--<loadproperties srcfile="${WPS_Functions.properties}"/>-->
     </target>
     
     <target name="p5bws:read_build_properties" depends="p5bws:build_WPS_Functions.xml.properties.cond"/>

+ 168 - 186
SE/schema/WPS_Functions/build_WPS_Functions.xml

@@ -1,107 +1,101 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="../." name="WPS_Functions"
-    xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
-    
-    >
-  
-  <include file="build.WPS_Functions.PRODUCT.xml"/>
-  
-  <!-- TODO config/licence/to handle params  - in procesy5 there is SE/schema/WPS_Functions folder - so we need to tell it is in one more root folder ../-->
-    <property name="bootstrap.php" location="${basedir}/../se-lib/bootstrap.php"/> 
-  
-    <!-- parent properties -->
-    <property name="build_root.xml" location="${basedir}/build.xml"/>
-    <property name="build_properties" location="${basedir}/.build_properties" />
-    <property name="public_html" location="${basedir}" /> <!-- in some modules needed - to be removed -->
-
-
-    
-  
-    <!-- modules WPS_Functions - to be copied to any module needed -->
-    <property name="WPS_Functions" location="${basedir}/WPS_Functions"/>
-    <property name="WPS_Functions.temp" location="${WPS_Functions}/temp"/>
-    
-    <property name="WPS_Functions.childproperties.builds.xml" location="${WPS_Functions.childproperties}/WPS_Functions.builds.xml"/>
-    <property name="build_WPS_Functions.childproperties.builds.xml" location="${WPS_Functions.temp}/build_WPS_Functions.childproperties.builds.xml"/>
-    <property name="build_WPS_Functions.xml" location="${WPS_Functions.build}"/> <!-- call it to get properties -->
-    <property name="build_WPS_Functions.xsl" location="${WPS_Functions.xsl}"/>
-    <property name="build_WPS_Functions.xml.properties" value="${WPS_Functions.properties}"/>
-    
-    
-    
-    
-    <!-- eof modules WPS_Functions  -->
-  
-    
-    
-  
-  
-    <!-- TODO combinated object combinate_objects_for_instance_prototypes.xsl  -->
-    <property  name="combinate_objects_for_instance_prototypes.xsl" location="${basedir}/default_db_xml_cache/combinate_objects_for_instance_prototypes.xsl"/>
-    
-    
-    <!-- modules properties copied / controlled references -->
-    <property name="object_install_se_ant_object" location="${basedir}/WPS_Functions/object_install_se_ant_object/build_object_install_se_ant_object.xml"/>
-  
-    <property name="object_modeling_basedir" location="${basedir}/WPS_Functions/object_modeling"  />
-    <property name="object_modeling_build" location="${object_modeling_basedir}/build_object_modeling.xml"  />
-    <property name="object_modeling_new_basedir" location="${basedir}/WPS_Functions/object_modeling_new"  />
-    <property name="object_modeling_by_default_db_xml_schema_basedir" location="${basedir}/WPS_Functions/object_modeling_by_default_db_xml_schema"  />
-    
-    
-    
-    <property name="default_db:recurse_ant_basedir" location="${basedir}/WPS_Functions/default_db/recurse_ant"/>
-    <!--<property name="default_db:recurse_ant_basedir.temp" value="${default_db:recurse_ant_basedir}/temp/${uuid}"/>-->
-    <property name="default_db:recurse_ant_basedir.out" location="${default_db:recurse_ant_basedir}/out"/>
-    <property name="default_db:recurse_ant_basedir.recurse_cache" location="${default_db:recurse_ant_basedir}/recurse_cache"/><!-- @2017-06-22 cache plan -->
-    <property name="default_db:recurse_ant" value="${default_db:recurse_ant_basedir}/build_recurse_ant.xml"/>
-    
-    <property name="build_recurse_ant_cache_control.xsl" location="${basedir}/default_db_xml_cache.public/build_recurse_ant_cache_control.xsl"/>
-    
-    <property name="get_wfs_basedir" location="${basedir}/WPS_Functions/get_wfs"/><!-- to ordinary retrieve wfs data  -->
-    <property name="get_wfs_basedir.temp" location="${get_wfs_basedir}/temp"/>
-    <property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/><!-- to ordinary retrieve wfs data  -->
-    
-    <property name="object_modeling_build_infrastructure" location="${basedir}/WPS_Functions/object_modeling_build_infrastructure/build_object_modeling_build_infrastructure.xml"/>
-    <property name="object_modeling_new" location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml"/>
-    <property  name="object_modeling_new.xsl" location="${basedir}/default_db_xml_cache.public/object_modeling_new.xsl"/>
-    <property  name="object_modeling.xsl" location="${basedir}/default_db_xml_cache.public/object_modeling.xsl"/>
-    <property name="object_modeling_new_by_xml_schema.xsl" location="${basedir}/default_db_xml_cache.public/object_modeling_new_by_xml_schema.xsl"/>
-    
-    <property name="build_CRM_PROCES_tree" location="${WPS_Functions}/default_db/CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
-    
-    <property name="build_check_java_process_count.xml"  location="${basedir}/WPS_Functions/default_db/check_java_process_count/build_check_java_process_count.xml"/><!-- will set  output current max process in STDOUT - by using with ps ax|grep ant-launcher |wc -l -->
-        
-    <property name="mapserver_gml_to_png" location="${basedir}/WPS_Functions/mapserver_gml_to_png/build_mapserver_gml_to_png.xml"/>
-    <property name="mapserver_gml_to_png_basedir" location="${basedir}/WPS_Functions/mapserver_gml_to_png"  />                         
-    <property name="mapserver_gml_to_png_basedir.temp" location="${mapserver_gml_to_png_basedir}/temp"  />
-    
-    <property name="graph_gnuplot" location="${basedir}/WPS_Functions/graph_gnuplot/build_graph_gnuplot.xml"/>
-    <property name="graph_gnuplot_basedir" location="${basedir}/WPS_Functions/graph_gnuplot"  />                         
-    <property name="graph_gnuplot_basedir.temp" location="${graph_gnuplot_basedir}/temp"  />
-        
-    <property name="BI_audit" location="${WPS_Functions}/build_BI_audit.xml"/>
-        
-    <property name="postprocess.xsl" location="${basedir}/default_db_xml_cache.public/system_cache__appinfo/postprocess.xsl"/>
-    
-    
-    <property name="build_object_modeling_by_default_db_xml_schema.xml" location="${WPS_Functions}/object_modeling_by_default_db_xml_schema/build_object_modeling_by_default_db_xml_schema.xml"/>
-    
-    <property name="get_wfs_recurse_xsl.xsl" location="${basedir}/default_db_xml_cache.public/get_wfs_recurse_xsl.xsl"/>
-    <property name="build_get_wfs_recurse_xsl" location="${WPS_Functions}/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml"/>
-    
-    <property name="build_csv2xml.local_path" location="WPS_Functions/csv2xml"/> <!-- To be implemented in other modules to install xsl stylesheets correctly -->
-    <property name="build_csv2xml" location="${basedir}/${build_csv2xml.local_path}/build_csv2xml.xml"/>
-    
-    <property name="csv2xml" location="/opt/local/bin/csv2xml"/>
-    
-    <property name="build_qgis_make_user_style.xml" location="${WPS_Functions}/default_db/qgis_make_user_style/build_qgis_make_user_style.xml"/>
-    <property name="build_qgis_make_user_style.xsl" location="${WPS_Functions}/default_db/qgis_make_user_style/build_qgis_make_user_style.xsl"/>
-    
-    <property name="build_username_and_pass_from_passwordBase64Basic.xml" location="${WPS_Functions}/username_and_pass_from_passwordBase64Basic/build_username_and_pass_from_passwordBase64Basic.xml"/>
-    
-    <property name="system_ui_info_speech" location="${basedir}/WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml"/>
-         <!--<!-\-to say something manager: typical tasks:-\->
+<project xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+         basedir="../."
+         name="WPS_Functions">
+   <include file="build.WPS_Functions.PRODUCT.xml"/>
+   <!-- TODO config/licence/to handle params  - in procesy5 there is SE/schema/WPS_Functions folder - so we need to tell it is in one more root folder ../-->
+   
+   <!-- parent properties -->
+   <!--<property name="build_root.xml" location="${basedir}/build.xml"/>-->
+   <!--<property name="build_properties" location="${basedir}/.build_properties"/>-->
+   
+   <!-- in some modules needed - to be removed -->
+   <!-- modules WPS_Functions - to be copied to any module needed -->
+   
+   <!--<property name="WPS_Functions.temp" location="${WPS_Functions}/temp"/>-->
+   
+   <!-- eof modules WPS_Functions  -->
+   <!-- TODO combinated object combinate_objects_for_instance_prototypes.xsl  -->
+  <!-- <property name="combinate_objects_for_instance_prototypes.xsl"
+             location="${basedir}/default_db_xml_cache/combinate_objects_for_instance_prototypes.xsl"/>
+   <!-\- modules properties copied / controlled references -\->
+   <property name="object_install_se_ant_object"
+             location="${basedir}/WPS_Functions/object_install_se_ant_object/build_object_install_se_ant_object.xml"/>
+   <property name="object_modeling_basedir"
+             location="${basedir}/WPS_Functions/object_modeling"/>
+   <property name="object_modeling_build"
+             location="${object_modeling_basedir}/build_object_modeling.xml"/>
+   <property name="object_modeling_new_basedir"
+             location="${basedir}/WPS_Functions/object_modeling_new"/>
+   <property name="object_modeling_by_default_db_xml_schema_basedir"
+             location="${basedir}/WPS_Functions/object_modeling_by_default_db_xml_schema"/>
+   <property name="default_db:recurse_ant_basedir"
+             location="${basedir}/WPS_Functions/default_db/recurse_ant"/>
+   <!-\-<property name="default_db:recurse_ant_basedir.temp" value="${default_db:recurse_ant_basedir}/temp/${uuid}"/>-\->
+   <property name="default_db:recurse_ant_basedir.out"
+             location="${default_db:recurse_ant_basedir}/out"/>
+   <property name="default_db:recurse_ant_basedir.recurse_cache"
+             location="${default_db:recurse_ant_basedir}/recurse_cache"/>
+   <!-\- @2017-06-22 cache plan -\->
+   <property name="default_db:recurse_ant"
+             value="${default_db:recurse_ant_basedir}/build_recurse_ant.xml"/>
+   <property name="build_recurse_ant_cache_control.xsl"
+             location="${basedir}/default_db_xml_cache.public/build_recurse_ant_cache_control.xsl"/>
+   <property name="get_wfs_basedir" location="${basedir}/WPS_Functions/get_wfs"/>
+   <!-\- to ordinary retrieve wfs data  -\->
+   <property name="get_wfs_basedir.temp" location="${get_wfs_basedir}/temp"/>
+   <property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/>
+   <!-\- to ordinary retrieve wfs data  -\->
+   <property name="object_modeling_build_infrastructure"
+             location="${basedir}/WPS_Functions/object_modeling_build_infrastructure/build_object_modeling_build_infrastructure.xml"/>
+   <property name="object_modeling_new"
+             location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml"/>
+   <property name="object_modeling_new.xsl"
+             location="${basedir}/default_db_xml_cache.public/object_modeling_new.xsl"/>
+   <property name="object_modeling.xsl"
+             location="${basedir}/default_db_xml_cache.public/object_modeling.xsl"/>
+   <property name="object_modeling_new_by_xml_schema.xsl"
+             location="${basedir}/default_db_xml_cache.public/object_modeling_new_by_xml_schema.xsl"/>
+   <property name="build_CRM_PROCES_tree"
+             location="${WPS_Functions}/default_db/CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
+   <property name="build_check_java_process_count.xml"
+             location="${basedir}/WPS_Functions/default_db/check_java_process_count/build_check_java_process_count.xml"/>
+   <!-\- will set  output current max process in STDOUT - by using with ps ax|grep ant-launcher |wc -l -\->
+   <property name="mapserver_gml_to_png"
+             location="${basedir}/WPS_Functions/mapserver_gml_to_png/build_mapserver_gml_to_png.xml"/>
+   <property name="mapserver_gml_to_png_basedir"
+             location="${basedir}/WPS_Functions/mapserver_gml_to_png"/>
+   <property name="mapserver_gml_to_png_basedir.temp"
+             location="${mapserver_gml_to_png_basedir}/temp"/>
+   <property name="graph_gnuplot"
+             location="${basedir}/WPS_Functions/graph_gnuplot/build_graph_gnuplot.xml"/>
+   <property name="graph_gnuplot_basedir"
+             location="${basedir}/WPS_Functions/graph_gnuplot"/>
+   <property name="graph_gnuplot_basedir.temp"
+             location="${graph_gnuplot_basedir}/temp"/>
+   <property name="BI_audit" location="${WPS_Functions}/build_BI_audit.xml"/>
+   <property name="postprocess.xsl"
+             location="${basedir}/default_db_xml_cache.public/system_cache__appinfo/postprocess.xsl"/>
+   <property name="build_object_modeling_by_default_db_xml_schema.xml"
+             location="${WPS_Functions}/object_modeling_by_default_db_xml_schema/build_object_modeling_by_default_db_xml_schema.xml"/>
+   <property name="get_wfs_recurse_xsl.xsl"
+             location="${basedir}/default_db_xml_cache.public/get_wfs_recurse_xsl.xsl"/>
+   <property name="build_get_wfs_recurse_xsl"
+             location="${WPS_Functions}/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml"/>
+   <property name="build_csv2xml.local_path" location="WPS_Functions/csv2xml"/>
+   <!-\- To be implemented in other modules to install xsl stylesheets correctly -\->
+   <property name="build_csv2xml"
+             location="${basedir}/${build_csv2xml.local_path}/build_csv2xml.xml"/>
+   <property name="csv2xml" location="/opt/local/bin/csv2xml"/>
+   <property name="build_qgis_make_user_style.xml"
+             location="${WPS_Functions}/default_db/qgis_make_user_style/build_qgis_make_user_style.xml"/>
+   <property name="build_qgis_make_user_style.xsl"
+             location="${WPS_Functions}/default_db/qgis_make_user_style/build_qgis_make_user_style.xsl"/>
+   <property name="build_username_and_pass_from_passwordBase64Basic.xml"
+             location="${WPS_Functions}/username_and_pass_from_passwordBase64Basic/build_username_and_pass_from_passwordBase64Basic.xml"/>
+   <property name="system_ui_info_speech"
+             location="${basedir}/WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml"/>-->
+   <!--<!-\-to say something manager: typical tasks:-\->
             <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
                 <property name="p5suis:say_text" value="some text to say" />
             </ant>
@@ -114,91 +108,79 @@
            <!-\- and after that always-\->
              
         -->
-    
-    <!-- EOF modules properties copied / controlled references -->
-    
-    
- 
-    
+   <!-- EOF modules properties copied / controlled references -->
    <!-- <property name="wfs_output.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_output.xml"/>
     <property name="wfs_result.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_result.xml"/>
     <property name="wfs_error.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_error.xml"/>
     <property name="wfs_timestamp.xml" value="${get_wfs_basedir.temp}/${uuid}.wfs_timestamp.xml"/>
     -->
-    
-    <target name="create_tempdir">
-        <mkdir dir="${WPS_Functions.childproperties}"/>
-        <mkdir dir="${WPS_Functions.temp}"/>
-    </target>
-    
-    
-    
-    
-    
-    <target name="read_build_properties.childproperties" depends="create_tempdir, save_build_properties,read_WPS_Functions.childproperties.builds" description="To read child modules installed properties">
-        <concat destfile="${build_WPS_Functions.xml.properties}" fixlastline="true" overwrite="yes">
-            <fileset dir="${WPS_Functions.childproperties}" includes="*.properties"/>
-        </concat>
-        <!--<property file="${build_WPS_Functions.xml.properties}"/>-->
-    </target>
-    
-    <target name="read_WPS_Functions.childproperties.builds" depends="create_tempdir" description="Read installed modules builds to exec them in write_child_props_to_config_dir">
-        <fileset id="dist.contents" dir="${WPS_Functions}"   includes="**/build*.xml" > <!-- includes="**/build*.xml"  -->
-            <exclude name="**/temp/**"/>
-            <exclude name="**/recurse_cache/**"/>
-            <exclude name="**/build_WPS_Functions.xml/**"/>
-            <exclude name="**/build_WPS_Functions.xml/**"/>
-        </fileset>           
-        <property name="prop.dist.contents" refid="dist.contents"/>
-        <echoxml file="${WPS_Functions.childproperties.builds.xml}"><WPS_Functions.childproperties.builds>${prop.dist.contents}</WPS_Functions.childproperties.builds></echoxml>
-        
-        <!--<ant antfile="...file..." inheritall="yes" inheritrefs="yes" target="write_child_props_to_config_dir"/>-->
-        <xslt basedir="${WPS_Functions.temp}" style="${build_WPS_Functions.xsl}" in="${WPS_Functions.childproperties.builds.xml}"  destdir="${WPS_Functions.temp}" out="${build_WPS_Functions.childproperties.builds.xml}" >
-            <factory name="net.sf.saxon.TransformerFactoryImpl">    
-                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
-                <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>-->
-            </factory>
-            <param name="basedir" expression="${basedir}"/>
-            <classpath location="/opt/local/share/java/saxon9he.jar"/>
-            <param name="WPS_Functions" expression="${WPS_Functions}"/>
-        </xslt>
-        
-        
-        
-    </target>
-  
-  
-    <target name="read_WPS_Functions.childproperties.builds.read" depends="read_WPS_Functions.childproperties.builds">
-        <ant antfile="${build_WPS_Functions.childproperties.builds.xml}" inheritall="yes" inheritrefs="yes"/>
-    </target>
-  
-    <target name="save_build_properties" > <!-- todo nie wiem czy trzymac properties tu i tam - do optymalziacji-->
-        <!-- ${uuid} -->
-        <ant antfile="${build_root.xml}"  target="save_build_properties"/>
-        <loadproperties srcfile="${build_properties}"/>
-        
-        <property name="PROCES_INIT_tree_to_dita.xsl" value="${default_db_xml_cache.public}/default_db/CRM_PROCES/PROCES_INIT_tree_to_dita.xsl"/> <!-- to disable and use tree_to_dita.xsl which includes it  -->
-        <property name="tree_to_dita.xsl" value="${default_db_xml_cache.public}/default_db/tree_to_dita.xsl"/>
-        <property name="api_url" value="${TargetNamespaceBindings}/SE/version-git/wfs-data.php"/> <!-- TO BE SET FROM LICENCE -->
-        <property name="namespace_prefix" value="default_db"/>
-        <property name="namespace_prefix_p5_tr_map" value="default_db"/>
-        <property name="p5_tr_map_dir" value="${p5_tr_map.local}"/>
-        <property name="simpleSchema_dir" value="${simpleSchema.local}"/>
-        <property name="detect_resource_type_dir" value="${detect_resource_type.local}"/>
-        <property name="build_complexType_dir" value="${build_complexType.local}"/>
-        <echoproperties destfile="${WPS_Functions.properties}" />
-        <chmod file="${WPS_Functions.properties}" perm="777" failonerror="false"/>
-        <chown file="${WPS_Functions.properties}" owner="${p5build_SE.SYSTEM.local-user}" failonerror="false"/>
-    </target>
-  
-    <target name="clean" description="to clean modules dependent temporary files and its outputs">
-        <ant antfile="${default_db:recurse_ant}" target="clean"/>
-        <ant antfile="${get_wfs}" target="clean"/>
-        <ant antfile="${build_CRM_PROCES_tree}" target="clean"/>
-        <ant antfile="${graph_gnuplot}" target="clean"/>
-        <ant antfile="${object_modeling_build_infrastructure}" target="clean"/>
-        <ant antfile="${object_modeling_new}" target="clean"/>
-      
-    </target>
-    
-</project>
+   <target name="create_tempdir">
+      <mkdir dir="${WPS_Functions.childproperties}"/>
+      <mkdir dir="${WPS_Functions.temp}"/>
+      <mkdir dir="${WPS_Functions.repository}"/>
+   </target>
+   <target name="read_build_properties.childproperties"
+           depends="create_tempdir, save_build_properties,read_WPS_Functions.childproperties.builds"
+           description="To read child modules installed properties">
+      <concat destfile="${build_WPS_Functions.xml.properties}"
+              fixlastline="true"
+              overwrite="yes">
+         <fileset dir="${WPS_Functions.childproperties}" includes="*.properties"/>
+      </concat>
+      <!--<property file="${build_WPS_Functions.xml.properties}"/>-->
+   </target>
+   <target name="read_WPS_Functions.childproperties.builds"
+           depends="create_tempdir"
+           description="Read installed modules builds to exec them in write_child_props_to_config_dir">
+      <fileset id="dist.contents" dir="${WPS_Functions}" includes="**/build*.xml"><!-- includes="**/build*.xml"  -->
+         <exclude name="**/temp/**"/>
+         <exclude name="**/recurse_cache/**"/>
+         <exclude name="**/build_WPS_Functions.xml/**"/>
+         <exclude name="**/build_WPS_Functions.xml/**"/>
+      </fileset>
+      <property name="prop.dist.contents" refid="dist.contents"/>
+      <echoxml file="${WPS_Functions.childproperties.builds.xml}">
+         <WPS_Functions.childproperties.builds>${prop.dist.contents}</WPS_Functions.childproperties.builds>
+      </echoxml>
+      <!--<ant antfile="...file..." inheritall="yes" inheritrefs="yes" target="write_child_props_to_config_dir"/>-->
+      <xslt basedir="${WPS_Functions.temp}"
+            style="${build_WPS_Functions.xsl}"
+            in="${WPS_Functions.childproperties.builds.xml}"
+            destdir="${WPS_Functions.temp}"
+            out="${build_WPS_Functions.childproperties.builds.xml}">
+         <factory name="net.sf.saxon.TransformerFactoryImpl">
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="RelatedFeatureRoot"/>-->
+         </factory>
+         <param name="basedir" expression="${basedir}"/>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="WPS_Functions" expression="${WPS_Functions}"/>
+      </xslt>
+   </target>
+   <target name="read_WPS_Functions.childproperties.builds.read"
+           depends="read_WPS_Functions.childproperties.builds">
+      <ant antfile="${build_WPS_Functions.childproperties.builds.xml}"
+           inheritall="yes"
+           inheritrefs="yes"/>
+   </target>
+   <target name="save_build_properties" depends="create_tempdir"><!-- todo nie wiem czy trzymac properties tu i tam - do optymalziacji--><!-- ${uuid} -->
+      <!--<ant antfile="${build_root.xml}" target="save_build_properties"/>
+      <loadproperties srcfile="${build_properties}"/>-->
+      <echo>#169 TODO TO DISABLE save_build_properties </echo>
+     <!-- <echo>#189 debug $WPS_Functions.temp = ${WPS_Functions.temp} - $WPS_Functions.properties = ${WPS_Functions.properties}</echo>
+      <echoproperties destfile="${WPS_Functions.properties}"/>
+      <chmod file="${WPS_Functions.properties}" perm="777" failonerror="false"/>
+      <chown file="${WPS_Functions.properties}"
+             owner="${p5build_SE.SYSTEM.local-user}"
+             failonerror="false"/>-->
+   </target>
+   <target name="clean"
+           description="to clean modules dependent temporary files and its outputs">
+      <ant antfile="${default_db:recurse_ant}" target="clean"/>
+      <ant antfile="${get_wfs}" target="clean"/>
+      <ant antfile="${build_CRM_PROCES_tree}" target="clean"/>
+      <ant antfile="${graph_gnuplot}" target="clean"/>
+      <ant antfile="${object_modeling_build_infrastructure}" target="clean"/>
+      <ant antfile="${object_modeling_new}" target="clean"/>
+   </target>
+</project>

+ 1 - 0
SE/schema/WPS_Functions/build_WPS_Functions.xsl

@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
     exclude-result-prefixes="xs"
     version="2.0">
     <xsl:output indent="yes"/>

+ 17 - 15
SE/schema/WPS_Functions/default_db/CRM_PROCES_tree/build_CRM_PROCES_tree.xml

@@ -5,8 +5,10 @@
         To retrieve process tree - just process menu and structurized processes
     </description>
     
-    
-    <include file="../../build.WPS_Functions.PRODUCT.xml"/>
+    <include file="build.CRM_PROCES_tree.PRODUCT.xml"/>
+    <include file="../recurse_ant/build.recurse_ant.PRODUCT.xml"/>
+    <include file="../../mapserver_gml_to_png/build.mapserver_gml_to_png.PRODUCT.xml"/>
+    <!--<include file="../../build.WPS_Functions.PRODUCT.xml"/>-->
     <!-- modules WPS_Functions - to be copied to any module needed -->
     <!--<property name="WPS_Functions" value="${basedir}/WPS_Functions"/>-->
     <!--<property name="build_WPS_Functions.xml" value="${WPS_Functions}/build_WPS_Functions.xml"/>--> <!-- call it to get properties -->
@@ -15,9 +17,9 @@
     
     
     <!-- local module individual properties should contain ${project.name} basedir ant its .temp -->
-    <property name="build_CRM_PROCES_tree" location="${basedir}/WPS_Functions/default_db/CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
-    <property name="CRM_PROCES_tree_basedir" location="${basedir}/WPS_Functions/default_db/CRM_PROCES_tree"  />                         
-    <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree_basedir}/temp"  />
+    <property name="build_CRM_PROCES_tree" location="${CRM_PROCES_tree.install.build.xml}"/>
+    <property name="CRM_PROCES_tree_basedir" location="${CRM_PROCES_tree.basedir}"  />                         
+    <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree.temp}"  />
     
     <property name="build_CRM_PROCES_tree.childproperties" location="${WPS_Functions.properties}/build_CRM_PROCES_tree.properties"/>
     
@@ -37,21 +39,21 @@
         <mkdir dir="${CRM_PROCES_tree_basedir.temp}"/>
     </target>
     
-    <target name="read_build_properties" depends="default_db:CRM_PROCES:tree:create_tempdir">
+    <!--<target name="read_build_properties" depends="default_db:CRM_PROCES:tree:create_tempdir">
         <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>
         <loadproperties srcfile="${WPS_Functions.properties}"/>
-    </target>
+    </target>-->
     <!-- eof WPS_Function  -->
     
-    <target name="write_child_props_to_config_dir" depends="read_build_properties">
+    <!--R <target name="write_child_props_to_config_dir" depends="read_build_properties">
         <echoproperties destfile="${build_CRM_PROCES_tree.childproperties}"/>
-    </target>
+    </target>-->
     
     <target name="clean" description="Clean all output and temp files">
         <delete dir="${CRM_PROCES_tree_basedir.temp}" failonerror="false"/>
     </target>
     
-    <target name="default_db:CRM_PROCES:tree" depends="read_build_properties" description="builds process tree finishing to PROCES_INIT without it ">
+    <target name="default_db:CRM_PROCES:tree"  description="builds process tree finishing to PROCES_INIT without it "> <!-- R depends="read_build_properties" -->
         <ant antfile="${default_db:recurse_ant}"  target="clean_temp_dir">
             <property name="uuid" value="CRM_PROCES_tree"/>
         </ant>
@@ -66,7 +68,7 @@
     
     
     
-    <target name="default_db:PROCES_INIT:from_recurse" depends="read_build_properties">
+    <target name="default_db:PROCES_INIT:from_recurse" > <!-- R depends="read_build_properties" -->
         <ant antfile="${default_db:recurse_ant}"  target="clean_temp_dir">
             <property name="default_db:recurse_ant_basedir.temp" location="${default_db:recurse_ant_basedir}/temp/PROCES_INIT_list"/>
         </ant>
@@ -83,7 +85,7 @@
     
     
     
-    <target name="default_db:PROCES_INIT.wfs"   depends="read_build_properties" description="Get Process List">
+    <target name="default_db:PROCES_INIT.wfs"    description="Get Process List"> <!-- R depends="read_build_properties" -->
         <echo>TODO currently testing just one process 994  ${default_db:recurse_ant}
             simpleSchema_dir = ${simpleSchema_dir}</echo>
         <property name="uuid" value="PROCES_INIT_list"/>
@@ -103,7 +105,7 @@
         <!--<echo>$PROCES_INIT.FeatureCollection ${PROCES_INIT.FeatureCollection}</echo>-->
     </target>
     
-    <target name="default_db:PROCES_INIT:tree_from_wfs"   depends="read_build_properties,default_db:PROCES_INIT.wfs" description="By generating default_db:CRM_PROCES:tree we will respond with structurized PROCES_INIT with child process and resources xml structures - in parallel ant queries">
+    <target name="default_db:PROCES_INIT:tree_from_wfs"   depends="default_db:PROCES_INIT.wfs" description="By generating default_db:CRM_PROCES:tree we will respond with structurized PROCES_INIT with child process and resources xml structures - in parallel ant queries"> <!-- R read_build_properties, -->
         <!-- foreach PROCES_INIT.FeatureCollection/  -->
         <property name="uuid" value="PROCES_INIT_list"/><!-- moze nie dzialac nowe uuid -->
         <property name="default_db:PROCES_INIT:tree.raport.xml" location="${CRM_PROCES_tree_basedir.temp}/build_PROCES_INIT_list.raport.xml"/>
@@ -205,7 +207,7 @@
     </target>
     
     <!-- depends ,default_db:PROCES_INIT:from_recurse -->
-    <target name="default_db:PROCES_INIT:tree"   depends="read_build_properties,default_db:PROCES_INIT:from_recurse" description="By generating default_db:CRM_PROCES:tree we will respond with structurized PROCES_INIT with child process and resources xml structures - in parallel ant queries">
+    <target name="default_db:PROCES_INIT:tree"   depends="default_db:PROCES_INIT:from_recurse" description="By generating default_db:CRM_PROCES:tree we will respond with structurized PROCES_INIT with child process and resources xml structures - in parallel ant queries"> <!-- R read_build_properties, -->
         <!-- foreach PROCES_INIT.FeatureCollection/  -->
         <property name="uuid" value="PROCES_INIT_list"/>
         
@@ -252,7 +254,7 @@
     
     
     
-    <target name="default_db:PROCES_INIT:tree:dita" depends="read_build_properties" description="To create .dita file by using tree_to_dita.xsl which includes PROCES_INIT_tree_to_dita.xsl and also PROJECTS etc. ">
+    <target name="default_db:PROCES_INIT:tree:dita"  description="To create .dita file by using tree_to_dita.xsl which includes PROCES_INIT_tree_to_dita.xsl and also PROJECTS etc. "> <!-- depends="read_build_properties" -->
         <delete dir="${CRM_PROCES_tree_basedir.temp}/${uuid}" />
         <mkdir dir="${CRM_PROCES_tree_basedir.temp}/${uuid}"/>
         <property name="uuid" value="${uuid}"/> <!-- to be set from param -->

+ 39 - 0
SE/schema/WPS_Functions/default_db/check_java_process_count/build.check_java_process_count.PRODUCT.xml

@@ -0,0 +1,39 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:check_java_process_count="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/default_db/check_java_process_count.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../../."
+         default="PRODUCT"
+         name="check_java_process_count.PRODUCT">
+   
+   
+   <include as="WPS_Functions" file="../../build.WPS_Functions.PRODUCT.xml"/>
+   <include file="../../get_wfs/build.get_wfs.PRODUCT.xml"/>
+   
+   <property name="check_java_process_count.PRODUCT.name"
+      value="${WPS_Functions.PRODUCT.name}.default_db.check_java_process_count"/>
+   <property name="check_java_process_count.PRODUCT.vendor-domain"
+      value="${WPS_Functions.PRODUCT.name}.check_java_process_count"/>
+   <property name="check_java_process_count.basedir"
+      value="${WPS_Functions.basedir}/default_db/check_java_process_count"/>
+   <property name="check_java_process_count.repository"
+      value="${WPS_Functions.repository}/check_java_process_count"/>
+   <property name="check_java_process_count.install"
+      value="${check_java_process_count.basedir}/install"/>
+   <property location="${WPS_Functions.basedir}/check_java_process_count"
+      name="check_java_process_count.temp"/>
+   
+   <property location="${check_java_process_count.basedir}/build_check_java_process_count.xml"
+      name="check_java_process_count.build.xml"/>
+   
+   
+   
+   
+   
+   
+  
+   
+   <target name="PRODUCT"/>
+      
+   
+   
+</project>

+ 58 - 0
SE/schema/WPS_Functions/default_db/recurse_ant/build.recurse_ant.PRODUCT.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:recurse_ant="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/default_db/recurse_ant.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../../"
+         default="PRODUCT"
+         name="recurse_ant.PRODUCT">
+   
+   
+   <include as="WPS_Functions" file="${basedir}/WPS_Functions/build.WPS_Functions.PRODUCT.xml"/>
+   <include file="${WPS_Functions.basedir}/get_wfs/build.get_wfs.PRODUCT.xml"/>
+   <include file="${WPS_Functions.basedir}/default_db/check_java_process_count/build.check_java_process_count.PRODUCT.xml"/>
+   <include file="${WPS_Functions.basedir}/default_db/CRM_PROCES_tree/build.CRM_PROCES_tree.PRODUCT.xml" optional="true"/>
+   <include file="${WPS_Functions.basedir}/send_email/build.send_email.PRODUCT.xml" optional="true"/>
+   
+   <property name="recurse_ant.PRODUCT.name"
+      value="${WPS_Functions.PRODUCT.name}.default_db.recurse_ant"/>
+   <property name="recurse_ant.PRODUCT.vendor-domain"
+      value="${WPS_Functions.PRODUCT.name}.recurse_ant"/>
+   <property name="recurse_ant.basedir"
+      value="${WPS_Functions.basedir}/default_db/recurse_ant"/>
+   <property name="recurse_ant.repository"
+      value="${WPS_Functions.repository}/recurse_ant"/>
+   <property name="recurse_ant.install"
+      value="${recurse_ant.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/recurse_ant"
+      name="recurse_ant.temp"/>
+   
+   <property location="${recurse_ant.basedir}/build_recurse_ant.xml"
+      name="recurse_ant.build.xml"/>
+   
+   <property name="default_db:recurse_ant_basedir" location="${recurse_ant.basedir}"/>
+   
+   <property name="recurse_ant.basedir.out" value="${recurse_ant.basedir}/out"/>
+   <property name="default_db:recurse_ant_basedir.out" value="${recurse_ant.basedir.out}"/>
+   
+   <!--<property name="default_db:recurse_ant_basedir.temp" location="${default_db:recurse_ant_basedir}/temp/${uuid}"/>
+   <property name="recurse_ant.default_db.recurse_ant_basedir.temp" location="${recurse_ant.basedir}/temp/${uuid}"/>
+   -->
+   
+   
+   
+   <property name="p5_tr_map_dir" location="${basedir}/default_db.instance.xml/p5_tr_map" />
+   <property name="simpleSchema_dir" location="${basedir}//default_db.instance.xml/simpleSchema" />
+   <property name="detect_resource_type_dir" location="${basedir}/default_db.instance.xml/detect_resource_type" />
+   <property name="build_complexType_dir" location="${basedir}/default_db.instance.xml/build_complexType" />
+   <property name="default_db.instance.xml" location="${basedir}/default_db.instance.xml" />
+   <property name="default_db_xml_cache.public" location="${basedir}/default_db_xml_cache.public"/>
+   
+   
+   <property name="get_wfs_basedir" location="${get_wfs.basedir}"/>
+   <property name="get_wfs" location="${get_wfs.build}"/>
+   
+   
+   <target name="PRODUCT"/>
+      
+   
+   
+</project>

+ 319 - 47
SE/schema/WPS_Functions/default_db/recurse_ant/build_recurse_ant.xml

@@ -1,9 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." name="recurse_ant" default="buildpdf_recursed"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+<project basedir="../../../." name="recurse_ant" default="buildpdf_recursed"  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
     xmlns:xs="http://www.w3.org/2001/XMLSchema" >
     <description>
         Recurse ANT to retrieve structurized xml objects based on Related SimpleSchema maps
     </description>
+    
+    <echo>#88 $uuid = ${uuid}</echo>
     <!-- template do kopiowania test-druk @2017-03-02 bindera 
     Copyright BIALL-NET sp. z o.o. wszelkie prawa zastrzezone
     
@@ -34,30 +36,35 @@
         -DtypeName="p5_default_db:IN7_DZIENNIK_KORESP" 
         -Dxpath=ID -Dxpath_value=1000 
         -Duuid=1 -DwebRootUrl=somePathDir-->
+    
+    <include file="build.recurse_ant.PRODUCT.xml"/>
+    <include file="${p5build_SE.build}" as="p5build_SE"/> <!-- for paths and dirs create in some tasks -->
+    <include file="${send_email.build.xml}" as="send_email"/>
+    
     <property name="basedir"  location="${basedir}" /> <!-- do ustalenia glownego katalogu -->
-    <property name="default_db:recurse_ant_basedir" location="."/>
-    <property name="default_db:recurse_ant_basedir.temp" location="${default_db:recurse_ant_basedir}/temp/${uuid}"/> <!-- /${uuid} -->
-    <property name="default_db:recurse_ant" value="${default_db:recurse_ant_basedir}/build_recurse_ant.xml"/>
-    <property name="default_db:recurse_ant_basedir.recurse_cache" location="${default_db:recurse_ant_basedir}/recurse_cache"/>
+    <property name="default_db:recurse_ant_basedir"  value="${recurse_ant.basedir}"/>
+    <property name="default_db:recurse_ant_basedir.temp" location="${recurse_ant.temp}/${uuid}"/> <!-- /${uuid} -->
+    <property name="default_db:recurse_ant" value="${recurse_ant.build.xml}"/>
+    <property name="default_db:recurse_ant_basedir.recurse_cache" location="${recurse_ant.repository}/recurse_cache"/>
      
-    <!--<property name="build_recurse_ant.childproperties" location="${WPS_Functions.childproperties}/build_recurse_ant.properties"/>--><!-- TODO UNKNOWN -->
+    <!--<property name="build_recurse_ant.childproperties" value="${WPS_Functions.childproperties}/build_recurse_ant.properties"/>--><!-- TODO UNKNOWN -->
     
     <property name="out" value="out"/> <!-- output ready files like pdf -->
     <property name="p5_tr_map_dir" location="${basedir}/../../../default_db.instance.xml/p5_tr_map" />
-    <property name="simpleSchema_dir" location="${basedir}/../../../default_db.instance.xml/simpleSchema" />
-    <property name="detect_resource_type_dir" location="${basedir}/../../../default_db.instance.xml/detect_resource_type" />
-    <property name="build_complexType_dir" location="${basedir}/../../../default_db.instance.xml/build_complexType" />
-    <property name="default_db.instance.xml" location="${basedir}/../../../default_db.instance.xml" />
-
+    <!--R<property name="simpleSchema_dir" location="${basedir}/../../../default_db.instance.xml/simpleSchema" />-->
+    <!--R<property name="detect_resource_type_dir" location="${basedir}/../../../default_db.instance.xml/detect_resource_type" />-->
+    <!--R<property name="build_complexType_dir" location="${basedir}/../../../default_db.instance.xml/build_complexType" />-->
+    <!--R<property name="default_db.instance.xml" location="${basedir}/../../../default_db.instance.xml" />-->
+    
     <property name="uuid" value="${uuid}"/> <!--TODO-->
     <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
     <property name="php_session_id" value="${php_session_id}"/> <!-- optional cookie if sent work with it if not - get it -->
     <property name="url" value="${url}"/>
     <property name="webRootUrl" value="${$webRootUrl}"/>
 
-    <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_p5_tr_map" value="default_db"/> <!-- do przetowrzenia w nazwie pliku docelowej element-default_db__x3A__CRM_PROCES__x3A__CRM_PROCES oraz dla detect_resource_type_dir -->
+    <!--R<property name="api_url" value="https://biuro.biall-net.pl/SE/version-git/wfs-data.php"/>-->
+    <!--R<property name="namespace_prefix" value="p5_default_db"/>--> <!-- ex: p5_default_db to complete after p5_default_db:IN7_DZIENNIK_KORESP -->
+    <!--R<property name="namespace_prefix_p5_tr_map" value="default_db"/>--> <!-- do przetowrzenia w nazwie pliku docelowej element-default_db__x3A__CRM_PROCES__x3A__CRM_PROCES oraz dla detect_resource_type_dir -->
     <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="xpath" value="${xpath}"/> <!-- to be set initially like as key to search ID  -->
     <property name="xpath_value" value="${xpath_value}" /> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
@@ -70,7 +77,9 @@
     <!-- DO NOT SET --><property name="parallel_pos" value="1"/>
     <!--<property name="temp_name" value="temp" />--> <!-- temp files-->
     <property name="temp" value="${default_db:recurse_ant_basedir.temp}${loop_path_recurs}" /> <!-- temp files-->
+    <echo>#75 before $xpath_query.xsl = ${xpath_query.xsl} , $uuid = ${uuid}</echo>
     <property name="xpath_query.xsl" value="${default_db:recurse_ant_basedir.temp}/${uuid}.xpath_query.xsl"/>
+    <echo>#76 after $xpath_query.xsl = ${xpath_query.xsl} , $uuid = ${uuid}</echo> 
     <property name="build_recurse_ant_xpath_query.xsl" value="${default_db:recurse_ant_basedir.temp}/build_recurse_ant_xpath_query.xsl"/>
     
     <property name="process_locks" value="${default_db:recurse_ant_basedir.temp}/.locks"/>
@@ -86,19 +95,19 @@
     <property name="out_task.dita.final_with_RelatedFeatureLoop_no_path"   value="${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
     <property name="out_task.dita.final_with_RelatedFeatureLoop"   value="${default_db:recurse_ant_basedir}/out/${uuid}.out_task.dita.final_with_RelatedFeatureLoop" />
     
-    <property name="ant-launcher.jar" location="/opt/local/share/java/apache-ant/lib/ant-launcher.jar"/><!-- should be also set in parent build -->
-    <property name="build_check_java_process_count.xml"  value="${basedir}/../check_java_process_count/build_check_java_process_count.xml"/>
+    <!--R<property name="ant-launcher.jar" location="/opt/local/share/java/apache-ant/lib/ant-launcher.jar"/>--><!-- should be also set in parent build -->
+    <property name="build_check_java_process_count.xml"  value="${check_java_process_count.build.xml}"/>
     <property name="parallel_java_process_max" value="20"/> <!-- to limit max processes in parallel concurent tasks jobs - will use ${build_check_java_process_count.xml} -->
      <!-- do zrobienia  -->
     <!--<tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />-->
-    <property name="get_wfs_basedir" location="${default_db:recurse_ant_basedir}/../../get_wfs"/>
-    <property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/>
+    <!--R<property name="get_wfs_basedir" location="${default_db:recurse_ant_basedir}/../../get_wfs"/>-->
+    <!--R<property name="get_wfs" location="${get_wfs_basedir}/build_get_wfs.xml"/>-->
+    
+    <property name="build_CRM_PROCES_tree" location="${CRM_PROCES_tree.build.xml}"/>
+    <property name="CRM_PROCES_tree_basedir" location="${CRM_PROCES_tree.basedir}"  />                         
+    <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree.temp}"  />
     
-    <property name="build_CRM_PROCES_tree" location="${default_db:recurse_ant_basedir}/../CRM_PROCES_tree/build_CRM_PROCES_tree.xml"/>
-    <property name="CRM_PROCES_tree_basedir" location="${default_db:recurse_ant_basedir}/../CRM_PROCES_tree"  />                         
-    <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree_basedir}/temp"  />
     
-    <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
     
     <property name="input_obj_fid_forced" value="${input_obj_fid_forced}"/>
     
@@ -110,16 +119,14 @@
     </echo>-->
 
     <!-- uuid -->
-    <property name="CRM_PROCES_tree_basedir" location="${default_db:recurse_ant_basedir}/../CRM_PROCES_tree"  />                         
-    <property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree_basedir}/temp"  />
-    
-    <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
+    <!--<property name="CRM_PROCES_tree_basedir" location="${CRM_PROCES_tree.basedir}"  />-->                         
+    <!--<property name="CRM_PROCES_tree_basedir.temp" location="${CRM_PROCES_tree.temp}"  />-->
     
+    <!--R <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
     
     
-    <property name="default_db_targetNamespace_detect_string" value="default_db/table/"/>
-    <property name="zasob_id_db_targetNamespace_detect_string" value="https://biuro.biall-net.pl/api/"/>
     
+  
     <target name="write_child_props_to_config_dir" depends="install_folders">
         <!--<echoproperties destfile="${build_recurse_ant.childproperties}"/>-->
         <echo> TODO #120 - module is to be updated to provide properties - he dont know where is WPS_Functions - to fix. Bypassed properties</echo>
@@ -243,13 +250,20 @@
     </target>
     
     
-    <target name="install_folders">
+    <target name="install_folders" depends="p5build_SE.save_build_properties">
         <mkdir dir="${temp}"/>
         <mkdir dir="${out}"/>
         <mkdir dir="${default_db:recurse_ant_basedir.recurse_cache}"/>
-        <chmod  dir="${temp}" perm="ugo+rwx"/>
-        <chmod  dir="${out}" perm="ugo+rwx"/>
-        <chmod  dir="${default_db:recurse_ant_basedir.recurse_cache}" perm="ugo+rwx"/>
+        <chmod  dir="${temp}" perm="ugo+rwx" failonerror="false"/>
+        <chmod  dir="${out}" perm="ugo+rwx" failonerror="false"/>
+        <chmod  dir="${default_db:recurse_ant_basedir.recurse_cache}" perm="ugo+rwx" failonerror="false"/>
+        <echo>#259 running main p5build_SE.save_build_properties to retrieve paths for folders etc
+        $p5build_SE.build_procesy5_config.folders.root_points.mount_point = ${p5build_SE.build_procesy5_config.folders.root_points.mount_point}
+        $p5build_SE.build_procesy5_config.folders.IN7_DZIENNIK_KORESP_COLUMN.mount_point = ${p5build_SE.build_procesy5_config.folders.IN7_DZIENNIK_KORESP_COLUMN.mount_point}
+        
+        </echo>
+        <!--<antcall target="p5build_SE.save_build_properties"/>-->
+        
     </target>
 
 
@@ -260,12 +274,12 @@
             <arg value="echo ${typeName_tested} |sed 's/.*://'"/>
         </exec>
         <property name="main_build_recurse_ant.dita" value="${main_build_recurse_ant.dita_sed}.dita"/>
-        <echo> Ustawiam $main_build_recurse_ant.dita na ${main_build_recurse_ant.dita} ;  </echo>
+        <echo> Ustawiam $main_build_recurse_ant.dita na ${main_build_recurse_ant.dita} ; $uuid = ${uuid} </echo>
         
         <property name="main_build_recurse_ant.dita_with_id" value="${temp}/${main_build_recurse_ant.dita}.with_id.xml"  />
         <property name="main_build_recurse_ant.dita_with_id.xsl" value="${default_db_xml_cache.public}/main_build_recurse_ant.dita_with_id.xsl"  />
         <condition property="test_if_dita" taskname="check_dita" >
-            <available file="${main_build_recurse_ant.dita}"/>  
+            <available file="${recurse_ant.basedir}/${main_build_recurse_ant.dita}"/>  
         </condition>
     </target>
     
@@ -275,7 +289,7 @@
     
     <target name="dita_fail" unless="${test_if_dita}">
         <echo message="OUTPUT__START"/>   
-        <echo>&lt;br&gt;Brakuje druku dla powiązanego obiektu ${main_build_recurse_ant.dita} &lt;/br&gt;</echo>         
+        <echo>&lt;br&gt;Brakuje druku dla powiązanego obiektu ${recurse_ant.basedir}/${main_build_recurse_ant.dita} &lt;/br&gt;</echo>         
         <echo message="OUTPUT__END"/>
     </target>
     
@@ -422,6 +436,88 @@
     </target>
    
    
+    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_tree_to_dita_wfs_recursed" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,set_dita" description="URL_TASK Wygeneruj druk z obiektu uzywajac styli systemowych za pomoca funkcji xsl_recursed">
+        <record name="recursed.log" action="start" />
+        
+        <exec  executable="bash" dir="." outputproperty="out_task_file">
+            <arg value="-c"/>
+            <arg value="echo ${out_task.dita.final} |sed 's/^.*\///'"/>
+        </exec>
+        
+        <echo>#427 $out_task.dita.final = ${out_task.dita.final} , $out = ${out} , $out_task_file =  ${out_task_file}
+            $out_task.dita.final.noext = ${out_task.dita.final.noext}
+            $out_task.dita.final_with_RelatedFeatureLoop = ${out_task.dita.final_with_RelatedFeatureLoop}
+        </echo>
+        <!-- 
+                 [echo] #427 $out_task.dita.final = /Users/a.binder/Documents/se/SE/schema/ant-url_action/default_db.in7_dziennik_koresp/pismo/temp/Proj6782__/Proj6782___out_task_dita_final.dita , 
+                 $out = out ,
+                 $out_task_file =  Proj6782___out_task_dita_final.dita
+
+            
+            /Users/a.binder/Documents/se/SE/schema/ant-url_action/default_db.in7_dziennik_koresp/CRM_PROCES_tree/build_CRM_PROCES_tree.xml:294: input file
+            /Users/a.binder/Documents/se/SE/schema/ant-url_action/default_db.in7_dziennik_koresp/pismo/out/Proj6782__.out_task.dita.final_with_RelatedFeatureLoop.xml does not exist -->
+        
+        <echoxml file="${empty.xml}">
+            <empty>empty</empty>
+        </echoxml>
+        
+        <xslt basedir="${default_db:recurse_ant_basedir}" style="${get_wfs_recurse_xsl.xsl}" in="${empty.xml}"  destdir="./" out="${out_task.dita.final}" > <!-- out_task.dita.final -->
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <!--<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>-->
+                <attribute name="http://saxon.sf.net/feature/initialTemplate" value="main"/>
+            </factory>
+            
+            <!--<classpath location="/opt/local/share/java/saxon.jar"/>-->
+            
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <param name="typeName" expression="${typeName}"/>
+            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <param name="xpath" expression="${xpath}"/>
+            <param name="xpath_value" expression="${xpath_value}"/>
+            <param name="username.pass" expression="${Password}"/>
+            <param name="php_session_id_ok.string" expression="${php_session_id}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="debug" expression="0"/>
+            <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
+            <!--<param name="simpleSchema.xml" expression="${basedir}/${main_build_recurse_ant.dita}"/>-->
+            <!--<param name="noRelatedFeatureRoot" expression="1"/>-->
+        </xslt>
+        
+        
+        <!--<move file="${out_task.dita.final}" tofile="${out_task.dita.final}.xml"/>-->
+        <copy file="${out_task.dita.final}" tofile="${out_task.dita.final_with_RelatedFeatureLoop}.xml"/>
+        
+        <ant antfile="${build_CRM_PROCES_tree}" target="default_db:PROCES_INIT:tree:dita" inheritall="false">
+            <property name="uuid" value="${uuid}"/>
+            <property name="default_db:recurse_ant_basedir.out" value="${default_db:recurse_ant_basedir}/out"/>
+        </ant>
+        
+        <exec executable="${dita.dir}" dir=".">
+            <arg value="-i"/>
+            <arg value="${CRM_PROCES_tree_basedir.temp}/${uuid}/${uuid}.ditamap" />
+            <!-- <arg value="-t" />
+            <arg value="temp" />-->
+            <arg value="-f" />
+            <arg value="pdf"/>
+            <arg value="-o"/>
+            <arg value="${out}"/>
+        </exec>
+        
+        <echo message="OUTPUT__START"/>
+        <!--<echo>
+            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
+        </echo>-->
+        <echo>
+            &lt;br&gt;# Wygenerowano wyjsciowy plik PDF - sciagnij go &lt;a href=&quot;${webRootUrl}/${out}/${uuid}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out}/${uuid}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo message="OUTPUT__END"/>
+        <record name="recursed.log" action="stop" />
+    </target>
+   
+   
     
 <!-- @2017-12-14 copied to build_get_wfs.xml TO BE REMOVED FROM THERE!!! after basepath modify! -->
         <target name="php_session_id_cond">
@@ -481,6 +577,7 @@
     </target>
     
     <target name="check_default_db_xml_cache.public_default" depends="set_default_db_xml_cache.public_local" unless="${set_default_db_xml_cache.public_local}">
+        <fail>#569 TO VERIFY SHOULD BE ROOT BASEDIR WORKING FINE</fail>
         <echo>#475 B Ustawiamy ${basedir}/../../../default_db_xml_cache.public</echo>
         <property name="default_db_xml_cache.public" value="${basedir}/../../../default_db_xml_cache.public"/>
         <property name="build_recurse_ant.xsl" value="${default_db_xml_cache.public}/build_recurse_ant.xsl"/>
@@ -500,8 +597,9 @@
     
    
     <target name="main_build_recurse_ant.dita_with_id"  if="${test_if_dita}">
-        <echo>#490 debug external_schema_table.path ${external_schema_table.path} - is it correct?</echo>    
-        <xslt basedir="${default_db:recurse_ant_basedir}" style="${main_build_recurse_ant.dita_with_id.xsl}" in="${main_build_recurse_ant.dita}"  destdir="./" out="${main_build_recurse_ant.dita_with_id}" >
+        <echo>#490 debug external_schema_table.path ${external_schema_table.path} - is it correct?
+            $xpath_query.xsl = ${xpath_query.xsl}</echo>    
+        <xslt basedir="${default_db:recurse_ant_basedir}" style="${main_build_recurse_ant.dita_with_id.xsl}" in="${recurse_ant.basedir}/${main_build_recurse_ant.dita}"  destdir="./" out="${main_build_recurse_ant.dita_with_id}" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
             </factory>
@@ -576,6 +674,7 @@
     </target>
     
     <target name="xpath_query.xsl_fail" depends="xpath_query.xsl_check" if="${xpath_query_set}" description="to generate xpath_query.xsl if it is set">
+        <echo>#580 debug $uuid = ${uuid} , $xpath_query.xsl = ${xpath_query.xsl} </echo>
         <echoxml file="${empty.xml}">
             <empty>empty</empty>
         </echoxml>
@@ -610,7 +709,9 @@
     </target>
     
     <target name="build_recurse_ant_xsl_xpath_filter.xsl_fail" depends="check_default_db_xml_cache.public_default,check_set_default_db_xml_cache.public_local"  if="${xpath_query_set}"  description="if it is not set ">
-        <echo>build_recurse_ant_xsl_xpath_filter.xsl using $default_db_xml_cache.public ${default_db_xml_cache.public}</echo>
+        <echo>#626 build_recurse_ant_xsl_xpath_filter.xsl using $default_db_xml_cache.public ${default_db_xml_cache.public}
+            $xpath_query.xsl = ${xpath_query.xsl}
+        </echo>
         <xslt basedir="${default_db:recurse_ant_basedir}" style="${build_recurse_ant_xsl_xpath_filter.xsl}" in="${build_recurse_ant.xsl}"  destdir="./" out="${build_recurse_ant_xpath_query.xsl}"  force="true" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
@@ -831,8 +932,8 @@
 
 
     <target name="buildpdf_recursed" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,php_session_id_check,mkdir_process_locks,build_recurse_ant_xsl_xpath_filter.xsl,check_dita" if="${test_if_dita}">
-        
-        <exec executable="${dita.dir}" dir=".">
+        <echo>#926 executing dita in @dir = $temp = ${temp}</echo>
+        <exec executable="${dita.dir}" dir="${temp}" > <!-- R dir="." -->
             <arg value="-i"/>
             <arg value="${out_task.dita.final}" />
            <!-- <arg value="-t" />
@@ -846,6 +947,11 @@
             <arg value="-c"/>
             <arg value="echo ${out_task.dita.final} |sed 's/^.*\///'"/>
         </exec>
+        
+        <!--<antcall target="send_email.send_email_from_xml_parsed">
+            <param name="send_email.xml_to_parse.xml" value="${out_task.dita.final}"/>
+        </antcall>-->
+        
         <echo message="OUTPUT__START"/>        
         <!--<echo> url = ${url} 
         </echo>-->
@@ -870,25 +976,80 @@
         <echo message="OUTPUT__END"/>
     </target>   
     
-    <target name="buildpdf_recursed_xsl" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,set_dita"  description="retrieve and build object from api using just XSL calls - needed username and password">
+    
+    
+    <target name="builxml_recursed" description="To build just XML from map - usable for custom scripting" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,php_session_id_check,mkdir_process_locks,build_recurse_ant_xsl_xpath_filter.xsl,check_dita" if="${test_if_dita}">
+        <input addproperty="main_build_recurse_ant.dita" message="Type xml map of object to traverse (RelatedFeature xpath=ID  typeName=p5_default_db:CRM_LISTA_ZASOBOW) "/>
+        <input addproperty="typeName"/>
+        <input addproperty="uuid"/>
+        <input addproperty="xpath"/>
+        <input addproperty="xpath_value"/>
+        <input addproperty="passwordBase64Basic"/>
+        <input addproperty="out_task.dita.final"/>
+        
         
         
-        <echo>#836 will try to in $main_build_recurse_ant.dita_with_id ${main_build_recurse_ant.dita_with_id}</echo>
-        <xslt basedir="${default_db:recurse_ant_basedir}" style="${get_wfs_recurse_xsl.xsl}" in="${empty.xml}"  destdir="./" out="${main_build_recurse_ant.dita_with_id}" > <!-- out_task.dita.final -->
+        <!-- -Dmain_build_recurse_ant.dita=/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/default_db/recurse_ant/CRM_LISTA_ZASOBOW_test.schema.xml -->
+        <!--<exec executable="${dita.dir}" dir=".">
+            <arg value="-i"/>
+            <arg value="${out_task.dita.final}" />
+            <!-\- <arg value="-t" />
+            <arg value="temp" />-\->
+            <arg value="-f" />
+            <arg value="pdf"/>
+            <arg value="-o"/>
+            <arg value="${out}"/>
+        </exec>-->
+        <!--<exec  executable="bash" dir="." outputproperty="out_task_file">
+            <arg value="-c"/>
+            <arg value="echo ${out_task.dita.final} |sed 's/^.*\///'"/>
+        </exec>-->
+        <echo message="OUTPUT__START"/>        
+        <!--<echo> url = ${url} 
+        </echo>-->
+        <!--<echo> passwordBase64Basic = ${passwordBase64Basic_tested} 
+        </echo>-->
+        <!--<echo> $webRootUrl = ${webRootUrl} 
+        </echo>-->
+        <!--<echo> $wfs_output = ${wfs_output} 
+        </echo>-->
+        <echo>
+            out_task.dita.final = ${out_task.dita.final}
+        </echo>
+        <!--<echo>
+            &lt;br&gt;Wygenerowano druk pdf - sciagnij go &lt;a href=&quot;${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>-->
+        
+        <echo message="OUTPUT__END"/>
+    </target>
+    
+    <target name="buildpdf_recursed_xsl" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,set_dita"  description="retrieve and build object from api using just XSL calls - needed username and password">
+        <record name="buildpdf_recursed_xsl.log" action="start" />
+        <echo>#836 will try to in $main_build_recurse_ant.dita_with_id ${main_build_recurse_ant.dita_with_id} , $empty.xml = ${empty.xml}</echo>
+        <echoxml file="${empty.xml}">
+            <empty>empty</empty>
+        </echoxml>
+        <xslt basedir="${default_db:recurse_ant_basedir}" style="${get_wfs_recurse_xsl.xsl}" in="${empty.xml}"  destdir="./" out="${out_task.dita.final}" > <!-- out_task.dita.final -->
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <!--<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>-->
                 <attribute name="http://saxon.sf.net/feature/initialTemplate" value="main"/>
             </factory>
             
-            <classpath location="/opt/local/share/java/saxon.jar"/>
-            <!--<classpath location="/opt/local/share/java/saxon9he.jar"/>-->
+            <!--<classpath location="/opt/local/share/java/saxon.jar"/>-->
+            
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
             <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
             <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
             <param name="uuid" expression="${uuid_tested}"/>
+            <param name="xpath" expression="${xpath}"/>
+            <param name="xpath_value" expression="${xpath_value}"/>
             <param name="username.pass" expression="${Password}"/>
+            <param name="php_session_id_ok.string" expression="${php_session_id}"/>
             <!--<param name="basedir" expression="${basedir}"/>-->
             <param name="temp" expression="${temp}"/>
             <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
+            <param name="simpleSchema.xml" expression="${basedir}/${main_build_recurse_ant.dita}"/>
+            <param name="noRelatedFeatureRoot" expression="1"/>
         </xslt>
         
         
@@ -908,18 +1069,129 @@
             <arg value="${out}"/>
         </exec>-->
         
+        <!--<antcall target="send_email.send_email_from_xml_parsed">
+            <param name="send_email.xml_to_parse.xml" value="${out_task.dita.final}"/>
+        </antcall>-->
+        
+        <exec executable="${dita.dir}" dir=".">
+            <arg value="-i"/>
+            <arg value="${out_task.dita.final}" />
+            <!-- <arg value="-t" />
+            <arg value="temp" />-->
+            <arg value="-f" />
+            <arg value="pdf"/>
+            <arg value="-o"/>
+            <arg value="${out}"/>
+        </exec>
+        <exec  executable="bash" dir="." outputproperty="out_task_file">
+            <arg value="-c"/>
+            <arg value="echo ${out_task.dita.final} |sed 's/^.*\///'"/>
+        </exec>
+        
+        
         <echo message="OUTPUT__START"/>
         <!--<echo>
             &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
         </echo>-->
         <echo>
+            &lt;br&gt;Wygenerowano druk pdf - sciagnij go &lt;a href=&quot;${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo>
+            &lt;br&gt;Wyslanie linka mailem : &lt;a href=&quot;mailto:?subject=Wiadomosc nr ${xpath_value}&amp;body=link do sprawy:  ${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&quot;&gt;Wyslanie linka mailem&lt;/a&gt;   &lt;/br&gt; 
+        </echo>
+        <!--<echo>
             &lt;br&gt;# Wygenerowano wyjsciowy plik PDF - sciagnij go &lt;a href=&quot;${webRootUrl}/${out}/${uuid}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out}/${uuid}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>-->
+        <echo message="OUTPUT__END"/>
+        <record name="buildpdf_recursed_xsl.log" action="stop" />
+    </target>
+    
+    
+    <target name="buildpdf_recursed_xsl_mail" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,set_dita"  description="retrieve and build object from api using just XSL calls - with send mail">
+        <record name="buildpdf_recursed_xsl.log" action="start" />
+        <echo>#836 will try to in $main_build_recurse_ant.dita_with_id ${main_build_recurse_ant.dita_with_id} , $empty.xml = ${empty.xml}</echo>
+        <echoxml file="${empty.xml}">
+            <empty>empty</empty>
+        </echoxml>
+        <xslt basedir="${default_db:recurse_ant_basedir}" style="${get_wfs_recurse_xsl.xsl}" in="${empty.xml}"  destdir="./" out="${out_task.dita.final}" > <!-- out_task.dita.final -->
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <!--<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>-->
+                <attribute name="http://saxon.sf.net/feature/initialTemplate" value="main"/>
+            </factory>
+            
+            <!--<classpath location="/opt/local/share/java/saxon.jar"/>-->
+            
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <param name="xpath" expression="${xpath}"/>
+            <param name="xpath_value" expression="${xpath_value}"/>
+            <param name="username.pass" expression="${Password}"/>
+            <param name="php_session_id_ok.string" expression="${php_session_id}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>
+            <param name="simpleSchema.xml" expression="${basedir}/${main_build_recurse_ant.dita}"/>
+            <param name="noRelatedFeatureRoot" expression="1"/>
+        </xslt>
+        
+        
+        <!--<ant antfile="${build_CRM_PROCES_tree}" target="default_db:PROCES_INIT:tree:dita" inheritall="false">
+            <property name="uuid" value="${uuid}"/>
+            <property name="default_db:recurse_ant_basedir.out" value="${default_db:recurse_ant_basedir}/out"/>
+        </ant>-->
+        
+        <!--<exec executable="${dita.dir}" dir=".">
+            <arg value="-i"/>
+            <arg value="${CRM_PROCES_tree_basedir.temp}/${uuid}/${uuid}.ditamap" />
+            <!-\- <arg value="-t" />
+            <arg value="temp" />-\->
+            <arg value="-f" />
+            <arg value="pdf"/>
+            <arg value="-o"/>
+            <arg value="${out}"/>
+        </exec>-->
+        
+        <antcall target="send_email.send_email_from_xml_parsed">
+            <param name="send_email.xml_to_parse.xml" value="${out_task.dita.final}"/>
+        </antcall>
+        
+        <exec executable="${dita.dir}" dir=".">
+            <arg value="-i"/>
+            <arg value="${out_task.dita.final}" />
+            <!-- <arg value="-t" />
+            <arg value="temp" />-->
+            <arg value="-f" />
+            <arg value="pdf"/>
+            <arg value="-o"/>
+            <arg value="${out}"/>
+        </exec>
+        <exec  executable="bash" dir="." outputproperty="out_task_file">
+            <arg value="-c"/>
+            <arg value="echo ${out_task.dita.final} |sed 's/^.*\///'"/>
+        </exec>
+        
+        
+        <echo message="OUTPUT__START"/>
+        <!--<echo>
+            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
+        </echo>-->
+        <echo>
+            &lt;br&gt;Wygenerowano druk pdf - sciagnij go &lt;a href=&quot;${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo>
+            &lt;br&gt;Wyslanie linka mailem : &lt;a href=&quot;mailto:?subject=Wiadomosc nr ${xpath_value}&amp;body=link do sprawy:  ${webRootUrl}/${out}/${out_task.dita.final.noext}.pdf&quot;&gt;Wyslanie linka mailem&lt;/a&gt;   &lt;/br&gt; 
         </echo>
+        <!--<echo>
+            &lt;br&gt;# Wygenerowano wyjsciowy plik PDF - sciagnij go &lt;a href=&quot;${webRootUrl}/${out}/${uuid}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out}/${uuid}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>-->
         <echo message="OUTPUT__END"/>
+        <record name="buildpdf_recursed_xsl.log" action="stop" />
     </target>
     
     <target name="buildpdf_recursed_html5" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,php_session_id_check,check_dita" if="${test_if_dita}" description="URL_TASK Pobierz Wersję HTML">
-        <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
+        <!--R<property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>-->
         <exec executable="${dita.dir}" dir=".">
             <arg value="-i"/>
             <arg value="${out_task.dita.final}" />
@@ -963,7 +1235,7 @@
     </target>
     
     <target name="buildpdf_recursed_tocjs" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,php_session_id_check,check_dita" if="${test_if_dita}" description="URL_TASK Pobierz Dynamiczną Wersję HTML">
-        <property name="dita.dir" location="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
+        <property name="dita.dir" value="/Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/dita"/>
         <exec executable="${dita.dir}" dir=".">
             <arg value="-i"/>
             <arg value="${out_task.dita.final}" />

+ 2 - 0
SE/schema/WPS_Functions/documentation_generator/build.graph.PRODUCT.xml

@@ -15,10 +15,12 @@
     <property name="graph.temp" location="${graph.basedir}/temp"/>
     
     <property name="graph.xsl" location="${graph.basedir}/graph.xsl"/>
+    <property name="graph.graph-to-analyze-evaluated.xsl" location="${graph.basedir}/graph.graph-to-analyze-evaluated.xsl"/>
     <property name="graph.graph_tree_yed_from_wfs.xsl" location="${WPS_Functions.basedir}/graph_tree_TODO_PROJ6806/graph_tree_yed_from_wfs.xsl"/>
     
     <property name="graph.graph-to-analyze.xml" location="${graph.repository}/graph.graph-to-analyze.xml"/>
     <property name="graph.graph-to-analyze-property.xml" location="${graph.repository}/graph.graph-to-analyze-property.xml"/>
+    <property name="graph.graph-to-analyze-evaluated.xml" location="${graph.repository}/graph.graph-to-analyze-evaluated.xml"/>
     <property name="graph.graph.graph-to-nodes.xml" location="${graph.repository}/graph.graph.graph-to-nodes.xml"/>
     
     <!--<property name="p5suis.pid" location="${p5suis.repository}/p5suis.speech.pid"/>-->

+ 18 - 1
SE/schema/WPS_Functions/documentation_generator/build.p5dg.PRODUCT.xml

@@ -9,15 +9,32 @@
     
    
     <property name="p5dg.PRODUCT.name" value="${WPS_Functions.PRODUCT.name}.documentation_generator"/>
-    <property name="p5dg.PRODUCT.vendor-domain" value="${p5build_SE.PRODUCT.vendor-domain}"/>
+    <property name="p5dg.PRODUCT.vendor-domain" value="${WPS_Functions.PRODUCT.vendor-domain}.p5dg"/>
+    <property name="p5dg.PRODUCT.prefix" value="p5dg"/>
+    <property name="p5dg.PRODUCT.namespace" value="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"/>
+    
+    <property name="p5dg.parent.name" value="${WPS_Functions.PRODUCT.name}"/>
+    <property name="p5dg.parent.artifactId" value="${WPS_Functions.PRODUCT.vendor-domain}"/>
+    <property name="p5dg.parent.relativePath" value="../."/>
+    
     
     <property name="p5dg.basedir"     value="${WPS_Functions.basedir}/documentation_generator"/>
     <property name="p5dg.repository"  value="${p5dg.basedir}/repository"/>
 
+    <property name="p5dg.build" location="${p5dg.basedir}/build_documentation_generator.xml"/>
+
     <property name="p5dg.temp" location="${p5dg.basedir}/temp"/>
     
     <property name="p5dg.childproperties" location="${WPS_Functions.childproperties}/build_documentation_generator.properties"/>
     
+    <property name="p5dg.configuration.dir" value="${WPS_Functions.configuration.dir}/${p5dg.PRODUCT.prefix}"/>
+    
+    <property name="p5dg.timestamp.analyzed" location="${p5dg.repository}/timestamp.analyzed"/>
+    <property name="p5dg.timestamp.created" location="${p5dg.repository}/timestamp.created"/>
+    
+    <property name="p5dg.documentation_generator.xsl" location="${p5dg.basedir}/documentation_generator.xsl"/>
+    
+    
     <!--<property name="p5suis.pid" location="${p5suis.repository}/p5suis.speech.pid"/>-->
     
    <!-- 

+ 47 - 10
SE/schema/WPS_Functions/documentation_generator/build_documentation_generator.xml

@@ -34,10 +34,10 @@
    
         <!--<property name="p5dg.basedir" location="${WPS_Functions}/documentation_generator"/>-->
         
-        <property name="p5dg.timestamp.analyzed" location="${p5dg.repository}/timestamp.analyzed"/>
+      <!-- R <property name="p5dg.timestamp.analyzed" location="${p5dg.repository}/timestamp.analyzed"/>
         <property name="p5dg.timestamp.created" location="${p5dg.repository}/timestamp.created"/>
         
-        <property name="p5dg.documentation_generator.xsl" location="${p5dg.basedir}/documentation_generator.xsl"/>
+        <property name="p5dg.documentation_generator.xsl" location="${p5dg.basedir}/documentation_generator.xsl"/>-->
         <property name="p5dg.repository.dita" location="${p5dg.repository}/dita"/>
                 <!--<property name="p5dg.documentation.root.build.xml" value="${build_SE.xml}"/>-->
                 <property name="p5dg.documentation.files.index.includes1" value="**/build*.xml"/>
@@ -218,7 +218,7 @@
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="file index optimize" />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index.xml}"   out="${p5dg.documentation.files.index_fileset.xml}" force="true"  >
+        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index.xml}"   out="${p5dg.documentation.files.index_fileset.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}p5dg.documentation.files.index_fileset.xml"/>
@@ -239,7 +239,7 @@
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="file index structurized directory " />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index_fileset.xml}"   out="${p5dg.documentation.files.index_analyzed.xml}" force="true"  >
+        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index_fileset.xml}"   out="${p5dg.documentation.files.index_analyzed.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}p5dg.documentation.files.index_analyzed.xml"/>
@@ -258,7 +258,7 @@
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="Building structurized directory tree" />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index_analyzed.xml}"   out="${p5dg.documentation.files.index_analyzed_structurized.xml}" force="true"  >
+        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index_analyzed.xml}"   out="${p5dg.documentation.files.index_analyzed_structurized.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}p5dg.documentation.files.index_analyzed_structurized.xml"/>
@@ -278,7 +278,7 @@
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="exploding ant structures" />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index_analyzed_structurized.xml}"   out="${p5ant.include.structure.xml}"  force="true" >
+        <xslt basedir="${p5dg.temp}" style="${p5dg.documentation_generator.xsl}" in="${p5dg.documentation.files.index_analyzed_structurized.xml}"   out="${p5ant.include.structure.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}p5ant.include.structure"/>
@@ -302,7 +302,7 @@
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="evaluating and variables and others" />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}"   out="${graph.graph-to-analyze-property.xml}"  force="true" >
+        <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}"   out="${graph.graph-to-analyze-property.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd}graph.graph-to-analyze-property.xml"/>
@@ -318,7 +318,7 @@
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="evaluating and variables and others" />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}"   out="${graph.graph-to-analyze.xml}"  force="true" >
+        <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${p5ant.include.structure.xml}"   out="${graph.graph-to-analyze.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd}graph.graph-to-analyze.xml"/>
@@ -329,14 +329,30 @@
         </xslt>
     </target>
     
-    <extension-point name="graph.graph-to-analyze.xml.ep" depends="p5dg:properties,graph:graph.graph-to-analyze.xml,graph:graph.graph-to-analyze-property.xml"/>
+  
+    <target name="graph:graph.graph-to-analyze-evaluated.xml" depends="p5dg:properties,graph:graph.graph-to-analyze.xml,graph:graph.graph-to-analyze-property.xml"  description="to generate ant project with evaluated variables from graph:graph.graph-to-analyze-property.xml" > <!-- depends="p5dg:p5ant.include.structure" -->
+        <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
+            <property name="p5suis:say_text" value="generating project with evaluated variables" />
+        </ant>
+        <xslt basedir="${p5dg.temp}" style="${graph.graph-to-analyze-evaluated.xsl}" in="${graph.graph-to-analyze.xml}"   out="${graph.graph-to-analyze-evaluated.xml}"   >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd}graph-to-analyze-evaluated.xml"/>
+            </factory>
+            <param name="graph.graph-to-analyze-property.xml" expression="${graph.graph-to-analyze-property.xml}"/>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            
+        </xslt>
+    </target>
+    
+    <extension-point name="graph.graph-to-analyze.xml.ep" depends="p5dg:properties,graph:graph.graph-to-analyze-evaluated.xml"/>
     
     
     <target name="graph:graph.graph-to-nodes.xml" depends="p5dg:properties,graph.graph-to-analyze.xml.ep"> <!-- depends="graph.graph-to-analyze.xml.ep" -->
         <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
             <property name="p5suis:say_text" value="making ant graph nodes" />
         </ant>
-        <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${graph.graph-to-analyze.xml}"   out="${graph.graph.graph-to-nodes.xml}"  force="true" >
+        <xslt basedir="${p5dg.temp}" style="${graph.xsl}" in="${graph.graph-to-analyze.xml}"   out="${graph.graph.graph-to-nodes.xml}"   >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd}graph.graph-to-nodes.xml"/>
@@ -380,6 +396,7 @@
         <echo>#12 test public_html = ${public_html}
             p5dg.basedir ${p5dg.basedir}
         </echo>
+        <antcall target="p5dg:generate_documentation.clean"/> <!-- optionally remove -->
         <echo> build_WPS_Functions.childproperties.builds.xml ${build_WPS_Functions.childproperties.builds.xml}</echo>
         <parallel threadcount="2" >
             <sequential>
@@ -389,8 +406,28 @@
                 <antcall target="graph:graph.graph-to-nodes.xml"/>
             </sequential>
         </parallel>
+    </target>
+    
+    <target name="p5dg:generate_documentation.clean"   description="to clean generated documentation of ant builds and properties and others - to allow recreate">
+        <echo>#12 test public_html = ${public_html}
+            p5dg.basedir ${p5dg.basedir}
+        </echo>
+        <delete file="${p5dg.documentation.files.antstructure-to-fix.xsd}"/>
+        <delete file="${p5dg.documentation.files.antstructure.xsd}"/>
+        <delete file="${p5dg.documentation.files.antstructure-request.xsd}"/>
+        
+        <delete file="${p5dg.documentation.files.antstructure-resp.xsd}"/>
         
+        <delete file="${p5dg.documentation.files.index.xml}"/>
+        <delete file="${p5dg.documentation.files.index_fileset.xml}"/>
         
+        <delete file="${p5dg.documentation.files.index_analyzed.xml}"/>
+        <delete file="${p5dg.documentation.files.index_analyzed_structurized.xml}"/>
+        <delete file="${p5ant.include.structure.xml}"/>
+        <delete file="${graph.graph-to-analyze-property.xml}"/>
+        <delete file="${graph.graph-to-analyze.xml}"/>
+        <delete file="${graph.graph-to-analyze-evaluated.xml}"/>
+        <delete file="${graph.graph.graph-to-nodes.xml}"/>
     </target>
   
   

+ 28 - 7
SE/schema/WPS_Functions/documentation_generator/documentation_generator.xsl

@@ -6,6 +6,7 @@
     xmlns:SystemObjects__x3A__File="https://biuro.biall-net.pl/wfs/default_db/SystemObjects/File.xsd"
     xmlns:p5ant-interface-resp="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/ant_interface/ant_interface-resp.xsd"
     xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+    xmlns:object_merge_ant_object="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd"
     exclude-result-prefixes="xs"
     version="2.0">
     
@@ -55,7 +56,7 @@
     </xsl:template>-->
     
     
-    <xsl:template mode="p5dg:p5dg.documentation.files.index_fileset.xml" match="p5dg:p5dg.documentation.files.index.xml" xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd">
+    <xsl:template mode="p5dg:p5dg.documentation.files.index_fileset.xml" match="p5dg:p5dg.documentation.files.index.xml|object_merge_ant_object:object_merge_ant_object.from_remote_ant_object.files.index.xml" > <!-- xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd" -->
         <p5dg:p5dg.documentation.files.index_fileset.xml>
             <xsl:for-each select="tokenize(text(),';')">
                 <p5dg:p5dg.file>
@@ -306,10 +307,25 @@
             <!--<xsl:namespace  name="xs" select="'http://www.w3.org/2001/XMLSchema'"/>-->
             <xsl:copy-of select="@*"/>
             <xsl:comment>#179 making public simpleTypes to controll deriviation</xsl:comment>
-            <xsl:for-each-group select="*//attribute" group-by="concat(@name,@type)" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
+            <xsl:for-each-group select="*//attribute" group-by="concat(@name,'-',@type)" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
                 <xsl:element name="simpleType" namespace="http://www.w3.org/2001/XMLSchema" inherit-namespaces="yes">
-                    <xsl:attribute name="name" select="concat(@name,'_simpleType_',@type)"/>
-                    <xsl:if test="@type"><restriction base="{@type}" /></xsl:if> <!-- namespace="http://www.w3.org/2001/XMLSchema" -->
+                    <!-- jest  p5ant:string_simpleTypedescription  na simpleType name="description_simpleTypestring" było concat(@name,'_simpleType',@type)
+                        <attribute name="name"
+                         type="p5ant:string_simpleTypename"
+                         fixme_todo="p5ant:name_simpleTypestring"
+                         use="optional"/>
+                    -->
+                    <xsl:attribute name="name" select="concat(@name,'_simpleType',@type)"/>
+                    <xsl:comment> pptional : <xsl:value-of select="concat(@type,'_simpleType',@name)"/></xsl:comment> 
+                    <xsl:choose>
+                        <xsl:when test="@type">
+                            <restriction base="{@type}" />
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <restriction base="string" />
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    <!--<xsl:if test="@type"><restriction base="{@type}" /></xsl:if>--> <!-- namespace="http://www.w3.org/2001/XMLSchema" -->
                 </xsl:element>
             </xsl:for-each-group>
             <!--<debug_attrs>
@@ -344,19 +360,24 @@
         </xsl:element>
     </xsl:template>
     
-    <xsl:template match="@*" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
+    <xsl:template match="@*" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType.attribute" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
         <xsl:copy-of select="."/>
     </xsl:template>
     
+    <xsl:template match="@type" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType.attribute" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
+        <xsl:attribute name="{name()}" select="concat('p5ant:',../@name,'_simpleType',current())"/>
+        <!--<xsl:attribute name="fixme_todo" select=""/>-->
+    </xsl:template>
+    
     <xsl:template match="@type" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
-        
         <xsl:attribute name="{name()}" select="concat('p5ant:',current(),'_simpleType',../@name)"/>
+        <xsl:attribute name="fixme_todo" select="concat('p5ant:',../@name,'_simpleType',current())"/>
     </xsl:template>
     
     <xsl:template match="attribute" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd" xpath-default-namespace="http://www.w3.org/2000/10/XMLSchema">
         <xsl:element name="{local-name()}" namespace="http://www.w3.org/2001/XMLSchema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
             <!--<xsl:copy-of select="@*"/>-->
-            <xsl:apply-templates select="@*" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType"/>
+            <xsl:apply-templates select="@*" mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd.simpleType.attribute"/>
             <xsl:apply-templates mode="p5dg:documentation.ant.dtd2xsd.pl.fix.xsd" />
         </xsl:element>
     </xsl:template>

+ 44 - 0
SE/schema/WPS_Functions/documentation_generator/graph.graph-to-analyze-evaluated.xsl

@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    xmlns:graph="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph/graph.xsd"
+    version="2.0">
+    
+<xsl:output indent="yes"/>
+<xsl:strip-space elements="*"/>
+    
+    <xsl:param name="graph.graph-to-analyze-property.xml" required="yes"/>
+    
+    <xsl:variable name="graph:graph.graph-to-analyze-property.xml" select="doc($graph.graph-to-analyze-property.xml)"/>
+
+    <xsl:template match="graph:graph.graph-to-analyze.xml" mode="graph:graph-to-analyze-evaluated.xml">
+        <graph:graph-to-analyze-evaluated.xml>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates mode="#current"/>
+        </graph:graph-to-analyze-evaluated.xml>
+    </xsl:template>
+    
+    <xsl:template match="*" mode="graph:graph-to-analyze-evaluated.xml">
+        <xsl:copy copy-namespaces="no">
+            <xsl:apply-templates mode="graph:graph-to-analyze-evaluated.xml" select="@*"/>
+            <xsl:apply-templates mode="#current"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="@*" mode="graph:graph-to-analyze-evaluated.xml">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template match="@value[ contains(.,'${')]|@location[ contains(.,'${')]" mode="graph:graph-to-analyze-evaluated.xml">
+        <xsl:attribute name="{name()}" select="$graph:graph.graph-to-analyze-property.xml//property[@name = current()/../@name][1]/@graph:property.evaluated"/>
+        <xsl:attribute name="graph:value-evaluated-from" select="."/>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="text()|comment()">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+</xsl:stylesheet>

+ 42 - 6
SE/schema/WPS_Functions/documentation_generator/graph.xsl

@@ -33,9 +33,10 @@
         <xsl:param name="graph:property.evaluated.recurse_level" select="1"/>
         <xsl:param name="p5ant:dir" required="yes"/>
         <xsl:param name="p5dg:basedir" required="yes"/>
+        <xsl:param name="property.value_or_location" required="yes"/>
         <!--<xsl:variable name="graph:property.eval.esc" select="replace($graph:property.eval,'\$','\\\$')"/>-->
         <xsl:choose>
-            <xsl:when test="$graph:property.evaluated.recurse_level &gt; 5">
+            <xsl:when test="$graph:property.evaluated.recurse_level &gt; 8">
                 <xsl:message>#38 ERROR RECURSE $graph:property.evaluated.recurse_level=<xsl:value-of select="$graph:property.evaluated.recurse_level"/></xsl:message>
                 <graph:property.evaluated.recurse_level>
                     <xsl:attribute name="graph:property.evaluated.recurse_level" select="$graph:property.evaluated.recurse_level"/>
@@ -87,7 +88,7 @@
                                                             <xsl:value-of select="p5ant:basedir.calculate($p5ant:dir,$p5dg:basedir)"/>
                                                         </xsl:when>
                                                         <xsl:otherwise>
-                                                            <xsl:variable name="evaluated" select="($p5dg:p5ant.include.structure//property[@name=current() and not(@value=concat('${', current(),'}'))])[1]/concat(@value,@location)"/>
+                                                            <xsl:variable name="evaluated" select="($p5dg:p5ant.include.structure//property[@name=current() and not(concat(@value,@location)=concat('${', current(),'}'))])[1]/concat(@value,@location)"/>
                                                             <xsl:choose>
                                                                 <xsl:when test="$evaluated">
                                                                     <xsl:value-of select="$evaluated"/>
@@ -119,6 +120,7 @@
                                 <xsl:with-param name="graph:property.evaluated.recurse_level" select="$graph:property.evaluated.recurse_level + 1"/>
                                 <xsl:with-param name="p5ant:dir"  select="$p5ant:dir"/>
                                 <xsl:with-param name="p5dg:basedir"  select="$p5dg:basedir"/>
+                                <xsl:with-param name="property.value_or_location" select="$property.value_or_location"/>
                             </xsl:call-template>
                         </recurse_evaluating>
                     </xsl:when>
@@ -167,12 +169,45 @@
         <graph:graph.graph-to-analyze-property.xml>
             <!--<xsl:apply-templates mode="#current"/>-->
                 <xsl:variable name="p5dg:p5ant.include.structure" select="."/>
-                <xsl:for-each-group select=".//property[ position() &lt; 100 or contains(@name,'php_session') ]" group-by="@value">
+                <xsl:for-each-group select=".//property[ position() &lt; 10000000 or contains(@name,'php_session') ]" group-by="concat(@value,@location)"> <!-- FILTERING -->
                     <xsl:copy copy-namespaces="no" exclude-result-prefixes="#all">
                         <xsl:copy-of select="@*"/>
                         <xsl:attribute name="p5ant:dir" select=" ancestor::node()[name()='p5ant:file']/@p5ant:dir"/>
                         <xsl:variable name="property.name" select="@name"/>
-                        <xsl:variable name="property.value" select=" replace(@value,'\$','\\\$')"/>
+                        <xsl:variable name="property.value_or_location">
+                            <xsl:choose>
+                                <xsl:when test="@value">
+                                    <xsl:value-of select="'value'"/>
+                                </xsl:when>
+                                <xsl:when test="@location">
+                                    <xsl:value-of select="'location'"/>
+                                </xsl:when>
+                                <xsl:when test="@refid"><xsl:message>#185 todo @refid for @name=<xsl:value-of select="@name"/>; </xsl:message></xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:message terminate="yes">#183 property should be or @value or @location! - none of this was set! - for @name=<xsl:value-of select="@name"/>; @p5ant:dir=<xsl:value-of select=" ancestor::node()[name()='p5ant:file']/@p5ant:dir"/>;</xsl:message>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:variable>
+                        <xsl:variable name="property.value" >
+                            <xsl:choose>
+                                <xsl:when test="$property.value_or_location='value'">
+                                    <xsl:value-of select=" replace(@value,'\$','\\\$')"/>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select=" replace(@location,'\$','\\\$')"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:variable>
+                        <xsl:variable name="graph:property.eval">
+                            <xsl:choose>
+                                <xsl:when test="$property.value_or_location='value'">
+                                    <xsl:value-of select="@value"/>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:value-of select="@location"/>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:variable>
                         <!--<xsl:variable name="match"><xsl:text><![CDATA[\\$\{]]></xsl:text><xsl:value-of select="$property.name"/><xsl:text><![CDATA[}]]></xsl:text></xsl:variable>-->
                         <!--<xsl:variable name="match"><xsl:value-of select="$property.name"/></xsl:variable>-->
                         <xsl:variable name="match"><xsl:text>\$\{</xsl:text><xsl:value-of select="$property.name"/><xsl:text>\}</xsl:text></xsl:variable>
@@ -192,11 +227,12 @@
                             <xsl:when test=" contains($property.value,'${')"> <!-- contains(replace(@value, $match , $property.value),'\$') -->
                                 <xsl:variable name="graph:property.evaluated">
                                     <xsl:call-template name="graph:property.evaluated">
-                                        <xsl:with-param name="graph:property.eval" select="@value"/>
+                                        <xsl:with-param name="graph:property.eval" select="$graph:property.eval"/> <!-- @value -->
                                         <xsl:with-param name="p5dg:p5ant.include.structure" select="$p5dg:p5ant.include.structure"/>
                                         <xsl:with-param name="property.name" select="$property.name"/>
                                         <xsl:with-param name="p5ant:dir" select=" ancestor::node()[name()='p5ant:file']/@p5ant:dir"/>
                                         <xsl:with-param name="p5dg:basedir" select="@p5dg:basedir"/>
+                                        <xsl:with-param name="property.value_or_location" select="$property.value_or_location"/>
                                     </xsl:call-template>
                                 </xsl:variable>
                                 <xsl:attribute name="graph:property.evaluated" select="$graph:property.evaluated//graph:property.evaluated/text()"/>
@@ -377,7 +413,7 @@
                     </xsl:attribute>
                     <!--<xsl:attribute name="deb.ref" select="../*[@fid = current()/substring-after(@xlink:href,'#')]"/>-->
                     <y:GenericEdge configuration="com.yworks.edge.framed">
-                        <xsl:comment>mod:<xsl:value-of select="$pos mod 10"/>/<xsl:value-of select=" position() mod 10"/> /<xsl:value-of select=" position() mod 2"/> </xsl:comment>
+                        <xsl:comment>mod:<!--<xsl:value-of select="$pos mod 10"/>-->/<xsl:value-of select=" position() mod 10"/> /<xsl:value-of select=" position() mod 2"/> </xsl:comment>
                         <y:LineStyle  width="{(position() mod 3) + 1}.0">
                             <!--<xsl:attribute name="color" select="$colors/colors/object_hex[  @name =  substring-before(@fid,'.') or @name='*' ][1]/text()" xpath-default-namespace=""/>-->
                             <xsl:attribute name="color" select="'#669900'" />

+ 14 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/build.fix_se_defaultdb_schema.INSTALL.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." default="INSTALL" name="fix_se_defaultdb_schema.INSTALL">
+  <include file="build.fix_se_defaultdb_schema.PRODUCT.xml" />
+  <property location="${fix_se_defaultdb_schema.install}/install_example.file" name="fix_se_defaultdb_schema.INSTALL.install_example" />
+  <condition property="fix_se_defaultdb_schema.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
+    <not>
+      <available file="${fix_se_defaultdb_schema.repository}/install_example.file" />
+    </not>
+  </condition>
+  <target depends="INSTALL.install_example" name="INSTALL" />
+  <target if="fix_se_defaultdb_schema.INSTALL.install_example.ifdef" name="INSTALL.install_example">
+    <copy file="${fix_se_defaultdb_schema.INSTALL.install_example}" tofile="${fix_se_defaultdb_schema.install_example}" />
+  </target>
+</project>

+ 90 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/build.fix_se_defaultdb_schema.PRODUCT.xml

@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="fix_se_defaultdb_schema.PRODUCT">
+   <description>p5suis:say Created function fix_se_defaultdb_schema with prefix fix_se_defaultdb_schema by p5ant module</description>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="fix_se_defaultdb_schema.PRODUCT.ifdef.parent"
+              taskname="fix_se_defaultdb_schema.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="fix_se_defaultdb_schema.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.fix_se_defaultdb_schema"/>
+   <property name="fix_se_defaultdb_schema.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.fix_se_defaultdb_schema"/>
+   <property name="fix_se_defaultdb_schema.basedir"
+             value="${WPS_Functions.basedir}/fix_se_defaultdb_schema"/>
+   <property name="fix_se_defaultdb_schema.repository"
+         value="${WPS_Functions.repository}/fix_se_defaultdb_schema"/>
+   <property name="fix_se_defaultdb_schema.install"
+             value="${fix_se_defaultdb_schema.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/fix_se_defaultdb_schema"
+             name="fix_se_defaultdb_schema.temp"/>
+   <property location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.xsl"
+             name="fix_se_defaultdb_schema.xsl"/>
+   <property location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.xsd"
+             name="fix_se_defaultdb_schema.xsd"/>
+   <property location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.include.structure.xml"
+             name="fix_se_defaultdb_schema.include.structure.xml"/>
+   <property location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.include.xsl.p5xsls.xml"
+             name="fix_se_defaultdb_schema.include.xsl.p5xsls.xml"/>
+   <property location="${fix_se_defaultdb_schema.repository}/install_example.file"
+             name="fix_se_defaultdb_schema.install_example"/>
+   
+   
+   <property name="fix_se_defaultdb_schema.to_schema.xsl" location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.to_schema.xsl"/>
+   <property name="fix_se_defaultdb_schema.from_schema.xsl" location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.from_schema.xsl"/>
+   <property name="fix_se_defaultdb_schema.from_schema_create_dir.xsl" location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.from_schema_create_dir.xsl"/>
+   
+   <property name="fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml" location="${fix_se_defaultdb_schema.basedir}/fix_se_defaultdb_schema.if_proc.CRM_LISTA_ZASOBOW.map.xml"/>
+   
+   
+   
+   
+   <target depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="fix_se_defaultdb_schema.local.properties">
+         <propertyref prefix="fix_se_defaultdb_schema"/>
+         <mapper from="fix_se_defaultdb_schema.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="fix_se_defaultdb_schema.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="fix_se_defaultdb_schema.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="fix_se_defaultdb_schema.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="fix_se_defaultdb_schema.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly"
+               file="${fix_se_defaultdb_schema.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="fix_se_defaultdb_schema"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 7 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/build.fix_se_defaultdb_schema.SYSTEM.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="fix_se_defaultdb_schema.SYSTEM">
+  <include file="../build.WPS_Functions.SYSTEM.xml" optional="true" />
+  <include as="PRODUCT" file="build.fix_se_defaultdb_schema.PRODUCT.xml" optional="true" />
+  <property location="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/build_SE_basedir/temp/StandardOutPath/fix_se_defaultdb_schema.log" name="fix_se_defaultdb_schema.SYSTEM.StandardOutPath" />
+  <property location="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/build_SE_basedir/temp/StandardErrorPath/fix_se_defaultdb_schema.log" name="fix_se_defaultdb_schema.SYSTEM.StandardErrorPath" />
+</project>

+ 334 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/build_fix_se_defaultdb_schema.xml

@@ -0,0 +1,334 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema.xsd"
+         xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+         xmlns:ogc="http://www.opengis.net/ogc" 
+         xmlns:wfs="http://www.opengis.net/wfs"
+         basedir="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html"
+         default="default"
+         name="fix_se_defaultdb_schema">
+   <description> To fix schema manually in se/schema/ant-object </description>
+   
+   <include as="PRODUCT" file="build.fix_se_defaultdb_schema.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.fix_se_defaultdb_schema.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.fix_se_defaultdb_schema.INSTALL.xml"/>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
+   <include file="../get_wfs/build.get_wfs.PRODUCT.xml"/>
+   <include file="../default_db/recurse_ant/build.recurse_ant.PRODUCT.xml"/>
+   <include file="${p5suis.build}" as="p5suis"/>
+   
+   <include file="../get_wfs/build_get_wfs.xml" as="get_wfs"/>
+   <include file="../Storage_AclStruct/build_Storage_AclStruct.xml" as="Storage_AclStruct"/>
+   <!--<include file="${Storage_AclStruct.ifproc.build.xml}" as="Storage_AclStruct.ifproc"/>-->
+   <!--<include file="../get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml" as="get_wfs_recurse_xsl"/>-->
+   <!--<include file="../default_db/recurse_ant/build_recurse_ant.xml" />--> <!-- as="recurse_ant" TODO maybe ant not call? -->
+   
+   
+   <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL,fix_from_schema"
+           name="default"/>
+   
+   <property name="fix_se_defaultdb_schema.file"
+             value="${fix_se_defaultdb_schema.file}"/>
+   <property name="fix_se_defaultdb_schema.dir"
+             value="${fix_se_defaultdb_schema.dir}"/>
+   <property name="fix_se_defaultdb_schema.file.path"
+             value="${fix_se_defaultdb_schema.dir}/${fix_se_defaultdb_schema.file}"/>
+   <property name="fix_se_defaultdb_schema.file.fixed.xsd"
+             value="${fix_se_defaultdb_schema.file.path}.fixed.xsd"/>
+   
+   <property name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"
+             location="${fix_se_defaultdb_schema.temp}/${fix_se_defaultdb_schema.file}.Storage_AclStruct.xml"/>
+   
+   <condition property="fix_se_defaultdb_schema.file.fixed.xsd.exists">
+      <available file="${fix_se_defaultdb_schema.file.fixed.xsd}"/>
+   </condition>
+   
+   <condition property="fix_se_defaultdb_schema.file.clicked_fixed_as_file"
+              taskname="fix_se_defaultdb_schema.file.clicked_fixed_as_file">
+      <contains string="${fix_se_defaultdb_schema.file}" substring="fixed.xsd"/>
+   </condition>
+   
+   
+   
+   
+   <target name="fix_se_defaultdb_schema.file.clicked_fixed_as_file"
+           if="fix_se_defaultdb_schema.file.clicked_fixed_as_file">
+      <fail>
+         Not correctly clicked source file ${fix_se_defaultdb_schema.file} - which is fixed file - call only main files
+      </fail>
+   </target>
+   
+   <target name="fix_from_schema"
+           depends="fix_se_defaultdb_schema.file.clicked_fixed_as_file,fix_from_schema.warning,Storage_AclStruct"
+           unless="fix_se_defaultdb_schema.file.fixed.xsd.exists"
+           description="To fix e.g. se/SE/schema/ant-object/default_db.BI_audit_KRS/BI_audit_KRS/BI_audit_KRS.xsd"> <!-- depends fix_from_schema.replace -->
+      <echo>
+         fix_se_defaultdb_schema.file = ${fix_se_defaultdb_schema.file}
+         fix_se_defaultdb_schema.dir = ${fix_se_defaultdb_schema.dir}
+      </echo>
+      <xslt basedir="${fix_se_defaultdb_schema.dir}"
+            style="${fix_se_defaultdb_schema.from_schema.xsl}"
+            in="${fix_se_defaultdb_schema.file.path}"
+            destdir="${fix_se_defaultdb_schema.dir}"
+            out="${fix_se_defaultdb_schema.file.fixed.xsd}"
+            force="true">
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}p5up5b.ws-bpel_executable.xml.sort_tasks.xml"/>-->
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="fix_se_defaultdb_schema.file"
+                expression="${fix_se_defaultdb_schema.file}"/>
+         <param name="fix_se_defaultdb_schema.dir"
+                expression="${fix_se_defaultdb_schema.dir}"/>
+         <param name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"
+                expression="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"/>
+         <param name="get_wfs.build" expression="${get_wfs.build}"/>
+         <param name="p5suis.build" expression="${p5suis.build}"/>
+         <param name="bgwrx.build" expression="${bgwrx.build}"/>
+         <param name="Storage_AclStruct.build.xml"
+            expression="${Storage_AclStruct.build.xml}"/>
+         <param name="Storage_AclStruct.ifproc.build.xml"
+            expression="${Storage_AclStruct.ifproc.build.xml}"/>
+        <!-- <param name="default_db_targetNamespace_detect_string"/>
+         <param name="zasob_id_db_targetNamespace_detect_string"/>-->
+      </xslt>
+      
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text"
+                value="Check transformed schema for p5:object ${fix_se_defaultdb_schema.file}"/>
+      </antcall>
+      <echo>Check transformed schema for p5:object ###
+         ${fix_se_defaultdb_schema.file.fixed.xsd} 
+         ####
+      </echo>
+      <!--<exec executable="open">
+         <arg file="${fix_se_defaultdb_schema.file.fixed.xsd}"/>
+      </exec>-->
+   </target>
+   
+   <target name="fix_from_schema.warning"
+           if="fix_se_defaultdb_schema.file.fixed.xsd.exists"
+           description="To fix e.g. se/SE/schema/ant-object/default_db.BI_audit_KRS/BI_audit_KRS/BI_audit_KRS.xsd">
+      <echo>
+         fix_se_defaultdb_schema.file = ${fix_se_defaultdb_schema.file}
+         fix_se_defaultdb_schema.dir = ${fix_se_defaultdb_schema.dir}
+         fix_from_schema.warning 
+         file already exists ${fix_se_defaultdb_schema.file.fixed.xsd}
+         - trying to replace when secondary clicked
+      </echo>
+   </target>
+   
+   <target name="fix_from_schema.replace"
+           if="fix_se_defaultdb_schema.file.fixed.xsd.exists"
+           description="when done task fix_from_schema - files should be replaced - if clicked twice">
+      <echo>
+         Will move 
+         ${fix_se_defaultdb_schema.file.fixed.xsd}
+          to 
+          ${fix_se_defaultdb_schema.file.path}
+      </echo>
+      <move file="${fix_se_defaultdb_schema.file.fixed.xsd}"
+            tofile="${fix_se_defaultdb_schema.file.path}"/>
+      <exec executable="open">
+         <arg file="${fix_se_defaultdb_schema.file}"/>
+      </exec>
+      
+      <xslt basedir="${fix_se_defaultdb_schema.dir}/../."
+            style="${fix_se_defaultdb_schema.from_schema_create_dir.xsl}"
+            in="${fix_se_defaultdb_schema.file.path}"
+            destdir="${fix_se_defaultdb_schema.dir}/../."
+            out=".fix_se_defaultdb_schema.out.temp"
+            force="true">
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="{http://docs.oasis-open.org/wsbpel/2.0/process/executable}p5up5b.ws-bpel_executable.xml.sort_tasks.xml"/>-->
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="fix_se_defaultdb_schema.file"
+                expression="${fix_se_defaultdb_schema.file}"/>
+         <param name="fix_se_defaultdb_schema.dir"
+                expression="${fix_se_defaultdb_schema.dir}"/>
+         <param name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"
+                expression="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"/>
+         <param name="get_wfs.build" expression="${get_wfs.build}"/>
+         <param name="p5suis.build" expression="${p5suis.build}"/>
+         <param name="bgwrx.build" expression="${bgwrx.build}"/>
+         <param name="Storage_AclStruct.build.xml"
+            expression="${Storage_AclStruct.build.xml}"/>
+         <param name="Storage_AclStruct.ifproc.build.xml"
+            expression="${Storage_AclStruct.ifproc.build.xml}"/>
+      </xslt>
+      <echo> Expanded complexType/Elements derivaiations dirs</echo>
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text"
+                value="Expanded schemas for parent p5:object ${fix_se_defaultdb_schema.file}"/>
+      </antcall>
+      
+     
+      
+   </target>
+   
+   <target name="Storage_AclStruct"
+           if="fix_se_defaultdb_schema.file.fixed.xsd.exists"
+           depends="fix_from_schema.replace">
+      
+      <echo>####169
+         saving to ${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml} 
+         params:
+         -DpasswordBase64Basic=******
+         -Dfix_se_defaultdb_schema.file=${fix_se_defaultdb_schema.file} 
+         -Dfix_se_defaultdb_schema.dir=${fix_se_defaultdb_schema.dir}
+         #######
+      </echo>
+      <xslt basedir="${fix_se_defaultdb_schema.dir}"
+            style="${fix_se_defaultdb_schema.from_schema.xsl}"
+            in="${fix_se_defaultdb_schema.file.path}"
+            destdir="${fix_se_defaultdb_schema.dir}"
+            out="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"
+            force="true">
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialMode"
+                       value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd}from_schema.Storage_AclStruct.xml"/>
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="fix_se_defaultdb_schema.file"
+                expression="${fix_se_defaultdb_schema.file}"/>
+         <param name="fix_se_defaultdb_schema.dir"
+                expression="${fix_se_defaultdb_schema.dir}"/>
+         <param name="Storage_AclStruct.build.xml"
+            expression="${Storage_AclStruct.build.xml}"/>
+         <param name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"
+                expression="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"/>
+         
+         <param name="bgwrx.build"
+            expression="${bgwrx.build}"/>
+         <param name="get_wfs.build" expression="${get_wfs.build}"/>
+         <param name="p5suis.build" expression="${p5suis.build}"/>
+         <param name="bgwrx.build" expression="${bgwrx.build}"/>
+         <param name="Storage_AclStruct.ifproc.build.xml"
+            expression="${Storage_AclStruct.ifproc.build.xml}"/>
+      </xslt>
+      
+      
+      <!--<exec executable="open">
+         <arg file="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"/>
+      </exec>-->
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text"
+                value="Enabling and activating resources via API ACL STRUCT"/>
+      </antcall>
+      
+      <echo> Storage $fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml = ${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}</echo>
+      
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text"
+                value="BREAK IF WANT TO STOP AUTO COMMIT FOR  p5:object ${fix_se_defaultdb_schema.file} - sleeping 15 seconds"/>
+      </antcall>
+      
+      <exec executable="git" dir="${fix_se_defaultdb_schema.dir}">
+         <arg line="status"/>
+      </exec>
+      
+      <sleep seconds="15"/>
+      
+      <antcall target="git_push_folder"/>
+        
+      
+      
+      
+      
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text"
+                value="Preparing POST for rapid add all object resources"/>
+      </antcall>
+      <!--<antcall target="Storage_AclStruct.addFieldToZasobyAjax">
+         <param name="Storage_AclStruct.addFieldToZasobyAjax.namespace" value="default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER"/>
+         <param name="Storage_AclStruct.addFieldToZasobyAjax.fieldNamespace" value="default_db/Rozdzielcza_struktura_wewnetrzna_wsg84/Rozdzielcza_struktura_wewnetrzna_wsg84_OFFER/the_geom"/>
+      </antcall>-->
+      
+      <antcall target="get_wfs.php_session_id_check.properties" inheritall="true"/>
+      <loadproperties srcfile="${get_wfs.php_session_id_check.properties}"/>
+      
+      <echo> #100 should be working $php_session_id_tested = ${php_session_id_tested}
+         read $get_wfs.php_session_id_check.properties ${get_wfs.php_session_id_check.properties}
+      </echo>
+      
+      <antcall target="Storage_AclStruct.Storage_AclStruct">
+         <param name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml"
+                value="${fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml}"/>
+         <!--<param name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml" value="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/fix_se_defaultdb_schema/temp/Rozdzielcza_rurociag_wsg84.xsd.Storage_AclStruct.xml"/>-->
+         <param name="fix_se_defaultdb_schema.file"
+                value="${fix_se_defaultdb_schema.file}"/>
+         <!--<param name="fix_se_defaultdb_schema.file" value="default_db__x3A__Rozdzielcza_rurociag_wsg84"/>-->
+      </antcall>
+      
+   </target>
+   
+   
+   <target name="git_push_folder" description="To commit changes">
+      <!--<input addproperty="fix_se_defaultdb_schema.commit_dir"/>-->
+      <echo> commiting to
+         dir  $fix_se_defaultdb_schema.dir ${fix_se_defaultdb_schema.dir}
+              $fix_se_defaultdb_schema.file ${fix_se_defaultdb_schema.file}
+         </echo>
+     
+      <echo> going upper to ${fix_se_defaultdb_schema.dir}/../.</echo>
+      
+      <exec executable="git"
+            dir="${fix_se_defaultdb_schema.dir}"
+            failifexecutionfails="true">
+         <arg line="add ../*"/>
+      </exec>
+      
+      <exec executable="git"
+            dir="${fix_se_defaultdb_schema.dir}"
+            failifexecutionfails="true">
+         <arg line="commit -m &#34; auto commit z ant f.fix_se_defaultdb_schema git_push_folder for ${fix_se_defaultdb_schema.file}&#34;"/>
+      </exec>
+      
+      <exec executable="git"
+            dir="${fix_se_defaultdb_schema.dir}"
+            failifexecutionfails="true">
+         <arg line="push"/>
+      </exec>
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="auto commited for p5:object ${fix_se_defaultdb_schema.file}"/>
+      </antcall>
+      
+   </target>
+   
+   
+   <target name="test.if_proc">
+      <!-- Do sprawdzenia:
+      27468   default_db/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI  - jest w procesach-
+            /ID 27469^^vV(27469)EF(1)  KOMORKA ID ID {6224 6434 (OB)}↵
+     
+     oraz 46937 TABELA default_db/IN7_MK_BAZA_DYSTRYBUCJI/INWEST_GMINNA__PRZYLACZE_OBIEKT_PUBLICZNY I
+            /46947^^vV(0)EF(1)  KOMORKA M_DIST_DESC_HTML M_DIST_DESC_HTML {Brak danych} - nie ma w procesach
+      -->
+      
+      <!--<antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="Analyzing auto process reconfiguration for new or updated object p5:object INWEST_GMINNA__PRZYLACZE_OBIEKT_PUBLICZNY"/>
+      </antcall>-->
+      <!--<ifproc namespace="default_db/IN7_MK_BAZA_DYSTRYBUCJI/INWEST_GMINNA__PRZYLACZE_OBIEKT_PUBLICZNY" 
+         RootTablePrefix="default_db" RootTableName="IN7_MK_BAZA_DYSTRYBUCJI" FieldName="" 
+         enumeration="" uuid="default_db__IN7_MK_BAZA_DYSTRYBUCJI__INWEST_GMINNA__PRZYLACZE_OBIEKT_PUBLICZNY"/>-->
+      
+      <antcall target="p5suis.p5suis:say_to_queue">
+         <param name="p5suis:say_text" value="Analyzing auto process reconfiguration for new or updated object p5:object IN7_MK_BAZA_DYSTRYBUCJI"/>
+      </antcall>
+      <ifproc namespace="default_db/IN7_MK_BAZA_DYSTRYBUCJI/IN7_MK_BAZA_DYSTRYBUCJI" RootTablePrefix="default_db" 
+         RootTableName="IN7_MK_BAZA_DYSTRYBUCJI" FieldName="" enumeration=""
+         uuid="default_db__IN7_MK_BAZA_DYSTRYBUCJI__IN7_MK_BAZA_DYSTRYBUCJI"/>
+      
+   </target>
+   
+   
+   
+   
+   
+   
+</project>

Diff do ficheiro suprimidas por serem muito extensas
+ 23 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.M_DIST_TYPE.xsl


+ 1189 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.from_schema.xsl

@@ -0,0 +1,1189 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+    xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+    exclude-result-prefixes="xs Storage_AclStruct"
+    version="2.0">
+    
+    <!--<xsl:output  omit-xml-declaration="yes" media-type="text" method="text"/>-->
+    <xsl:output  indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    <xsl:param name="fix_se_defaultdb_schema.file" required="yes"/>
+    <xsl:param name="fix_se_defaultdb_schema.dir" required="yes"/>
+    <xsl:param name="fix_se_defaultdb_schema.from_schema.Storage_AclStruct.xml" required="no"/>
+    <xsl:param name="get_wfs.build" required="yes"/>
+    <xsl:param name="p5suis.build" required="yes"/>
+    <xsl:param name="bgwrx.build" required="yes"/>
+    <xsl:param name="Storage_AclStruct.build.xml"  required="yes"/>
+    <xsl:param name="Storage_AclStruct.ifproc.build.xml"  required="yes"/>
+    
+    <!--<xsl:include href="../../default_db_xml_cache.public/system_cache__appinfo/external_schema_targetNamespace.xsl"/>-->
+    <xsl:include href="../../default_db_xml_cache.public/system_cache__appinfo/escape_functions.xsl"/>
+    
+    <xsl:template match="fix_se_defaultdb_schema:fix_sql_ID_KORESP_PROJ_errors.txt">
+        <!--<fix_se_defaultdb_schema:fix_sql_ID_KORESP_PROJ_errors.parse>-->
+            <xsl:for-each select="tokenize(text(),'\n')">
+                <xsl:choose>
+                    <xsl:when test=" contains(.,'_HIST')"/>
+                    <xsl:when test="string-length(.) &lt; 2"/>
+                    <xsl:otherwise>
+                        alter ignore table  <xsl:value-of select=" normalize-space(.)"/> add ID_KORESP_PROJEKT_WYK int(11) ;
+                        update `<xsl:value-of select=" normalize-space(.)"/>` set ID_KORESP_PROJEKT_WYK=ID_KORESP_PROJ_WYK where ID_KORESP_PROJ_WYK &gt; 0 ;
+                        alter ignore table  <xsl:value-of select=" normalize-space(.)"/>_HIST add ID_KORESP_PROJEKT_WYK varchar(11) default 'N/S;' ;
+                        alter ignore table  <xsl:value-of select=" normalize-space(.)"/> drop ID_KORESP_PROJ_WYK ;
+                        alter ignore table  <xsl:value-of select=" normalize-space(.)"/>_HIST drop ID_KORESP_PROJ_WYK ;
+                    </xsl:otherwise>
+                </xsl:choose>
+            </xsl:for-each>
+        <!--</fix_se_defaultdb_schema:fix_sql_ID_KORESP_PROJ_errors.parse>-->
+    </xsl:template>
+    
+    
+    <xsl:template match="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:message>#11 found schema, params 
+            $fix_se_defaultdb_schema.file=<xsl:value-of select="$fix_se_defaultdb_schema.file"/>
+            $fix_se_defaultdb_schema.dir=<xsl:value-of select="$fix_se_defaultdb_schema.dir"/>
+        </xsl:message>
+        
+        
+        <!--<xsl:apply-templates mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml"/>-->
+        
+        <xsl:copy>
+            <xsl:namespace name="fix_se_defaultdb_schema" select="'http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd'"/>
+            <xsl:choose>
+                <xsl:when test=" namespace::node()/name()='p5Type'">
+                    <xsl:message> Namespace p5Type exists</xsl:message>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:namespace name="p5Type" select="'http://biuro.biall-net.pl/p5/schema/types'"/>
+                </xsl:otherwise>
+            </xsl:choose>
+            <xsl:copy-of select="@*"/>
+            <xsl:choose>
+                <xsl:when test="import[@namespace='http://biuro.biall-net.pl/p5/schema/types']"></xsl:when>
+                <xsl:otherwise>
+                    <xs:import namespace="http://biuro.biall-net.pl/p5/schema/types"
+                        schemaLocation="../../../types.xsd"/>
+                </xsl:otherwise>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="import[@namespace='http://www.opengis.net/gml/3.2' and @schemaLocation='http://www.opengis.net/gml/3.2' ]"></xsl:when>
+                <xsl:otherwise>
+                    <xs:import namespace="http://www.opengis.net/gml/3.2"
+                        schemaLocation="http://www.opengis.net/gml/3.2"/>
+                </xsl:otherwise>
+            </xsl:choose>
+            <xsl:variable name="imported.schemas">
+                <fix_se_defaultdb_schema:imported.schemas>
+                    <xsl:for-each select="import[contains(@namespace,'default_db/table')]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                        <fix_se_defaultdb_schema:schema namespace="{@namespace}" schemaLocation="{@schemaLocation}">
+                            <xsl:message>#38 checking foreign import to look for back reff views <xsl:value-of select="@schemaLocation"/></xsl:message>
+                            <xsl:if test="doc-available(concat($fix_se_defaultdb_schema.dir,'/',@schemaLocation))">
+                                <xsl:copy-of select="doc(concat($fix_se_defaultdb_schema.dir,'/',@schemaLocation))"/>
+                            </xsl:if>
+                        </fix_se_defaultdb_schema:schema>
+                    </xsl:for-each>
+                </fix_se_defaultdb_schema:imported.schemas>
+            </xsl:variable>
+            
+            <xsl:apply-templates>
+                <xsl:with-param name="imported.schemas" select="$imported.schemas"/>
+            </xsl:apply-templates>
+            <xsl:choose>
+                <xsl:when test="complexType[.//element[@name='M_DIST_TYPE']]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                    <xsl:message>#62 complexType contains element[@name='M_DIST_TYPE'] - generating simpleTypes</xsl:message>
+                    <xsl:apply-templates mode="fix_se_defaultdb_schema:fix.simpleType">
+                        <xsl:with-param name="imported.schemas" select="$imported.schemas"/>
+                    </xsl:apply-templates>
+                </xsl:when>
+            </xsl:choose>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml" match="schema" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        
+        <xsl:variable name="targetNamespace" select="@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        <xsl:variable name="targetNamespace.name" select="namespace::*[ . = $targetNamespace ]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        
+        <xsl:variable name="from_string" select="system_cache__appinfo:translate_object_escaped_prefix_from_string($targetNamespace.name)" />
+        
+        <xsl:variable name="fix_se_defaultdb_schema:namespace.root" select=" concat(system_cache__appinfo:get_object_prefix($from_string),'/',system_cache__appinfo:clean_object_prefix($from_string))" />
+        
+        <xsl:message>#101 $targetNamespace.name = <xsl:value-of select="$targetNamespace.name"/>
+            $targetNamespace = <xsl:value-of select="$targetNamespace"/>
+        </xsl:message>
+        
+        
+        <project 
+            default="Storage_AclStruct.StorageAclStruct.{$targetNamespace.name}"
+            name="Storage_AclStruct.StorageAclStruct.local">
+            <xsl:attribute name="basedir">${basedir}</xsl:attribute>
+            
+            <include file="{$get_wfs.build}" as="get_wfs"/>
+            <include file="{$p5suis.build}" as="p5suis"/>
+            <include file="{$bgwrx.build}" as="get_wfs_recurse_xsl"/>
+            <include file="{$Storage_AclStruct.build.xml}" as="Storage_AclStruct" />
+            <include file="{$Storage_AclStruct.ifproc.build.xml}" as="Storage_AclStruct.ifproc" />
+            
+            <target name="Storage_AclStruct.StorageAclStruct.{$targetNamespace.name}">
+            <echo> will open #301</echo>
+                <xsl:apply-templates mode="#current">
+                    <xsl:with-param name="targetNamespace" select="$targetNamespace"/>
+                    <xsl:with-param name="targetNamespace.name" select="$targetNamespace.name"/>
+                    <xsl:with-param name="fix_se_defaultdb_schema:namespace.root" select="$fix_se_defaultdb_schema:namespace.root"/>
+                    <xsl:with-param name="RootTableName" select=" substring-after($from_string,':')"/>
+                </xsl:apply-templates>
+            </target>
+            <target name="Storage_AclStruct.StorageAclStruct.Refresh">
+                <input addproperty="RootTablePrefix"/>
+                <input addproperty="RootTableName"/>
+                <input addproperty="FieldName"/>
+                <input addproperty="enumeration"/>
+                <input addproperty="uuid"/>
+                <input addproperty="namespace"/>
+                <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local"/>
+                <input addproperty="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists"/>
+                <echo>#147 chodzi tutaj $get_wfs_recurse_xsl.wfs_output.xml.local ${get_wfs_recurse_xsl.wfs_output.xml.local} 
+                    $get_wfs_recurse_xsl.wfs_output.xml.local.ifexists = ${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}</echo>
+                <antcall target="Storage_AclStruct.ifproc.refresh">
+                    <param name="RootTablePrefix">
+                        <xsl:attribute name="value">${RootTablePrefix}</xsl:attribute>
+                    </param>
+                    <param name="RootTableName" >
+                        <xsl:attribute name="value">${RootTableName}</xsl:attribute>
+                    </param>
+                    <param name="FieldName" >
+                        <xsl:attribute name="value">${FieldName}</xsl:attribute>
+                    </param>
+                    <param name="enumeration" >
+                        <xsl:attribute name="value">${enumeration}</xsl:attribute>
+                    </param>
+                    <param name="uuid" >
+                        <xsl:attribute name="value">${uuid}</xsl:attribute>
+                    </param>
+                    <param name="namespace" >
+                        <xsl:attribute name="value">${namespace}</xsl:attribute>
+                    </param>
+                    <param name="get_wfs_recurse_xsl.wfs_output.xml.local" >
+                        <xsl:attribute name="value">${get_wfs_recurse_xsl.wfs_output.xml.local}</xsl:attribute>
+                    </param>
+                    <param name="get_wfs_recurse_xsl.wfs_output.xml.local.ifexists" >
+                        <xsl:attribute name="value">${get_wfs_recurse_xsl.wfs_output.xml.local.ifexists}</xsl:attribute>
+                    </param>
+                </antcall>
+                
+            </target>
+        </project>
+        
+        
+    </xsl:template>
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml" match="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:param name="fix_se_defaultdb_schema:namespace.root" required="yes"/>
+        <xsl:param name="RootTableName" required="yes"/>
+        <xsl:variable name="type.local" select="system_cache__appinfo:clean_object_prefix(@type)"/>
+        <addAclObjectToZasobyAjax>
+            <!--<xsl:attribute name="fix_se_defaultdb_schema:namespace.root" select="$fix_se_defaultdb_schema:namespace.root"/>-->
+            <xsl:attribute name="namespace" select="concat($fix_se_defaultdb_schema:namespace.root,'/',@name)"/>
+            <xsl:attribute name="name" select="@name"/>
+            <!--<xsl:attribute name="type.local" select="$type.local"/>-->
+        </addAclObjectToZasobyAjax>
+        <xsl:apply-templates mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml.local" select="../complexType[@name = $type.local]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+            <xsl:with-param name="fix_se_defaultdb_schema:namespace.root.path" select="concat($fix_se_defaultdb_schema:namespace.root,'/',@name)"/>
+            <xsl:with-param name="RootTableName" select="$RootTableName"/>
+        </xsl:apply-templates>
+        <activateObjectAjax>
+            <!--<xsl:attribute name="fix_se_defaultdb_schema:namespace.root" select="$fix_se_defaultdb_schema:namespace.root"/>-->
+            <xsl:attribute name="namespace" select="concat($fix_se_defaultdb_schema:namespace.root,'/',@name)"/>
+            <xsl:attribute name="name" select="@name"/>
+            <xsl:attribute name="RootTablePrefix" select="'default_db'"/>
+            <xsl:attribute name="RootTableName" select="$RootTableName"/>
+            <xsl:attribute name="uuid" select=" system_cache__appinfo:escape_object_prefix_to_string(concat( $fix_se_defaultdb_schema:namespace.root,'__',@name  ))" />
+            <!--<xsl:attribute name="type.local" select="$type.local"/>-->
+        </activateObjectAjax>
+    </xsl:template>
+    
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml" match="simpleType[ contains(@name,../../element/@name) and count(.//enumeration) = 1]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:param name="targetNamespace.name" required="yes"/>
+        <xsl:param name="fix_se_defaultdb_schema:namespace.root" required="yes"/>
+        <xsl:param name="RootTableName" required="yes"/>
+        
+        <xsl:variable name="type.local" select="system_cache__appinfo:clean_object_prefix(@type)"/>
+        <addProjectEnumTypeToZasobyAPI>
+            <!--<xsl:attribute name="fix_se_defaultdb_schema:namespace.root" select="$fix_se_defaultdb_schema:namespace.root"/>-->
+            <!--<xsl:attribute name="namespace" select="concat($fix_se_defaultdb_schema:namespace.root,'/',@name)"/>-->
+            <xsl:attribute name="RootTablePrefix" select="'default_db'"/>
+            <xsl:attribute name="RootTableName" select="$RootTableName"/>
+            <!--<xsl:attribute name="searchFlds" select="concat($targetNamespace.name,':',@name)"/>-->
+            <xsl:attribute name="FieldName" select="../complexType//element[@type = concat($targetNamespace.name,':',@name)]/@name"/>
+            <xsl:attribute name="enumeration" select=".//enumeration/@value" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+            <xsl:attribute name="uuid" select=" system_cache__appinfo:escape_object_prefix_to_string(concat( $fix_se_defaultdb_schema:namespace.root,.//enumeration/@value  ))" />
+            <!--<xsl:attribute name="type.local" select="$type.local"/>-->
+        </addProjectEnumTypeToZasobyAPI>
+    </xsl:template>
+    
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml.local" match="sequence|complexContent|restriction|complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:param name="fix_se_defaultdb_schema:namespace.root.path" required="yes"/>
+        <xsl:param name="RootTableName" required="yes"/>
+        <xsl:apply-templates mode="#current">
+            <xsl:with-param name="fix_se_defaultdb_schema:namespace.root.path" select="$fix_se_defaultdb_schema:namespace.root.path"/>
+            <xsl:with-param name="RootTableName" select="$RootTableName"/>
+        </xsl:apply-templates>
+    </xsl:template>
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml.local" match="element" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:param name="fix_se_defaultdb_schema:namespace.root.path" required="yes"/>
+        <xsl:param name="RootTableName" required="yes"/>
+        <addFieldToZasobyAjax>
+            <!--<xsl:attribute name="fix_se_defaultdb_schema:namespace.root" select="$fix_se_defaultdb_schema:namespace.root"/>-->
+            <xsl:attribute name="namespace" select="$fix_se_defaultdb_schema:namespace.root.path"/>
+            <xsl:attribute name="fieldNamespace" select="concat($fix_se_defaultdb_schema:namespace.root.path,'/',concat(@name,@ref))"/>
+            <xsl:attribute name="field" select="concat(@name,@ref)"/>
+            <xsl:attribute name="RootTableName" select="$RootTableName"/>
+        </addFieldToZasobyAjax>
+    </xsl:template>
+    
+    
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml.local" match="*|text()|comment()"/>
+    
+    <xsl:template mode="fix_se_defaultdb_schema:from_schema.Storage_AclStruct.xml" match="*|text()|comment()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+    
+    <xsl:template mode="fix_se_defaultdb_schema:fix.simpleType" match="*" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        
+    <xsl:template mode="fix_se_defaultdb_schema:fix.simpleType" match="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:choose>
+            <xsl:when test="preceding-sibling::simpleType[@name = concat(current()/@name,'_Type')]"/>
+            <xsl:when test="following-sibling::simpleType[@name = concat(current()/@name,'_Type')]"/>
+            <xsl:otherwise>
+                <xsl:variable name="targetNamespace.name" select="namespace::*[ . =  root()/schema/@targetNamespace]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+                <xsl:message>#75 adding Type <xsl:value-of select="concat(current()/@name,'_Type')"/></xsl:message>
+                <xsl:comment>#75 adding Type <xsl:value-of select="concat(current()/@name,'_Type')"/>
+                </xsl:comment>
+                <xs:simpleType name="{@name}_Type">
+                    <xs:restriction base="{$targetNamespace.name}:M_DIST_TYPE">
+                        <xs:enumeration value="{@name}"/>
+                    </xs:restriction>
+                </xs:simpleType>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template match="*">
+        <xsl:param name="imported.schemas"/>
+        <xsl:copy>
+            <xsl:apply-templates select="@*"/>
+            <xsl:apply-templates>
+                <xsl:with-param name="imported.schemas" select="$imported.schemas"/>
+            </xsl:apply-templates>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    
+    
+    <xsl:template match="comment()|text()">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <!--<xsl:template match="@type[ contains(.,'gml:AbstractFeatureType')]"/>-->
+    <!--<xsl:template match="@type[ contains(.,'gml:LineStringPropertyType')]"/>-->
+    
+    
+    <xsl:template match="@type[ contains(.,'p5:text')]" priority="9">
+        <xsl:attribute name="type" select="'p5Type:text'"/>
+    </xsl:template>
+    
+    <xsl:template match="complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:choose>
+                <xsl:when test="..//element[@name='ID']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                    <xsl:attribute name="system_cache__appinfo:primaryKey" select="'ID'"/>
+                    <xsl:message>#2301 fixing system_cache__appinfo:primaryKey=ID for <xsl:value-of select="@name"/></xsl:message>
+                </xsl:when>
+            </xsl:choose>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="complexType[../../schema and not( descendant::node()/name()='system_cache__appinfo:inherit') and not(@type) and not(complexContent) and .//sequence and not(preceding-sibling::complexType) ] " xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:message terminate="no">#85 matched complexType <xsl:value-of select="@*"/> </xsl:message>
+        <xsl:variable name="name_attr" select="@name"/>
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:choose>
+                <xsl:when test="..//element[@name='ID']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                    <xsl:attribute name="system_cache__appinfo:primaryKey" select="'ID'"/>
+                    <xsl:message>#2302 fixing system_cache__appinfo:primaryKey=ID for <xsl:value-of select="@name"/></xsl:message>
+                </xsl:when>
+            </xsl:choose>
+            <xsl:choose>
+                <xsl:when test="annotation" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                    <xsl:for-each select="annotation" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                        <xsl:copy>
+                            <xsl:copy-of select="documentation" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+                            <xsl:choose>
+                                <xsl:when test="preceding-sibling::complexType" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                                    <xsl:comment>preceding-sibling::complexType = test yes</xsl:comment>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:comment>preceding-sibling::complexType = test NO</xsl:comment>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                            
+                            <xs:appinfo>
+                                <system_cache__appinfo:heritage>
+                                    <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:{$name_attr}" system_cache__appinfo:heritage_acl="true">
+                                        <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                                        <acl_rule_inherit_to_all_refs_by_primary/>
+                                        <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
+                                    </system_cache__appinfo:inherit>
+                                    <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+                                </system_cache__appinfo:heritage>
+                            </xs:appinfo>
+                            
+                        </xsl:copy>
+                    </xsl:for-each>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xs:annotation>
+                        <xs:appinfo>
+                            <system_cache__appinfo:heritage>
+                                <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:{@name}" system_cache__appinfo:heritage_acl="true">
+                                    <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                                    <acl_rule_inherit_to_all_refs_by_primary/>
+                                    <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="A_STATUS"/>
+                                </system_cache__appinfo:inherit>
+                                <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true" system_cache__appinfo:heritage_sort="true"/>
+                            </system_cache__appinfo:heritage>
+                        </xs:appinfo>
+                    </xs:annotation>
+                </xsl:otherwise>
+            </xsl:choose>
+            
+            <xsl:apply-templates select="*[ not(local-name()='annotation')]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="import[ @schemaLocation='http://www.opengis.net/gml/3.2']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    <xsl:template match="import[ contains(@schemaLocation,'/Types/')]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template match="import[ @schemaLocation='../Types/gml.xsd']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
+        <xsl:comment>
+            <xsl:copy-of select="."/>
+        </xsl:comment>
+    </xsl:template>
+        
+    
+    
+    
+    <xsl:template match="element[  contains(@ref,'default_db__x3A__CRM_LISTA_ZASOBOW:') and not(.//system_cache__appinfo:source)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="{ preceding-sibling::*[1]/@name}" system_cache__appinfo:xpath="{@ref}/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                </xs:documentation>
+            </xs:annotation>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="element[  @name = 'L_APPOITMENT_USER' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER/ADM_ACCOUNT"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #166
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[  contains(@ref,'default_db__x3A__ADMIN_USERS:L_APPOITMENT_USER') and preceding-sibling::*[1]/@name = 'L_APPOITMENT_USER' and not(.//system_cache__appinfo:source)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="L_APPOITMENT_USER" system_cache__appinfo:xpath="{@ref}/ADM_ACCOUNT"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #180200
+                </xs:documentation>
+            </xs:annotation>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="element[@ref='default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_TRANSFER_OPPOSITE_ID_PROJECT']" priority="9">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template match="element[  @name = 'ADMIN_USERS_ID' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID'))  and not(../../schema)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ADMIN_USERS_ID" system_cache__appinfo:xpath="default_db__x3A__ADMIN_USERS:ADMIN_USERS_ID/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #185
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="element[  @name = 'ID_SERVICES' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__SERVICES:'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__SERVICES:SERVICES'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_SERVICES" system_cache__appinfo:xpath="default_db__x3A__SERVICES:SERVICES/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #183
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[  @name = 'ID_PROJECT' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <!--<xsl:choose>
+                            <xsl:when test="contains(../element/@name,'Rozdzielcza_')">
+                                <xsl:attribute name="system_cache__appinfo:backref_evaluate" select="'true'"/>
+                            </xsl:when>
+                        </xsl:choose>-->
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_PROJECT" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:ID_PROJECT/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #204
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[  @name = 'CRM_LISTA_ZASOBOW_ID' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__CRM_LISTA_ZASOBOW:'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="CRM_LISTA_ZASOBOW_ID" system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW_ID/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #224
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[ contains(@name , 'IN7_DZIENNIK_KORESP_ID') and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__IN7_DZIENNIK_KORESP:'))  and not(../../schema)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="concat('default_db__x3A__IN7_DZIENNIK_KORESP:',@name)"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="{@name}" system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:{@name}/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #24995 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    
+    <xsl:template match="element[ not(@name='ID_KORESP_PROJ_WYK') and contains(@name , 'ID_KORESP_') and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__IN7_DZIENNIK_KORESP:'))  and not(../../schema)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="concat('default_db__x3A__IN7_DZIENNIK_KORESP:',@name)"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="{@name}" system_cache__appinfo:xpath="default_db__x3A__IN7_DZIENNIK_KORESP:{@name}/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #245 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    
+    <xsl:template match="element[ @name='T_TELBOX_NEIGHBOUR_IN_ID' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__TELBOXES:T_TELBOX_NEIGHBOUR_IN_ID'))  and not(../../schema)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__TELBOXES:T_TELBOX_NEIGHBOUR_IN_ID'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="T_TELBOX_NEIGHBOUR_IN_ID" system_cache__appinfo:xpath="default_db__x3A__TELBOXES:T_TELBOX_NEIGHBOUR_IN_ID/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #2225 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[ @name='T_TELBOX_NEIGHBOUR_OUT' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__TELBOXES:T_TELBOX_NEIGHBOUR_OUT'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__TELBOXES:T_TELBOX_NEIGHBOUR_OUT'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="T_TELBOX_NEIGHBOUR_OUT" system_cache__appinfo:xpath="default_db__x3A__TELBOXES:T_TELBOX_NEIGHBOUR_OUT/T_TELBOX_NAME"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #2884 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    
+    
+    
+    <xsl:template match="element[ @name='PARENT_ID_DEVICE' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__DEVICES:'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__DEVICES:PARENT_ID_DEVICE'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="PARENT_ID_DEVICE" system_cache__appinfo:xpath="default_db__x3A__DEVICES:PARENT_ID_DEVICE/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #2855 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[ @name='T_TELBOX_BUILDING_IN' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="T_TELBOX_BUILDING_IN" system_cache__appinfo:xpath="default_db__x3A__BUILDINGS:T_TELBOX_BUILDING_IN/S_ADDRESS_STREET"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3455 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    
+    <xsl:template match="element[ @name='ID_OFFERS_GROUP' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__USERS2_OFFERS_GROUPS:USERS2_OFFERS_GROUPS'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__USERS2_OFFERS_GROUPS:USERS2_OFFERS_GROUPS'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_OFFERS_GROUP" system_cache__appinfo:xpath="default_db__x3A__USERS2_OFFERS_GROUPS:USERS2_OFFERS_GROUPS/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3777 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[ @name='ID_BILLING_USERS' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__COMPANIES:ID_BILLING_USERS'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__COMPANIES:ID_BILLING_USERS'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_BILLING_USERS" system_cache__appinfo:xpath="default_db__x3A__COMPANIES:ID_BILLING_USERS/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #3992 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[ @name='M_REWIR' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__MK_Rewiry:MK_Rewiry'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__MK_Rewiry:MK_Rewiry'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="M_REWIR" system_cache__appinfo:xpath="default_db__x3A__MK_Rewiry:MK_Rewiry/NAZWA_REWI"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4122 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template match="element[ @name='ID_COSTS_GROUPS' and not(following-sibling::*[1]/contains(@ref,'default_db__x3A__USERS2_OFFERS_COSTS_GROUPS:USERS2_OFFERS_COSTS_GROUPS'))  and not(../../schema) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+        <xsl:element name="xs:element" >
+            <xsl:attribute name="ref" select="'default_db__x3A__USERS2_OFFERS_COSTS_GROUPS:USERS2_OFFERS_COSTS_GROUPS'"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_COSTS_GROUPS" system_cache__appinfo:xpath="default_db__x3A__USERS2_OFFERS_COSTS_GROUPS:USERS2_OFFERS_COSTS_GROUPS/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4331 !!!
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:element>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="element[  contains(@ref,'default_db__x3A__IN7_DZIENNIK_KORESP:') and not(.//system_cache__appinfo:source) and preceding-sibling::*[1]/@name]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="{ preceding-sibling::*[1]/@name}" system_cache__appinfo:xpath="{@ref}/ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #200
+                </xs:documentation>
+            </xs:annotation>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="element[  contains(@ref,'default_db__x3A__Rozdzielcza_') and ( not(.//system_cache__appinfo:flat_relation_cache) or contains(.//xs:documentation,'TODO CHECK') ) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <xsl:attribute name="system_cache__appinfo:backref_evaluate" select="'true'"/>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="{@ref}/ID_PROJECT"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #4999111_2
+                </xs:documentation>
+            </xs:annotation>
+            <!--<xsl:apply-templates/>-->
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="element[  contains(@ref,'default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS')  and not(contains(preceding-sibling::*[1]/@name , 'CRM_LISTA_ZASOBOW_OFFERS') ) and not(.//system_cache__appinfo:flat_relation_cache)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <xsl:attribute name="system_cache__appinfo:backref_evaluate" select="'true'"/>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__CRM_LISTA_ZASOBOW_OFFERS:CRM_LISTA_ZASOBOW_OFFERS/ID_PROJECT"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #51911 not  not(contains(preceding-sibling::*[1]/@name , 'CRM_LISTA_ZASOBOW_OFFERS') 
+                </xs:documentation>
+            </xs:annotation>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    <!--//todo source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID_KORESP_ from source system_cache__appinfo:name="ID_KORESP_ i ROZDZ***-->
+    <!--//todo source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="_ from source system_cache__appinfo:name="*** in ROzdzielcz-->
+    
+    
+    <!-- dodanie backrefow typ 
+          <xs:annotation>
+               <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                     <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+            </xs:annotation>
+        
+        - jak nie ma -->
+    <!-- example 
+        <xs:element ref="SystemObjects__x3A__AccessGroup:AccessGroupRead"
+                  id="a3A__DEVICES___d5e79000-1">
+                  <xs:annotation>
+                     <xs:appinfo>
+                        <system_cache__appinfo:flat_relation_cache>
+                           <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="A_CLASSIFIED" system_cache__appinfo:xpath="SystemObjects__x3A__AccessGroup:AccessGroupRead/uid"/>
+                        </system_cache__appinfo:flat_relation_cache>
+                     </xs:appinfo>
+                  </xs:annotation>
+               </xs:element>-->
+    <!--<xsl:template match="element[ contains(@ref, 'default_db__x3A__') ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:param name="imported.schemas" required="yes"/>
+        <xsl:variable name="ref.prefix" select="substring-before(@ref,':')"/>
+        <xsl:variable name="ref.namespace" select="namespace-uri-for-prefix(substring-before( current()/@ref,':'),.)"/>
+        <xsl:variable name="loc.root_element" select=" ancestor::node()[ parent::node()/local-name()='schema']/@name"/>
+        <xsl:variable name="loc.namespace" select="/schema/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        <xsl:variable name="loc.prefix" select="/schema/namespace::*[ . = $loc.namespace]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        <xsl:variable name="loc.flat_relation_cache" select="xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache"/>
+        <xsl:variable name="loc.maxOccurs" select="@maxOccurs"/>
+        <xsl:variable name="loc.minOccurs" select="@minOccurs"/>
+        <xsl:variable name="fix.insert">
+            <xs:element  
+                ref="{$loc.prefix}:{$loc.root_element}">
+                <xsl:if test="$loc.minOccurs/node()"><xsl:attribute name="maxOccurs" select="$loc.minOccurs"/></xsl:if>
+                <xsl:if test="$loc.maxOccurs/node()"><xsl:attribute name="minOccurs" select="$loc.maxOccurs"/></xsl:if>
+                <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                    <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                </system_cache__appinfo:flat_relation_cache>
+            </xs:element>
+        </xsl:variable>
+        <xsl:message>#104 will look for backreffed at $ref.prefix = <xsl:value-of select="$ref.prefix"/> ; $loc.root_element = <xsl:value-of select="$loc.root_element"/>  ; $loc.namespace=<xsl:value-of select="$loc.namespace"/>; $loc.prefix = <xsl:value-of select="$loc.prefix"/> ;</xsl:message>
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+       
+            <xsl:choose>
+                <xsl:when test="1 = 1">
+                    <xsl:message>#154 temporary disabled backreff etc</xsl:message>
+                </xsl:when>
+                <xsl:when test="$imported.schemas/fix_se_defaultdb_schema:imported.schemas/fix_se_defaultdb_schema:schema[@namespace= $ref.namespace]" xpath-default-namespace="">
+                    <xsl:variable name="ref.schemaLocation" select="$imported.schemas/fix_se_defaultdb_schema:imported.schemas/fix_se_defaultdb_schema:schema[@namespace= $ref.namespace]/@schemaLocation"/>
+                    <xsl:message>#122-A jest schemat do badania backrefa dla <xsl:value-of select="$ref.namespace"/></xsl:message>
+                    <!-\-<xsl:comment>#122-A found remote backref specifications??? for
+                       $ref.namespace = <xsl:value-of select="$ref.namespace"/>
+                       $loc.root_element = <xsl:value-of select="$loc.root_element"/> ;
+                       $loc.namespace = <xsl:value-of select="$loc.namespace"/>
+                       loc.prefix = <xsl:value-of select="$loc.prefix"/>
+                    </xsl:comment>-\->
+                    <xsl:choose>
+                        <xsl:when test="$imported.schemas/fix_se_defaultdb_schema:imported.schemas/fix_se_defaultdb_schema:schema[@namespace= $ref.namespace]//element[@ref= concat($loc.prefix,':',$loc.root_element)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                            <xsl:variable name="ref.flat_relation_cache" select="$imported.schemas/fix_se_defaultdb_schema:imported.schemas/fix_se_defaultdb_schema:schema[@namespace= $ref.namespace]//element[@ref= concat($loc.prefix,':',$loc.root_element)]/xs:annotation/xs:appinfo/system_cache__appinfo:flat_relation_cache"/>
+                            <!-\-<xsl:comment>#139-A OK found remote REF to local
+                               <!-\\- $loc.flat_relation_cache = <xsl:copy-of select="$loc.flat_relation_cache"/>
+                                $ref.flat_relation_cache  = <xsl:copy-of select="$ref.flat_relation_cache"/>-\\->
+                             </xsl:comment>-\->
+                            <xsl:message>#139-A OK found remote REF to local 
+                                $loc.flat_relation_cache = <xsl:copy-of select="$loc.flat_relation_cache"/>
+                                $ref.flat_relation_cache  = <xsl:copy-of select="$ref.flat_relation_cache"/>
+                            </xsl:message>
+                            <xsl:choose>
+                                <xsl:when test="$loc.flat_relation_cache/@system_cache__appinfo:backref_evaluate">
+                                    <xsl:choose>
+                                        <xsl:when test="$ref.flat_relation_cache/@system_cache__appinfo:backref_evaluate">
+                                            <ERROR>#155 There are both backrefs! for $loc.flat_relation_cache/@system_cache__appinfo:backref_evaluate
+                                                and $ref.flat_relation_cache/@system_cache__appinfo:backref_evaluate
+                                                add this to $ref.schemaLocation = <xsl:value-of select="$ref.schemaLocation"/>
+                                                <xsl:copy-of select="$fix.insert"/>
+                                            </ERROR>
+                                        </xsl:when>
+                                        <xsl:otherwise>
+                                            <xsl:comment>
+                                                #161 probably OK 
+                                                    OK FOUND $loc.flat_relation_cache/@system_cache__appinfo:backref_evaluate 
+                                                    OK NOT FOUND $ref.flat_relation_cache/@system_cache__appinfo:backref_evaluate 
+                                            </xsl:comment>
+                                        </xsl:otherwise>
+                                    </xsl:choose>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <xsl:choose>
+                                        <xsl:when test="$ref.flat_relation_cache/@system_cache__appinfo:backref_evaluate">
+                                            <xsl:comment>
+                                                #178 probably OK 
+                                                    OK FOUND $loc.flat_relation_cache/@system_cache__appinfo:backref_evaluate 
+                                                    OK NOT FOUND $ref.flat_relation_cache/@system_cache__appinfo:backref_evaluate 
+                                            </xsl:comment>
+                                        </xsl:when>
+                                        <xsl:otherwise>
+                                            <ERROR>#173 There are NOT remote to local backref_evaluate 
+                                                and NOT FOUND $ref.flat_relation_cache/@system_cache__appinfo:backref_evaluate
+                                                ADD THIS BELOW SPECIFICATION ON OBJECT  to $ref.schemaLocation = <xsl:value-of select="$ref.schemaLocation"/>
+                                                <xsl:copy-of select="$fix.insert"/>
+                                            </ERROR>
+                                        </xsl:otherwise>
+                                    </xsl:choose>
+                                </xsl:otherwise>
+                            </xsl:choose>                            
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <!-\-<xsl:variable name="fix.insert">
+                                <xs:element  
+                                    ref="{$loc.prefix}:{$loc.root_element}">
+                                    <xsl:attribute name="maxOccurs" select="$loc.minOccurs"/>
+                                    <xsl:attribute name="minOccurs" select="$loc.maxOccurs"/>
+                                    <system_cache__appinfo:flat_relation_cache system_cache__appinfo:backref_evaluate="true">
+                                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view"/>
+                                    </system_cache__appinfo:flat_relation_cache>
+                                </xs:element>
+                            </xsl:variable>-\->
+                            
+                            <ERROR>
+                                #214 There are NONE definition of backref from remote
+                                <xsl:comment>#139-B WARN not found remote REF to local:
+                                Add following text to remote schema: to $ref.schemaLocation = <xsl:value-of select="$ref.schemaLocation"/>
+                                    
+                             </xsl:comment>
+                                <xsl:copy-of select="$fix.insert"/>
+                            </ERROR>
+                            <xs:annotation xsl:xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                                <xs:appinfo xmlns="http://www.w3.org/2001/XMLSchema">
+                                    <xsl:copy-of select="$fix.insert" copy-namespaces="no"/>
+                                </xs:appinfo>
+                            </xs:annotation>
+                            <xsl:message>#139-B WARN not found remote REF to local </xsl:message>
+                            <!-\-<xsl:copy-of select="$imported.schemas"/>-\->
+                        </xsl:otherwise>
+                    </xsl:choose>
+
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:message>#122-B  nie ma schematu do badania backrefa
+                        namespace-uri-for-prefix(substring-before( current()/@ref,':'),.)=<xsl:value-of select="$ref.namespace"/>
+                        $loc.root_element = <xsl:value-of select="$loc.root_element"/> ;
+                        loc.prefix = <xsl:value-of select="$loc.prefix"/>
+                        $loc.namespace = <xsl:value-of select="$loc.namespace"/>
+                        
+                    </xsl:message>
+                    <xsl:comment>#122-B not found remote backref specifications??? for
+                       $ref.namespace = <xsl:value-of select="$ref.namespace"/>
+                       $loc.root_element = <xsl:value-of select="$loc.root_element"/> ;
+                        loc.prefix = <xsl:value-of select="$loc.prefix"/>
+                       $loc.namespace = <xsl:value-of select="$loc.namespace"/>
+                    </xsl:comment>
+                    
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:copy>
+    </xsl:template>-->
+    
+    <xsl:template match="*" mode="fix_se_defaultdb_schema:fix.insert">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    
+    <!-- dodanie inherits
+    
+    <xs:annotation>
+         <xs:appinfo>
+            <system_cache__appinfo:heritage>
+               <system_cache__appinfo:inherit system_cache__appinfo:inherit_ref="default_db:IN7_MK_BAZA_DYSTRYBUCJI"
+                                              system_cache__appinfo:heritage_acl="true">
+                  <system_cache__appinfo:acl_rule_inherit_to_all_same_name_elements_and_refs/>
+                  <acl_rule_inherit_to_all_refs_by_primary/>
+                  <acl_rule_inherit_to_all_refs_by_local_element system_cache__appinfo:acl_rule_inherit_local_element_name="P_ID"/>
+               </system_cache__appinfo:inherit>
+               <system_cache__appinfo:exherit_all system_cache__appinfo:heritage_acl="true"
+                                                  system_cache__appinfo:heritage_sort="true"/>
+            </system_cache__appinfo:heritage>
+         </xs:appinfo>
+      </xs:annotation>
+    
+    -->
+    
+   
+    <!-- blad piotrowego xsd:schema z api @2018-03-23 dla restriction enums -->
+    <xsl:template match="simpleType[ @base and restriction and not(@name) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:copy>
+            <xsl:copy-of select="@*[ not(name()='base')]"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>    
+    
+    <xsl:template match="restriction[ not(@base) and ../../simpleType ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:copy>
+            <xsl:copy-of select="../@base"/>
+            <xsl:comment>@2018-03-23 fixed blad piotrowego xsd:schema z api @2018-03-23 dla restriction enums</xsl:comment>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="@*">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template match="@schemaLocation[ contains(.,'../SystemObjects') or contains(.,'../../default_db') or contains(.,'../../../types.xsd')]" priority="9">
+        <xsl:copy-of select="."/>    
+    </xsl:template>
+    
+    <xsl:template match="@schemaLocation">
+        <xsl:attribute name="{name()}">
+            <xsl:variable name="schema_name" select="substring-before(.,'.xsd')"/>
+            <xsl:value-of select="concat('../../default_db.',$schema_name,'/',$schema_name,'/',$schema_name,'.xsd')"/>
+        </xsl:attribute>    
+    </xsl:template>
+    
+    <xsl:template match="@schemaLocation[ contains(.,'../table/')]">
+        <xsl:attribute name="{name()}">
+            <xsl:variable name="schema_name" select="substring-before(.,'.xsd')"/>
+            <xsl:variable name="schema_name" select="substring-after($schema_name,'../table/')"/>
+            <xsl:value-of select="concat('../../default_db.',$schema_name,'/',$schema_name,'/',$schema_name,'.xsd')"/>
+        </xsl:attribute>    
+    </xsl:template>
+    
+    <xsl:template match="@schemaLocation[ contains(.,'/default_db_xml_cache.public/')]">
+        <xsl:attribute name="{name()}">
+            <xsl:variable name="schema_name" select="substring-before(.,'.xsd')"/>
+            <xsl:variable name="schema_name" select="substring-after($schema_name,'../table/')"/>
+            <xsl:value-of select="concat('../../../default_db_xml_cache.public/',$schema_name,'.xsd')"/>
+        </xsl:attribute>    
+    </xsl:template>
+    
+    
+    <!-- LOCAL ELEMENTS -->
+    
+    <xsl:template match="element[@name='ID_KORESP_PROJ_WYK']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
+        <xsl:message>#858 removed old element[@name='ID_KORESP_PROJ_WYK']</xsl:message>
+    </xsl:template>
+    <xsl:template match="element[@ref='default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJ_WYK']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:message>#858 removed old element[@ref='default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJ_WYK']</xsl:message>
+    </xsl:template>
+    
+    <xsl:template match="element[@name='SYNC_SQIX_STATUS']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:message>#104 ignored element[@name='SYNC_SQIX_STATUS']</xsl:message>
+        <xsl:comment>#104 ignored element[@name='SYNC_SQIX_STATUS']
+        </xsl:comment>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="element[ contains(@ref,'SystemObjects__x3A__Access')]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+    
+    <xsl:template match="element[ @name='the_geom' and not(@type)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:attribute name="type" select="'gml:AbstractFeatureType'"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    <xsl:template match="element[ @name='the_geom' and not(@type)]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:attribute name="type" select="'gml:AbstractFeatureType'"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="element[ @name='the_geom' and ( @type='gml:AbstractFeatureType' or @type='xs:string' ) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:choose>
+                <xsl:when test="matches(ancestor::*/@name,'(Rozdzielcza_Pakiet5MikrorurekMagistrala)|(Rozdzielcza_Kabel_Swiatlowodowy_wsg84)|(Rozdzielcza_Wykop_przedmiar_na_mikrorurki)|(Rozdzielcza_Mikrokanalizacja_do_klienta)|(Rozdzielcza_Przeciski_110mm)|(Rozdzielcza_rurociag_wsg84)|(Rozdzielcza_rura_oslonowa_magistralna)|(Rozdzielcza_Przeciski_110mm)|(Rozdzielcza_struktura_wewnetrzna_wsg84)|(rurociagi_obce_wsg84)|(PROBLEMS)')">
+                    <xsl:attribute name="type" select="'p5Type:lineString'"/>
+                    <xsl:message>#958 fixed the_geom  name="type" select="'p5Type:lineString' </xsl:message>
+                </xsl:when>
+                <xsl:when test="matches(ancestor::*/@name,'(Rozdzielcza_koszty_dodatkowe)|(Rozdzielcza_PionyKablowe)|(USERS2_MARKETING)|(PODLACZENIE_LOKALU_WEW)')">
+                    <xsl:attribute name="type" select="'p5Type:point'"/>
+                    <xsl:message>#958 fixed the_geom  name="type" select="'p5Type:point' </xsl:message>
+                </xsl:when>
+                <xsl:when test="matches(ancestor::*/@name,'(TELBOXES)|(MK_Rewiry)|(DEVICES)')">
+                    <xsl:attribute name="type" select="'p5Type:polygon'"/>
+                    <xsl:message>#958 fixed the_geom  name="type" select="'p5Type:polygon' </xsl:message>
+                </xsl:when>
+                <xsl:when test="matches( root()//*/@targetNamespace,'(.*table/IN7_MK_BAZA_DYSTRYBUCJI.xsd)')" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                    <xsl:attribute name="type" select="'p5Type:polygon'"/>
+                    <xsl:message>#958 fixed the_geom  name="type" select="'p5Type:polygon' </xsl:message>
+                </xsl:when>
+                <xsl:when test="matches( root()//*/@targetNamespace,'(.*table/DEVICES.xsd)')" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+                    <xsl:attribute name="type" select="'p5Type:polygon'"/>
+                    <xsl:message>#958a fixed the_geom  name="type" select="'p5Type:polygon' </xsl:message>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:message terminate="yes">#1000 SET CORRECT 'p5Type:lineString' or polygon or point for the_geom element 
+                        root()/@targetNamespace = <xsl:value-of select="root()//*/@targetNamespace" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+                    </xsl:message>
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+   
+    <xsl:template match="element[ @name='M_DIST_TYPE' and not(contains(@type, ancestor::complexType/@name))]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema" priority="9">
+        <xsl:variable name="targetNamespace.name" select="namespace::*[ . =  root()/schema/@targetNamespace]/name()" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+        <xsl:copy>
+            <xsl:copy-of select="@*[not(name()='type')]"/>
+            <xsl:attribute name="type" select="concat($targetNamespace.name,':',ancestor::complexType/@name,'_Type')"/>
+            <xsl:message>#1025 added type based on derivated simpleType to force instance type <xsl:value-of select="concat(ancestor::complexType/@name,'_Type')"/>  </xsl:message>
+            <xsl:comment>#1025 added type based on derivated simpleType to force instance type </xsl:comment>
+        </xsl:copy>
+    </xsl:template>
+   
+   
+   
+    <xsl:template match="element[ preceding-sibling::*[1]/@name='P_ID' and  @ref='default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI']" xpath-default-namespace="http://www.w3.org/2001/XMLSchema">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <xsl:attribute name="system_cache__appinfo:backref_evaluate" select="'true'"/>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI/P_ID"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED #104888
+                </xs:documentation>
+            </xs:annotation>
+        </xsl:copy>
+    </xsl:template>
+   
+   
+    <xsl:template match="element[  contains(@ref,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP') and not(.//system_cache__appinfo:source) and not(contains(preceding-sibling::*[1]/@name,'ID_KORESP')) ]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"  priority="9">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xs:annotation>
+                <xs:appinfo>
+                    <system_cache__appinfo:flat_relation_cache>
+                        <system_cache__appinfo:source system_cache__appinfo:ref_engine="view" system_cache__appinfo:name="ID" system_cache__appinfo:xpath="{@ref}/ID_PROJECT"/>
+                    </system_cache__appinfo:flat_relation_cache>
+                </xs:appinfo>
+                <xs:documentation>
+                    #109111 TODO CHECK IF THIS IS CORRECT FLAT RELATION! WAS GENERATED
+                    <xsl:message>#1092 added appinfo <xsl:value-of select="@ref"/>/ID_PROJECT</xsl:message>
+                </xs:documentation>
+            </xs:annotation>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    <!--       ##### FLAT UPDATE   -->
+    
+    <xsl:template match="system_cache__appinfo:source[ not(../@system_cache__appinfo:backref_evaluate) and not(@system_cache__appinfo:ref_engine='view')  and ( 
+        contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJ')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_REALIZ')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_DO_UZG_ZUD')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_OFFER')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJEKT_WYK')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_POM_GEOD')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROTOK_ODB')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_UZG_ZUD')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZGL_ODB')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_ZLECENIE')
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_MK_BAZA_DYSTRYBUCJI:IN7_MK_BAZA_DYSTRYBUCJI')
+        
+        or contains(@system_cache__appinfo:xpath,'default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW')
+        ) ]">
+        <xsl:message>#851 FIXING missed @system_cache__appinfo:ref_engine='view' for system_cache__appinfo:name="<xsl:value-of select="@system_cache__appinfo:name"/>" contains(@system_cache__appinfo:xpath,'default_db__x3A__IN7_DZIENNIK_KORESP:ID_KORESP_PROJ') </xsl:message>
+        <xsl:copy>
+            <xsl:attribute name="system_cache__appinfo:ref_engine" select="'view'"/>
+            <xsl:copy-of select="@*"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+</xsl:stylesheet>

+ 46 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.from_schema_create_dir.xsl

@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    
+    <xsl:param name="fix_se_defaultdb_schema.file" required="yes"/>
+    <xsl:param name="fix_se_defaultdb_schema.dir" required="yes"/>
+    
+    <xsl:template match="*">
+        <xsl:variable name="schema">
+            <xsl:copy-of select="."/>
+        </xsl:variable>
+        <xsl:for-each select="xs:element">
+            <xsl:variable name="name" select="@name"/>
+            <xsl:choose>
+                <xsl:when test="$fix_se_defaultdb_schema.file = concat($name,'.xsd')">
+                    <xsl:message>#20 bypassing main file from expanding = $fix_se_defaultdb_schema.file = <xsl:value-of select="$fix_se_defaultdb_schema.file"/>; </xsl:message>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:message>#23 expanding = <xsl:value-of select="$name"/> file <xsl:value-of select="concat($fix_se_defaultdb_schema.dir,'/../',$name,'/',$name,'.xsd')"/> </xsl:message>
+                    <xsl:result-document href="{$fix_se_defaultdb_schema.dir}/../{$name}/{$name}.xsd">
+                        <xsl:copy-of select="$schema"/>
+                    </xsl:result-document>
+                    <xsl:result-document href="{$fix_se_defaultdb_schema.dir}/../{$name}/build.xml">
+                        <empty/>
+                    </xsl:result-document>
+                </xsl:otherwise>
+            </xsl:choose>
+            
+        </xsl:for-each>
+    </xsl:template>
+    
+  
+    
+    <!--<xsl:template match="@schemaLocation[ contains(.,'/default_db_xml_cache.public/')]">
+        <xsl:attribute name="{name()}">
+            <xsl:variable name="schema_name" select="substring-before(.,'.xsd')"/>
+            <xsl:variable name="schema_name" select="substring-after($schema_name,'../table/')"/>
+            <xsl:value-of select="concat('../../../default_db_xml_cache.public/',$schema_name,'.xsd')"/>
+        </xsl:attribute>    
+    </xsl:template>-->
+    
+</xsl:stylesheet>

+ 36 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.to_schema.xsl

@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    
+    <xsl:template match="*">
+        <xsl:copy>
+            <xsl:apply-templates select="@*"/>
+            <xsl:apply-templates/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="@*">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template match="@schemaLocation[ contains(.,'../SystemObjects')]">
+        <xsl:copy-of select="."/>    
+    </xsl:template>
+    
+    <xsl:template match="@schemaLocation">
+        <xsl:attribute name="{name()}">
+            <xsl:for-each select="tokenize(.,'/')">
+                <xsl:choose>
+                    <xsl:when test=" position() = last()">
+                        <xsl:value-of select="."/>
+                    </xsl:when>
+                </xsl:choose>
+            </xsl:for-each>
+        </xsl:attribute>    
+    </xsl:template>
+    
+</xsl:stylesheet>

+ 67 - 0
SE/schema/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd

@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+   xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+   xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+   xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:xs="http://www.w3.org/2001/XMLSchema" vc:minVersion="1.1"
+   targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd">
+   <xs:import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd"
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:import
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+      schemaLocation="../Storage_AclStruct/Storage_AclStruct.xsd"/>
+   <xs:import
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+      schemaLocation="../../default_db_xml_cache.public/ant/ant.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:group name="PRODUCT">
+      <xs:sequence>
+         <xs:element ref="fix_se_defaultdb_schema:PRODUCT"/>
+      </xs:sequence>
+   </xs:group>
+   <xs:element name="project">
+      <xs:annotation>
+         <xs:documentation>generowany plik do parsowania przez ant macro. 
+TODO powinien byc w obcym namespace</xs:documentation>
+      </xs:annotation>
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="p5ant:project_Type">
+               <xs:sequence>
+                  <xs:element name="target">
+                     <xs:complexType>
+                        <xs:complexContent>
+                           <xs:extension base="p5ant:target">
+                              <xs:sequence>
+                                 <xs:element ref="Storage_AclStruct:addAclObjectToZasobyAjax"/>
+                                 <xs:element maxOccurs="unbounded"
+                                    ref="Storage_AclStruct:addFieldToZasobyAjax"/>
+                                 <xs:element ref="Storage_AclStruct:activateObjectAjax"/>
+                              </xs:sequence>
+                           </xs:extension>
+                        </xs:complexContent>
+                     </xs:complexType>
+                  </xs:element>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+</xs:schema>

+ 4 - 0
SE/schema/WPS_Functions/get_wfs/build.get_wfs.PRODUCT.xml

@@ -19,10 +19,14 @@
     <property name="get_wfs.build" location="${get_wfs.basedir}/build_get_wfs.xml"/>
     <!--<property name="bgwrx.repository"  value="${p5dg.basedir}/repository"/>-->
 
+    <property name="get_wfs.propertyName.xsl" location="${get_wfs.basedir}/get_wfs.propertyName.xsl"/>
+    <property name="get_wfs.Insert.xsl" location="${get_wfs.basedir}/get_wfs.Insert.xsl"/>
+
     <property name="get_wfs.temp" location="${get_wfs.basedir}/temp"/>
     
     <property name="get_wfs.childproperties" location="${WPS_Functions.childproperties}/.build_get_wfs.properties"/>
     
+    <tempfile property="get_wfs.php_session_id_check.properties" destdir="${get_wfs.temp}" prefix="get_wfs.php_session_id_check.properties" deleteonexit="yes"/>
     <!--<property name="get_wfs.xsl" value="${system_cache__appinfo.public.basedir}/get_wfs_recurse_xsl.xsl"/>-->
     
     <!--<property name="bgwrx.RelatedFeatureRoot.xsl" value="${bgwrx.basedir}/bgwrx.RelatedFeatureRoot.xsl"/>-->

+ 130 - 10
SE/schema/WPS_Functions/get_wfs/build_get_wfs.xml

@@ -59,17 +59,17 @@
     <property name="webRootUrl" value="${webRootUrl}"/>
 
 
-    <target name="write_child_props_to_config_dir" depends="read_build_properties">
+    <target name="write_child_props_to_config_dir" > <!-- R depends="read_build_properties" -->
         <echoproperties destfile="${build_get_wfs.childproperties}"/>
     </target>
 
-    <target name="read_build_properties" >
+    <!--<target name="read_build_properties" >
         <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>
         <loadproperties srcfile="${WPS_Functions.properties}"/>
         <echo level="debug">$api_url to ${api_url}  $namespace_prefix ${namespace_prefix} 
             passwordBase64Basic=${passwordBase64Basic}
         </echo>
-    </target>
+    </target>-->
     
     <target name="clean" description="Clean all output and temp files">
         <delete dir="${get_wfs.temp}" failonerror="false"/>
@@ -150,7 +150,7 @@
         <echo level="debug">#94 filter not set</echo>
     </target>    
 
-    <target name="GetFeature" description="URL_TASK Target GetFeature" depends="read_build_properties,Filter_check">
+    <target name="GetFeature" description="URL_TASK Target GetFeature" depends="Filter_check"> <!-- R read_build_properties, -->
         <property name="get_url" value="${api_url}/${namespace_prefix}?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;typeName=${typeName}&amp;${Filter}"/>
         <echo message="FETCHING '${get_url}'" /> <!-- level="debug" -->
         <tstamp>
@@ -167,14 +167,95 @@
         <echoxml file="${wfs_timestamp.xml}"><wfs_timestamp>${wfs.timestamp}</wfs_timestamp></echoxml>
     </target>
     
+    
+    <target name="GetFeature.local"  description="To get local data from WFS easyli like POSTMAN" depends="php_session_id_check">
+        <!--<input addproperty="typeName.local" message="Type object typeName.local"/>-->
+        <input addproperty="Query.xml.local" />
+        <!--<input addproperty="Filter.local" />-->
+        <input addproperty="typeName.object.local"/>
+        <input addproperty="wfs_output.xml.local" message="wfs_output.xml.local"/>
+        <input addproperty="wfs_result.xml.local" message="wfs_result.xml.local"/>
+        <input addproperty="wfs_error.xml.local" message="wfs_error.xml.local"/>
+       
+        <input addproperty="wfs_timestamp.xml.local"/>
+        
+        <local name="get_url.local"/>
+        <property name="get_url.local" value="${api_url}/${namespace_prefix}?SERVICE=WFS&amp;REQUEST=GetFeature&amp;VERSION=1.0.0&amp;TYPENAME=${typeName.object.local}&amp;MaxFeatures=3"/>
+        <echo message="FETCHING '${get_url.local}'"/> <!-- level="debug" -->
+        <tstamp>
+            <format property="wfs.timestamp" pattern="yyyy-MM-dd HH:mm:ss"/>
+        </tstamp>
+        <local name="wfs_error.local"/>
+        <local name="wfs_result.local"/>
+        <local name="wfs_output.local"/>
+        <local name="wfs_timestamp.xml.local"/>
+        <echo> command: 
+            ${curl} ${php_session_id_tested} -XPOST -H "Content-type: text/xml" -d @${Query.xml.local} &apos;${get_url.local}&apos;
+        </echo>
+        <!--<echo> command: 
+            ${curl} ${php_session_id_tested} &apos;${get_url.local}&apos;
+        </echo>-->
+        <exec executable="curl" outputproperty="wfs_output.local" errorproperty="wfs_error.local" resultproperty="wfs_result.local">
+            <!--<arg line="-H 'Authorization: Basic ${passwordBase64Basic}'  -\-data@${Filter.xml.local} '${get_url.local}'"/>--><!-- ${Filter} -->
+            <!--<arg line="${php_session_id_tested} &apos;${get_url.local}&apos;"/>-->
+            <arg line="${php_session_id_tested} -XPOST -H &apos;Content-type: text/xml&apos; --data @${Query.xml.local} &apos;${get_url.local}&apos;"/>
+            <!--<arg line="${php_session_id_tested}  &apos;${get_url.local}&apos;"/>-->
+        </exec>
+        <!--<echo message="${wfs_output}" />-->
+        <echo file="${wfs_output.xml.local}" message="${wfs_output.local}"/>
+        <echo file="${wfs_result.xml.local}" message="${wfs_result.local}"/>
+        <echo file="${wfs_error.xml.local}" message="${wfs_error.local}"/>
+        <echoxml file="${wfs_timestamp.xml.local}"><wfs_timestamp>${wfs.timestamp}</wfs_timestamp></echoxml>
+    </target>
+    
+    <taskdef resource="net/sf/antcontrib/antlib.xml"/> <!-- metoda post wymaga ant contrib -->
+    
+    <target name="GetPropertyValue" description="To parse WFS output to Ant Property">
+        <input addproperty="wfs_output.xml.local"/>
+        <input addproperty="PropertyName.local"/>
+        <input addproperty="setPropertyName.local"/>
+        <input addproperty="GetPropertyValue.properties.local"/>
+        <GetPropertyValue GetPropertyValue.properties.local="${GetPropertyValue.properties.local}" wfsoutputxml="${wfs_output.xml.local}" PropertyName="${PropertyName.local}" setPropertyName="${setPropertyName.local}" />
+    </target>
+    
+    <macrodef name="GetPropertyValue">
+        <attribute name="wfsoutputxml"/>
+        <attribute name="PropertyName"/>
+        <attribute name="setPropertyName"/>
+        <attribute name="GetPropertyValue.properties.local"/>
+        <element name="GetPropertyValue"/>
+        <sequential>
+            <xslt style="${get_wfs.propertyName.xsl}"  in="@{wfsoutputxml}"  destdir="./" out="@{GetPropertyValue.properties.local}"  >
+                <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                    <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                    <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/typespecial_to_ref/typespecial_to_ref.xsd}typespecial_refererences"/>-->
+                </factory>
+                <param name="propertyName" expression="@{PropertyName}"/>
+                <param name="set.propertyName" expression="@{setPropertyName}"/>
+                <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            </xslt>
+            <!--<exec executable="open">
+                <arg value="${@{localremote}.sync.obj.@{obj}.lastid.properties}"/>
+            </exec>-->
+            <loadproperties srcfile="@{wfsoutputxml}" />
+            <!--<echo> loaded {@{localremote}.sync.obj.@{obj}.lastid} = ${@{localremote}.sync.obj.@{obj}.lastid} </echo>-->
+            <echo>#240 TODO load  poperties @{GetPropertyValue.properties.local}</echo>
+        </sequential>
+    </macrodef>
+    
+    
     <target name="PostXmlTransaction" description="TODO to post transaction based on build__for_post_to_wfs and curl_post_wfst">
-        <exec executable="$curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result" failonerror="true">
+        <local name="wfs_input.xml.local"/>
+        <local name="api_url.local"/>
+        <input addproperty="wfs_input.xml.local" defaultvalue="${wfs_input.xml}"/>
+        <input addproperty="api_url.local" defaultvalue="${api_url}"/>
+        <exec executable="curl" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result" failonerror="true">
             <arg value="-H 'Authorization: Basic ${passwordBase64Basic_tested}'"/>
             <arg value="-X"/>
             <arg value="POST"/>
             <arg value="-d"/>
-            <arg value="${wfs_input.xml}"/>
-            <arg value="${api_url}"/>
+            <arg value="${wfs_input.xml.local}"/>
+            <arg value="'${api_url}'"/>
             <!--<arg value="-\-user {$Types__x3A__wfs:username}:{$Types__x3A__wfs:username-pass} "/>-->
             <arg value="-v"/>
             <arg value="--insecure"/>
@@ -186,7 +267,45 @@
         <echo file="${wfs_error.xml}" message="${wfs_error}"/>
     </target>
     
-    <target name="GetFeatureByLastMod" description="URL_TASK Target GetFeatureByLastMod - should do incremental retrievement" depends="read_build_properties,Filter_check"/>
+    
+    <target name="PostHttpForm" description="TODO to post just by using default ant engine - to post properties" depends="php_session_id_check">
+        <!--<local name="get_wfs.PostHttpForm.local"/>-->
+        <!--<local name="api_url.local"/>-->
+        <input addproperty="get_wfs.PostHttpForm.local" message="podaj get_wfs.PostHttpForm.local"/>
+        <input addproperty="api_url.local" defaultvalue="${api_url}" message="podaj api_url.local"/>
+        <input addproperty="wfs_output.xml.local"/>
+        
+        <echo  > Posting TO $api_url.local = ${api_url.local} level="verbose"
+            $passwordBase64Basic_tested = ${passwordBase64Basic_tested}
+            $php_session_id_tested = ${php_session_id_tested} 
+            $get_wfs.PostHttpForm.local = ${get_wfs.PostHttpForm.local}
+            $cookie_curl_option = ${cookie_curl_option}
+            $wfs_output.xml.local = ${wfs_output.xml.local}
+            ${curl} ${php_session_id_tested} -d "${get_wfs.PostHttpForm.local}" '${api_url.local}'
+        </echo>
+        <exec executable="${curl}" outputproperty="wfs_output" errorproperty="wfs_error" resultproperty="wfs_result" failonerror="true">
+            <arg line="${php_session_id_tested} -d &apos;${get_wfs.PostHttpForm.local}&apos; &apos;${api_url.local}&apos;"/>
+            
+            <!--<arg value="-H 'Authorization: Basic ${passwordBase64Basic_tested}'"/>
+            <arg value="-\-data"/> <!-\- -F -\->
+            <arg value="&apos;${get_wfs.PostHttpForm.local}&apos;"/>
+            <arg value="${api_url.local}"/>
+            <!-\-<arg value="-\\-user {$Types__x3A__wfs:username}:{$Types__x3A__wfs:username-pass} "/>-\->
+            <arg value="-v"/>
+            <arg value="-\-insecure"/>-->
+            <!--<arg value="-O"/>
+                <arg value="{@Target_file}"/>-->
+        </exec>
+        <!--<echo>#result  $wfs_error = ${wfs_error} $outputproperty = ${outputproperty} </echo>-->
+        
+        <echo file="${wfs_output.xml.local}" message="${wfs_output}"/>
+        <echo file="${wfs_result.xml}" message="${wfs_result}"/>
+        <echo file="${wfs_error.xml}" message="${wfs_error}"/>
+        <echo>#304 exec done!</echo>
+    </target>
+    
+    
+    <target name="GetFeatureByLastMod" description="URL_TASK Target GetFeatureByLastMod - should do incremental retrievement" depends="Filter_check"/><!-- R read_build_properties, -->
        
        
     
@@ -285,10 +404,10 @@
         </condition>
     </target>
     <target name="php_session_id_check" depends="php_session_id_cond,php_session_id_ok,php_session_id_fail" description="To create property php_session_id_tested for use in api calls"/>
-    <target name="php_session_id_ok" unless="${php_session_id_fail}" description="use php_session_id from parameter ">
+    <target name="php_session_id_ok" unless="php_session_id_fail" description="use php_session_id from parameter ">
         <property name="php_session_id_tested" value="--cookie 'PHPSESSID=${php_session_id}'"/>
     </target>
-    <target name="php_session_id_fail" if="${php_session_id_fail}"   description="retrieve php_session_id from API to use it after for fasten api requests" depends="read_build_properties,create_tempdir">
+    <target name="php_session_id_fail" if="php_session_id_fail"  unless="php_session_id_tested"  description="retrieve php_session_id from API to use it after for fasten api requests" depends="create_tempdir"><!-- R read_build_properties, -->
         <tempfile  destdir="${get_wfs.temp}" prefix="usernameandpass" deleteonexit="yes" property="username_and_pass_from_passwordBase64Basic.properties" />
         <ant antfile="${username_and_pass_from_passwordBase64Basic.build}" target="username_and_pass_from_passwordBase64Basic.properties"/>
             
@@ -335,6 +454,7 @@
     <target name="php_session_id_check.properties" depends="php_session_id_check">
         <echo>#329 saving properties to ${php_session_id_check.properties}</echo>
         <echoproperties destfile="${php_session_id_check.properties}" regex="(php_session_id_ok*)|(username*)"/>
+        <echoproperties destfile="${get_wfs.php_session_id_check.properties}" regex="(php_session_id_ok*)|(username*)|(php_session_id_tested)"/>
     </target>
     
     

+ 65 - 0
SE/schema/WPS_Functions/get_wfs/get_wfs.Insert.xsl

@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:wfs="http://www.opengis.net/wfs"
+    xmlns:gml="http://www.opengis.net/gml"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    <xsl:param name="source.obj" required="yes"/>
+    <xsl:param name="target.obj" required="yes"/>
+    
+    <xsl:param name="READ_ONLY">
+        <READ_ONLY>
+            <A_RECORD_CREATE_DATE/>
+            <A_RECORD_CREATE_AUTHOR/>
+            <A_RECORD_UPDATE_DATE/>
+            <A_RECORD_UPDATE_AUTHOR/>
+        </READ_ONLY>
+    </xsl:param>
+    
+    <xsl:template match="wfs:FeatureCollection">
+        <Transaction
+            xmlns="http://www.opengis.net/wfs"
+            xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+            version="1.0.0"
+            service="WFS"
+            xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
+            xmlns:gml="http://www.opengis.net/gml">
+           <xsl:apply-templates/>
+        </Transaction>
+    </xsl:template>
+    
+    <xsl:template match="gml:featureMember" >
+        <Insert xmlns="http://www.opengis.net/wfs">
+            <xsl:apply-templates mode="translateSourceToTarget"/>
+        </Insert>
+    </xsl:template>
+    
+    
+    <xsl:template mode="translateSourceToTarget" match="*[ local-name()= $source.obj]">
+        <xsl:namespace name="default_db__x3A__{$target.obj}" select="concat('https://biuro.biall-net.pl/wfs/default_db/',$target.obj)"/>
+        <xsl:element name="default_db__x3A__{$target.obj}:{$target.obj}" namespace="https://biuro.biall-net.pl/wfs/default_db/{$target.obj}">
+            <xsl:for-each select="*">
+                <xsl:choose>
+                    <xsl:when test="$READ_ONLY//*[ name() = current()/local-name()]"/>
+                    <xsl:otherwise>
+                        <xsl:element name="default_db__x3A__{$target.obj}:{local-name()}" namespace="https://biuro.biall-net.pl/wfs/default_db/{$target.obj}"><xsl:value-of select="text()"/></xsl:element>
+                    </xsl:otherwise>
+                </xsl:choose>
+            </xsl:for-each>
+        </xsl:element>
+    </xsl:template>
+    
+    <xsl:template mode="translateSourceToTarget" match="text()|comment()"/>
+    
+    <xsl:template mode="translateSourceToTarget" match="*">
+        <xsl:message terminate="yes">ERROR found not expected object name=<xsl:value-of select="name()"/> - expected was <xsl:value-of select="$source.obj"/> ;</xsl:message>
+    </xsl:template>
+    
+    
+    
+</xsl:stylesheet>

+ 29 - 0
SE/schema/WPS_Functions/get_wfs/get_wfs.propertyName.xsl

@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:get_wfs="http://biuro.biall-net.pl/WPS_Functions/get_wfs/get_wfs.xsd"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output omit-xml-declaration="yes"/>
+    
+    <xsl:param name="propertyName" required="yes"/>
+    <xsl:param name="set.propertyName" required="yes"/>
+    
+    
+    <xsl:template match="*|text()|comment()">
+        <xsl:apply-templates/>
+    </xsl:template>
+    
+    <xsl:template match="*[local-name()=$propertyName]">
+        <xsl:text>#Ant properties
+</xsl:text>
+        <xsl:value-of select="$set.propertyName"/><xsl:text>=</xsl:text><xsl:value-of select="text()"/>
+        <xsl:choose>
+            <xsl:when test=" count(following-sibling::*) &gt; 1">
+                <xsl:message terminate="yes">#25 ERROR too many rows - set propertyname could have only one feature - modify to restrict filter</xsl:message>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+</xsl:stylesheet>

+ 134 - 33
SE/schema/WPS_Functions/get_wfs_recurse_xsl/build_get_wfs_recurse_xsl.xml

@@ -18,11 +18,12 @@
     
     <include file="../graph_tree_TODO_PROJ6806/build_graph_tree.xml" as="grapht"/>
     <include file="../system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis"/>
-    
+    <!--<include file="../get_wfs/build_get_wfs.xml" as="get_wfs"/>-->
     <!--<property name="build_WPS_Functions.xml.properties" location="${WPS_Functions.properties}"/>-->
     <!--<property name="build_get_wfs_recurse_xsl.xsl" location="${default_db_xml_cache.public}/get_wfs_recurse_xsl.xsl"/>-->
+    <include file="../get_wfs/build_get_wfs.xml" as="get_wfs"/>
     
-    <!--<property name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" value="${transformed.local}/CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml"/>-->
+    <property name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" value="${transformed.local}/CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml"/>
     
     <!-- -Duuid=KORESP61617_19_1506 -DtypeName=default_db:IN7_DZIENNIK_KORESP -Dxpath=ID -Dxpath_value=61617 -DpasswordBase64Basic="xxx="   -->
     <!--<property name="uuid" value="${uuid}"/>
@@ -40,23 +41,23 @@
         <mkdir dir="${bgwrx.temp}"/>
     </target>
     
-    <target name="read_build_properties">
-        <!--<ant antfile="${root_build.xml}" target="save_build_properties.xml"/>-->
-        <!--<ant antfile="${root_build.xml}" target="read_build_properties.xml"/>-->
-        <!--<loadproperties srcfile="${build_properties.xml}"  />-->
-        <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>
-        <loadproperties srcfile="${WPS_Functions.properties}"/>
+    <!--R<target name="read_build_properties">
+        <!-\-<ant antfile="${root_build.xml}" target="save_build_properties.xml"/>-\->
+        <!-\-<ant antfile="${root_build.xml}" target="read_build_properties.xml"/>-\->
+        <!-\-<loadproperties srcfile="${build_properties.xml}"  />-\->
+        <!-\-R<ant antfile="${WPS_Functions.build}" target="save_build_properties"/>-\->
+        <!-\-R<loadproperties srcfile="${WPS_Functions.properties}"/>-\->
         <echo>We try to refresh ${default_db.xml} or ${detect_objects_parent_relations.xsl}</echo>
-    </target>
+    </target>-->
     
-    <target name="write_child_props_to_config_dir" depends="read_build_properties">
+    <target name="write_child_props_to_config_dir" > <!-- R depends="read_build_properties" -->
         <echoproperties destfile="${bgwrx.childproperties}"/>
     </target>    
     
     
     
     
-    <target name="xml_recursed_from_tr_map" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="xml_recursed_from_tr_map" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <property name="uuid.local" value="${uuid}" />
         <property name="typeName.local" value="${typeName}"/>
         <property name="xpath.local" value="${xpath}"/>
@@ -64,7 +65,10 @@
         <property name="build_get_wfs_recurse_xsl.out.xml.local" value="${build_get_wfs_recurse_xsl.out.xml}"/>
         <!--<ant antfile="${build_usnername_and_pass_from_passwordBase64Basic.xml}" target="usnername_and_pass_from_passwordBase64Basic"/>-->
         <tempfile property="php_session_id_check.properties" destdir="${bgwrx.temp}" prefix="php_session_id_check.properties" deleteonexit="yes"/>
-        <ant antfile="${get_wfs}" target="php_session_id_check.properties" inheritall="yes">
+        <condition property="simpleSchema.xml" value="">
+            <not><isset property="simpleSchema.xml"/></not>
+        </condition>
+        <ant antfile="${get_wfs.build}" target="php_session_id_check.properties" inheritall="yes">
            <!--<property name="php_session_id_ok.string" value="${php_session_id_ok.string}"/>
             <property name="username.pass" value="${username.pass}"/>
             <property name="username" value="${username}"/>-->
@@ -80,6 +84,7 @@
             $username = ${username}
             $username.pass = *****
             php_session_id_ok.string = ${php_session_id_ok.string} 
+            $simpleSchema.xml = ${simpleSchema.xml}
         </echo>
         
         <!--<exec executable="say"  spawn="true" failifexecutionfails="false">
@@ -109,7 +114,8 @@
             <param name="php_session_id_ok.string" expression="${php_session_id_ok.string}"/>
             <!--<param name="basedir" expression="${basedir}"/>-->
             <param name="temp" expression="${bgwrx.temp}"/>
-            <param name="simpleSchema_dir" expression="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/simpleSchema/"/>
+            <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/> <!-- /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/simpleSchema/ -->
+            <param name="simpleSchema.xml" expression="${simpleSchema.xml}"/>
         </xslt>
         
         <exec executable="say"  spawn="true" failifexecutionfails="false">
@@ -121,6 +127,81 @@
     </target>
     
     
+    <target name="xml_recursed_from_tr_map.simpleSchema.xml" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
+        <input addproperty="uuid.local"  />
+        <input addproperty="typeName.local" />
+        <input addproperty="typeName.object.local"/>
+        <input addproperty="xpath.local" />
+        <input addproperty="xpath_value.local" />
+        <input addproperty="build_get_wfs_recurse_xsl.out.xml.local" />
+        <!--<ant antfile="${build_usnername_and_pass_from_passwordBase64Basic.xml}" target="usnername_and_pass_from_passwordBase64Basic"/>-->
+        <tempfile property="php_session_id_check.properties" destdir="${bgwrx.temp}" prefix="php_session_id_check.properties" deleteonexit="yes"/>
+        <input addproperty="simpleSchema.xml"/>
+        <input addproperty="debug.local" defaultvalue="0"/>
+        <ant antfile="${get_wfs}" target="php_session_id_check.properties" inheritall="yes">
+            <!--<property name="php_session_id_ok.string" value="${php_session_id_ok.string}"/>
+            <property name="username.pass" value="${username.pass}"/>
+            <property name="username" value="${username}"/>-->
+        </ant>
+        
+        <loadproperties srcfile="${php_session_id_check.properties}"/>
+        
+        <echo>#91 xml_recursed_from_tr_map
+            $uuid=${uuid.local};
+            $typeName.local=${typeName.local}; $typeName.object.local = ${typeName.object.local}
+            $xpath_value=${xpath_value.local}
+            $xpath=${xpath.local}
+            $username = ${username}
+            $username.pass = *****
+            php_session_id_ok.string = ${php_session_id_ok.string} 
+            $simpleSchema.xml = ${simpleSchema.xml}
+        </echo>
+        
+        <!--<exec executable="say"  spawn="true" failifexecutionfails="false">
+            <arg line="-v alex"/>
+            <arg line="Building object from API by Simple Schema for searched: name ${typeName.local} xpath ${xpath.local} value ${xpath_value.local} "/>
+        </exec>-->
+        <!-- DEBUG <ant antfile="${system_ui_info_speech}" target="p5suis:say_to_queue">
+            <property name="p5suis:say_text" value="Building object from API by Simple Schema for searched: p5:object ${typeName.local} xpath ${xpath.local} value ${xpath_value.local} " />
+        </ant>
+        <ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>
+        -->
+        
+        <xslt basedir="${bgwrx.basedir}" style="${bgwrx.xsl}" in="${empty.xml}"  destdir="${bgwrx.temp}" out="${build_get_wfs_recurse_xsl.out.xml.local}" force="yes" > <!-- out_task.dita.final -->
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <!--<attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>-->
+                <attribute name="http://saxon.sf.net/feature/initialTemplate" value="main"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid.local}"/>
+            <param name="username.pass" expression="${username.pass}"/>
+            <param name="username" expression="${username}"/>
+            <param name="typeName" expression="${typeName.local}"/>
+            <param name="typeName.object" expression="${typeName.object.local}"/>
+            <param name="xpath_value" expression="${xpath_value.local}"/>
+            <param name="xpath" expression="${xpath.local}"/>
+            <param name="php_session_id_ok.string" expression="${php_session_id_ok.string}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${bgwrx.temp}"/>
+            <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/> <!-- /Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/default_db.instance.xml/simpleSchema/ -->
+            <param name="simpleSchema.xml" expression="${simpleSchema.xml}"/>
+            <param name="resolveDepth" expression="0"/>
+            <param name="{https://biuro.biall-net.pl/wfs}links.recurse_level.limit" expression="0"/>
+            <param name="{https://biuro.biall-net.pl/wfs}links.next.recurse_level.limit" expression="0"/>
+            <param name="{https://biuro.biall-net.pl/wfs}links.loop.context.nodes.min.distance" expression="0"/>
+            <param name="debug" expression="${debug.local}"/>
+        </xslt>
+        
+        <exec executable="say"  spawn="true" failifexecutionfails="false">
+            <arg line="-v alex"/>
+            <arg line="Object making complete"/>
+        </exec>
+        
+        <!--<antcall target="out_task.dita.final_with_RelatedFeatureLoop.xml"/>-->
+    </target>
+    
     <target name="out_task.dita.final_with_RelatedFeatureLoop.xml" description="to add RelatedFeatureRoot to allow be parsable by CRM_Process_tree etc">
         <!--<exec executable="say"  spawn="true" failifexecutionfails="false">
             <arg line="-v alex"/>
@@ -151,7 +232,7 @@
     </target>
     
     
-    <target name="xml_recursed_from_tr_map.api_recurse.xpath_filter" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="xml_recursed_from_tr_map.api_recurse.xpath_filter" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <input addproperty="xpath.filter.local" defaultvalue="${xpath.filter}"/>
         <input addproperty="uuid.local" defaultvalue="${uuid}" />
         <input addproperty="typeName.local" defaultvalue="${typeName}"/>
@@ -171,13 +252,16 @@
         </antcall>
         <!--<ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>-->
         
-        <ant antfile="${get_wfs}" target="php_session_id_check.properties" inheritall="yes">
-            <!--<property name="php_session_id_ok.string" value="${php_session_id_ok.string}"/>
+        <!--<ant antfile="${get_wfs}" target="php_session_id_check.properties" inheritall="yes">
+            <!-\-<property name="php_session_id_ok.string" value="${php_session_id_ok.string}"/>
             <property name="username.pass" value="${username.pass}"/>
-            <property name="username" value="${username}"/>-->
-        </ant>
+            <property name="username" value="${username}"/>-\->
+        </ant>-->
         
-        <loadproperties srcfile="${php_session_id_check.properties}"/>
+        
+        <!--<antcall target="get_wfs.php_session_id_check.properties"/>-->
+        
+        <!--<loadproperties srcfile="${php_session_id_check.properties}"/>-->
         
         <record name="${bgwrx.SYSTEM.StandardOutPath}" append="true" action="start" />
         <record name="${bgwrx.SYSTEM.StandardErrorPath}" append="true" loglevel="error" action="start"/>
@@ -218,7 +302,7 @@
     
     
     
-    <target name="xml_recursed_from_tr_map.api_recurse" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="xml_recursed_from_tr_map.api_recurse" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <input addproperty="uuid.local" defaultvalue="${uuid}" />
         <input addproperty="typeName.local" defaultvalue="${typeName}"/>
         <input addproperty="typeName.object.local" defaultvalue="${typeName.object}"/>
@@ -230,6 +314,7 @@
         <input addproperty="p5.links.next.recurse_level.limit.local" defaultvalue="${p5.links.next.recurse_level.limit}"/>
         <input addproperty="debug.local" defaultvalue="${debug.local}"/>
         
+        
         <!--<ant antfile="${build_usnername_and_pass_from_passwordBase64Basic.xml}" target="usnername_and_pass_from_passwordBase64Basic"/>-->
         <tempfile property="php_session_id_check.properties" destdir="${bgwrx.temp}" prefix="php_session_id_check.properties"/>
         
@@ -255,20 +340,24 @@
         </antcall>
         <!--<ant antfile="${system_ui_info_speech}" target="p5suis:say_from_queue"/>-->
         
-        <ant antfile="${get_wfs}" target="php_session_id_check.properties" inheritall="yes">
-            <!--<property name="php_session_id_ok.string" value="${php_session_id_ok.string}"/>
+        <!--<ant antfile="${get_wfs}" target="php_session_id_check.properties" inheritall="yes">
+            <!-\-<property name="php_session_id_ok.string" value="${php_session_id_ok.string}"/>
             <property name="username.pass" value="${username.pass}"/>
-            <property name="username" value="${username}"/>-->
-        </ant>
+            <property name="username" value="${username}"/>-\->
+        </ant>-->
         
+        <antcall target="get_wfs.php_session_id_check.properties"/>
+        
+        <!--<antcall target="get_wfs.php_session_id_check.properties"/>-->
+        <echo>Prop should be set $php_session_id_check.properties = ${php_session_id_check.properties} </echo>
         <loadproperties srcfile="${php_session_id_check.properties}"/>
         
         <record name="${bgwrx.SYSTEM.StandardOutPath}" append="true" action="start" />
         <record name="${bgwrx.SYSTEM.StandardErrorPath}" append="true" loglevel="error" action="start"/>
         <echo >#91 xml_recursed_from_tr_map
             $uuid=${uuid.local};
-            $typeName=${typeName.local};
-            $typeName.object=${typeName.object.local};
+            $typeName=${typeName.local}; //default select="'p5_default_db:PROCES_INIT'"
+            $typeName.object=${typeName.object.local}; //default select="'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA'"
             $MAXFEATURES = ${MAXFEATURES} / $MAXFEATURES.local = ${MAXFEATURES.local}
             $xpath_value=${xpath_value.local}
             $xpath=${xpath.local}
@@ -324,7 +413,7 @@
     
     
     
-    <target name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.79.get_wfs_recurse_xsl.xml.api_recurse" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.79.get_wfs_recurse_xsl.xml.api_recurse" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <property name="typeName" value="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
         <property name="uuid" value="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.79.api_recurse.looptest"/>
         <property name="xpath" value="ID"/>
@@ -379,7 +468,7 @@
     </target>
     
     
-    <target name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.82.get_wfs_recurse_xsl.xml.api_recurse" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.82.get_wfs_recurse_xsl.xml.api_recurse" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!--  R read_build_properties, -->
         <property name="typeName" value="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA"/>
         <property name="uuid" value="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA.82.api_recurse.looptest"/>
         <property name="xpath" value="ID"/>
@@ -422,7 +511,7 @@
     
     
     
-    <target name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.9.get_wfs_recurse_xsl.xml.api_recurse" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.9.get_wfs_recurse_xsl.xml.api_recurse" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <property name="typeName" value="default_db__x3A__BI_audit_ENERGA_PRACOWNICY:BI_audit_ENERGA_PRACOWNICY"/>
         <property name="uuid" value="default_db__x3A__BI_audit_ENERGA_PRACOWNICY.9.api_recurse.looptest"/>
         <property name="xpath" value="ID"/>
@@ -433,7 +522,9 @@
         <property name="p5.links.next.recurse_level.limit" value="2"/>
         <property name="build_get_wfs_recurse_xsl.out.xml.local" value="${bgwrx.temp}/${uuid}.get_wfs_recurse_xsl.out.xml"/>
         <property name="debug.local" value="0"/>
-        <property name="xpath.filter.local" value="(   not(matches(local-name(),'(.*KRS.*)')) or not( matches(parent::*/local-name(),'(.*KRS.*)'))   ) or 1=1 "/>
+        <!--<property name="xpath.filter.local" value="(   not(matches(local-name(),'(.*KRS.*)')) or not( matches(parent::*/local-name(),'(.*KRS.*)'))   ) or 1=1 "/>-->
+        <!--<property name="xpath.filter.local" value="(   not(matches(local-name(),'(.*KRS.*)'))  ) or 1=2 "/>-->
+        <property name="xpath.filter.local" value="(   not(matches(local-name(),'(.*KRS.*)|(.*MSIG.*)')) or not( matches(parent::*/local-name(),'(.*KRS.*)|(.*MSIG.*)'))   )  "/>
         <!--<antcall target="build_get_wfs_recurse_xsl.out.xml.local" inheritall="true">
             <param name="uuid.local" value="${uuid}"/>
         </antcall>-->
@@ -520,7 +611,7 @@
         </antcall>
     </target>
     
-    <target name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml.api_recurse" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml.api_recurse" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <antcall target="xml_recursed_from_tr_map.api_recurse">
             <param name="typeName.local" value="'CRM_LISTA_ZASOBOW'"/>
             <param name="uuid.local" value="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl"/>
@@ -531,7 +622,7 @@
         </antcall> 
     </target>
     
-    <target name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl.xml" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
         <antcall target="xml_recursed_from_tr_map">
             <param name="typeName.local" value="CRM_LISTA_ZASOBOW"/>
             <param name="uuid.local" value="CRM_LISTA_ZASOBOW.get_wfs_recurse_xsl"/>
@@ -541,7 +632,7 @@
        </antcall> 
     </target>
     
-    <target name="CRM_PROCES.get_wfs_recurse_xsl.xml" depends="read_build_properties,build_get_wfs_recurse_xsl.create_tempdir">
+    <target name="CRM_PROCES.get_wfs_recurse_xsl.xml" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!--  R read_build_properties, -->
         <antcall target="xml_recursed_from_tr_map">
             <param name="typeName.local" value="CRM_PROCES"/>
             <param name="uuid.local" value="CRM_PROCES.get_wfs_recurse_xsl"/>
@@ -551,6 +642,16 @@
         </antcall> 
     </target>
 
+    <target name="CRM_PROCES_5934.get_wfs_recurse_xsl.xml" depends="build_get_wfs_recurse_xsl.create_tempdir"> <!-- R read_build_properties, -->
+        <property name="uuid.local" value="CRM_PROCES_5934"/>
+        <antcall target="xml_recursed_from_tr_map">
+            <param name="typeName.local" value="CRM_PROCES"/>
+            <param name="uuid.local" value="CRM_PROCES_5934.get_wfs_recurse_xsl"/>
+            <param name="xpath.local" value="PARENT_ID"/>
+            <param name="xpath_value.local" value="5934"/>
+            <param name="build_get_wfs_recurse_xsl.out.xml.local" value="${bgwrx.temp}/${uuid.local}.get_wfs_recurse_xsl.out.xml"/>
+        </antcall> 
+    </target>
 
 
     <target name="bgwrx:check_if_file_older_than_minutes_and_call_action" description="To call action if target not exists or is older than x minutes">

+ 114 - 0
SE/schema/WPS_Functions/get_wfs_recurse_xsl/get_wfs_recurse_xsl.xsd

@@ -0,0 +1,114 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+   xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+   xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+   xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+   xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+   xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+   xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+   xmlns:fix_se_defaultdb_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/fix_se_defaultdb_schema/fix_se_defaultdb_schema.xsd"
+   xmlns:get_wfs_recurse_xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/get_wfs_recurse_xsl.xsd"
+   xmlns:xs="http://www.w3.org/2001/XMLSchema" vc:minVersion="1.1"
+   targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/get_wfs_recurse_xsl.xsd"
+   xmlns:Storage_AclStruct="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd">
+   <xs:import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd"
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:import
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/Storage_AclStruct/Storage_AclStruct.xsd"
+      schemaLocation="../Storage_AclStruct/Storage_AclStruct.xsd"/>
+   <xs:import
+      namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+      schemaLocation="../../default_db_xml_cache.public/ant/ant.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:group name="PRODUCT">
+      <xs:sequence> </xs:sequence>
+   </xs:group>
+   <xs:simpleType name="uuid.local">
+      <xs:annotation>
+         <xs:documentation>Unikalny indentyfikator pliku/transakcji</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="typeName.local">
+      <xs:annotation>
+         <xs:documentation>select="'p5_default_db:PROCES_INIT'"</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="typeName.object.local">
+      <xs:annotation>
+         <xs:documentation>select="'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA'"</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="xpath.local">
+      <xs:annotation>
+         <xs:documentation>select="'ID'"</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="xpath_value.local">
+      <xs:annotation>
+         <xs:documentation>select="'994'"</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="resolveDepth.local">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="build_get_wfs_recurse_xsl.out.xml.local">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="p5.links.recurse_level.limit.local">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="links.next.recurse_level.limit.local">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="debug.local">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="php_session_id_check.properties">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="MAXFEATURES">
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+   <xs:simpleType name="Query.xml.local">
+      <xs:annotation>
+         <xs:documentation>Plik z QUERY np: <GetFeature service="WFS" version="2.0.2" xmlns="http://www.opengis.net/wfs/2.0" xmlns:ogc="http://www.opengis.net/ogc" xmlns:wfs="http://www.opengis.net/wfs" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query>
+        <wfs:PropertyName>ID</wfs:PropertyName>
+        <wfs:PropertyName>PARENT_ID</wfs:PropertyName>
+        <wfs:PropertyName>TYPE</wfs:PropertyName>
+        <wfs:PropertyName>DESC</wfs:PropertyName>
+        <wfs:PropertyName resolve="all" resolveDepth="2">default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW</wfs:PropertyName>
+        <ogc:Filter>
+                <ogc:Or>
+                        <ogc:PropertyIsEqualTo>
+                                <ogc:PropertyName>ID</ogc:PropertyName>
+                                <ogc:Literal>1003</ogc:Literal>
+                        </ogc:PropertyIsEqualTo>
+                        <ogc:PropertyIsEqualTo>
+                                <ogc:PropertyName>ID</ogc:PropertyName>
+                                <ogc:Literal>608</ogc:Literal>
+                        </ogc:PropertyIsEqualTo>
+                </ogc:Or>
+        </ogc:Filter>
+</wfs:Query></GetFeature>
+</xs:documentation>
+      </xs:annotation>
+      <xs:restriction base="xs:string"/>
+   </xs:simpleType>
+</xs:schema>

+ 265 - 54
SE/schema/WPS_Functions/get_wfs_recurse_xsl/get_wfs_recurse_xsl.xsl

@@ -22,14 +22,17 @@
     <!-- TESTING for recurse get WFS using xsd schemas and/or retrieved xlinks  -->
     
     <xsl:import href="system_cache__appinfo/escape_functions.xsl"/>
+    
+    <xsl:include href="default_db/enter_to_ph.xsl"/>
+    
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>
     
     
     
     
-    <xsl:param name="typeName" select="'p5_default_db:PROCES_INIT'"/>
-    <xsl:param name="typeName.object" select="'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA'"/>
+    <xsl:param name="typeName" /> <!-- select="'p5_default_db:PROCES_INIT'" -->
+    <xsl:param name="typeName.object"/> <!-- select="'default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA:BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA'" -->
     <xsl:param name="xpath" select="'ID'"/>
     <xsl:param name="xpath_value" select="'994'"/>
     <xsl:param name="uuid" select="'PROCES_INIT_PID_994_ALL_test'"/>
@@ -42,6 +45,7 @@
     <xsl:param name="username.pass"  required="yes"/>
     <xsl:param name="php_session_id_ok.string"/>
     <xsl:param name="simpleSchema_dir" required="yes"/>
+    <xsl:param name="simpleSchema.xml" /> <!-- Optionally force simpleSchema to build map -->
     
     <xsl:param name="targetNamespace_DEFAULTS_prefix" select="'default_db'"/> <!-- TODO should be detected -->
     <xsl:param name="debug" select="0"/>
@@ -61,7 +65,28 @@
     <xsl:param name="p5:links.recurse_level.limit" select="8"/>
     <xsl:param name="p5:links.next.recurse_level.limit" select="10"/>
     <xsl:param name="p5:links.loop.context.nodes.min.distance" select="4"/> <!-- when detected in @xlink or @next   <get_wfs_recurse_xsl:context.nodes//@fid , we calculate when it is to be treated as loop, if above $p5:links.recurse_level.limit - to be optimized   -->
-    
+    <xsl:param name="noRelatedFeatureRoot"/> 
+     
+    <!-- Plik XML z query XML <GetFeature xmlns="http://www.opengis.net/wfs/2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ogc="http://www.opengis.net/ogc"  xmlns:wfs="http://www.opengis.net/wfs" service="WFS" version="2.0.2"><wfs:Query>
+        <wfs:PropertyName>ID</wfs:PropertyName>
+        <wfs:PropertyName>PARENT_ID</wfs:PropertyName>
+        <wfs:PropertyName>TYPE</wfs:PropertyName>
+        <wfs:PropertyName>DESC</wfs:PropertyName>
+        <wfs:PropertyName resolve="all" resolveDepth="2">default_db__x3A__CRM_LISTA_ZASOBOW:CRM_LISTA_ZASOBOW</wfs:PropertyName>
+        <ogc:Filter>
+                <ogc:Or>
+                        <ogc:PropertyIsEqualTo>
+                                <ogc:PropertyName>ID</ogc:PropertyName>
+                                <ogc:Literal>1003</ogc:Literal>
+                        </ogc:PropertyIsEqualTo>
+                        <ogc:PropertyIsEqualTo>
+                                <ogc:PropertyName>ID</ogc:PropertyName>
+                                <ogc:Literal>608</ogc:Literal>
+                        </ogc:PropertyIsEqualTo>
+                </ogc:Or>
+        </ogc:Filter>
+</wfs:Query></GetFeature>
+ -->
     
     
     <xsl:function name="get_wfs_recurse_xsl:GetsimpleSchema">
@@ -88,7 +113,7 @@
                 <xsl:otherwise><xsl:value-of select="concat($simpleSchema_dir,'/',$targetNamespace_DEFAULTS_prefix,'/',$featureID_name_dita,'.xml')"/></xsl:otherwise>
             </xsl:choose>
         </xsl:variable>
-        <xsl:message>#57 get_wfs_recurse_xsl:GetsimpleSchema: from $typeNameRealResource=<xsl:value-of select="$typeNameRealResource"/>; <xsl:value-of select="$simpleSchemaFile"/>  for featureID_name_dita=<xsl:value-of select="$featureID_name_dita"/>;</xsl:message>
+        <xsl:message>#57 get_wfs_recurse_xsl:GetsimpleSchema:  from $typeNameRealResource=<xsl:value-of select="$typeNameRealResource"/>; <xsl:value-of select="$simpleSchemaFile"/>  for featureID_name_dita=<xsl:value-of select="$featureID_name_dita"/>;</xsl:message>
         
         
         <xsl:if test="not( substring-before(system_cache__appinfo:translate_object_escaped_prefix_from_string(substring-before($typeNameRealResource,':')),':'))">
@@ -103,17 +128,31 @@
             <xsl:when test="$api_recurse">
                 <!-- default_db:CRM_LISTA_ZASOBOW -->
                 <xsl:choose>
-                    <xsl:when test="$typeName.object">
+                    <xsl:when test="string-length($typeName.object) &gt; 0">
+                        <xsl:message>#128-A set $typeName.object = <xsl:value-of select="$typeName.object"/></xsl:message>
                         <xsl:value-of select="$typeName.object"/>
                     </xsl:when>
                     <xsl:otherwise>
+                        <xsl:message>#128-A set $typeName.local = <xsl:value-of select="$get_wfs_recurse_xsl:GetsimpleSchema/RelatedFeature/@typeName"/></xsl:message>
                         <xsl:variable name="typeName.local" select="$get_wfs_recurse_xsl:GetsimpleSchema/RelatedFeature/@typeName"/>
                         <xsl:value-of select="concat( system_cache__appinfo:escape_object_prefix_to_string($typeName),':', system_cache__appinfo:clean_object_prefix($typeName))"/>
+                        <xsl:message>#128-A-2 set result get_wfs_recurse_xsl:typeNameRealResource = <xsl:value-of select="concat( system_cache__appinfo:escape_object_prefix_to_string($typeName),':', system_cache__appinfo:clean_object_prefix($typeName))"/></xsl:message>
                     </xsl:otherwise>
                 </xsl:choose>
             </xsl:when>
             <xsl:otherwise>
-                <xsl:value-of select="$get_wfs_recurse_xsl:GetsimpleSchema/RelatedFeature/@typeNameRealResource"/>
+                <xsl:choose>
+                    <xsl:when test="$get_wfs_recurse_xsl:GetsimpleSchema/(RelatedFeature|RelatedFeatureRoot)/@typeNameRealResource">
+                        <xsl:value-of select="$get_wfs_recurse_xsl:GetsimpleSchema/(RelatedFeature|RelatedFeatureRoot)/@typeNameRealResource"/>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:message terminate="yes">#145 SET $get_wfs_recurse_xsl:GetsimpleSchema/RelatedFeature/@typeNameRealResource param!
+                            in file <xsl:value-of select="$simpleSchema.xml"/>
+                            <xsl:copy-of select="$get_wfs_recurse_xsl:GetsimpleSchema"/>
+                        </xsl:message>
+                    </xsl:otherwise>
+                </xsl:choose>
+                
             </xsl:otherwise>
         </xsl:choose>
         
@@ -343,10 +382,12 @@
       <!--  <xsl:param name="get_wfs_recurse_xsl:xpath_dita" required="yes"/>
         <xsl:param name="get_wfs_recurse_xsl:xpath_value_dita" required="yes"/>-->
         <xsl:param name="RelatedFilter"/>
+        
         <xsl:if test="$debug &gt; 2"><xsl:message>#1754 name="simpleTypeMakeOgcFilter_merge"
             $simpleTypeMakeOgcFilter = <xsl:copy-of select="$simpleTypeMakeOgcFilter"></xsl:copy-of>
             $get_wfs_recurse_xsl:xpath_dita = <xsl:copy-of select="$xpath_dita"/>
             $get_wfs_recurse_xsl:xpath_value_dita = <xsl:copy-of select="$xpath_value_dita"/>
+            
             #EOF
         </xsl:message>
         </xsl:if>
@@ -402,13 +443,35 @@
         <xsl:param name="targetNamespace_DEFAULTS_prefix" select="$targetNamespace_DEFAULTS_prefix"/>
         <!--<xsl:param name="xpath_value" select="$xpath_value"/>-->
         <xsl:param name="get_wfs_recurse_xsl:xpath"/>
-        <xsl:message>#255 typeName = <xsl:value-of select="$typeName"/></xsl:message>
-        <RelatedFeatureRoot>
+        <xsl:message>#255 $typeName = <xsl:value-of select="$typeName"/>; $typeName.object = <xsl:value-of select="$typeName.object"/> </xsl:message>
+        <!--<RelatedFeatureRoot>-->
             <!--<xsl:namespace name="default_db__x3A__BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA" select="'https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA'"/>-->
              <xsl:variable name="input_obj_with_xpath"><input_obj_with_xpath/></xsl:variable>
-             <xsl:variable name="get_wfs_recurse_xsl:GetsimpleSchema" select="get_wfs_recurse_xsl:GetsimpleSchema($typeName)"/>
+             <xsl:variable name="get_wfs_recurse_xsl:GetsimpleSchema" >
+                 <xsl:choose>
+                     <xsl:when test=" string-length($simpleSchema.xml) &gt; 1">
+                         <xsl:message>#435 USING doc($simpleSchema.xml) </xsl:message>
+                         <xsl:copy-of select="doc($simpleSchema.xml)"/>
+                     </xsl:when>
+                     <xsl:when test=" string-length($typeName.object) &gt; 1"/>
+                     <xsl:otherwise><!-- todo copy of or value of ?  -->
+                         <xsl:copy-of select="get_wfs_recurse_xsl:GetsimpleSchema($typeName)"/>
+                     </xsl:otherwise>
+                 </xsl:choose>
+             </xsl:variable>
              <!--<xsl:copy-of select="$get_wfs_recurse_xsl:GetsimpleSchema"/>-->
-             <xsl:variable name="get_wfs_recurse_xsl:typeNameRealResource" select="get_wfs_recurse_xsl:typeNameRealResource($get_wfs_recurse_xsl:GetsimpleSchema)"/>
+             <xsl:variable name="get_wfs_recurse_xsl:typeNameRealResource" >
+                 <xsl:choose>
+                     <xsl:when test=" string-length($typeName.object) &gt; 1">
+                         <xsl:message>#448-B  USING $typeName.object as get_wfs_recurse_xsl:typeNameRealResource </xsl:message>
+                         <xsl:value-of select="$typeName.object"/>
+                     </xsl:when>
+                     <xsl:otherwise>
+                         <xsl:message>#448-C  USING get_wfs_recurse_xsl:typeNameRealResource($get_wfs_recurse_xsl:GetsimpleSchema) to detect get_wfs_recurse_xsl:typeNameRealResource = detected=<xsl:value-of select="get_wfs_recurse_xsl:typeNameRealResource($get_wfs_recurse_xsl:GetsimpleSchema)"/> , from get_wfs_recurse_xsl:GetsimpleSchema = <xsl:value-of select="$get_wfs_recurse_xsl:GetsimpleSchema"/></xsl:message>
+                         <xsl:value-of select="get_wfs_recurse_xsl:typeNameRealResource($get_wfs_recurse_xsl:GetsimpleSchema)"/>
+                     </xsl:otherwise>
+                 </xsl:choose>
+             </xsl:variable>
              
              <xsl:variable name="xpath_dita" select="$xpath"/>
              <xsl:variable name="xpath_value_dita" select="$xpath_value"/>
@@ -419,9 +482,9 @@
                  <xsl:call-template name="simpleTypeMakeOgcFilter_merge">
                      <xsl:with-param name="simpleTypeMakeOgcFilter" select="$get_wfs_recurse_xsl:simpleTypeMakeOgcFilter"/>
                      <xsl:with-param name="RelatedFilter" select="$get_wfs_recurse_xsl:RelatedFilter"/>
-                     
                      <xsl:with-param name="xpath_dita" select="$xpath"/>
                      <xsl:with-param name="xpath_value_dita" select="$xpath_value"/>
+                     <!--<xsl:with-param name="Query.xml.local" select="$Query.xml.local"/>--><!-- Conditionally force query based on XML -->
                      <!--<xsl:with-param name="get_wfs_recurse_xsl:xpath_dita" select="$xpath"/>-->
                      <!--<xsl:with-param name="get_wfs_recurse_xsl:xpath_value_dita" select="$xpath_value"/>-->
                  </xsl:call-template>
@@ -487,43 +550,91 @@
                  <xsl:copy-of select="$get_wfs_recurse_xsl:context.nodes"/>
             </xsl:if>
             <xsl:choose>
-            <xsl:when test="$api_recurse">
-                <xsl:if test="$get_wfs_recurse_xsl:wfs_response/ServiceExceptionReport" xpath-default-namespace="http://www.opengis.net/ogc">
-                    <xsl:message terminate="yes"> Error with query <xsl:value-of select="$get_wfs_recurse_xsl:wfs_response//ServiceException/text()" xpath-default-namespace="http://www.opengis.net/ogc"/></xsl:message>
-                </xsl:if>
+                <xsl:when test=" string-length($api_recurse) &gt; 0">
+                    <xsl:if test="$get_wfs_recurse_xsl:wfs_response/ServiceExceptionReport" xpath-default-namespace="http://www.opengis.net/ogc">
+                        <xsl:message terminate="yes">ServiceException!  Error with query <xsl:value-of select="$get_wfs_recurse_xsl:wfs_response//ServiceException/text()" xpath-default-namespace="http://www.opengis.net/ogc"/></xsl:message>
+                    </xsl:if>
+                    <xsl:choose>
+                        <xsl:when test="$get_wfs_recurse_xsl:wfs_response//p5:next">
+                            <xsl:message> #360 to parse to retrieve links and merge xml <xsl:value-of select="$get_wfs_recurse_xsl:wfs_response//p5:next/text()"/></xsl:message>
+                            <!--<xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/namespace::node()"/> <!-\- [ not(contains(  local-name(),'wfs'))] -\->
+                            <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/namespace::node()"/>
+                            <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*/namespace::node()"/>
+                            <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember//*/namespace::node()"/>-->
+                            <xsl:choose>
+                                <xsl:when test="$noRelatedFeatureRoot">
+                                    <xsl:apply-templates mode="p5:links.evaluate" select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*" xpath-default-namespace="http://www.opengis.net/wfs">
+                                        <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
+                                        <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
+                                        <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
+                                    </xsl:apply-templates>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <RelatedFeatureRoot>
+                                        <xsl:apply-templates mode="p5:links.evaluate" select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*" xpath-default-namespace="http://www.opengis.net/wfs">
+                                            <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
+                                            <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
+                                            <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
+                                        </xsl:apply-templates>
+                                    </RelatedFeatureRoot>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                            
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:choose>
+                                <xsl:when test="$noRelatedFeatureRoot">
+                                    <xsl:if test="$debug &gt; 3"><xsl:message>#533 going after wfs:FeatureCollection/gml:featureMember/*...</xsl:message></xsl:if>
+                                    <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*"/>
+                                    <xsl:apply-templates mode="p5:links.evaluate" select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*" xpath-default-namespace="http://www.opengis.net/wfs">
+                                        <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
+                                        <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
+                                        <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
+                                    </xsl:apply-templates>
+                                </xsl:when>
+                                <xsl:otherwise>
+                                    <RelatedFeatureRoot>
+                                         <xsl:if test="$debug &gt; 3"><xsl:message>#533 going after wfs:FeatureCollection/gml:featureMember/*...</xsl:message></xsl:if>
+                                         <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*"/>
+                                         <xsl:apply-templates mode="p5:links.evaluate" select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*" xpath-default-namespace="http://www.opengis.net/wfs">
+                                             <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
+                                             <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
+                                             <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
+                                         </xsl:apply-templates>
+                                    </RelatedFeatureRoot>
+                                </xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:when>
+            <xsl:otherwise>
+                <xsl:message>#563 applying root without $api_recurse. </xsl:message>
                 <xsl:choose>
-                    <xsl:when test="$get_wfs_recurse_xsl:wfs_response//p5:next">
-                        <xsl:message> #360 to parse to retrieve links and merge xml <xsl:value-of select="$get_wfs_recurse_xsl:wfs_response//p5:next/text()"/></xsl:message>
-                        <!--<xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/namespace::node()"/> <!-\- [ not(contains(  local-name(),'wfs'))] -\->
-                        <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/namespace::node()"/>
-                        <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*/namespace::node()"/>
-                        <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember//*/namespace::node()"/>-->
-                        <xsl:apply-templates mode="p5:links.evaluate" select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*" xpath-default-namespace="http://www.opengis.net/wfs">
+                    <xsl:when test="$noRelatedFeatureRoot">
+                        <xsl:apply-templates mode="after_first_ant_assing_vars" select="$get_wfs_recurse_xsl:GetsimpleSchema">
+                            <xsl:with-param name="get_wfs_recurse_xsl:wfs_response" select="$get_wfs_recurse_xsl:wfs_response"/>
                             <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
                             <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
                             <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
+                            <xsl:with-param name="resolveDepth.current" select="1"/>
                         </xsl:apply-templates>
                     </xsl:when>
                     <xsl:otherwise>
-                        <xsl:copy-of select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*"/>
-                        <xsl:apply-templates mode="p5:links.evaluate" select="$get_wfs_recurse_xsl:wfs_response/wfs:FeatureCollection/gml:featureMember/*" xpath-default-namespace="http://www.opengis.net/wfs">
-                            <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
-                            <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
-                            <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
-                        </xsl:apply-templates>
+                        <RelatedFeatureRoot>
+                            <xsl:apply-templates mode="after_first_ant_assing_vars" select="$get_wfs_recurse_xsl:GetsimpleSchema">
+                                <xsl:with-param name="get_wfs_recurse_xsl:wfs_response" select="$get_wfs_recurse_xsl:wfs_response"/>
+                                <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
+                                <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
+                                <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
+                                <xsl:with-param name="resolveDepth.current" select="1"/>
+                            </xsl:apply-templates>
+                        </RelatedFeatureRoot>
                     </xsl:otherwise>
                 </xsl:choose>
-            </xsl:when>
-            <xsl:otherwise>
-                <xsl:apply-templates mode="after_first_ant_assing_vars" select="$get_wfs_recurse_xsl:GetsimpleSchema">
-                    <xsl:with-param name="get_wfs_recurse_xsl:wfs_response" select="$get_wfs_recurse_xsl:wfs_response"/>
-                    <xsl:with-param name="get_wfs_recurse_xsl:context.nodes" select="$get_wfs_recurse_xsl:context.nodes"/>
-                    <xsl:with-param name="get_wfs_recurse_xsl:context.PRIMARYKEY" select="$get_wfs_recurse_xsl:context.PRIMARYKEY"/>
-                    <xsl:with-param name="debug.last_wfs_request" select="$request_string"/>
-                </xsl:apply-templates>
+                
             </xsl:otherwise>
         </xsl:choose>
-        </RelatedFeatureRoot>
+        <!--</RelatedFeatureRoot>-->
     </xsl:template>
     
     
@@ -1117,11 +1228,17 @@
         <!--<xsl:param name="get_wfs_recurse_xsl:wfs_response" required="yes"/>-->
         <xsl:param name="get_wfs_recurse_xsl:typeNameRealResource" select="@typeNameRealResource"/>
         <xsl:param name="input_obj_with_xpath" required="yes"/>
+        <xsl:param name="resolveDepth.current" required="yes"/>
         <!--<xsl:param name="xpath"  select="$xpath"/>-->
         <!--<xsl:param name="xpath_value"  select="$xpath_value"/>-->
         <!--<xsl:variable name="input_obj_with_xpath">
             <xsl:apply-templates mode="after_first_ant_assing_xpath" select="node()/*"/> <!-\- zeby nie wstawial do xpath nazwy feature - IN7_DZIENNIK_KORESP/ID itp -\->
         </xsl:variable>-->
+        <xsl:choose>
+            <xsl:when test="@typeNameRealResource"/>
+            <xsl:otherwise><xsl:message terminate="yes">#1174 NOT SET @typeNameRealResource at <xsl:value-of select="name()"/>; </xsl:message></xsl:otherwise>
+        </xsl:choose>
+        <xsl:if test="$debug &gt; 4"><xsl:message>#1172 @typeNameRealResource = <xsl:value-of select="@typeNameRealResource"/> = Set to $get_wfs_recurse_xsl:typeNameRealResource</xsl:message></xsl:if>
         <xsl:variable name="xpath_dita" select="get_wfs_recurse_xsl:xpath_dita('',@xpath)"/>
         <xsl:variable name="xpath_value_dita" select="get_wfs_recurse_xsl:xpath_value_dita(@xpath,@xpath_value,$input_obj_with_xpath)"/>
         <!--<xsl:variable name="get_wfs_recurse_xsl:GetsimpleSchema" select="get_wfs_recurse_xsl:GetsimpleSchema($typeName)"/>-->
@@ -1172,7 +1289,9 @@
             </wfs_response>
         </xsl:if>
         <xsl:apply-templates mode="after_first_ant_assing_vars" select="." >
+            
             <xsl:with-param name="get_wfs_recurse_xsl:wfs_response" select="$get_wfs_recurse_xsl:wfs_response"/>
+            <xsl:with-param name="resolveDepth.current" select="$resolveDepth.current"/>
         </xsl:apply-templates>
         
     </xsl:template>
@@ -1184,6 +1303,7 @@
         <xsl:param name="input_obj_with_xpath" required="yes"/>
         <xsl:param name="xpath"  select="$xpath"/>
         <xsl:param name="xpath_value"  select="$xpath_value"/>
+        <xsl:param name="resolveDepth.current" required="yes"/>
         <!--<xsl:variable name="input_obj_with_xpath">
             <xsl:apply-templates mode="after_first_ant_assing_xpath" select="node()/*"/> <!-\- zeby nie wstawial do xpath nazwy feature - IN7_DZIENNIK_KORESP/ID itp -\->
         </xsl:variable>-->
@@ -1248,8 +1368,11 @@
         </xsl:if>
         <xsl:apply-templates mode="after_first_ant_assing_vars" select="." >
             <xsl:with-param name="get_wfs_recurse_xsl:wfs_response" select="$get_wfs_recurse_xsl:wfs_response"/>
+            <xsl:with-param name="resolveDepth.current" select="$resolveDepth.current"/>
         </xsl:apply-templates>
     </xsl:template>
+    
+    
     <xsl:template mode="get_wfs_recurse_xsl:wfs_response_simpleType" match="*">
         <xsl:copy-of select="."/>
     </xsl:template>
@@ -1288,6 +1411,7 @@
       <xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars">
           <xsl:param name="loop_xpath" />
           <xsl:param name="get_wfs_recurse_xsl:wfs_response"  required="yes"/>
+          <xsl:param name="resolveDepth.current" required="yes"/>
         <!--<RelatedFeatureRoot>-->
             
         <!-- first assign xpath to features from  -->
@@ -1314,6 +1438,7 @@
                     <xsl:with-param name="feature_pos" select="position()"/><!-- wiecej features z relacji dokladamy pozycje -->
                     <xsl:with-param name="feature_pos_parent" select="$feature_pos_parent"/> <!-- @2017-04 byly nadpisywane informacje - trzeba dorzucic jeszcze $feature_pos_parent w nazwie przetwarzania -->
                     <xsl:with-param name="input_obj_fid" select="$input_obj_fid"/>
+                    <xsl:with-param name="resolveDepth.current" select="$resolveDepth.current"/>
                 </xsl:apply-templates>
                 <!-- cache tasks ? -->
             </xsl:for-each>
@@ -1352,19 +1477,41 @@
                 </xsl:variable>
                 <!--<xsl:variable name="curr_xpath_tmpl" select="'asdf'"/>-->
                 <!--<xsl:element name="{name()}" >-->
-                <xsl:copy>
-                    <xsl:attribute name="xpath" select="$curr_xpath_tmpl"/>
-                    <xsl:for-each select="@*">
-                        <xsl:choose>
-                            <xsl:when test="name()='fid'"/>
-                            <xsl:otherwise><xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute></xsl:otherwise>
-                        </xsl:choose>
-                    </xsl:for-each>
-                    <xsl:value-of select="text()"/>
-                    <xsl:apply-templates mode="after_first_ant_assing_xpath">
-                        <xsl:with-param name="curr_xpath" select="$curr_xpath_tmpl"/>
-                    </xsl:apply-templates>
-                </xsl:copy>
+                
+                <xsl:choose>
+                    <xsl:when test="contains(name(),'gml')">
+                        <xsl:element name="{local-name()}">
+                            <xsl:attribute name="xpath" select="$curr_xpath_tmpl"/>
+                            <xsl:for-each select="@*">
+                                <xsl:choose>
+                                    <xsl:when test="name()='fid'"/>
+                                    <xsl:otherwise><xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute></xsl:otherwise>
+                                </xsl:choose>
+                            </xsl:for-each>
+                            <xsl:value-of select="text()"/>
+                            <xsl:apply-templates mode="after_first_ant_assing_xpath">
+                                <xsl:with-param name="curr_xpath" select="$curr_xpath_tmpl"/>
+                            </xsl:apply-templates>
+                        </xsl:element>
+                    </xsl:when>
+                    <xsl:otherwise>
+                        <xsl:copy>
+                            <xsl:attribute name="xpath" select="$curr_xpath_tmpl"/>
+                            <xsl:for-each select="@*">
+                                <xsl:choose>
+                                    <xsl:when test="name()='fid'"/>
+                                    <xsl:otherwise><xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute></xsl:otherwise>
+                                </xsl:choose>
+                            </xsl:for-each>
+                            <xsl:value-of select="text()"/>
+                            <xsl:apply-templates mode="after_first_ant_assing_xpath">
+                                <xsl:with-param name="curr_xpath" select="$curr_xpath_tmpl"/>
+                            </xsl:apply-templates>
+                        </xsl:copy>
+                    </xsl:otherwise>
+                </xsl:choose>
+                
+                
                 <!--</xsl:element>-->
             </xsl:otherwise>
         </xsl:choose>
@@ -1386,12 +1533,14 @@
         <xsl:param name="feature_pos"  required="yes"/>
         <xsl:param name="feature_pos_parent"  required="yes"/>
         <xsl:param name="input_obj_fid" required="no"/>
+        <xsl:param name="resolveDepth.current" required="yes"/>
         <xsl:for-each select=".">
             <xsl:choose>
               
                 <xsl:when test="1=2"/>
                 <xsl:otherwise>
                     <xsl:element name="{local-name()}">
+                        
                         <!--<xsl:if test="$input_obj_fid">
                              <!-\-<xsl:attribute name="input_obj_fid_name" select="$input_obj_fid/name()"/>-\->
                              <xsl:attribute name="fid" select="$input_obj_fid/@fid"/>
@@ -1401,6 +1550,9 @@
                             <xsl:choose>
                                 <xsl:when test="name()='fid'"/>
                                 <xsl:when test="name()='xml_id'"/>
+                                <xsl:when test="name()='format'"/>
+                                <xsl:when test="name()='xpath_token_filter'"/>
+                                <xsl:when test="name()='xpath_token'"/>
                                 <xsl:when test="name()='xpath'">
                                     <!--<xsl:attribute name="xpath_parsed" select="."/>-->
                                     <!--1:<xsl:value-of select="$parent_obj//node()[@system_cache__appinfo:xpath=$xpath]/text()"/>-->
@@ -1414,24 +1566,74 @@
                             <xsl:when test="@xpath">
                                 <!--<xsl:variable name="enter_to_ph">-->
                                     <xsl:choose>
-                                        <!--<xsl:when test="@xpath_token_filter and @xpath_token ">
-                                            <!-\- implementacja filtra dla czegos oddzielonego parametrem -\->
+                                        <xsl:when test="@xpath_token_filter and @xpath_token ">
+                                            <!-- implementacja filtra dla czegos oddzielonego parametrem -->
                                             <xsl:variable name="xpath_token_filter" select="tokenize($input_obj_with_xpath/node()[local-name()=current()/@xpath],@xpath_token_filter)"/>
                                             <xsl:for-each select=" tokenize(@xpath_token,' ')">
                                                 <xsl:variable name="xpath_token" select="number(.)"/>
                                                 <xsl:copy-of select="$xpath_token_filter[$xpath_token]"></xsl:copy-of>
                                             </xsl:for-each>
-                                        </xsl:when>-->
+                                        </xsl:when>
                                         <xsl:when test="$input_obj_with_xpath/node()[local-name()=current()/@xpath]/*">
                                             <xsl:copy-of select="$input_obj_with_xpath/node()[local-name()=current()/@xpath]/*"/>
                                         </xsl:when>
                                         <xsl:otherwise>
-                                            <xsl:copy-of select="$input_obj_with_xpath/node()[local-name()=current()/@xpath]/text()"/>
+                                            <xsl:choose>
+                                                <!--TODO <xsl:when test="@format = 'enter_to_ph'">
+                                                    <xsl:variable name="node">
+                                                        <xsl:element name="{name()}">
+                                                            <xsl:copy-of select="."/>
+                                                        </xsl:element>
+                                                    </xsl:variable>
+                                                    <xsl:variable name="enter_to_ph">
+                                                        <xsl:apply-templates mode="enter_to_ph" select="$node">
+                                                            <xsl:with-param name="count" select="count(.)"/>
+                                                            <xsl:with-param name="element" select="name()"/>
+                                                            <!-\-<xsl:with-param name="xpath_token_filter" select="@xpath_token_filter"/>-\-><!-\- mozliwosc wybrania pierwszego wyrazu np ' ' -\->
+                                                            <!-\-<xsl:with-param name="xpath_token" select="@xpath_token"/>-\-><!-\- mozliwosc wybrania pierwszego wyrazu np 1 -\->
+                                                        </xsl:apply-templates>
+                                                    </xsl:variable>
+                                                    <formated>
+                                                        <node>
+                                                            <xsl:copy-of select="$node"/>
+                                                        </node>
+                                                        <xsl:copy-of select="$enter_to_ph" copy-namespaces="no"/>
+                                                    </formated>
+                                                </xsl:when>-->
+                                                <xsl:when test="@format = 'enter_to_ph'">
+                                                    <xsl:variable name="node">
+                                                        <xsl:element name="{name()}">
+                                                            <xsl:copy-of select="."/>
+                                                        </xsl:element>
+                                                    </xsl:variable>
+                                                    <xsl:variable name="node-name" select="local-name()"/>
+                                                    <xsl:variable name="node-count" select="count(../*[ local-name() = $node-name])"/>
+                                                    <xsl:message>#1562 TODO @format = 'enter_to_ph' ; element=<xsl:value-of select="name()"/>; count()=<xsl:value-of select="$node-count"/> ;   </xsl:message>
+                                                    <xsl:variable name="node-set">
+                                                        <xsl:element name="{$node-name}">
+                                                            <xsl:copy-of select="$input_obj_with_xpath/node()[local-name()=current()/@xpath]/text()"/>
+                                                        </xsl:element>
+                                                    </xsl:variable>
+                                                    <xsl:variable name="enter_to_ph">
+                                                        <xsl:apply-templates mode="enter_to_ph" select="$node-set">
+                                                            <xsl:with-param name="count" select="$node-count"/>
+                                                            <xsl:with-param name="element" select="$node-name"/>
+                                                            <!--<xsl:with-param name="xpath_token_filter" select="@xpath_token_filter"/>--><!-- mozliwosc wybrania pierwszego wyrazu np ' ' -->
+                                                            <!--<xsl:with-param name="xpath_token" select="@xpath_token"/>--><!-- mozliwosc wybrania pierwszego wyrazu np 1 -->
+                                                        </xsl:apply-templates>
+                                                    </xsl:variable>
+                                                        <xsl:copy-of select="$enter_to_ph" copy-namespaces="no"/>
+                                                </xsl:when>
+                                                <xsl:otherwise>
+                                                    <xsl:copy-of select="$input_obj_with_xpath/node()[local-name()=current()/@xpath]/text()"/>
+                                                </xsl:otherwise>
+                                            </xsl:choose>
                                         </xsl:otherwise>
                                     </xsl:choose>
                                 <!--</xsl:variable>-->
                                 <!--<xsl:copy-of select="$enter_to_ph"/>-->
                             </xsl:when>
+                            <xsl:otherwise><xsl:copy-of select="text()"></xsl:copy-of></xsl:otherwise>
                         </xsl:choose>
                         <!--<xsl:comment>#1938 value of text()</xsl:comment>-->
                         <!--XXXX <xsl:value-of select="text()"/>-->
@@ -1442,6 +1644,7 @@
                             <xsl:with-param name="feature_pos" select="$feature_pos"/>
                             <xsl:with-param name="feature_pos_parent" select="$feature_pos_parent"/>
                             <xsl:with-param name="input_obj_fid" select="$input_obj_fid"/>
+                            <xsl:with-param name="resolveDepth.current" select="$resolveDepth.current"/>
                         </xsl:apply-templates>
                     </xsl:element>
                 </xsl:otherwise>
@@ -1460,6 +1663,7 @@
         <xsl:param name="feature_pos_parent" required="yes"/>
         <xsl:param name="input_obj_fid" required="yes"/>
         <xsl:param name="xpath_query"/> <!-- + added test -->
+        <xsl:param name="resolveDepth.current" required="yes"/>
         <xsl:if test="$debug &gt; 2"><xsl:message>#411 $feature_pos=<xsl:value-of select="$feature_pos"/>; mode after_first_ant_assing_vars_childs bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>;</xsl:message></xsl:if>
         <!-- jest okazja do zrobienia bilda aby sciagnal rzeczy nizej -->
         <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
@@ -1497,6 +1701,7 @@
                     <xsl:attribute name="fid" select="$input_obj_fid/@fid"/>-->
                     <xsl:apply-templates mode="get_wfs_recurse_xsl:wfs_response_RelatedFeature" select=".">
                         <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
+                        <xsl:with-param name="resolveDepth.current" select="$resolveDepth.current"/>
                     </xsl:apply-templates>
                 <!--</xsl:element>-->
             </xsl:when>
@@ -1524,6 +1729,7 @@
         <xsl:param name="feature_pos_parent" required="yes"/>
         <xsl:param name="input_obj_fid" required="yes"/>
         <xsl:param name="xpath_query"/> <!-- + added test -->
+        <xsl:param name="resolveDepth.current" required="yes"/>
         <xsl:if test="$debug &gt; 2"><xsl:message>#411 $feature_pos=<xsl:value-of select="$feature_pos"/>; mode after_first_ant_assing_vars_childs bylo $loop_xpath=<xsl:value-of select="$loop_xpath"/>;</xsl:message></xsl:if>
         <!-- jest okazja do zrobienia bilda aby sciagnal rzeczy nizej -->
         <xsl:variable name="featureID_name" select="substring-after(@typeName,':')"/>
@@ -1548,6 +1754,9 @@
             </xsl:call-template>
         </xsl:variable>
         <xsl:choose>
+            <xsl:when test="$resolveDepth.current &gt; $resolveDepth">
+                <xsl:message>#1722 exceeded $resolveDepth.current &gt; $resolveDepth = <xsl:value-of select="$resolveDepth.current"/></xsl:message>
+            </xsl:when>
             <xsl:when test="$test_xpath_query='1'">
                 <xsl:if test="$debug &gt; 2"><xsl:message>[][][][][]\/\/\/\/\/\/\/\/\/\/\/ #1540  jest okazja do zrobienia bilda $feature_pos_parent = <xsl:value-of select="$feature_pos_parent"/> ; $feature_pos=<xsl:value-of select="$feature_pos"/> $xml_id_parent=<xsl:value-of select="$xml_id_parent"/>; $xml_id=<xsl:value-of select="$xml_id"/>;  match=RelatedFeature mode=after_first_ant_assing_vars_childs  </xsl:message></xsl:if>
                 <xsl:comment>#527 there we exec child dig</xsl:comment>
@@ -1559,10 +1768,12 @@
                     <xsl:attribute name="feature_pos_parent" select="$feature_pos_parent"/>
                     <xsl:attribute name="fid" select="$input_obj_fid/@fid"/>-->
                     <xsl:comment>#710 opening new Loop recurse instance for <xsl:value-of select="@typeName"/></xsl:comment>
+                    <xsl:message>#710 resolveDepth.current = <xsl:value-of select="$resolveDepth.current"/>; opening new Loop recurse instance for <xsl:value-of select="@typeName"/></xsl:message>
                     <xsl:apply-templates mode="get_wfs_recurse_xsl:wfs_response_RelatedFeatureLoop" select="get_wfs_recurse_xsl:GetsimpleSchema(@typeName)">
                         <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:with-param name="resolveDepth.current" select="$resolveDepth.current + 1"/>
                     </xsl:apply-templates>
                 <!--</xsl:element>-->
             </xsl:when>

+ 3 - 0
SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/build.grapht.PRODUCT.xml

@@ -8,6 +8,7 @@
     
     <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
     
+    
     <!--<condition property="p5dg.PRODUCT.ifdef.parent" taskname="p5dg.parent.PRODUCT.ifdef">
         <isset property="WPS_Functions.PRODUCT.name"/>
     </condition>-->
@@ -25,6 +26,8 @@
     
     <property name="grapht.xsl" location="${grapht.basedir}/graph_tree_yed_from_wfs.xsl"/>
     <property name="grapht.xsl.testing" location="${grapht.basedir}/grapht.xsl"/>
+    <property name="grapht.pattern.1.cluster.1.select.xsl" location="${grapht.basedir}/grapht.pattern.1.cluster.1.select.xsl"/>
+    
     <!--<property name="grapht.include.xsl.p5xsls.xml" location="${grapht.temp}/grapht.include.xsl.p5xsls.xml"/>
     <property name="grapht.include.xsl" location="${grapht.basedir}/grapht.include.xsl"/>
     <property name="grapht.include.structure.xml" location="${grapht.repository}/grapht.include.structure.xml"/>-->

+ 52 - 9
SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/build_graph_tree.xml

@@ -7,7 +7,7 @@
     
     <include file="build.grapht.PRODUCT.xml" as="PRODUCT"/>
     <include file="../system_ui_info_speech/build_system_ui_info_speech.xml" as="p5suis"/>
-    
+    <include file="../xinclude_p5_recurse/build_xinclude_p5_recurse.xml" as="xp5r"/>
     
     
     
@@ -34,7 +34,7 @@
                 $not_bypass_nodes_string.local = ${not_bypass_nodes_string.local}
             </echo>
         
-            <xslt basedir="${basedir}" style="${grapht.xsl}" in="${grapht.input_file}"   out="${grapht.output_name.path}"  force="true" >
+            <xslt basedir="${basedir}" style="${grapht.xsl}" in="${grapht.input_file}"   out="${grapht.output_name.path}"  force="true"  >
                 <factory name="net.sf.saxon.TransformerFactoryImpl">    
                     <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                     <!--<attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/WPS_Functions/get_wfs_recurse_xsl/get_wfs_recurse_xsl.xsd}compareFeatures.xml"/>-->
@@ -78,24 +78,54 @@
     </target>
    
     <property name="grapht.testing.analyze_nodes.input.xml" value="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/get_wfs_recurse_xsl/temp/default_db__x3A__BI_audit_ENERGA_PRACOWNICY.9.api_recurse.looptest.get_wfs_recurse_xsl.out.xml.anonimize_for_devel.xml"/>
+    <property name="grapht.testing.analyze_nodes.grapht.fid.xml" value="${grapht.repository}/grapht.testing.analyze_nodes.grapht.fid.xml"/>
     <property name="grapht.testing.analyze_nodes.xml" value="${grapht.repository}/grapht.testing.analyze_nodes.xml"/>
+    <property name="testing.analyze_nodes.xp5r.apply-template.xml" value="${grapht.repository}/build.testing.analyze_nodes.xp5r.apply-template.xml"/>
     <property name="grapht.testing.analyze_nodes.paths.xml" value="${grapht.repository}/grapht.testing.analyze_nodes.paths.xml"/>
+    <property name="grapht.testing.analyze_nodes.paths.unique.xml" value="${grapht.repository}/grapht.testing.analyze_nodes.paths.unique.xml"/>
     
-    
+    <target name="grapht.testing.analyze_nodes.grapht.fid.xml" description="add @grapht:fid">
+        <xslt basedir="${basedir}" style="${grapht.xsl.testing}" in="${grapht.testing.analyze_nodes.input.xml}"   out="${grapht.testing.analyze_nodes.grapht.fid.xml}"  force="true" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph_tree/graph_tree.xsd}analyze_nodes.grapht.fid"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <!--<param name="debug.filter" expression="(^11$)|(^9177$)|(^9$)|(^3012062$)|(^12$)|(^909527$)|(1619448)|(1619451)|(909527)|(218)|(1619451)|(23164)|(150746)|(23164)|(150773)|(4903)|(.*)"/>--><!-- |(3012062) -->
+            <param name="grapht.temp" expression="${grapht.temp}"/>
+            <param name="grapht.xsl.testing" expression="${grapht.xsl.testing}"/>
+            <!--<param name="debug.filter" expression="(^11$)|(^9177$)|(^9$)|(^3012062$)|(^12$)|(^909527$)|(1619448)|(1619451)|(909527)|(218)|(1619451)|(23164)|(150746)|(23164)|(150773)|(4903)|(.*)"/>-->
+        </xslt>
+    </target>
    
-    <target name="testing.analyze_nodes" description="@2018-02-05 testing analyzing nodes -  ">
-        
-         
-        <xslt basedir="${basedir}" style="${grapht.xsl.testing}" in="${grapht.testing.analyze_nodes.input.xml}"   out="${grapht.testing.analyze_nodes.xml}"  force="true" >
+    <target name="testing.analyze_nodes" depends="grapht.testing.analyze_nodes.grapht.fid.xml" description="@2018-02-05 testing analyzing nodes -  ">
+        <xslt basedir="${basedir}" style="${grapht.xsl.testing}" in="${grapht.testing.analyze_nodes.grapht.fid.xml}"   out="${grapht.testing.analyze_nodes.xml}"  force="true" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph_tree/graph_tree.xsd}analyze_nodes"/>
             </factory>
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
-            <param name="debug.filter" expression="(9177)|(9)"/><!-- |(3012062) -->
+            <!--<param name="debug.filter" expression="(^11$)|(^9177$)|(^9$)|(^3012062$)|(^12$)|(^909527$)|(1619448)|(1619451)|(909527)|(218)|(1619451)|(23164)|(150746)|(23164)|(150773)|(4903)|(.*)"/>--><!-- |(3012062) -->
+            <param name="grapht.temp" expression="${grapht.temp}"/>
+            <param name="debug.filter" expression="(9177)|(1619447)|(1619441)|(150746)|(.*)"/>
+            <param name="grapht.xsl.testing" expression="${grapht.xsl.testing}"/>
+            <param name="grapht.testing.analyze_nodes.grapht.fid.xml" expression="${grapht.testing.analyze_nodes.grapht.fid.xml}"/>
+            <!--<param name="debug.filter" expression="(^11$)|(^9177$)|(^9$)|(^3012062$)|(^12$)|(^909527$)|(1619448)|(1619451)|(909527)|(218)|(1619451)|(23164)|(150746)|(23164)|(150773)|(4903)|(.*)"/>-->
         </xslt>
+    </target>
+    <!-- depends="testing.analyze_nodes" -->
+    <target name="testing.analyze_nodes.xp5r.apply-template.xml" depends="testing.analyze_nodes"  description="to test paraller tasks">
+        <local name="xp5r.apply-template.xsl.input"/>
+        <local name="xp5r.apply-template.xsl.output"/>
+        <local name="xp5r.apply-template.xsl.name"/>
         
+        <antcall target="xp5r.apply-template.xsl">
+            <param name="xp5r.apply-template.xsl.input" value="${grapht.testing.analyze_nodes.xml}"/>
+            <param name="xp5r.apply-template.xsl.output" value="${testing.analyze_nodes.xp5r.apply-template.xml}"/>
+            <param name="xp5r.apply-template.xsl.name" value="testing.analyze_nodes.xp5r.apply-template"/>
+        </antcall>
     </target>
+    
 
     <!-- depends="testing.analyze_nodes" -->
     <target name="testing.analyze_nodes.paths" depends="testing.analyze_nodes" description="@2018-02-05 testing analyzing nodes - to calculate all paths by testing.analyze_nodes">
@@ -106,11 +136,24 @@
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph_tree/graph_tree.xsd}analyze_nodes.paths"/>
             </factory>
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
-            <param name="debug.filter" expression="(9177)|(9)|(3012062)"/>
+            <!--<param name="debug.filter" expression="(^11$)|(^9177$)|(^9$)|(^3012062$)|(^12$)|(^909527$)|(1619448)|(1619451)|(909527)|(218)|(1619451)|(23164)|(150746)|(23164)|(150773)|(4903)|(9177)|(1619447)|(1619441)"/>-->
+            <param name="debug.filter" expression="(9177)|(1619447)|(1619441)|(150746)"/>
         </xslt>
         
     </target>
 
+    <target name="grapht:analyze_nodes.paths.unique" depends="testing.analyze_nodes.paths" description="@2018-02-05 testing unique paths from up to down and down to up">
+        
+        <xslt basedir="${basedir}" style="${grapht.xsl.testing}" in="${grapht.testing.analyze_nodes.paths.xml}"   out="${grapht.testing.analyze_nodes.paths.unique.xml}"  force="true" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph_tree/graph_tree.xsd}analyze_nodes.paths.unique"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <param name="debug.filter" expression="(9177)|(1619447)|(1619441)|(150746)"/>
+        </xslt>
+        
+    </target>
 
   
     <!--<target name="graph_tree" depends="properties">

+ 1 - 1
SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/graph_tree_yed_from_wfs.xsl

@@ -19,7 +19,7 @@
     <xsl:param name="graph_title" select="'Arkadiusz Binder/RIP Graficzna prezentacja wybranych par raportu dla podanych KRS 2017-08-09'"/>
     <xsl:param name="graph_desc" select="'Uwaga - limit 10 umow'"/>
     
-    <xsl:param name="bypass_nodes_string" select="'(.*xxxxBI_audit_ENERGA_PRACOWNICYxxx.*)|(.*XXXXBI_audit_MSIG_nameXXXX.*)|(xxxxBI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_objectxxxx)|(.*taxpayer.*)'"/>
+    <xsl:param name="bypass_nodes_string" select="'(.*xxxxBI_audit_ENERGA_PRACOWNICYxxx.*)|(.*XXXXBI_audit_MSIG_nameXXXX.*)|(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object)|(BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row)|(.*taxpayer.*)'"/>
     <xsl:param name="not_bypass_nodes_string" select="'xxxBI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_objectxxxx'"/>
     
     <xsl:param name="debug" select="0"/>

+ 456 - 60
SE/schema/WPS_Functions/graph_tree_TODO_PROJ6806/grapht.xsl

@@ -22,14 +22,26 @@
     xmlns:default_db__x3A__BI_audit_MSIG_person="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_person"
     xmlns:default_db__x3A__BI_audit_MSIG_company="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_company"
     xmlns:default_db__x3A__BI_audit_MSIG_name="https://biuro.biall-net.pl/wfs/default_db/BI_audit_MSIG_name"
+    xmlns:default_db__x3A__BI_audit_ENERGA_PRACOWNICY_adresy="https://biuro.biall-net.pl/wfs/default_db/BI_audit_ENERGA_PRACOWNICY_adresy"
+    xmlns:xp5r="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/xinclude_p5_recurse/xinclude_p5_recurse.xsd"
     version="2.0">
     
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>
     
     <xsl:template match="get_wfs_recurse_xsl:context.PRIMARYKEY|get_wfs_recurse_xsl:nodes" mode="#all"/>
-    
+    <xsl:param name="grapht.temp"/>
     <xsl:param name="debug.filter" select="'(9177)|(9177)'"/>
+    <xsl:param name="grapht.xsl.testing"/>
+    <xsl:param name="grapht.testing.analyze_nodes.grapht.fid.xml"/>
+    
+    
+    <xsl:key name="fid" match="*" use="@grapht:fid"/>
+    <xsl:key name="descendant-or-self" match="*" use="descendant-or-self::*/@grapht:fid"/>
+    <xsl:key name="descendant" match="*" use="descendant::*/@grapht:fid"/>
+    <!--<xsl:key name="descendant" match="descendant::" use="@grapht:fid"/>-->
+    <xsl:key name="ancestor" match="*" use="ancestor::*/@grapht:fid"/>
+    <!--<xsl:key name="ancestor" match="ancestor::*" use="@grapht:fid"/>-->
     
     <!-- 
     założenia:
@@ -49,6 +61,82 @@
      
        
     
+    Plan B
+    - jaka odleglosc od FID do FID i najkrotsza sciezka?
+    
+    1 szukam samych koncow dzieci z xlink, 
+    2 dla kazdego z nich jade sciezki do root - moga byc wiele razy
+    3 dla kazdego z nich sciezki do child (sa do zsumowania)  - sa na koncach - bez sensu
+    
+    C
+    mamy unikalne sciezki w grapht:last_child.fid
+    kazdy wezel ma przypisana grapht:last_child.fid - mozna zgrupowac - i po tych wariantach szukac
+     dla kazdego wezla group by grapht:last_child.fid szukam dlugosci do innego :
+      - szukam w jakich sciezkach jest tamten wezel i uzywam @grapht:ancestor.path.len
+      foreach grapht:analyze_nodes.tree group by ../@grapht:last_child.fid
+        szukam grapht:analyze_nodes.tree[ have grapht:analyze_nodes.tree.childs ]
+    
+    deb[5] BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619448 to 
+    [4] BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619447
+    
+    tracking manually:
+    BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619448 - source
+    ../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.241314
+    ../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619449
+    ../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.241314
+    ../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619448
+    ../BI_audit_ENERGA_PRACOWNICY.9 (root)
+    ./BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619441
+    ./BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.241313
+    ./BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619447 - cel
+    dlugosc = 9 
+    
+    <grapht:analyze_nodes.tree fid="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619448"
+                                    p5:primaryKey="1619448"
+                                    xlink:href=""
+                                    grapht:pos="1"
+                                    grapht:anchestor.count="3"
+                                    grapht:childs.count="202"
+                                    grapht:last_child.fid="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619448"
+                                    grapht:fid="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619448">
+            <grapht:analyze_nodes.tree.childs grapht:parent.childs.count="202" grapht:parent.ancestor.count="3"/>
+         </grapht:analyze_nodes.tree>
+     
+     <grapht:analyze_nodes.tree fid="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619447"
+                                    p5:primaryKey="1619447"
+                                    xlink:href=""
+                                    grapht:pos="21"
+                                    grapht:anchestor.count="5"
+                                    grapht:childs.count="87"
+                                    grapht:last_child.fid="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619441"
+                                    grapht:fid="BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619447">
+            <grapht:analyze_nodes.tree.childs grapht:parent.childs.count="87" grapht:parent.ancestor.count="5"/>
+         </grapht:analyze_nodes.tree>
+         
+         - inne last_child.fid
+         
+         
+         
+         
+         - sprawdzmy cos co sie dzieli w srodku 
+         np: BI_audit_KRS_person.150746 [4]
+         do BI_audit_ENERGA_RUM_KONTRAHENCI.9177 [7]
+         
+         sciezka: 
+         BI_audit_ENERGA_RUM_KONTRAHENCI.9177
+         ../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619451
+         ../BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row.241314 (local root)
+         ./BI_audit_ENERGA_RUM_KONTRAHENCI_POWIAZANIA_row_object.1619449
+         ./BI_audit_KRS_person.150746
+         
+    
+     plan D
+     dla kazdego kto nie ma sciezek, 
+        wychodzmy pietro wyzej i patrzymy, czy widzimy dziecko, 
+        jak nie wyzej 
+     
+    
+    
     -->
     
     <!-- 
@@ -120,65 +208,192 @@
     
     <xsl:function name="wfs:fid">
         <xsl:param name="xlink:href"/>
-        <xsl:value-of select="concat( wfs:element($xlink:href),'.',  wfs:primary_key($xlink:href))"/>
+        <xsl:if test="string-length($xlink:href) &gt;0">
+            <xsl:value-of select="concat( wfs:element($xlink:href),'.',  wfs:primary_key($xlink:href))"/>
+        </xsl:if>
     </xsl:function>
     
+    <xsl:template match="@fid" mode="grapht:fid">
+        <xsl:attribute name="grapht:fid" select="."/>
+    </xsl:template>
+    <xsl:template match="@xlink:href" mode="grapht:fid">
+        <xsl:attribute name="grapht:fid" select="wfs:fid(.)"/>
+    </xsl:template>
+    
+    <xsl:template match="@*" mode="grapht:fid"/>
+        
+    
+    
     <xsl:template match="wfs:FeatureCollection" mode="grapht:analyze_nodes">
         <grapht:analyze_nodes>
-            <xsl:for-each-group select=".//*[(*|@xlink:href) ]" group-by="name()">
+            <xsl:for-each-group select=".//*[(*|@xlink:href) and not(name()='gml:featureMember')]" group-by="name()">
                 <xsl:copy copy-namespaces="no">
                     <xsl:attribute name="grapht:count" select="count(current-group())"/>
                     <xsl:attribute name="grapht:count.xlink" select="count(current-group()[@xlink:href])"/>
-                    
-                    <grapht:analyze_fid>
-                        <xsl:for-each-group select="current-group()[  matches(@p5:primaryKey,$debug.filter) ]" group-by="@fid">
-                                <xsl:for-each select="current-group()">
-                                        <grapht:analyze_nodes.tree>
-                                            <xsl:attribute name="fid" select="@fid"/>
-                                            <!--<xsl:copy copy-namespaces="no">-->
-                                            <!--<xsl:attribute name="fid" select="@fid"/>-->
-                                                <grapht:analyze_nodes.tree.ancestors>
-                                                    <xsl:attribute name="grapht:parent.ancestor.count" select="count(ancestor::*)"/>
-                                                    <xsl:apply-templates mode="grapht:analyze_nodes.tree.ancestors" select="ancestor::*[*|@xlink:href]">
-                                                        <xsl:with-param name="grapht:parent.ancestor.count" select="count(ancestor::*)"/>
-                                                    </xsl:apply-templates>
-                                                </grapht:analyze_nodes.tree.ancestors>
-                                                <grapht:analyze_nodes.xlink.rebuild_tree_inputs>
-                                                    <xsl:for-each select=" current-group()[@xlink:href  and matches(@p5:primaryKey,$debug.filter) ]" > <!-- -group  group-by="@fid" -->
-                                                        <xsl:sort select="count(ancestor::node())"/>
-                                                        <xsl:copy copy-namespaces="no">
-                                                            <xsl:copy-of select="@*"/>
-                                                            <xsl:variable name="grapht.fid" select="wfs:fid(@xlink:href)"/>
-                                                            <xsl:attribute name="grapht.fid" select="$grapht.fid"/>
-                                                            <xsl:attribute name="grapht:ancestor.count" select="count(ancestor::node())"/>
-                                                            <xsl:apply-templates mode="grapht:analyze_nodes.xlink.rebuild_tree" select="root()//*[*[@fid= $grapht.fid ]]"> <!-- and * -->
-                                                                <xsl:with-param name="fid" select="$grapht.fid"/>
-                                                                <xsl:with-param name="root.node" select="root()"/>
-                                                            </xsl:apply-templates>
-                                                        </xsl:copy>
-                                                    </xsl:for-each>
-                                                </grapht:analyze_nodes.xlink.rebuild_tree_inputs>
-                                            <!--</xsl:copy>-->
-                                        </grapht:analyze_nodes.tree>
-                                </xsl:for-each>
-                            </xsl:for-each-group>
-                    </grapht:analyze_fid>
+                    <xp5r:cache xmlns:xp5r="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/xinclude_p5_recurse/xinclude_p5_recurse.xsd"
+                        xp5r:id="{local-name()}"
+                        xp5r:basedir="{$grapht.temp}"
+                        xp5r:stylesheet="{$grapht.xsl.testing}">
+                        <xp5r:namespace namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/graph_tree/graph_tree.xsd" name="grapht"/>
+                        <xp5r:namespace namespace="http://www.opengis.net/wfs" name="wfs"/> 
+                        <xp5r:namespace namespace="http://www.opengis.net/gml" name="gml"/>
+                        <xp5r:namespace namespace="http://www.w3.org/1999/xlink" name="xlink"/>
+                        <xp5r:param name="debug.filter" value="{$debug.filter}"/>
+                        <xp5r:apply-template mode="grapht:analyze_nodes.xp5r" select=".">
+                            <xp5r:context-node>
+                                <xp5r:for-each-group
+                                    select="doc('{$grapht.testing.analyze_nodes.grapht.fid.xml}')/wfs:FeatureCollection//*[(*|@xlink:href) and not(name()='gml:featureMember') and name()='{name()}']"
+                                    group-by="name()"/>
+                            </xp5r:context-node>
+                            <!--<xsl:apply-templates mode="grapht:analyze_nodes.xp5r" select="."/>-->
+                        </xp5r:apply-template>
+                    </xp5r:cache>
                 </xsl:copy>
             </xsl:for-each-group>
         </grapht:analyze_nodes>
     </xsl:template>
     
-    <xsl:template match="*" mode="grapht:analyze_nodes.tree.ancestors">
+    
+    
+    <xsl:template match="*" mode="grapht:analyze_nodes.xp5r">
+        <grapht:analyze_fid><!-- for name grouped  -->
+            <!--<debug.copy>
+                <xsl:copy>
+                    <xsl:copy-of select="@*"/>
+                    <current.group>
+                        <xsl:copy-of select="current-group()"/>
+                    </current.group>
+                    <current.root>
+                        <xsl:copy-of select="root()"/>
+                    </current.root>
+                </xsl:copy>
+            </debug.copy>-->
+            <!--<xsl:for-each-group select="current-group()[  matches(@p5:primaryKey,$debug.filter) ]" group-by="@fid">-->
+            <xsl:for-each select="current-group()[ count(descendant::*[* |@xlink:href]) &gt;0 and       matches(@p5:primaryKey,$debug.filter) ]"> <!-- FILTER -->
+                <xsl:message>#136 maching @fid=<xsl:value-of select="@fid"/>; for matches(@p5:primaryKey=<xsl:value-of select="@p5:primaryKey"/>,$debug.filter=<xsl:value-of select="$debug.filter"/>) </xsl:message>
+                <grapht:analyze_nodes.tree>
+                    <xsl:attribute name="fid" select="@fid"/>
+                    <xsl:attribute name="p5:primaryKey" select="@p5:primaryKey"/>
+                    <xsl:attribute name="xlink:href" select="@xlink:href"/>
+                    <xsl:attribute name="grapht:pos" select="position()"/>
+                    <xsl:variable name="grapht:anchestor.count" select=" count(ancestor::*)"/>
+                    <xsl:attribute name="grapht:anchestor.count" select="$grapht:anchestor.count"/>
+                    <xsl:variable name="grapht:childs.count" select="count(descendant::*[* |@xlink:href])"/>
+                    <xsl:attribute name="grapht:childs.count" select="$grapht:childs.count"/>
+                    <xsl:variable name="grapht:last_child.fid" select="descendant::*[ * | @xlink:href][$grapht:childs.count]/concat(@fid,wfs:fid(@xlink:href))"/>
+                    <xsl:attribute name="grapht:last_child.fid" select="$grapht:last_child.fid"/>
+                    <!--<xsl:attribute name="grapht:root.fid" select=" ancestor::*[@fid][1]/@fid"/>-->
+                    <xsl:apply-templates mode="grapht:fid" select="@*"/>
+                    <!--<xsl:copy copy-namespaces="no">-->
+                    <!--<xsl:attribute name="fid" select="@fid"/>-->
+                    <!--<grapht:analyze_nodes.tree.childs>
+                                                        <xsl:attribute name="grapht:parent.childs.count" select="$grapht:childs.count"/>
+                                                        <xsl:attribute name="grapht:parent.ancestor.count" select="count( ancestor::*)"/>
+                                                        <!-\-<xsl:apply-templates mode="grapht:analyze_nodes.tree.childs" select="descendant::*[*|@xlink:href]">
+                                                                <xsl:with-param name="grapht:parent.childs.count" select="$grapht:childs.count"/>
+                                                                <xsl:with-param name="grapht:parent.ancestor.count" select="count(ancestor::*)"/>
+                                                                <xsl:with-param name="grapht:last_child.fid" select="$grapht:last_child.fid"/>
+                                                            </xsl:apply-templates>-\->
+                                                        <!-\-<xsl:for-each-group select="descendant::*[*|@xlink:href]" group-by="concat(@fid,wfs:fid(@xlink:href))">
+                                                            <xsl:apply-templates mode="grapht:analyze_nodes.tree.childs" select=".">
+                                                                <xsl:with-param name="grapht:parent.childs.count" select="$grapht:childs.count"/>
+                                                                <xsl:with-param name="grapht:parent.ancestor.count" select="count(ancestor::*)"/>
+                                                                <xsl:with-param name="grapht:last_child.fid" select="$grapht:last_child.fid"/>
+                                                            </xsl:apply-templates>
+                                                        </xsl:for-each-group>-\->
+                                                    </grapht:analyze_nodes.tree.childs>-->
+                    <!--<grapht:analyze_nodes.xlink.rebuild_tree_inputs>
+                                                        <xsl:attribute name="debug">#147 temporary disabled</xsl:attribute>
+                                                        <!-\-<xsl:for-each select=" current-group()[@xlink:href  and matches(@p5:primaryKey,$debug.filter) ]" > <!-\\- -group  group-by="@fid" -\\->
+                                                            <xsl:sort select="count(ancestor::node())"/>
+                                                            <xsl:copy copy-namespaces="no">
+                                                                <xsl:copy-of select="@*"/>
+                                                                <xsl:variable name="grapht.fid" select="wfs:fid(@xlink:href)"/>
+                                                                <xsl:attribute name="grapht.fid" select="$grapht.fid"/>
+                                                                <xsl:attribute name="grapht:ancestor.count" select="count(ancestor::node())"/>
+                                                                <xsl:apply-templates mode="grapht:analyze_nodes.xlink.rebuild_tree" select="root()//*[*[@fid= $grapht.fid ]]"> <!-\\- and * -\\->
+                                                                    <xsl:with-param name="fid" select="$grapht.fid"/>
+                                                                    <xsl:with-param name="root.node" select="root()"/>
+                                                                </xsl:apply-templates>
+                                                            </xsl:copy>
+                                                        </xsl:for-each>-\->
+                                                    </grapht:analyze_nodes.xlink.rebuild_tree_inputs>-->
+                    <!--</xsl:copy>-->
+                    
+                    <grapht:analyze_nodes.tree.clousure.searched>
+                        <xsl:variable name="current.parent.fid" select="@grapht:fid"/>
+                        
+                        <xsl:for-each select="root()//*[ not(@grapht:fid = $current.parent.fid) and (* or @xlink:href or @fid)     and    (   matches(@p5:primaryKey,$debug.filter)   )]"> <!-- or matches($current.parent.fid,$debug.filter) FILTER -->
+                            <!--<xsl:message>#280 searching path from <xsl:value-of select="$current.parent.fid"/> to <xsl:value-of select="concat(@fid,wfs:fid(@xlink:href))"/></xsl:message>-->
+                            <grapht:path_to>
+                                <xsl:attribute name="grapht:fid" select="@grapht:fid"/>
+                                <xsl:choose>
+                                    <xsl:when test="ancestor::*[@grapht:fid=$current.parent.fid ]"><!--<xsl:when test="ancestor::*[@grapht:fid=$current.parent.fid ]">--> <!-- key('ancestor',$current.parent.fid) -->
+                                        
+                                        <!--<xsl:message>#285 parent path found for <xsl:value-of select="$current.parent.fid"/> </xsl:message>-->
+                                        <xsl:variable name="curr.ancerstor.count" select="count(ancestor::*)"/> <!--  -->
+                                        <xsl:variable name="parent.ancerstor.count" select="ancestor::*[@grapht:fid=$current.parent.fid][1]/count(ancestor::*)"/> <!-- select="ancestor::*[@grapht:fid=$current.parent.fid][1]/count(ancestor::*)" --> <!-- key('ancestor',$current.parent.fid)[1]/count(ancestor::*) -->
+                                        <xsl:variable name="grapht:path" select="$curr.ancerstor.count - $parent.ancerstor.count"/>
+                                        <grapht:path_info>
+                                             <xsl:attribute name="curr.ancerstor.count" select="$curr.ancerstor.count"/>
+                                             <xsl:attribute name="parent.ancerstor.count" select="$parent.ancerstor.count"/>
+                                             <xsl:attribute name="grapht:path" select="$grapht:path"/>
+                                             <xsl:attribute name="grapht:node_from" select="@grapht:fid"/>
+                                            <xsl:attribute name="grapht:when" select="'ancestor'"/>
+                                        </grapht:path_info>
+                                        <grapht:path_step>
+                                            <!--<xsl:copy-of select="@grapht:fid"/>-->
+                                            <xsl:copy-of select="@p5:primaryKey"/>
+                                            <xsl:attribute name="local-name" select="local-name()"/>
+                                        </grapht:path_step>
+                                        <xsl:for-each select="ancestor::* [ count(ancestor::*) &gt;= $parent.ancerstor.count]"> <!-- ancestor::* [ count(ancestor::*) &gt;= $parent.ancerstor.count] -->
+                                           <!-- <xsl:if test=" count(ancestor::*) &gt; $parent.ancerstor.count ">-->
+                                                <grapht:path_step>
+                                                    <!--<xsl:copy-of select="@grapht:fid"/>-->
+                                                    <xsl:copy-of select="@p5:primaryKey"/>
+                                                    <xsl:attribute name="local-name" select="local-name()"/>
+                                                    <!--<xsl:attribute name="debug.anc.count" select="count(ancestor::*)"/>-->
+                                                </grapht:path_step>
+                                            <!--</xsl:if>-->
+                                        </xsl:for-each>  
+                                    </xsl:when>
+                                    <xsl:otherwise>
+                                        <xsl:apply-templates  mode="grapht:analyze_nodes.tree.clousure.searched" select="." >
+                                            <xsl:with-param name="current.parent.fid" select="$current.parent.fid"/>
+                                            <xsl:with-param name="grapht:fid" select="@grapht:fid"/>
+                                        </xsl:apply-templates>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+                            </grapht:path_to>
+                        </xsl:for-each>
+                    </grapht:analyze_nodes.tree.clousure.searched>
+                </grapht:analyze_nodes.tree>
+            </xsl:for-each>
+            <!--</xsl:for-each-group>-->
+        </grapht:analyze_fid>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="*" mode="grapht:analyze_nodes.tree.childs">
+        <xsl:param name="grapht:parent.childs.count" required="yes"/>
         <xsl:param name="grapht:parent.ancestor.count" required="yes"/>
+        <xsl:param name="grapht:last_child.fid" required="yes"/>
+        <xsl:variable name="grapht:childs.count" select="count(descendant::*[* |@xlink:href])"/>
         <xsl:copy copy-namespaces="no">
             <xsl:copy-of select="@*"/>
+            <xsl:attribute name="grapht:last_child.fid" select="descendant::*[ * | @xlink:href][$grapht:childs.count]/concat(@fid,wfs:fid(@xlink:href))"/>
+            <xsl:apply-templates mode="grapht:fid" select="@*"/>
             <xsl:attribute name="grapht:ancestor.count" select="count(ancestor::*)"/>
-            <xsl:attribute name="grapht:ancestor.path.len" select="$grapht:parent.ancestor.count - count(ancestor::*)"/>
+            <xsl:attribute name="grapht:childs.count" select="$grapht:childs.count"/>
+            <xsl:attribute name="grapht:parent.ancestor.count" select="$grapht:parent.ancestor.count"/>
+            <xsl:attribute name="grapht:ancestor.path.len" select="count(ancestor::*) - $grapht:parent.ancestor.count"/>
+            <xsl:attribute name="grapht:last_child.fid" select="$grapht:last_child.fid"/>
         </xsl:copy>
     </xsl:template>
     
     
-    <xsl:template match="*[not(@fid or @xlink:href)]" mode="grapht:analyze_nodes.tree.ancestors"/>
+    <xsl:template match="*[not(@fid or @xlink:href)]" mode="grapht:analyze_nodes.tree.childs"/>
         
     
     
@@ -188,12 +403,12 @@
         <xsl:copy copy-namespaces="no">
         <!--<xsl:element name="{../name()}">-->
             <xsl:copy-of select="@*"/>
-            
+            <xsl:apply-templates mode="grapht:fid" select="@*"/>
         <!--</xsl:element>-->
         </xsl:copy>
     </xsl:template>
     
-    
+    <!-- todo unique grapht:analyze_nodes.tree.ancestors  -->
     
     
     <xsl:template match="grapht:analyze_nodes" mode="grapht:analyze_nodes.paths">
@@ -205,54 +420,148 @@
     <xsl:template match="*" mode="grapht:analyze_nodes.paths">
         <xsl:copy copy-namespaces="no">
             <xsl:copy-of select="@*"/>
+            <xsl:apply-templates mode="grapht:fid" select="@*"/>
             <xsl:apply-templates mode="grapht:analyze_nodes.paths"/>
         </xsl:copy>
     </xsl:template>
     
+    <xsl:template match="gml:featureMember" mode="grapht:analyze_nodes.paths grapht:analyze_nodes.paths.unique"/>
+        
+    
+    
     <xsl:template match="grapht:analyze_fid" mode="grapht:analyze_nodes.paths">
         <!-- szukam unkalnych parentow jakie mam, z najkrotsza sciezka
         , a potem szukam dla nich jakie oni maja dzieci unikalne, najkrotsze sciezki
         -->
+        <xsl:message>#217 running grapht:analyze_nodes.paths with debug.filter=<xsl:value-of select="$debug.filter"/></xsl:message>
+        <xsl:copy copy-namespaces="no">
+            <xsl:copy-of select="@*"/>
+            <xsl:for-each select="grapht:analyze_nodes.tree" > <!-- group-by="@fid" -->
+                <xsl:message>#221 foreach grapht:analyze_nodes.tree @grapht:fid=<xsl:value-of select="@grapht:fid"/>; @grapht:pos=<xsl:value-of select="@grapht:pos"/>; group-by="@fid"=<xsl:value-of select="@fid"/>; @p5:primaryKey=<xsl:value-of select="@p5:primaryKey"/>; </xsl:message>
+                <xsl:variable name="current.parent.fid" select="@grapht:fid"/>
+                <xsl:variable name="current.parent.pos" select="@grapht:pos"/>
+                <xsl:variable name="grapht:last_child.fid" select="@grapht:last_child.fid"/>
+                <xsl:variable name="grapht:anchestor.count" select="@grapht:anchestor.count"/>
+                <xsl:copy copy-namespaces="no">
+                    <xsl:copy-of select="@*"/>
+                    <grapht:analyze_nodes.tree.clousure>
+                        <!--<xsl:attribute name="debug.288"> looking for @grapht:last_child.fid=$grapht:last_child.fid = <xsl:value-of select="$grapht:last_child.fid"/> ] </xsl:attribute>-->
+                        <xsl:for-each select="root()//grapht:analyze_nodes.tree[not(@grapht:fid = $current.parent.fid) and @grapht:last_child.fid=$grapht:last_child.fid and     (  matches(@p5:primaryKey,$debug.filter) or matches($current.parent.fid,$debug.filter) )  ]"> <!-- FILTER -->
+                            <grapht:path>
+                                <xsl:attribute name="grapht:path.len" select="$grapht:anchestor.count - number(@grapht:anchestor.count) "/>
+                                <xsl:attribute name="grapht:fid" select="@grapht:fid"/>
+                                <xsl:copy-of select="@*"/>
+                            </grapht:path>
+                        </xsl:for-each>
+                    </grapht:analyze_nodes.tree.clousure>
+                </xsl:copy>
+            </xsl:for-each>
+        </xsl:copy>
+    </xsl:template>
+    
+    <!--<xsl:template match="grapht:analyze_fid" mode="grapht:analyze_nodes.paths">
+        <!-\- szukam unkalnych parentow jakie mam, z najkrotsza sciezka
+        , a potem szukam dla nich jakie oni maja dzieci unikalne, najkrotsze sciezki
+        -\->
+        <xsl:message>#217 running grapht:analyze_nodes.paths with debug.filter=<xsl:value-of select="$debug.filter"/></xsl:message>
+        <xsl:copy copy-namespaces="no">
+            <xsl:copy-of select="@*"/>
+            <xsl:for-each select="grapht:analyze_nodes.tree" > <!-\- group-by="@fid" -\->
+                <xsl:message>#221 foreach grapht:analyze_nodes.tree @grapht:fid=<xsl:value-of select="@grapht:fid"/>; @grapht:pos=<xsl:value-of select="@grapht:pos"/>; group-by="@fid"=<xsl:value-of select="@fid"/>; @p5:primaryKey=<xsl:value-of select="@p5:primaryKey"/>; </xsl:message>
+                <xsl:variable name="current.parent.fid" select="@grapht:fid"/>
+                <xsl:variable name="current.parent.pos" select="@grapht:pos"/>
+                <xsl:copy copy-namespaces="no">
+                    <xsl:copy-of select="@*"/>
+                    <grapht:analyze_nodes.tree.ancestors>
+                        <xsl:for-each select="grapht:analyze_nodes.tree.childs/*[  matches(@p5:primaryKey,$debug.filter) ]" ><!-\-group-by="@fid" FILTERING -\->
+                            <xsl:sort select="@grapht:fid"/>
+                            <xsl:variable name="current.analyze_nodes.tree.ancestors.fid" select="@grapht:fid"/>
+                            <!-\-<xsl:variable name="current.analyze_nodes.tree.ancestors.pos" select="@grapht:pos"/>-\->
+                            <xsl:message>#245 current.analyze_nodes.tree.ancestors.fid=<xsl:value-of select="@grapht:fid"/>; <!-\-@grapht:pos=<xsl:value-of select="@grapht:pos"/>;-\-></xsl:message>
+                            <!-\- grapht:ancestor.path.len -\->
+                            <xsl:copy copy-namespaces="no">
+                                <xsl:copy-of select="@*"/>
+                                <grapht:analyze_nodes.tree.childs.paths.to_childs>
+                                    <!-\- <xsl:for-each select="current-group()">
+                                        <xsl:copy copy-namespaces="no">
+                                            <xsl:copy-of select="@*"/>-\->
+                                    <grapht:analyze_nodes.tree.childs.paths.to_childs.childs>
+                                        <xsl:attribute name="debug">#223 dla znalezionych ojcow, szukam innych dzieci </xsl:attribute>
+                                        <xsl:for-each select="root()//grapht:analyze_fid/grapht:analyze_nodes.tree[not(@grapht:fid=$current.parent.fid)]/grapht:analyze_nodes.tree.childs/*[@grapht:fid = $current.analyze_nodes.tree.ancestors.fid      and matches(@p5:primaryKey,$debug.filter)]"> <!-\- FILTER -\->
+                                            <xsl:copy copy-namespaces="no">
+                                                <xsl:copy-of select="@*"/>
+                                                <!-\-<xsl:for-each select="ancestor::*">
+                                                            <ancestor>
+                                                                <xsl:copy copy-namespaces="no">
+                                                                    <xsl:copy-of select="@*"/>
+                                                                </xsl:copy>
+                                                            </ancestor>
+                                                        </xsl:for-each>-\->
+                                            </xsl:copy>
+                                        </xsl:for-each>
+                                    </grapht:analyze_nodes.tree.childs.paths.to_childs.childs>
+                                    <!-\-</xsl:copy>
+                                    </xsl:for-each>-\->
+                                </grapht:analyze_nodes.tree.childs.paths.to_childs>
+                            </xsl:copy>
+                        </xsl:for-each>
+                    </grapht:analyze_nodes.tree.ancestors>
+                </xsl:copy>
+            </xsl:for-each>
+        </xsl:copy>
+    </xsl:template>-->
+    
+    <!--<xsl:template match="grapht:analyze_fid" mode="grapht:analyze_nodes.paths">
+        <!-\- szukam unkalnych parentow jakie mam, z najkrotsza sciezka
+        , a potem szukam dla nich jakie oni maja dzieci unikalne, najkrotsze sciezki
+        -\->
+        <xsl:message>#217 running grapht:analyze_nodes.paths with debug.filter=<xsl:value-of select="$debug.filter"/></xsl:message>
         <xsl:copy copy-namespaces="no">
             <xsl:copy-of select="@*"/>
-            <xsl:for-each-group select="grapht:analyze_nodes.tree" group-by="@fid">
-                <xsl:variable name="current.parent.fid" select="@fid"/>
+            <xsl:for-each select="grapht:analyze_nodes.tree" > <!-\- group-by="@fid" -\->
+                <xsl:message>#221 foreach grapht:analyze_nodes.tree @grapht:fid=<xsl:value-of select="@grapht:fid"/>; @grapht:pos=<xsl:value-of select="@grapht:pos"/>; group-by="@fid"=<xsl:value-of select="@fid"/>; @p5:primaryKey=<xsl:value-of select="@p5:primaryKey"/>; </xsl:message>
+                <xsl:variable name="current.parent.fid" select="@grapht:fid"/>
+                <xsl:variable name="current.parent.pos" select="@grapht:pos"/>
                 <xsl:copy copy-namespaces="no">
                     <xsl:copy-of select="@*"/>
                     <grapht:analyze_nodes.tree.ancestors>
-                        <xsl:for-each-group select="current-group()/grapht:analyze_nodes.tree.ancestors/*" group-by="@fid">
-                            <xsl:sort select="@fid"/><!-- grapht:ancestor.path.len -->
+                        <xsl:for-each select="grapht:analyze_nodes.tree.childs/*[  matches(@p5:primaryKey,$debug.filter) ]" ><!-\-group-by="@fid" FILTERING -\->
+                            <xsl:sort select="@grapht:fid"/>
+                            <xsl:variable name="current.analyze_nodes.tree.ancestors.fid" select="@grapht:fid"/>
+                            <!-\-<xsl:variable name="current.analyze_nodes.tree.ancestors.pos" select="@grapht:pos"/>-\->
+                            <xsl:message>#245 current.analyze_nodes.tree.ancestors.fid=<xsl:value-of select="@grapht:fid"/>; <!-\-@grapht:pos=<xsl:value-of select="@grapht:pos"/>;-\-></xsl:message>
+                            <!-\- grapht:ancestor.path.len -\->
                             <xsl:copy copy-namespaces="no">
                                 <xsl:copy-of select="@*"/>
-                                <grapht:analyze_nodes.tree.ancestors.paths.to_childs>
-                                    <xsl:for-each select="current-group()">
+                                <grapht:analyze_nodes.tree.childs.paths.to_childs>
+                                   <!-\- <xsl:for-each select="current-group()">
                                         <xsl:copy copy-namespaces="no">
-                                            <xsl:copy-of select="@*"/>
-                                            <grapht:analyze_nodes.tree.ancestors.paths.to_childs.childs>
+                                            <xsl:copy-of select="@*"/>-\->
+                                        <grapht:analyze_nodes.tree.childs.paths.to_childs.childs>
                                                 <xsl:attribute name="debug">#223 dla znalezionych ojcow, szukam innych dzieci </xsl:attribute>
-                                                <xsl:for-each select="root()//grapht:analyze_fid/grapht:analyze_nodes.tree[not(@fid=$current.parent.fid)]/grapht:analyze_nodes.tree.ancestors/*[@fid= current()/@fid]">
+                                                <xsl:for-each select="root()//grapht:analyze_fid/grapht:analyze_nodes.tree[not(@grapht:fid=$current.parent.fid)]/grapht:analyze_nodes.tree.childs/*[@grapht:fid = $current.analyze_nodes.tree.ancestors.fid      and matches(@p5:primaryKey,$debug.filter)]"> <!-\- FILTER -\->
                                                 <xsl:copy copy-namespaces="no">
                                                 <xsl:copy-of select="@*"/>
-                                                        <!--<xsl:for-each select="ancestor::*">
+                                                        <!-\-<xsl:for-each select="ancestor::*">
                                                             <ancestor>
                                                                 <xsl:copy copy-namespaces="no">
                                                                     <xsl:copy-of select="@*"/>
                                                                 </xsl:copy>
                                                             </ancestor>
-                                                        </xsl:for-each>-->
+                                                        </xsl:for-each>-\->
                                                 </xsl:copy>
                                             </xsl:for-each>
-                                            </grapht:analyze_nodes.tree.ancestors.paths.to_childs.childs>
-                                        </xsl:copy>
-                                    </xsl:for-each>
-                                </grapht:analyze_nodes.tree.ancestors.paths.to_childs>
+                                            </grapht:analyze_nodes.tree.childs.paths.to_childs.childs>
+                                        <!-\-</xsl:copy>
+                                    </xsl:for-each>-\->
+                                </grapht:analyze_nodes.tree.childs.paths.to_childs>
                             </xsl:copy>
-                        </xsl:for-each-group>
+                        </xsl:for-each>
                     </grapht:analyze_nodes.tree.ancestors>
                 </xsl:copy>
-            </xsl:for-each-group>
+            </xsl:for-each>
         </xsl:copy>
-    </xsl:template>
+    </xsl:template>-->
     
     
     <!--<xsl:template match="*" mode="grapht:analyze_nodes.paths.analyze_fid">
@@ -266,5 +575,92 @@
         </xsl:copy>
     </xsl:template>-->
     
+    <xsl:template match="*" mode="grapht:analyze_nodes.grapht.fid">
+        <xsl:copy copy-namespaces="no">
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates mode="grapht:fid" select="@*"/>
+            <xsl:apply-templates mode="#current"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    <xsl:template match="grapht:analyze_nodes.paths" mode="grapht:analyze_nodes.paths.unique">
+        <grapht:analyze_nodes.paths.unique>
+            <xsl:apply-templates mode="#current"/>
+        </grapht:analyze_nodes.paths.unique>
+    </xsl:template>
+    
+    
+    <xsl:template match="*" mode="grapht:analyze_nodes.paths.unique">
+        <xsl:copy copy-namespaces="no">
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates mode="grapht:fid" select="@*"/>
+            <xsl:apply-templates mode="grapht:analyze_nodes.paths.unique"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="grapht:analyze_fid" mode="grapht:analyze_nodes.paths.unique">
+        <xsl:copy copy-namespaces="no">
+            <xsl:copy-of select="@*"/>
+            
+            <xsl:for-each select="grapht:analyze_nodes.tree">
+                <xsl:copy copy-namespaces="no">
+                     <xsl:copy-of select="@*"/>
+                     <xsl:variable name="grapht:anchestor.count" select="@grapht:anchestor.count"/>
+                     <xsl:variable name="current.parent.fid" select="@grapht:fid"/>
+                     <xsl:message>#437 mode grapht:analyze_nodes.paths.unique @grapht:fid=<xsl:value-of select="@grapht:fid"/>;  </xsl:message>
+                      <xsl:copy-of select="grapht:analyze_nodes.tree.clousure"/>
+                      <grapht:analyze_nodes.tree.clousure.referred>
+                          <xsl:attribute name="debug.452.current.parent.fid" select="$current.parent.fid"/>
+                          <xsl:attribute name="grapht:anchestor.count" select="$grapht:anchestor.count"/>
+                          <xsl:for-each select="root()//*[grapht:analyze_nodes.tree.clousure[grapht:path[@grapht:fid = $current.parent.fid]]]">                          
+                              <xsl:copy copy-namespaces="no">
+                                  <xsl:attribute name="grapht:path.len" select=" number($grapht:anchestor.count) - number(@grapht:anchestor.count)"/>
+                                  <xsl:copy-of select="@*"/>
+                              </xsl:copy>
+                          </xsl:for-each>
+                      </grapht:analyze_nodes.tree.clousure.referred>
+                      
+                </xsl:copy>
+            </xsl:for-each>
+        </xsl:copy>
+    </xsl:template>
+    
+    
+    <xsl:template match="*" mode="grapht:analyze_nodes.tree.clousure.searched">
+        <xsl:param name="current.parent.fid" required="yes"/>
+        <xsl:param name="grapht:fid" required="yes"/>
+        <xsl:param name="grapht:path" select="1"/>
+        <xsl:choose>
+            <xsl:when test="descendant-or-self::*[@grapht:fid=$current.parent.fid ]"> <!-- descendant-or-self::*[@grapht:fid=$current.parent.fid ] --> <!-- key('descendant-or-self',$current.parent.fid) -->
+                <xsl:for-each select="descendant::*[@grapht:fid=$current.parent.fid ][1]"> <!-- descendant::*[@grapht:fid=$current.parent.fid ][1] --> <!-- key('descendant-or-self',$current.parent.fid)[1] -->
+                    <grapht:path_step>
+                        <!--<xsl:copy-of select="@grapht:fid"/>-->
+                        <xsl:copy-of select="@p5:primaryKey"/>
+                        <xsl:attribute name="local-name" select="local-name()"/>
+                    </grapht:path_step>
+                </xsl:for-each>
+                <grapht:path_info>
+                     <xsl:attribute name="grapht:when" select="'descendant-or-self'"/>
+                     <xsl:attribute name="grapht:path" select="$grapht:path"/>
+                     <xsl:attribute name="grapht:node_from" select="@grapht:fid"/>
+                </grapht:path_info>
+            </xsl:when>
+            <xsl:otherwise>
+                <grapht:path_step>
+                    <!--<xsl:copy-of select="@grapht:fid"/>-->
+                    <xsl:copy-of select="@p5:primaryKey"/>
+                    <xsl:attribute name="local-name" select="local-name()"/>
+                </grapht:path_step>
+                <!--<xsl:message>#552 going parent to search by grapht:path=<xsl:value-of select="$grapht:path"/>;</xsl:message>-->
+                <xsl:apply-templates mode="grapht:analyze_nodes.tree.clousure.searched" select="parent::node()">
+                    <xsl:with-param name="current.parent.fid" select="$current.parent.fid"/>
+                    <xsl:with-param name="grapht:fid" select="$grapht:fid"/>
+                    <xsl:with-param name="grapht:path" select="number($grapht:path) + 1"/>
+                </xsl:apply-templates>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
     
 </xsl:stylesheet>

+ 71 - 0
SE/schema/WPS_Functions/mapserver_gml_to_png/build.mapserver_gml_to_png.PRODUCT.xml

@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:mapserver_gml_to_png="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/default_db/mapserver_gml_to_png/mapserver_gml_to_png.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="mapserver_gml_to_png.PRODUCT">
+   <description>p5suis:say Created function mapserver_gml_to_png with prefix mapserver_gml_to_png by p5ant module</description>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="mapserver_gml_to_png.PRODUCT.ifdef.parent"
+              taskname="mapserver_gml_to_png.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="mapserver_gml_to_png.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.mapserver_gml_to_png"/>
+   <property name="mapserver_gml_to_png.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.mapserver_gml_to_png"/>
+   <property name="mapserver_gml_to_png.basedir"
+             value="${WPS_Functions.basedir}/mapserver_gml_to_png"/>
+   <property name="mapserver_gml_to_png.repository"
+      value="${WPS_Functions.repository}/mapserver_gml_to_png"/>
+   <property name="mapserver_gml_to_png.install"
+             value="${mapserver_gml_to_png.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/mapserver_gml_to_png"
+             name="mapserver_gml_to_png.temp"/>
+   <!--<property location="${mapserver_gml_to_png.basedir}/mapserver_gml_to_png.xsl"
+             name="mapserver_gml_to_png.xsl"/>-->
+   <property location="${mapserver_gml_to_png.basedir}/mapserver_gml_to_png.xsd"
+             name="mapserver_gml_to_png.xsd"/>
+   
+   <property location="${mapserver_gml_to_png.basedir}/build_mapserver_gml_to_png.xml"
+      name="mapserver_gml_to_png.build.xml"/>
+   
+   <property location="${mapserver_gml_to_png.basedir}/build_mapserver_gml_to_png.xml"
+      name="mapserver_gml_to_png"/>
+   
+   
+   
+   <!--<property location="${mapserver_gml_to_png.repository}/install_example.file"
+             name="mapserver_gml_to_png.install_example"/>-->
+   
+   
+  
+   <target depends="basedir"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="mapserver_gml_to_png.local.properties">
+         <propertyref prefix="mapserver_gml_to_png"/>
+         <mapper from="mapserver_gml_to_png.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="mapserver_gml_to_png.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="mapserver_gml_to_png.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="mapserver_gml_to_png.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="mapserver_gml_to_png.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   
+</project>

+ 1 - 1
SE/schema/WPS_Functions/mapserver_gml_to_png/build_mapserver_gml_to_png.xml

@@ -77,7 +77,7 @@
             <env key="PATH" path="$PATH:${PATH_ADD}"/>
         </exec>
         
-        <move file="${images.xml}" tofile="${dstfile}" failonerror="false"/>
+        <move file="${images.xml}" tofile="${dstfile}"/>
         <mkdir dir="${ditadir}/${fileindex}"/>
         <move todir="${ditadir}/${fileindex}" >
             <fileset dir="${mapserver_gml_to_png_basedir}/map">

+ 14 - 0
SE/schema/WPS_Functions/object_merge_ant_object/build.object_merge_ant_object.INSTALL.xml

@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." default="INSTALL" name="object_merge_ant_object.INSTALL">
+  <include file="build.object_merge_ant_object.PRODUCT.xml" />
+  <property location="${object_merge_ant_object.install}/install_example.file" name="object_merge_ant_object.INSTALL.install_example" />
+  <condition property="object_merge_ant_object.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
+    <not>
+      <available file="${object_merge_ant_object.repository}/install_example.file" />
+    </not>
+  </condition>
+  <target depends="INSTALL.install_example" name="INSTALL" />
+  <target if="object_merge_ant_object.INSTALL.install_example.ifdef" name="INSTALL.install_example">
+    <copy file="${object_merge_ant_object.INSTALL.install_example}" tofile="${object_merge_ant_object.install_example}" />
+  </target>
+</project>

+ 97 - 0
SE/schema/WPS_Functions/object_merge_ant_object/build.object_merge_ant_object.PRODUCT.xml

@@ -0,0 +1,97 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:object_merge_ant_object="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="object_merge_ant_object.PRODUCT">
+   <description>p5suis:say Created function object_merge_ant_object with prefix object_merge_ant_object by p5ant module</description>
+   
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="object_merge_ant_object.PRODUCT.ifdef.parent"
+              taskname="object_merge_ant_object.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="object_merge_ant_object.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.object_merge_ant_object"/>
+   <property name="object_merge_ant_object.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.object_merge_ant_object"/>
+   <property name="object_merge_ant_object.basedir"
+             value="${WPS_Functions.basedir}/object_merge_ant_object"/>
+   <property name="object_merge_ant_object.repository"
+             value="${WPS_Functions.repository}/object_merge_ant_object"/>
+   <property name="object_merge_ant_object.install"
+             value="${object_merge_ant_object.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/object_merge_ant_object"
+             name="object_merge_ant_object.temp"/>
+   
+   
+   <property location="${object_merge_ant_object.basedir}/object_merge_ant_object.merge.xsl"
+          name="object_merge_ant_object.merge.xsl"/>
+   <property location="${object_merge_ant_object.basedir}/object_merge_ant_object.xsl"
+      name="object_merge_ant_object.xsl"/>
+   <property location="${object_merge_ant_object.basedir}/build_object_merge_ant_object.xml"
+      name="object_merge_ant_object.build.xml"/>
+   <property location="${object_merge_ant_object.basedir}/object_merge_ant_object.xsd"
+             name="object_merge_ant_object.xsd"/>
+   <property location="${object_merge_ant_object.basedir}/object_merge_ant_object.include.structure.xml"
+             name="object_merge_ant_object.include.structure.xml"/>
+   <property location="${object_merge_ant_object.basedir}/object_merge_ant_object.include.xsl.p5xsls.xml"
+             name="object_merge_ant_object.include.xsl.p5xsls.xml"/>
+   <property location="${object_merge_ant_object.repository}/install_example.file"
+             name="object_merge_ant_object.install_example"/>
+   
+   
+   <property name="object_merge_ant_object.from_remote_ant_object.files.index.xml" location="${object_merge_ant_object.repository}/object_merge_ant_object.from_remote_ant_object.files.index.xml"/>
+   <property name="object_merge_ant_object.from_remote_ant_object.files.index_fileset.xml" location="${object_merge_ant_object.repository}/object_merge_ant_object.from_remote_ant_object.files.index_fileset.xml"/>
+   <property name="object_merge_ant_object.from_remote_ant_object.files.index_analyzed.xml" location="${object_merge_ant_object.repository}/object_merge_ant_object.from_remote_ant_object.files.index_analyzed.xml"/>
+   <property name="object_merge_ant_object.merge.try.build.xml" location="${object_merge_ant_object.repository}/object_merge_ant_object.merge.try.build.xml"/>
+   <property name="object_merge_ant_object.merge.try.build.result.xml" location="${object_merge_ant_object.repository}/object_merge_ant_object.merge.try.build.result.xml"/>
+   <property name="object_merge_ant_object.merge.try.build.result.out.xml" location="${object_merge_ant_object.repository}/object_merge_ant_object.merge.try.build.result.out.xml"/>
+   
+   
+   
+   <target depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="object_merge_ant_object.local.properties">
+         <propertyref prefix="object_merge_ant_object"/>
+         <mapper from="object_merge_ant_object.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="object_merge_ant_object.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="object_merge_ant_object.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="object_merge_ant_object.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="object_merge_ant_object.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly"
+               file="${object_merge_ant_object.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="object_merge_ant_object"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 7 - 0
SE/schema/WPS_Functions/object_merge_ant_object/build.object_merge_ant_object.SYSTEM.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="object_merge_ant_object.SYSTEM">
+  <include file="../build.WPS_Functions.SYSTEM.xml" optional="true" />
+  <include as="PRODUCT" file="build.object_merge_ant_object.PRODUCT.xml" optional="true" />
+  <property location="${p5build_SE.SYSTEM.StandardOutPath}/object_merge_ant_object.log" name="object_merge_ant_object.SYSTEM.StandardOutPath" />
+  <property location="${p5build_SE.SYSTEM.StandardErrorPath}/object_merge_ant_object.log" name="object_merge_ant_object.SYSTEM.StandardErrorPath" />
+</project>

+ 226 - 0
SE/schema/WPS_Functions/object_merge_ant_object/build_object_merge_ant_object.xml

@@ -0,0 +1,226 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:object_merge_ant_object="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd"
+         basedir="../../."
+         default="default"
+         name="object_merge_ant_object">
+   
+   <description>Podobnie do build_object_install_se_ant_object.xml- tylko, ze merge bardziej reczne</description>
+   
+   <include as="PRODUCT" file="build.object_merge_ant_object.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.object_merge_ant_object.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.object_merge_ant_object.INSTALL.xml"/>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
+   <include file="../documentation_generator/build.p5dg.PRODUCT.xml"/>
+   <include file="../object_modeling_new/build_object_modeling_new.xml"  as="object_modeling_new"/>
+   <!--<include file="../object_modeling_new/build.object_modeling_new.PRODUCT.xml"/>-->
+   <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL,from_remote_ant_object" name="default"/>
+   
+   
+   
+   
+   <target name="from_remote_ant_object.clean">
+      <delete file="${object_merge_ant_object.from_remote_ant_object.files.index.xml}"/>
+      <delete file="${object_merge_ant_object.from_remote_ant_object.files.index_fileset.xml}"/>
+      <delete file="${object_merge_ant_object.from_remote_ant_object.files.index_analyzed.xml}"/>
+      <delete file="${object_merge_ant_object.merge.try.xml}"/>
+   </target>
+   
+   <target name="from_remote_ant_object" description="To merge files from from_remote_ant_object ${remote.ant-object}">
+      
+      <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
+         <property name="p5suis:say_text" value="Indexing files from remote ant object repository" />
+      </ant>
+      
+      <fileset id="object_merge_ant_object.from_remote_ant_object.files.index.fileset" dir="${remote.ant-object}"  excludes="(.*recurse_cache.*)|(.*/temp/.*)"  >
+         <include name="**/*.xsd"/>
+         <exclude name="**/*build.xml"/>
+      </fileset>
+      
+      <property name="object_merge_ant_object.from_remote_ant_object.files.index.fileset" refid="object_merge_ant_object.from_remote_ant_object.files.index.fileset"/>
+            
+      <echo>#32 saved to $object_merge_ant_object.from_remote_ant_object.files.index.xml = ${object_merge_ant_object.from_remote_ant_object.files.index.xml}</echo>
+      <echoxml file="${object_merge_ant_object.from_remote_ant_object.files.index.xml}" namespacepolicy="all">
+         <object_merge_ant_object.from_remote_ant_object.files.index.xml xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd">
+            ${object_merge_ant_object.from_remote_ant_object.files.index.fileset}
+          </object_merge_ant_object.from_remote_ant_object.files.index.xml>
+      </echoxml>
+      
+      <xslt basedir="${object_merge_ant_object.temp}" style="${p5dg.documentation_generator.xsl}" in="${object_merge_ant_object.from_remote_ant_object.files.index.xml}"   out="${object_merge_ant_object.from_remote_ant_object.files.index_fileset.xml}"  force="true"  >
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}p5dg.documentation.files.index_fileset.xml"/>
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="p5build_SE.build" expression="${p5build_SE.build}"/>
+         <param name="p5dg.repository.dita" expression="${object_merge_ant_object.repository}"/>
+         <param name="p5dg.temp" expression="${object_merge_ant_object.temp}"/>
+         <param name="p5dg.repository" expression="${object_merge_ant_object.repository}"/>
+         <param name="p5dg.documentation.files.index.root_dir" expression="${remote.ant-object}"/>
+         <param name="p5dg.documentation.files.index.excludes.regex" expression=""/>
+      </xslt>
+      
+      <xslt basedir="${object_merge_ant_object.temp}" style="${p5dg.documentation_generator.xsl}" in="${object_merge_ant_object.from_remote_ant_object.files.index_fileset.xml}"   out="${object_merge_ant_object.from_remote_ant_object.files.index_analyzed.xml}" force="true"  >
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd}p5dg.documentation.files.index_analyzed.xml"/>
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="p5build_SE.build" expression="${p5build_SE.build}"/>
+         <param name="p5dg.repository.dita" expression="${object_merge_ant_object.repository}"/>
+         <param name="p5dg.temp" expression="${object_merge_ant_object.temp}"/>
+         <param name="p5dg.repository" expression="${object_merge_ant_object.repository}"/>
+         <param name="p5dg.documentation.files.index.root_dir" expression="${remote.ant-object}"/>
+         <param name="p5dg.documentation.files.index.excludes.regex" expression="none"/>
+      </xslt>
+   </target>
+   
+   
+   <target name="object_merge_ant_object.merge.try.xml" > <!-- depends="from_remote_ant_object" -->
+      <xslt basedir="${object_merge_ant_object.temp}" style="${object_merge_ant_object.xsl}" in="${object_merge_ant_object.from_remote_ant_object.files.index_analyzed.xml}"   out="${object_merge_ant_object.merge.try.build.xml}" force="true"  >
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd}object_merge_ant_object.merge.try.build.xml"/>
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <param name="remote.ant-object" expression="${remote.ant-object}"/>
+         <param name="basedir" expression="${basedir}"/>
+         <param name="object_modeling_new.build.xml" expression="${object_modeling_new.build.xml}"/>
+         <param name="object_merge_ant_object.build.xml" expression="${object_merge_ant_object.build.xml}"/>
+         
+      </xslt>
+      
+      <!--<exec executable="open">
+         <arg file="${object_merge_ant_object.merge.try.build.xml}"/>
+      </exec>-->
+      <!--<ant antfile="${object_merge_ant_object.merge.try.build.xml}"/>-->
+      <antcall target="object_modeling_new.objectMergeAntObjectTry">
+         <param name="objectMergeAntObjectTry.build.xml" value="${object_merge_ant_object.merge.try.build.xml}"/>
+      </antcall>
+   </target>
+   
+   
+   <taskdef resource="net/sf/antcontrib/antlib.xml"/>
+   
+   <macrodef name="objectMergeAntObjectTry">
+      <attribute name="NamespaceObjectInstanceTable"/>
+      <attribute name="NamespaceDatabaseStorageDefinitionPrefix"/>
+      <attribute name="quessPath"/>
+      <attribute name="dir"/>
+      <attribute name="fileName"/>
+      <attribute name="filePath"/>
+      <element name="objectMergeAntObjectTry" />
+      <sequential>
+         <echo>#104 will run @NamespaceObjectInstanceTable = @{NamespaceObjectInstanceTable} 
+            @NamespaceDatabaseStorageDefinitionPrefix = @{NamespaceDatabaseStorageDefinitionPrefix}
+            @filePath = @{filePath}
+            
+            target object_modeling_new.object_modeling_new_by_xml_schema
+            with params:
+            $prototype_object_namespace = ${prototype_object_namespace}
+            $TargetNamespaceBindingsApi = ${TargetNamespaceBindingsApi}
+            @NamespaceDatabaseStorageDefinitionPrefix = @{NamespaceDatabaseStorageDefinitionPrefix}
+            
+            $targetNamespace.base = ${targetNamespace.base}
+            @NamespaceObjectInstanceTable = @{NamespaceObjectInstanceTable}
+            $NamespaceObjectInstanceType == table
+            $targetNamespace.base = ${targetNamespace_DEFAULTS}
+            $prototype_object_namespace =  ${prototype_object_namespace.default.default}
+            $object_modeling.Error.Handling == ${object_modeling.Error.Handling} ==ELSE
+            $new_object_by_prototype_result.xml = ${object_merge_ant_object.merge.try.build.result.xml}
+            $debug = 10
+         </echo>
+         <!--<ant antfile="${object_modeling_new.build.xml}" target="object_modeling_new_by_xml_schema">
+            <property name="NamespaceObjectInstanceTable" value="@{NamespaceObjectInstanceTable}"/>
+            <property name="prototype_object_namespace" value="${prototype_object_namespace.default.default}"/>
+            <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindingsApi}"/>
+            <property name="NamespaceDatabaseStorageDefinitionPrefix" value="@{NamespaceDatabaseStorageDefinitionPrefix}"/>
+            <property name="NamespaceObjectInstanceType" value="${NamespaceObjectInstanceType}"/>
+            <property name="targetNamespace.base" value="${targetNamespace_DEFAULTS}"/>
+            <property name="NamespaceObjectInstanceType" value="table"/>
+            <property name="object_modeling.Error.Handling" value="ELSE"/>
+            <property name="new_object_by_prototype_result.xml" value="${object_merge_ant_object.merge.try.build.result.xml}"/>
+            <property name="debug" value="10"/>
+         </ant>-->
+         
+         <xslt basedir="${object_merge_ant_object.temp}" style="${object_merge_ant_object.merge.xsl}" in="${procesy5_system_schema.xml}"   out="${object_merge_ant_object.merge.try.build.result.xml}" force="true"  >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+               <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+               <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd}object_merge_ant_object.merge.try.build.result.xml"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+            <param name="to.merge.xsd" expression="@{filePath}"/>
+            <param name="prototype_object_namespace" expression="${prototype_object_namespace}"/>
+            <param name="TargetNamespaceBindingsApi" expression="${TargetNamespaceBindingsApi}"/>
+            <param name="NamespaceDatabaseStorageDefinitionPrefix" expression="@{NamespaceDatabaseStorageDefinitionPrefix}"/>
+            <param name="NamespaceObjectInstanceType" expression="${NamespaceObjectInstanceType}"/>
+            <param name="NamespaceObjectInstanceTable" expression="@{NamespaceObjectInstanceTable}"/>
+            <!--<param name="template_object.xml_location" expression="${template_object.xml_location.xml}"/>-->
+            <param name="object_modeling_new_basedir_repository" expression="${object_modeling_new_basedir_repository}"/>
+            <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
+            <param name="default_db.xml" expression="${default_db.xml}"/>
+            <param name="targetNamespace.base" expression="${targetNamespace_DEFAULTS}"/>
+            <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
+            <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
+            <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
+            <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${p5opr:detect_objects_parent_relations.local}"/>
+            <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
+            <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
+            <param name="object_modeling.Error.Handling" expression="${object_modeling.Error.Handling}"/>
+            <param name="debug" expression="${debug}"/>
+            <param name="object_merge_ant_object.merge.try.build.result.out.xml" expression="${object_merge_ant_object.merge.try.build.result.out.xml}"/>
+            
+         </xslt>
+         
+         
+         <exec executable="open">
+            <arg file="${object_merge_ant_object.merge.try.build.result.xml}"/>
+         </exec>
+         <!--<antcall target="object_merge_ant_object.objectMergeAntObjectTry">
+            <param name="NamespaceObjectInstanceTable" value="@{NamespaceObjectInstanceTable}"/>
+            <param name="prototype_object_namespace" value="${prototype_object_namespace}"/>
+            <param name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindingsApi}"/>
+            <param name="NamespaceDatabaseStorageDefinitionPrefix" value="@{NamespaceDatabaseStorageDefinitionPrefix}"/>
+            <param name="NamespaceObjectInstanceType" value="${NamespaceObjectInstanceType}"/>
+            <param name="targetNamespace.base" value="${targetNamespace.base}"/>
+         </antcall>-->
+      </sequential>
+   </macrodef>
+  
+   <!--<target name="objectMergeAntObjectTry">
+      <input addproperty="NamespaceObjectInstanceTable" />
+      <input addproperty="prototype_object_namespace" />
+      <input addproperty="TargetNamespaceBindingsApi" />
+      <input addproperty="NamespaceDatabaseStorageDefinitionPrefix" />
+      <input addproperty="NamespaceObjectInstanceType" />
+      <input addproperty="targetNamespace.base" />
+      <echo>#144 will ant ${object_modeling_new.build.xml}
+         target object_modeling_new.object_modeling_new_by_xml_schema
+         with params:
+         $prototype_object_namespace = ${prototype_object_namespace}
+         $TargetNamespaceBindingsApi = ${TargetNamespaceBindingsApi}
+         $NamespaceDatabaseStorageDefinitionPrefix = ${NamespaceDatabaseStorageDefinitionPrefix}
+         $NamespaceObjectInstanceType = ${NamespaceObjectInstanceType}
+         $targetNamespace.base = ${targetNamespace_DEFAULTS}
+      </echo>
+      <ant antfile="${object_modeling_new.build.xml}" target="object_modeling_new.object_modeling_new_by_xml_schema">
+         <property name="NamespaceObjectInstanceTable" value="${NamespaceObjectInstanceTable}"/>
+         <property name="prototype_object_namespace" value="${prototype_object_namespace}"/>
+         <property name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindingsApi}"/>
+         <property name="NamespaceDatabaseStorageDefinitionPrefix" value="${NamespaceDatabaseStorageDefinitionPrefix}"/>
+         <property name="NamespaceObjectInstanceType" value="${NamespaceObjectInstanceType}"/>
+         <property name="targetNamespace.base" value="${targetNamespace_DEFAULTS}"/>
+      </ant>
+      <!-\-<antcall target="object_modeling_new.object_modeling_new_by_xml_schema">
+         <param name="NamespaceObjectInstanceTable" value="${NamespaceObjectInstanceTable}"/>
+         <param name="prototype_object_namespace" value="${prototype_object_namespace}"/>
+         <param name="TargetNamespaceBindingsApi" value="${TargetNamespaceBindingsApi}"/>
+         <param name="NamespaceDatabaseStorageDefinitionPrefix" value="${NamespaceDatabaseStorageDefinitionPrefix}"/>
+         <param name="NamespaceObjectInstanceType" value="${NamespaceObjectInstanceType}"/>
+         <param name="targetNamespace.base" value="${targetNamespace.base}"/>
+      </antcall>-\->
+   </target>-->
+   
+   
+</project>

+ 901 - 0
SE/schema/WPS_Functions/object_merge_ant_object/object_merge_ant_object.merge.xsl

@@ -0,0 +1,901 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+    xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+    xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+    xmlns:object_merge_ant_object="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd"
+    xmlns:BIpa="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/BI_patterns_anal.xsd"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    <xsl:param name="NamespaceDatabaseStorageDefinitionPrefix"/>
+    <xsl:param name="NamespaceObjectInstanceTable"/>
+    <xsl:param name="to.merge.xsd"/>
+    <xsl:param name="object_merge_ant_object.merge.try.build.result.out.xml" required="yes"/>
+    
+    <xsl:variable name="to.merge.xsd.doc" select="doc($to.merge.xsd)"/>
+    
+    
+    
+    
+    
+    <xsl:template match="system_cache__appinfo:get_all_xsd_list" mode="object_merge_ant_object:object_merge_ant_object.merge.try.build.result.xml">
+        <object_merge_ant_object:object_merge_ant_object.merge.try.build.result.xml>
+            <xsl:variable name="source.targetNamespace" select="$to.merge.xsd.doc//@targetNamespace"/>
+            <xsl:variable name="dest.targetNamespace" select=".//*[@targetNamespace = $source.targetNamespace]/@targetNamespace"/>
+            <res>
+                <xsl:attribute name="source.targetNamespace" select="$source.targetNamespace"/>
+                <xsl:attribute name="dest.targetNamespace" select="$dest.targetNamespace"/>
+            </res>
+            
+            <xsl:variable name="dest.schema" select=".//schema[@targetNamespace = $source.targetNamespace]" xpath-default-namespace="http://www.w3.org/2001/XMLSchema"/>
+            
+            
+            
+            <xsl:variable name="BIpa:dest.schema.numerate">
+                <BIpa:dest.schema.numerate>
+                    <xsl:apply-templates mode="object_merge_ant_object:numerate" select="$dest.schema"/>
+                </BIpa:dest.schema.numerate>
+            </xsl:variable>
+            
+            <xsl:variable name="BIpa:src.schema.numerate">
+                <BIpa:src.schema.numerate>
+                    <xsl:apply-templates mode="object_merge_ant_object:numerate" select="$to.merge.xsd.doc"/>
+                </BIpa:src.schema.numerate>
+            </xsl:variable>
+            
+            <!--<dest.schema.numerate>
+                <xsl:copy-of select="$dest.schema.numerate"/>
+            </dest.schema.numerate>-->
+            
+            
+            <xsl:copy-of select="$BIpa:dest.schema.numerate"/>
+            <xsl:copy-of select="$BIpa:src.schema.numerate"/>
+            
+            
+            <xsl:variable name="BIpa:compare_to.dest.schema">
+                <BIpa:compare_to.dest.schema>
+                    <xsl:apply-templates select="$BIpa:dest.schema.numerate" mode="object_merge_ant_object:compare_root">
+                        <xsl:with-param name="ext.schema.numerate" select="$BIpa:src.schema.numerate/*"/>
+                        <xsl:with-param name="object_merge_ant_object:dst.numerate" select="1"/>
+                    </xsl:apply-templates>
+                </BIpa:compare_to.dest.schema>
+            </xsl:variable>
+            <xsl:copy-of select="$BIpa:compare_to.dest.schema"/>
+            
+            
+            <!--<xsl:variable name="BIpa:compare_to.dest.schema2">-->
+                <!--<BIpa:compare_to.dest.schema2>
+                    <xsl:apply-templates select="$BIpa:compare_to.dest.schema" mode="BIpa:compare_to.dest.schema2">
+                        <xsl:with-param name="ext.schema.numerate" select="$BIpa:src.schema.numerate/*"/>
+                        <xsl:with-param name="object_merge_ant_object:dst.numerate" select="1"/>
+                    </xsl:apply-templates>
+                </BIpa:compare_to.dest.schema2>-->
+            <!--</xsl:variable>-->
+            
+            <xsl:variable name="BIpa:analyze1">
+                <xsl:apply-templates mode="BIpa:analyze1" select="$BIpa:compare_to.dest.schema">
+                        <!--<xsl:with-param name="BIpa:compare_to.dest.schema" select="$BIpa:compare_to.dest.schema/*"/>--><!-- potrzebne aby wiedziec co weryfikowac -->
+                    </xsl:apply-templates>
+            </xsl:variable>
+            
+            <xsl:copy-of select="$BIpa:analyze1"/>
+            
+            <!--<xsl:variable name="BIpa:analyze2">
+                <BIpa:analyze2>
+                    <xsl:apply-templates mode="BIpa:analyze2" select="$BIpa:analyze1">
+                        <xsl:with-param name="BIpa:compare_to.dest.schema" select="$BIpa:compare_to.dest.schema/*"/><!-\- potrzebne aby wiedziec co weryfikowac -\->
+                    </xsl:apply-templates>
+                </BIpa:analyze2>
+            </xsl:variable>-->
+            
+            <!--<xsl:copy-of select="$BIpa:analyze2"/>-->
+            
+            <xsl:variable name="BIpa:mix">
+                <BIpa:mix>
+                    <xsl:apply-templates mode="BIpa:mix" select="$BIpa:analyze1">
+                        <!--<xsl:with-param name="BIpa:compare_to.dest.schema" select="$BIpa:compare_to.dest.schema/*"/>--><!-- potrzebne aby wiedziec co weryfikowac -->
+                    </xsl:apply-templates>
+                </BIpa:mix>
+            </xsl:variable>
+            
+            <xsl:copy-of select="$BIpa:mix"/>
+            
+            <xsl:result-document href="{$object_merge_ant_object.merge.try.build.result.out.xml}">
+                <object_merge_ant_object.merge.try.build.result.out.xml>
+                    <xsl:apply-templates mode="object_merge_ant_object.merge.try.build.result.out.xml" select="$BIpa:mix"/>
+                </object_merge_ant_object.merge.try.build.result.out.xml>
+            </xsl:result-document>
+            
+            <compare_from></compare_from>
+            <!--<to.merge.xsd.doc>
+                <xsl:copy-of select="$to.merge.xsd.doc"/>
+            </to.merge.xsd.doc>-->
+        </object_merge_ant_object:object_merge_ant_object.merge.try.build.result.xml>
+    </xsl:template>
+    
+    
+    <xsl:template mode="object_merge_ant_object.merge.try.build.result.out.xml" match="*">
+        <xsl:apply-templates mode="#current"/>
+    </xsl:template>
+    
+    <xsl:template mode="object_merge_ant_object.merge.try.build.result.out.xml" match="BIpa:for_src_rev">
+        <xsl:for-each select="BIpa:for_src_t">
+            <xsl:element name="{@BIpa:el.name}">
+                <xsl:attribute name="BIpa:src.id" select="@BIpa:id"/>
+                <xsl:for-each select="BIpa:for_dst_t[@BIpa:el.name]">
+                    <!--<xsl:element name="{@BIpa:el.name}">-->
+                    <xsl:attribute name="BIpa:dst.id" select="@BIpa:id"/>
+                        <xsl:apply-templates mode="#current"/>
+                    <!--</xsl:element>-->
+                </xsl:for-each>
+            </xsl:element>
+        </xsl:for-each>
+        
+    </xsl:template>
+    
+    
+    
+    
+    
+    <xsl:template mode="BIpa:mix" match="*">
+        <xsl:apply-templates mode="#current"/>
+    </xsl:template>
+    
+    <xsl:template mode="BIpa:mix" match="BIpa:for_src_rev">
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:variable name="avg.sum" select="avg(BIpa:for_src_t/BIpa:for_dst_t/BIpa:analiz.curr/@BIpa:sum.ok)"/>
+            <xsl:for-each select="BIpa:for_src_t">
+            <xsl:copy>
+                <xsl:copy-of select="@*"/>
+                <xsl:variable name="max.sum" select="max(BIpa:for_dst_t/BIpa:analiz.curr/@BIpa:sum.ok)"/>
+                <xsl:variable name="max.sum.dst.pos" select="BIpa:for_dst_t[BIpa:analiz.curr/@BIpa:sum.ok=$max.sum][1]/@BIpa:for_dst_rev.pos"/>
+                <xsl:attribute name="max.sum" select="$max.sum"/>
+                <xsl:attribute name="max.sum.dst.pos" select="$max.sum.dst.pos"/>
+                <xsl:attribute name="max.sum.test" select="BIpa:for_dst_t/BIpa:analiz.curr/@BIpa:sum.ok"/>
+                <xsl:copy-of select="BIpa:analiz.curr"/>
+                <!--<DEBUG134><xsl:copy-of select="."/></DEBUG134>-->
+                
+                <xsl:variable name="passed.max.el">
+                    <passed.max.el>
+                        <xsl:for-each select="BIpa:for_dst_t">
+                            <xsl:choose>
+                                <xsl:when test="@BIpa:for_dst_rev.pos = $max.sum.dst.pos">
+                                    <xsl:copy>
+                                        <xsl:copy-of select="@*"/>
+                                        
+                                    </xsl:copy>
+                                </xsl:when>
+                            </xsl:choose>
+                        </xsl:for-each>
+                    </passed.max.el>
+                </xsl:variable>
+                <xsl:copy-of select="$passed.max.el"/>
+                <xsl:variable name="BIpa:ok.numerate.src">
+                    <BIpa:ok.numerate.src.list>
+                        <xsl:for-each select="BIpa:for_dst_t/BIpa:attrs/BIpa:test.vectors/vector[number(@BIpa:ok.numerate.src) &gt; 0]"  > <!--  group-by="@BIpa:vector.offset.dst + ../../../@BIpa:for_dst_rev.pos"-->
+                            <vector>
+                                <xsl:choose>
+                                    <xsl:when test="$passed.max.el/passed.max.el/BIpa:for_dst_t[@BIpa:id = current()/../../../../@BIpa:id]">
+                                        <!--<xsl:copy-of select="@BIpa:vector.offset.dst"/>-->
+                                        <xsl:attribute name="hit" select="../../../../@BIpa:id"/>
+                                    </xsl:when>
+                                </xsl:choose>
+                                <xsl:copy-of select="@BIpa:vector.offset.src"/>
+                                <xsl:copy-of select="@BIpa:vector.offset.dst"/>
+                                <xsl:copy-of select="../../../@BIpa:id"/>
+                                <xsl:copy-of select="../../../@BIpa:el.name"/>
+                                <xsl:copy-of select="../../../../@BIpa:for_src_rev.pos"/>
+                                <xsl:copy-of select="../../../@BIpa:for_dst_rev.pos"/>
+                                <xsl:attribute name="BIpa:cons.dst.pos.to.dst.offset" select="@BIpa:vector.offset.dst + ../../../@BIpa:for_dst_rev.pos"/>
+                            </vector>
+                        </xsl:for-each>
+                    </BIpa:ok.numerate.src.list>
+                </xsl:variable>
+                <xsl:copy-of select="$BIpa:ok.numerate.src"/>
+                <xsl:for-each select="BIpa:for_dst_t">
+                    <xsl:choose>
+                        <xsl:when test="@BIpa:for_dst_rev.pos = $max.sum.dst.pos">
+                            <xsl:copy>
+                                <xsl:copy-of select="@*"/>
+                                <xsl:attribute name="BIpa:max" select="'Max'"/>
+                                <xsl:copy-of select="BIpa:attrs"/>
+                                <xsl:apply-templates mode="#current"/>
+                            </xsl:copy>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:copy>
+                                <xsl:attribute name="BIpa:ignored" select="@BIpa:id"/>
+                            </xsl:copy>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    
+                </xsl:for-each>
+            </xsl:copy>
+        </xsl:for-each>
+        </xsl:copy>
+    </xsl:template>
+    
+    <!--
+    <xsl:template match="*" mode="BIpa:compare_to.dest.schema2"><!-\- sumujemy warianty? -\->
+        <xsl:param name="BIpa:pathScen"/>
+        <xsl:param name="BIpa:pathPoints" select="1"/>
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:apply-templates mode="BIpa:compare_to.dest.schema2">
+                <xsl:with-param name="BIpa:pathScen" select="$BIpa:pathScen"/>
+                <xsl:with-param name="BIpa:pathPoints" select="$BIpa:pathPoints"/>
+            </xsl:apply-templates>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template match="BIpa:for_dst" mode="BIpa:compare_to.dest.schema2"><!-\- sumujemy warianty? -\->
+        <xsl:param name="BIpa:pathScen"/>
+        <xsl:param name="BIpa:pathPoints" select="0"/>
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+            <xsl:variable name="BIpa:points" select="sum(BIpa:attrs/BIpa:attr/@BIpa:ok.name_and_val) + sum(BIpa:attrs/BIpa:attr/@BIpa:ok.name) + sum(BIpa:attrs/BIpa:attr/@BIpa:ok.numerate)   "/> <!-\- v -\->
+            <xsl:choose>
+                <xsl:when test="$BIpa:points &gt; 0 or 1 = 2">
+                    <BIpa:points>
+                        <xsl:attribute name="BIpa:points" select="$BIpa:points"/>
+                        <xsl:attribute name="BIpa:pathScen" select="concat($BIpa:pathScen,'/',@BIpa:id)"/>
+                        <xsl:apply-templates mode="BIpa:compare_to.dest.schema2">
+                            <xsl:with-param name="BIpa:pathScen" select="concat($BIpa:pathScen,'/',@BIpa:id)"/>
+                            <xsl:with-param name="BIpa:pathPoints" select="$BIpa:pathPoints + $BIpa:points"/>
+                        </xsl:apply-templates>
+                    </BIpa:points>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:apply-templates mode="BIpa:compare_to.dest.schema2">
+                        <xsl:with-param name="BIpa:pathScen" select="concat($BIpa:pathScen,'/',@BIpa:id)"/>
+                        <xsl:with-param name="BIpa:pathPoints" select="$BIpa:pathPoints"/>
+                    </xsl:apply-templates> 
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:copy>
+    </xsl:template>
+    -->
+    
+    <xsl:template mode="BIpa:analyze2" match="*"><!-- Szukamy pewnych zaglebien -->
+        <xsl:copy>
+            <xsl:copy-of select="@*"/>
+        <xsl:apply-templates mode="#current"/>
+        </xsl:copy>
+    </xsl:template>
+    
+    <xsl:template mode="BIpa:analyze2" match="BIpa:analyze1|BIpa:attr"><!-- Szukamy pewnych zaglebien -->
+            <xsl:apply-templates mode="#current"/>
+    </xsl:template>
+    
+    <xsl:template mode="BIpa:analyze2" match="BIpa:for_src_t"><!-- Szukamy pewnych zaglebien -->
+        <xsl:choose>
+            <xsl:when test="./BIpa:for_dst/BIpa:analiz.curr">
+                <xsl:copy>
+                    <xsl:copy-of select="@*"/>
+                    <xsl:apply-templates mode="#current"/>
+                </xsl:copy>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template mode="BIpa:analyze2" match="BIpa:for_dst"><!-- Szukamy pewnych zaglebien -->
+        <xsl:choose>
+            <xsl:when test="./BIpa:analiz.curr">
+                <xsl:copy>
+                    <xsl:copy-of select="@*"/>
+                    <xsl:apply-templates mode="#current"/>
+                </xsl:copy>
+            </xsl:when>
+        </xsl:choose>
+    </xsl:template>
+    
+    
+    <xsl:template mode="BIpa:analyze2" match="BIpa:for_dst_t"><!-- Szukamy pewnych zaglebien -->
+        
+            <!--<xsl:for-each select="BIpa:for_dst_t">-->
+               <xsl:copy>
+                   <xsl:copy-of select="@*"/>
+                   <xsl:variable name="BIpa:id.src" select="@BIpa:id"/>
+                       <xsl:choose>
+                           <xsl:when test=" descendant::*[ contains(@BIpa:id.src.path,$BIpa:id.src)]">
+                               <BIpa:OK_COINTAINS_PATH>
+                                   <xsl:attribute name="BIpa:id.src" select="$BIpa:id.src"/>
+                                   
+                                   <!-- warunki mergowania -->
+                                   <!-- todo warunkowosc jak sie rozlozy cala suma wezlow w jakiej kofniguracji bedzie najwieksze podobienstwo -->
+                                   <xsl:choose>
+                                       <xsl:when test="count(BIpa:for_src_t/BIpa:for_dst/BIpa:analiz.curr) &gt; 1">
+                                           <xsl:variable name="BIpa:ToMergeTooManyMaxSimilarVal" select="max(BIpa:for_src_t/BIpa:for_dst/BIpa:analiz.curr/@BIpa:sum.ok)"/>
+                                           <BIpa:ToMergeTooMany>
+                                               <xsl:attribute name="BIpa:ToMergeTooManyCount" select="count(BIpa:for_src_t/BIpa:for_dst/BIpa:analiz.curr)"/>
+                                               <xsl:attribute name="BIpa:ToMergeTooManyMaxSimilarVal" select="$BIpa:ToMergeTooManyMaxSimilarVal"/>
+                                           </BIpa:ToMergeTooMany>
+                                       </xsl:when>
+                                   </xsl:choose>
+                                   
+                                   
+                                   
+                                   
+                                   <xsl:apply-templates mode="#current"/>
+                               </BIpa:OK_COINTAINS_PATH>
+                           </xsl:when>
+                           <xsl:otherwise>
+                               <BIpa:NOT_COINTAINS_PATH>
+                                   <xsl:attribute name="BIpa:id.src" select="$BIpa:id.src"/>
+                                   <!--<xsl:apply-templates mode="#current"/>-->
+                               </BIpa:NOT_COINTAINS_PATH>
+                           </xsl:otherwise>
+                       </xsl:choose>
+                   
+               </xsl:copy>
+            <!--</xsl:for-each>-->
+        
+    </xsl:template>
+    
+    
+    <xsl:template mode="BIpa:analyze1" match="*">
+        <xsl:param name="BIpa:id.src.path"/>
+        <xsl:apply-templates mode="#current">
+            <xsl:with-param name="BIpa:id.src.path" select="$BIpa:id.src.path"/>
+        </xsl:apply-templates>
+    </xsl:template>
+    
+    
+    <xsl:template mode="BIpa:analyze1" match="BIpa:for_src_rev"><!-- analizujemy kawalki - przesuwamy i sprawdzamy czy pasuja -->
+        <xsl:param name="BIpa:compare_to.dest.schema"/>
+        <xsl:param name="BIpa:id.src.path"/>
+        <!--<xsl:param name="object_merge_ant_object:dst.numerate"/>-->
+        <BIpa:for_src_rev>
+            <xsl:attribute name="BIpa:el.name.root.wrong" select="name()"/>
+            <xsl:copy-of select="@*"/>
+            <!--<BIpa:prepare>
+                <xsl:attribute name="BIpa:local_count.root" select="$BIpa:local_count.root"/>
+                <xsl:attribute name="BIpa:rem_count.root" select="$BIpa:rem_count.root"/>
+            </BIpa:prepare>-->
+            <xsl:for-each select="BIpa:for_src">
+               <BIpa:for_src_t>
+                <xsl:variable name="BIpa:el.name.src" select="name()"/>
+                <xsl:attribute name="BIpa:el.name" select="$BIpa:el.name.src"/>
+                <xsl:copy-of select="@*"/>
+                
+                <xsl:variable name="src.pos" select="."/>
+                <!--<xsl:variable name="BIpa:local_count" select="count(*)"/>-->
+                <!--<xsl:variable name="BIpa:rem_count" select="count($BIpa:compare_to.dest.schema/BIpa:for_src/BIpa:for_dst)"/>-->
+                <xsl:variable name="BIpa:id.src" select="@BIpa:id"/>
+                <BIpa:prepare.curr>
+                    <xsl:attribute name="BIpa:local_count" select="@BIpa:for_src_rev.count"/>
+                    <xsl:attribute name="BIpa:rem_count" select="@BIpa:for_dst_rev.count"/>
+                    <xsl:attribute name="BIpa:id.src" select="$BIpa:id.src"/>
+                </BIpa:prepare.curr>
+                 <xsl:for-each select="BIpa:for_dst">
+                       <BIpa:for_dst_t>
+                        
+                        <xsl:variable name="dst.pos" select="."/>
+                        <xsl:copy-of select="@*"/>
+                            <xsl:variable name="BIpa:id.src.path">
+                                <xsl:choose>
+                                    <xsl:when test="$BIpa:id.src.path">
+                                        <xsl:value-of select="$BIpa:id.src.path"/>
+                                    </xsl:when>
+                                    <xsl:otherwise><xsl:value-of select="$BIpa:id.src"/></xsl:otherwise>
+                                </xsl:choose>
+                            </xsl:variable>
+                            
+                                <!--<xsl:choose>
+                                    <xsl:when test="@BIpa:id = $BIpa:id.src">-->
+                                    <xsl:for-each select="BIpa:attrs">
+                                        <BIpa:analiz.curr>
+                                        <xsl:variable name="BIpa:ok.numerate.src" select="sum(BIpa:test.vectors/@BIpa:ok.numerate.src)"/>
+                                        <xsl:variable name="BIpa:sum.ok.numerate" select="sum(@BIpa:ok.numerate)"/>
+                                        <xsl:variable name="BIpa:sum.ok.parent" select="sum(@BIpa:ok.parent)"/>
+                                        <xsl:variable name="BIpa:sum.ok.path" select="sum(BIpa:test.vectors/@BIpa:ok.path)"/>
+                                        <xsl:variable name="BIpa:sum.current.ok.name" select="sum(BIpa:test.vectors/@BIpa:ok.name)"/>
+                                        <xsl:variable name="BIpa:sum.ok.name_and_val" select="sum(BIpa:attr/@BIpa:ok.name_and_val)"/>
+                                        <xsl:variable name="BIpa:sum.ok.name" select="sum(BIpa:attr/@BIpa:ok.name)"/>
+                                        
+                                        <xsl:attribute name="BIpa:ok.numerate.src" select="$BIpa:ok.numerate.src"/>    
+                                        <xsl:attribute name="BIpa:sum.ok.numerate" select="$BIpa:sum.ok.numerate"/>
+                                        <xsl:attribute name="BIpa:sum.ok.parent" select="$BIpa:sum.ok.parent"/>
+                                        <xsl:attribute name="BIpa:sum.ok.path" select="$BIpa:sum.ok.path"/>
+                                        <xsl:attribute name="BIpa:sum.current.ok.name" select="$BIpa:sum.current.ok.name"/>
+                                        <xsl:attribute name="BIpa:sum.ok.name_and_val" select="$BIpa:sum.ok.name_and_val"/>
+                                        <xsl:attribute name="BIpa:sum.ok.name" select="$BIpa:sum.ok.name"/>
+                                            <xsl:attribute name="BIpa:sum.ok" select="$BIpa:sum.ok.numerate + $BIpa:sum.ok.name + $BIpa:sum.ok.parent + $BIpa:sum.ok.path + $BIpa:sum.current.ok.name + $BIpa:sum.ok.name_and_val + $BIpa:ok.numerate.src"/>
+                                            <xsl:attribute name="BIpa:id.src.path" select="$BIpa:id.src.path"/>
+                                        </BIpa:analiz.curr>
+                                    </xsl:for-each>
+                                    <!--</xsl:when>
+                                </xsl:choose>-->
+                            <xsl:copy-of select="BIpa:attrs"/>
+                                
+                            <xsl:apply-templates mode="BIpa:analyze1" select=".">
+                                <!--<xsl:with-param name="BIpa:compare_to.dest.schema" select="$BIpa:compare_to.dest.schema/BIpa:for_src/BIpa:for_dst"/>-->
+                                <!--<xsl:param name="object_merge_ant_object:dst.numerate"/>-->
+                                <xsl:with-param name="BIpa:id.src.path" select="concat($BIpa:id.src.path,'/',$BIpa:id.src)"/>
+                            </xsl:apply-templates>
+                                
+                                
+                        
+                        <!--<ROOOOT_CHILD>
+                            <xsl:apply-templates mode="BIpa:analyze1" select="$src.pos">
+                                <xsl:with-param name="BIpa:compare_to.dest.schema" select="BIpa:for_dst"/>
+                                <!-\-<xsl:param name="object_merge_ant_object:dst.numerate"/>-\->
+                            </xsl:apply-templates>
+                        </ROOOOT_CHILD>-->
+                    </BIpa:for_dst_t>
+                </xsl:for-each>
+                
+                    <!--<xsl:apply-templates mode="BIpa:analyze1" select="$src.pos">
+                        <xsl:with-param name="BIpa:compare_to.dest.schema" select="$BIpa:compare_to.dest.schema/BIpa:for_src/BIpa:for_dst"/>
+                        <!-\-<xsl:param name="object_merge_ant_object:dst.numerate"/>-\->
+                        <xsl:with-param name="BIpa:id.src.path" select="concat($BIpa:id.src.path,'/',$BIpa:id.src)"/>
+                    </xsl:apply-templates>-->
+                
+            </BIpa:for_src_t>
+        </xsl:for-each>
+        </BIpa:for_src_rev>
+    </xsl:template>
+    
+    
+    <xsl:template mode="object_merge_ant_object:numerate" match="text()">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    
+    <xsl:template mode="object_merge_ant_object:numerate" match="*">
+        <xsl:param name="BIpa:parent" select="0"/>
+        <xsl:param name="BIpa:path" select="0"/>
+            <xsl:for-each select="*">
+                <xsl:copy copy-namespaces="no">
+                    <xsl:copy-of select="@*"/>
+                    <xsl:attribute name="BIpa:numerate" select="position()"/>
+                    <xsl:attribute name="BIpa:parent" select="$BIpa:parent"/>
+                    <xsl:attribute name="BIpa:path" select="$BIpa:path"/>
+                    <xsl:attribute name="BIpa:id" select="generate-id()"/>
+                    <xsl:variable name="pos" select="position()"/>
+                    <xsl:apply-templates mode="object_merge_ant_object:numerate" select=".">
+                        <xsl:with-param name="BIpa:parent" select="$pos"/>
+                        <xsl:with-param name="BIpa:path" select="concat($BIpa:path,'/',$pos)"/>
+                    </xsl:apply-templates>
+                </xsl:copy>
+            </xsl:for-each>
+    </xsl:template>
+    
+    
+    <xsl:template mode="object_merge_ant_object:compare_root" match="*">
+        <xsl:param name="ext.schema.numerate" required="yes"/>
+        <xsl:param name="object_merge_ant_object:dst.numerate"/>
+        <xsl:param name="variant.4"/>
+        <!--<xsl:copy>
+            <xsl:copy-of select="@*"/>-->
+        <xsl:choose>
+            <xsl:when test="$ext.schema.numerate/* and not(*)">
+                <xsl:variable name="BIpa:for_src_rev.count" select="count(*)"/>
+                <xsl:variable name="BIpa:for_dst_rev.count" select="count($ext.schema.numerate/*)"/>
+                <BIpa:for_src_rev variant="1"  ><!-- BIpa:name="{name()}" -->
+                        <BIpa:for_src BIpa:empty="src">
+                            <xsl:variable name="BIpa:for_src_rev.pos" select="1"/>
+                            <!--<xsl:copy-of select="@BIpa:path"/>-->
+                            <!--<xsl:copy-of select="@BIpa:id"/>-->
+                            <!--<xsl:copy-of select="@BIpa:numerate"/>-->
+                            <xsl:attribute name="BIpa:simulated" select="1"/>
+                            <!--<xsl:attribute name="BIpa:el.name" select="name()"/>-->
+                            <xsl:attribute name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                            <xsl:attribute name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                            <xsl:attribute name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                            <xsl:attribute name="ext_name.wrong" select="$ext.schema.numerate/name()"/>
+                            <xsl:attribute name="BIpa:dst.numerate" select="$object_merge_ant_object:dst.numerate"/>
+                                <xsl:variable name="src.pos">
+                                    <BIpa:for_src/>
+                                </xsl:variable>
+                            <xsl:for-each select="$ext.schema.numerate/*">
+                                <xsl:variable name="BIpa:for_dst_rev.pos" select="position()"/>
+                                <BIpa:for_dst>
+                                    <xsl:attribute name="BIpa:el.name" select="name()"/>
+                                    <xsl:copy-of select="@BIpa:path"/>
+                                    <xsl:copy-of select="@BIpa:id"/>
+                                    <xsl:copy-of select="@BIpa:numerate"/>
+                                    <xsl:attribute name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                    <xsl:variable name="dst.pos" select="."/>
+                                    
+                                    <BIpa:attrs>
+                                        <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                            <xsl:with-param name="src.pos" select="$src.pos"/>
+                                            <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                        </xsl:call-template>
+                                    </BIpa:attrs>
+                                    
+                                    <xsl:variable name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:apply-templates mode="object_merge_ant_object:compare_root" select="$src.pos">
+                                        <xsl:with-param name="ext.schema.numerate" select="."/>
+                                        <xsl:with-param name="object_merge_ant_object:dst.numerate" select="$object_merge_ant_object:numerate"/>
+                                    </xsl:apply-templates>
+                                </BIpa:for_dst>
+                            </xsl:for-each>
+                        </BIpa:for_src>
+                </BIpa:for_src_rev>
+            </xsl:when>
+            <xsl:when test="not($ext.schema.numerate/*) and */*">
+                <BIpa:for_src_rev variant="2" > <!-- BIpa:name="{name()}" -->
+                    <DEBIG_VARIANT2>
+                        <xsl:copy-of select="$ext.schema.numerate"/>
+                    </DEBIG_VARIANT2>
+                    <xsl:variable name="BIpa:for_src_rev.count" select="count(*)"/>
+                    <xsl:variable name="BIpa:for_dst_rev.count" select="count($ext.schema.numerate/*)"/>
+                    <xsl:for-each select="*">
+                        <xsl:variable name="BIpa:for_src_rev.pos" select="position()"/>
+                        <BIpa:for_src>
+                            <xsl:copy-of select="@BIpa:path"/>
+                            <xsl:copy-of select="@BIpa:id"/>
+                            <xsl:copy-of select="@BIpa:numerate"/>
+                            <!--<xsl:copy-of select="@BIpa:numerate"/>-->
+                            <xsl:attribute name="BIpa:el.name" select="name()"/>
+                            <xsl:attribute name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                            <xsl:attribute name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                            <xsl:attribute name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                            <xsl:attribute name="ext_name.wrong" select="$ext.schema.numerate/name()"/>
+                            <xsl:attribute name="BIpa:dst.numerate" select="$object_merge_ant_object:dst.numerate"/>
+                            <xsl:variable name="src.pos" select="."/>
+                            <!--<xsl:for-each select="$ext.schema.numerate/*">-->
+                            <xsl:variable name="BIpa:for_dst_rev.pos" select="1"/>
+                                <BIpa:for_dst BIpa:empty="dst">
+                                    <!--<xsl:attribute name="BIpa:el.name" select="name()"/>-->
+                                    <!--<xsl:copy-of select="@BIpa:path"/>
+                                    <xsl:copy-of select="@BIpa:id"/>
+                                    <xsl:copy-of select="@BIpa:numerate"/>
+                                    <xsl:copy-of select="@BIpa:path"/>-->
+                                    <xsl:variable name="dst.pos">
+                                        <empty/>
+                                    </xsl:variable>
+                                    <xsl:attribute name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                    <!--<xsl:if test="@BIpa:numerate = $src.pos/@BIpa:numerate">
+                                        <xsl:attribute name="BIpa:ok.numerate" select="1"/>
+                                    </xsl:if>
+                                    <xsl:if test="name() = $src.pos/name()">
+                                        <xsl:attribute name="BIpa:ok.name" select="1"/>
+                                    </xsl:if>
+                                    <xsl:if test="name() = $src.pos/name()">
+                                        <xsl:attribute name="BIpa:ok.name" select="1"/>
+                                    </xsl:if>
+                                    <xsl:if test="@BIpa:parent = $src.pos/@BIpa:parent">
+                                        <xsl:attribute name="BIpa:ok.parent" select="1"/>
+                                    </xsl:if>
+                                    <xsl:if test="@BIpa:path = $src.pos/@BIpa:path">
+                                        <xsl:attribute name="BIpa:ok.path" select="1"/>
+                                    </xsl:if>-->
+                                    <BIpa:attrs>
+                                        <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                            <xsl:with-param name="src.pos" select="$src.pos"/>
+                                            <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                        </xsl:call-template>
+                                    </BIpa:attrs>
+                                    
+                                    <xsl:variable name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:apply-templates mode="object_merge_ant_object:compare_root" select="$src.pos">
+                                        <xsl:with-param name="ext.schema.numerate" select="$dst.pos" />
+                                        <xsl:with-param name="object_merge_ant_object:dst.numerate" select="$object_merge_ant_object:numerate"/>
+                                    </xsl:apply-templates>
+                                </BIpa:for_dst>
+                            
+                        </BIpa:for_src>
+                    </xsl:for-each>
+                </BIpa:for_src_rev>
+            </xsl:when>
+            <xsl:when test="$ext.schema.numerate/* and */*" >
+                <BIpa:for_src_rev variant="3" > <!-- BIpa:name="{name()}" -->
+                    <xsl:variable name="BIpa:for_src_rev.count" select="count(*)"/>
+                    <xsl:variable name="BIpa:for_dst_rev.count" select="count($ext.schema.numerate/*)"/>
+                    <xsl:for-each select="*">
+                        <xsl:variable name="BIpa:for_src_rev.pos" select="position()"/>
+                        <BIpa:for_src>
+                            <xsl:attribute name="BIpa:el.name" select="name()"/>
+                            <xsl:copy-of select="@BIpa:path"/>
+                            <xsl:copy-of select="@BIpa:id"/>
+                            <xsl:copy-of select="@BIpa:numerate"/>
+                            <!--<xsl:copy-of select="@BIpa:numerate"/>-->
+                            <xsl:attribute name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                            <xsl:attribute name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                            <xsl:attribute name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                            <xsl:attribute name="ext_name.wrong" select="$ext.schema.numerate/name()"/>
+                            <xsl:attribute name="BIpa:dst.numerate" select="$object_merge_ant_object:dst.numerate"/>
+                            <!--<xsl:copy>
+                    <xsl:copy-of select="@*"/>-->
+                            <xsl:variable name="src.pos" select="."/>
+                            <xsl:for-each select="$ext.schema.numerate/*">
+                                <xsl:variable name="BIpa:for_dst_rev.pos" select="position()"/>
+                                <BIpa:for_dst>
+                                    <xsl:attribute name="BIpa:el.name" select="name()"/>
+                                    <xsl:copy-of select="@BIpa:path"/>
+                                    <xsl:copy-of select="@BIpa:id"/>
+                                    <xsl:copy-of select="@BIpa:numerate"/>
+                                    <xsl:attribute name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                    <xsl:copy-of select="@BIpa:path"/>
+                                    <xsl:variable name="dst.pos" select="."/>
+                                  
+                                    <BIpa:attrs>
+                                        <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                            <xsl:with-param name="src.pos" select="$src.pos"/>
+                                            <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                        </xsl:call-template>
+                                    </BIpa:attrs>
+                                    <!--<xsl:choose>
+                            <xsl:when test="@BIpa:numerate = $src.pos/@BIpa:numerate and name() = $src.pos/name()">
+                                <same_pos_name>
+                                    <xsl:attribute name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:attribute name="src.name" select="$src.pos/name()"/>
+                                    <!-\-<xsl:attribute name="dst.name" select="name()"/>-\->
+                                </same_pos_name>
+                                <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                    <xsl:with-param name="src.pos" select="$src.pos"/>
+                                    <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                </xsl:call-template>
+                            </xsl:when>
+                            <xsl:when test="@BIpa:numerate = $src.pos/@BIpa:numerate">
+                                <same_pos>
+                                    <xsl:attribute name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:attribute name="src.name" select="$src.pos/name()"/>
+                                    <xsl:attribute name="dst.name" select="name()"/>
+                                </same_pos>
+                                <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                    <xsl:with-param name="src.pos" select="$src.pos"/>
+                                    <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                </xsl:call-template>
+                            </xsl:when>
+                            <xsl:otherwise>
+                                <not_same_pos>
+                                    <xsl:attribute name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:attribute name="src.name" select="$src.pos/name()"/>
+                                    <xsl:attribute name="dst.name" select="name()"/>
+                                </not_same_pos>
+                                <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                    <xsl:with-param name="src.pos" select="$src.pos"/>
+                                    <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                </xsl:call-template>
+                            </xsl:otherwise>
+                        </xsl:choose>-->
+                                    <xsl:variable name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:apply-templates mode="object_merge_ant_object:compare_root" select="$src.pos">
+                                        <xsl:with-param name="ext.schema.numerate" select="."/>
+                                        <xsl:with-param name="object_merge_ant_object:dst.numerate" select="$object_merge_ant_object:numerate"/>
+                                    </xsl:apply-templates>
+                                </BIpa:for_dst>
+                            </xsl:for-each>
+                        </BIpa:for_src>
+                    </xsl:for-each>
+                </BIpa:for_src_rev>
+            </xsl:when>
+            <xsl:when test="$ext.schema.numerate/* and *" >
+                <BIpa:for_src_rev variant="4" > <!-- BIpa:name="{name()}" -->
+                    <xsl:variable name="BIpa:for_src_rev.count" select="count(*)"/>
+                    <xsl:variable name="BIpa:for_dst_rev.count" select="count($ext.schema.numerate/*)"/>
+                    <xsl:for-each select="*">
+                        <xsl:variable name="BIpa:for_src_rev.pos" select="position()"/>
+                        <BIpa:for_src>
+                            <xsl:attribute name="BIpa:el.name" select="name()"/>
+                            <xsl:copy-of select="@BIpa:path"/>
+                            <xsl:copy-of select="@BIpa:id"/>
+                            <xsl:copy-of select="@BIpa:numerate"/>
+                            <!--<xsl:copy-of select="@BIpa:numerate"/>-->
+                            <xsl:attribute name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                            <xsl:attribute name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                            <xsl:attribute name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                            <xsl:attribute name="ext_name.wrong" select="$ext.schema.numerate/name()"/>
+                            <xsl:attribute name="BIpa:dst.numerate" select="$object_merge_ant_object:dst.numerate"/>
+                            <!--<xsl:copy>
+                    <xsl:copy-of select="@*"/>-->
+                            <xsl:variable name="src.pos" select="."/>
+                            <xsl:for-each select="$ext.schema.numerate/*">
+                                <xsl:variable name="BIpa:for_dst_rev.pos" select="position()"/>
+                                <BIpa:for_dst>
+                                    <xsl:attribute name="BIpa:el.name" select="name()"/>
+                                    <xsl:copy-of select="@BIpa:path"/>
+                                    <xsl:copy-of select="@BIpa:id"/>
+                                    <xsl:copy-of select="@BIpa:numerate"/>
+                                    <xsl:attribute name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                    <xsl:copy-of select="@BIpa:path"/>
+                                    <xsl:variable name="dst.pos" select="."/>
+                                    
+                                    <BIpa:attrs>
+                                        <xsl:call-template name="object_merge_ant_object:compare_attr">
+                                            <xsl:with-param name="src.pos" select="$src.pos"/>
+                                            <xsl:with-param name="dst.pos" select="$dst.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.count" select="$BIpa:for_dst_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.count" select="$BIpa:for_src_rev.count"/>
+                                            <xsl:with-param name="BIpa:for_src_rev.pos" select="$BIpa:for_src_rev.pos"/>
+                                            <xsl:with-param name="BIpa:for_dst_rev.pos" select="$BIpa:for_dst_rev.pos"/>
+                                        </xsl:call-template>
+                                    </BIpa:attrs>
+                                    
+                                    <xsl:variable name="object_merge_ant_object:numerate" select="@BIpa:numerate"/>
+                                    <xsl:apply-templates mode="object_merge_ant_object:compare_root" select="$src.pos">
+                                        <xsl:with-param name="ext.schema.numerate" select="."/>
+                                        <xsl:with-param name="variant.4" select="1"/>
+                                        <xsl:with-param name="object_merge_ant_object:dst.numerate" select="$object_merge_ant_object:numerate"/>
+                                    </xsl:apply-templates>
+                                </BIpa:for_dst>
+                            </xsl:for-each>
+                        </BIpa:for_src>
+                    </xsl:for-each>
+                </BIpa:for_src_rev>
+            </xsl:when>
+            <xsl:otherwise>
+                <!--<BIpa:for_src_rev variant="4" BIpa:name="{name()}">
+                    <xsl:copy-of select="@*"/>
+                    <xsl:attribute name="src_name" select="*/name()"/>
+                    <xsl:attribute name="dst_name" select="$ext.schema.numerate/*/name()"/>
+                    <xsl:attribute name="dst_tst" select="count($ext.schema.numerate/*)"/>
+                    <xsl:attribute name="src_tst" select="count(*/*)"/>
+                    <xsl:attribute name="src_tst_cur" select="count(*)"/>
+                    <xsl:attribute name="dst_tst_cur" select="count($ext.schema.numerate/*)"/>
+                    <xsl:copy-of select="."></xsl:copy-of>
+                </BIpa:for_src_rev>-->
+                <xsl:message terminate="no">#500 uncased sit. for <xsl:value-of select="name()"/>  @BIpa:id:<xsl:value-of select="@BIpa:id"/>;</xsl:message>
+                </xsl:otherwise>
+             </xsl:choose>
+            
+        
+            <!-- A jak brakuje elementow z jednej - trzeba dokladac  -->
+         <!--   
+            <xsl:choose>
+                <xsl:when test="$ext.schema.numerate/*/* and not(*/*)">
+                    <BIpa:for_src_rev variant="1"/>
+                </xsl:when>
+                <xsl:when test="not($ext.schema.numerate/*/*) and */*">
+                    <BIpa:for_src_rev variant="2"/>
+                </xsl:when>
+            </xsl:choose>-->
+        <!--</xsl:copy>-->
+        
+    </xsl:template>
+    
+    <xsl:template name="object_merge_ant_object:compare_attr">
+        <xsl:param name="src.pos" required="yes"/>
+        <xsl:param name="dst.pos" required="yes"/>
+        <xsl:param name="BIpa:for_src_rev.count" required="yes"/>
+        <xsl:param name="BIpa:for_dst_rev.count" required="yes"/>
+        <xsl:param name="BIpa:for_src_rev.pos" required="yes"/>
+        <xsl:param name="BIpa:for_dst_rev.pos" required="yes"/>
+        <xsl:variable name="vectors">
+            <vectors>
+                <vector count="{$BIpa:for_src_rev.count}"/>
+                <vector count="{$BIpa:for_dst_rev.count}"/>
+            </vectors>
+        </xsl:variable>
+        <xsl:variable name="max.vector" select="max( $vectors/vectors/vector/@count)"/>
+        <BIpa:test.vectors>
+            <xsl:if test="$src.pos/@BIpa:path = $dst.pos/@BIpa:path">
+                <xsl:attribute name="BIpa:ok.path" select="1"/>
+            </xsl:if>
+            <xsl:if test="$src.pos/name() = $dst.pos/name()">
+                <xsl:attribute name="BIpa:ok.name" select="2"/>
+            </xsl:if>
+            <xsl:choose>
+                <xsl:when test="$src.pos/@BIpa:numerate =  $dst.pos/@BIpa:numerate">
+                    <xsl:attribute name="BIpa:ok.numerate.src" select="1"/>
+                </xsl:when>
+                <xsl:otherwise>
+                    <xsl:attribute name="BIpa:max.vector" select="$max.vector"/>
+                    <xsl:for-each select="1 to xs:integer($max.vector)">
+                        
+                        <xsl:choose>
+                            <xsl:when test="$src.pos/@BIpa:numerate =  current()">
+                                <vector>
+                                    <xsl:attribute name="BIpa:ok.numerate.src" select="1"/>
+                                    <xsl:attribute name="BIpa:vector.offset.src" select="current() - $BIpa:for_src_rev.pos"/>
+                                    <xsl:attribute name="BIpa:vector.offset.dst" select="current() - $BIpa:for_dst_rev.pos"/>
+                                </vector>
+                            </xsl:when>
+                            <xsl:when test="$dst.pos/@BIpa:numerate =  current()">
+                                <vector>
+                                    <xsl:attribute name="BIpa:ok.numerate.dst" select="1"/>
+                                    <xsl:attribute name="BIpa:vector.offset.src" select="current() - $BIpa:for_src_rev.pos"/>
+                                    <xsl:attribute name="BIpa:vector.offset.dst" select="current() - $BIpa:for_dst_rev.pos"/>
+                                </vector>
+                            </xsl:when>
+                        </xsl:choose>
+                    </xsl:for-each>
+                </xsl:otherwise>
+            </xsl:choose>
+        </BIpa:test.vectors>
+        <!-- probujemy przesuwac to w zaleznosci od ilosci  -->
+        <!--<xsl:for-each select="$dst.pos/@*[ not( contains(name(),'@BIpa:'))]">
+            <BIpa:attr>
+                 <xsl:attribute name="BIpa:attr.name.dst" select="name()"/>
+                 <xsl:attribute name="BIpa:attr.val.dst" select="."/>
+            </BIpa:attr>
+        </xsl:for-each>-->
+        <!--<xsl:for-each select=""></xsl:for-each>-->
+        <!--<xsl:if test="@BIpa:numerate = $src.pos/@BIpa:numerate">
+                                        <xsl:attribute name="BIpa:ok.numerate" select="1"/>
+                                    </xsl:if>
+                                   
+                                    <xsl:if test="@BIpa:parent = $src.pos/@BIpa:parent">
+                                        <xsl:attribute name="BIpa:ok.parent" select="1"/>
+                                    </xsl:if>
+                                    <xsl:if test="@BIpa:path = $src.pos/@BIpa:path">
+                                        <xsl:attribute name="BIpa:ok.path" select="1"/>
+                                    </xsl:if>-->
+        
+        
+        <BIpa:attr.src>
+            <xsl:copy-of select="$src.pos/@*[ not( contains(name(),'BIpa:'))]"/>
+        </BIpa:attr.src>
+        <BIpa:attr.dst>
+            <xsl:copy-of select="$dst.pos/@*[ not( contains(name(),'BIpa:'))]"/>
+        </BIpa:attr.dst>    
+        <xsl:for-each select="$src.pos/@*[ not( contains(name(),'BIpa:'))]">
+            <xsl:variable name="test.attr.name" select="name()"/>
+            <xsl:variable name="test.attr.val" select="."/>
+            <BIpa:attr>
+                <!--<xsl:copy-of select="."/>--><!--<xsl:attribute name="{name()}" select="."/>-->            
+            <!--<attr_dst><xsl:copy-of select="$dst.pos/@*"/></attr_dst>-->
+                <xsl:for-each select="$dst.pos/@*[ not( contains(name(),'BIpa:'))]">
+                <xsl:choose>
+                    <xsl:when test="name() = $test.attr.name and . = $test.attr.val">
+                        <!--<BIpa:attr_val>-->
+                            <!--<xsl:attribute name="BIpa:attr.val" select="$test.attr.val"/>-->
+                            <xsl:attribute name="BIpa:ok.name_and_val" select="1"/>
+                        <!--</BIpa:attr_val>-->
+                    </xsl:when>
+                    <xsl:when test="name() = $test.attr.name and not( contains(name(),'BIpa:'))">
+                        <!--<xsl:attribute name="BIpa:attr.val" select="$test.attr.val"/>-->
+                        <xsl:attribute name="BIpa:ok.name" select="1"/>
+                        <!--<xsl:attribute name="BIpa:attr.val.src" select="$test.attr.val"/>-->
+                        <!--<xsl:attribute name="BIpa:attr.val.dst" select="."/>-->
+                        <!--<same_arg>
+                            <xsl:attribute name="test.attr.name" select="$test.attr.name"/>
+                            <xsl:attribute name="src.attr.val" select="$test.attr.val"/>
+                            <xsl:attribute name="dst.attr.val" select="."/>
+                        </same_arg>-->
+                    </xsl:when>
+                </xsl:choose>
+            </xsl:for-each>
+              <!--  <xsl:attribute name="BIpa:attr.name.src" select="name()"/>
+                <xsl:attribute name="BIpa:attr.val.src" select="."/>-->
+            </BIpa:attr>
+        </xsl:for-each>
+    </xsl:template>
+    
+    
+    <!--<xsl:template mode="object_merge_ant_object:compare_element" match="*">
+        <xsl:param name="object_merge_ant_object:numerate" required="yes"/>
+        <xsl:param name="ext.schema.numerate" required="yes"/>
+        <xsl:choose>
+            <xsl:when test="name() = $ext.schema.numerate/*[@BIpa:numerate = $object_merge_ant_object:numerate]/name()">
+                <same>
+                    <xsl:attribute name="src.name" select="name()"/>
+                </same>
+            </xsl:when>
+            <xsl:otherwise>
+                <diff>
+                    <xsl:attribute name="src.name" select="name()"/>
+                    <xsl:attribute name="dst.name" select="$ext.schema.numerate/*[@BIpa:numerate = $object_merge_ant_object:numerate]/name()"/>
+                </diff>
+            </xsl:otherwise>
+        </xsl:choose>
+        
+        
+    </xsl:template>-->
+    
+    
+    
+</xsl:stylesheet>

+ 33 - 0
SE/schema/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsd

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+           xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+           xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+           xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+           xmlns:object_merge_ant_object="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsd"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           vc:minVersion="1.1"
+           targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsd">
+   <xs:import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd"
+              namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:group name="PRODUCT">
+      <xs:sequence>
+         <xs:element ref="object_merge_ant_object:PRODUCT"/>
+      </xs:sequence>
+   </xs:group>
+</xs:schema>

+ 76 - 0
SE/schema/WPS_Functions/object_merge_ant_object/object_merge_ant_object.xsl

@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+    xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+    xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+    xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+    xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+    xmlns:object_merge_ant_object="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_merge_ant_object.xsd"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+ <!--   <xsl:param name="NamespaceDatabaseStorageDefinitionPrefix" select="'default_db'"/>
+    <xsl:param name="NamespaceObjectInstanceType"  select="'table'"/>-->
+    <xsl:param name="remote.ant-object" required="yes"/>
+    <xsl:param name="basedir" required="yes"/>
+    <xsl:param name="object_modeling_new.build.xml" required="yes"/>
+    <xsl:param name="object_merge_ant_object.build.xml" required="yes"/>
+    
+    <xsl:template match="p5dg:p5dg.documentation.files.index_analyzed.xml" mode="object_merge_ant_object:object_merge_ant_object.merge.try.build.xml">
+        <project basedir="{$basedir}" name="object_merge_ant_object.merge.try.build.xml" default="object_merge_ant_object.merge.try.build.xml"> <!-- object_merge_ant_object.merge.try.build.xml -->
+            <include file="{$object_modeling_new.build.xml}" as="object_modeling_new"/>
+            <include file="{$object_merge_ant_object.build.xml}" as="object_merge_ant_object"/>
+            
+            <target name="object_merge_ant_object.merge.try.build.xml">
+                <xsl:apply-templates mode="#current"/>
+            </target>
+        </project>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="p5ant:filelist[@dir='/Users/a.binder/Documents/se/SE/schema/ant-object/default_db.ADMIN_USERS/ADMIN_USERS']" mode="object_merge_ant_object:object_merge_ant_object.merge.try.build.xml">
+        
+        <xsl:variable name="quess_path" select="substring-after(@dir,concat($remote.ant-object,'/'))"/>
+        <xsl:variable name="NamespaceObjectInstanceTable" select=" substring-before(substring-after($quess_path,'.'),'/')" />
+        <xsl:variable name="NamespaceDatabaseStorageDefinitionPrefix" select=" substring-before($quess_path,'.')"/>
+        <xsl:variable name="NamespaceObjectInstanceTable.check" select=" substring-after($quess_path,'/')"/>
+        <xsl:choose>
+            <xsl:when test="$NamespaceObjectInstanceTable = ''"><xsl:message terminate="yes">#35 error with <xsl:value-of select="@dir"/>;</xsl:message></xsl:when>
+            <xsl:when test="$NamespaceObjectInstanceTable = $NamespaceObjectInstanceTable.check and p5ant:file[ contains(@name,$NamespaceObjectInstanceTable)]">
+                <objectMergeAntObjectTry>
+                    <xsl:attribute name="NamespaceObjectInstanceTable" select="$NamespaceObjectInstanceTable"/>
+                    <xsl:attribute name="NamespaceDatabaseStorageDefinitionPrefix" select="$NamespaceDatabaseStorageDefinitionPrefix"/>
+                    <xsl:attribute name="quessPath" select="$quess_path"/>
+                    <xsl:attribute name="dir" select="@dir"/>
+                    <xsl:attribute name="fileName" select="p5ant:file/@name"/>
+                    <xsl:attribute name="filePath" select="concat(@dir,'/',p5ant:file[ contains(@name,$NamespaceObjectInstanceTable)]/@name)"/>
+                </objectMergeAntObjectTry>
+            </xsl:when>
+            <!--<xsl:otherwise>
+                <object_merge_ant_object:try_not>
+                    <xsl:attribute name="NamespaceObjectInstanceTable" select="$NamespaceObjectInstanceTable"/>
+                    <xsl:attribute name="NamespaceDatabaseStorageDefinitionPrefix" select="$NamespaceDatabaseStorageDefinitionPrefix"/>
+                    <xsl:attribute name="quess_path" select="$quess_path"/>
+                    <xsl:attribute name="NamespaceObjectInstanceTable.check" select="$NamespaceObjectInstanceTable.check"/>
+                </object_merge_ant_object:try_not>
+            </xsl:otherwise>-->
+        </xsl:choose>
+        
+    </xsl:template>
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+    
+</xsl:stylesheet>

+ 72 - 0
SE/schema/WPS_Functions/object_modeling_by_default_db_xml_schema/build.object_modeling_by_default_db_xml_schema.PRODUCT.xml

@@ -0,0 +1,72 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:object_modeling_by_default_db_xml_schema="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling_by_default_db_xml_schema/object_modeling_by_default_db_xml_schema.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="object_modeling_by_default_db_xml_schema.PRODUCT">
+   
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="object_modeling_by_default_db_xml_schema.PRODUCT.ifdef.parent"
+              taskname="object_modeling_by_default_db_xml_schema.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="object_modeling_by_default_db_xml_schema.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.object_modeling_by_default_db_xml_schema"/>
+   <property name="object_modeling_by_default_db_xml_schema.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.object_modeling_by_default_db_xml_schema"/>
+   <property name="object_modeling_by_default_db_xml_schema.basedir"
+             value="${WPS_Functions.basedir}/object_modeling_by_default_db_xml_schema"/>
+   
+   <property name="object_modeling_by_default_db_xml_schema.build.xml"
+      value="${object_modeling_by_default_db_xml_schema.basedir}/build_object_modeling_by_default_db_xml_schema.xml"/>
+   
+   <property name="object_modeling_by_default_db_xml_schema.repository"
+         value="${WPS_Functions.repository}/object_modeling_by_default_db_xml_schema"/>
+   <property name="object_modeling_by_default_db_xml_schema.install"
+             value="${object_modeling_by_default_db_xml_schema.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/object_modeling_by_default_db_xml_schema"
+             name="object_modeling_by_default_db_xml_schema.temp"/>
+   <!--<property location="${object_modeling_by_default_db_xml_schema.basedir}/object_modeling_by_default_db_xml_schema.xsl"
+             name="object_modeling_by_default_db_xml_schema.xsl"/>-->
+   
+   <property location="${object_modeling_by_default_db_xml_schema.basedir}/object_modeling_by_default_db_xml_schema.xsd"
+             name="object_modeling_by_default_db_xml_schema.xsd"/>
+   
+   
+   
+   
+   
+   
+  
+   
+   
+   
+   <target depends="basedir"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="object_modeling_by_default_db_xml_schema.local.properties">
+         <propertyref prefix="object_modeling_by_default_db_xml_schema"/>
+         <mapper from="object_modeling_by_default_db_xml_schema.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="object_modeling_by_default_db_xml_schema.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="object_modeling_by_default_db_xml_schema.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="object_modeling_by_default_db_xml_schema.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="object_modeling_by_default_db_xml_schema.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   
+</project>

+ 1 - 0
SE/schema/WPS_Functions/object_modeling_by_default_db_xml_schema/build_object_modeling_by_default_db_xml_schema.xml

@@ -5,6 +5,7 @@
                  aviable for other ant as $build_object_modeling_by_default_db_xml_schema.xml
     </description>
     
+    <include file="build.object_modeling_by_default_db_xml_schema.PRODUCT.xml"/>
     <include file="../build_WPS_Functions.xml"/>
     <!-- modules WPS_Functions - to be copied to any module needed -->
     <property name="WPS_Functions" location="${WPS_Functions.basedir}"/>

+ 94 - 0
SE/schema/WPS_Functions/object_modeling_new/build.object_modeling_new.PRODUCT.xml

@@ -0,0 +1,94 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:object_modeling_new="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling_new/object_modeling_new.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="object_modeling_new.PRODUCT">
+   
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="object_modeling_new.PRODUCT.ifdef.parent"
+              taskname="object_modeling_new.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="object_modeling_new.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.object_modeling_new"/>
+   <property name="object_modeling_new.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.object_modeling_new"/>
+   <property name="object_modeling_new.basedir"
+             value="${WPS_Functions.basedir}/object_modeling_new"/>
+   <property name="object_modeling_new.repository"
+         value="${WPS_Functions.repository}/object_modeling_new"/>
+   <property name="object_modeling_new.install"
+             value="${object_modeling_new.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/object_modeling_new"
+             name="object_modeling_new.temp"/>
+   <!--<property location="${object_modeling_new.basedir}/object_modeling_new.xsl"
+             name="object_modeling_new.xsl"/>-->
+   <property name="object_modeling_new.xsl"
+      location="${basedir}/default_db_xml_cache.public/object_modeling_new.xsl"/>
+   <property name="object_modeling_new.build.xml"
+      location="${object_modeling_new.basedir}/build_object_modeling_new.xml"/>
+   <property location="${object_modeling_new.basedir}/object_modeling_new.xsd"
+             name="object_modeling_new.xsd"/>
+   <property location="${object_modeling_new.basedir}/object_modeling_new.include.structure.xml"
+             name="object_modeling_new.include.structure.xml"/>
+   <property location="${object_modeling_new.basedir}/object_modeling_new.include.xsl.p5xsls.xml"
+             name="object_modeling_new.include.xsl.p5xsls.xml"/>
+   <property location="${object_modeling_new.repository}/install_example.file"
+             name="object_modeling_new.install_example"/>
+   
+   <property name="object_modeling_new_by_xml_schema.xsl" location="${default_db_xml_cache.public}/object_modeling_new_by_xml_schema.xsl"/>
+   
+   <property name="object_modeling_new" location="${object_modeling_new.build.xml}"/>
+   <property name="object_modeling_new_basedir" location="${object_modeling_new.basedir}"  />                         
+   <property name="object_modeling_new_basedir_repository" location="${object_modeling_new.repository}"  />
+   <property name="object_modeling_new_basedir_temp" location="${object_modeling_new.temp}"  />
+   
+   
+   
+   
+   <target depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="object_modeling_new.local.properties">
+         <propertyref prefix="object_modeling_new"/>
+         <mapper from="object_modeling_new.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="object_modeling_new.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="object_modeling_new.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="object_modeling_new.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="object_modeling_new.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly"
+               file="${object_modeling_new.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="object_modeling_new"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling_new/object_modeling_new.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 112 - 73
SE/schema/WPS_Functions/object_modeling_new/build_object_modeling_new.xml

@@ -1,7 +1,8 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="../../." name="object_modeling_new" default="p5omn:object_modeling_new"
+<project basedir="../../." name="object_modeling_new" default="object_modeling_new"
     xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
     xmlns:p5omn="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling_new/object_modeling_new.xsd"
+    xmlns:p5opr="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd"
     >
     <description>
         TO model objects capabilities
@@ -9,11 +10,13 @@
     
     
     <tstamp>
-        <format property="p5omn:last.minute" pattern="MM/dd/yyyy hh:mm a"  offset="-2" unit="minute"/>
-        <format property="p5omn:current.timestamp" pattern="yyyy-dd-MM-hh:mm-a"  />
+        <format property="last.minute" pattern="MM/dd/yyyy hh:mm a"  offset="-2" unit="minute"/>
+        <format property="current.timestamp" pattern="yyyy-dd-MM-hh:mm-a"  />
     </tstamp>
     
+    <include file="build.object_modeling_new.PRODUCT.xml"/>
     <include file="../build_WPS_Functions.xml"/>
+    <include file="../object_modeling_by_default_db_xml_schema/build.object_modeling_by_default_db_xml_schema.PRODUCT.xml"/>
     <!-- modules WPS_Functions - to be copied to any module needed -->
     <property name="WPS_Functions" location="${WPS_Functions.basedir}"/>
     <property name="build_WPS_Functions.xml" location="${WPS_Functions.build}"/> <!-- call it to get properties -->
@@ -25,10 +28,6 @@
     <property name="build_WPS_Functions.xml.properties" location="${build_WPS_Functions.xml}.properties"/>-->
     <!-- eof modules WPS_Functions  -->
     
-    <property name="object_modeling_new" location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml"/>
-    <property name="object_modeling_new_basedir" location="${basedir}/WPS_Functions/${ant.project.name}"  />                         
-    <property name="object_modeling_new_basedir_repository" location="${basedir}/WPS_Functions/${ant.project.name}/object_modeling_new_repository"  />
-    <property name="object_modeling_new_basedir_temp" location="${object_modeling_new_basedir}/temp"  />
     
     <property name="build_object_modeling_new.child" location="${object_modeling_new_basedir_temp}/build_object_modeling_new.child.xml"/>
     <property name="build_object_modeling_new.child.xsl" location="${object_modeling_new_basedir}/build_object_modeling_new.child.xsl"/>
@@ -49,17 +48,17 @@
     <property name="procesy5_system_schema.xml" value="${transformed.local}/procesy5_system_schema.xml"/>
     -->
     
-    <target name="write_child_props_to_config_dir" depends="read_build_properties">
+    <target name="write_child_props_to_config_dir" > <!-- R depends="read_build_properties" -->
         <echoproperties destfile="${build_object_modeling_new.childproperties}"/>
     </target>
     
-    <target name="p5omn:object_modeling_new_create_dirs">
+    <target name="object_modeling_new_create_dirs">
         <mkdir dir="${object_modeling_new_basedir_temp}"/>
     </target>
     
-    <target name="read_build_properties" depends="p5omn:object_modeling_new_create_dirs">
-        <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>
-        <loadproperties srcfile="${WPS_Functions.properties}"/>
+    <target name="read_build_properties" depends="object_modeling_new_create_dirs">
+        <!-- R <ant antfile="${WPS_Functions.build}" target="save_build_properties"/>-->
+        <!--R <loadproperties srcfile="${WPS_Functions.properties}"/>-->
         <tempfile property="new_object_by_prototype_result.xml" prefix="new_object_by_prototype_result" suffix=".xml" destdir="${object_modeling_new_basedir_temp}"/>
         <tempfile property="object_modeling_new_in_schema_check.xml" prefix="object_modeling_new_in_schema_check" suffix=".xml" destdir="${object_modeling_new_basedir_temp}"/>
         
@@ -72,7 +71,7 @@
     </target>
     
     
-    <target  name="p5omn:object_modeling_new_check_condition">
+    <target  name="object_modeling_new_check_condition">
         <!--<input addproperty="prototype_object_namespace" defaultvalue="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd" />--> <!-- https://biuro.biall-net.pl/wfs/default_db/Types/Infrastructure.xsd -->
         <input addproperty="TargetNamespaceBindingsApi" defaultvalue="https://biuro.biall-net.pl/wfs"/> <!-- root namespace API -->
         <input addproperty="NamespaceDatabaseStorageDefinitionPrefix" defaultvalue="default_db"/>
@@ -80,12 +79,12 @@
         <input addproperty="NamespaceObjectInstanceTable" /> <!-- example CRM_PROCES -->
         <!--<input addproperty="new_object_namespace" defaultvalue="${TargetNamespaceBindingsApi}/${$NamespaceDatabaseStorageDefinitionPrefix}/${$NamespaceObjectInstanceTable}.xsd" />--> <!-- https://biuro.biall-net.pl/wfs/default_db/table/Rozdzielcza_struktura_wewnetrzna_wsg84.xsd -->
         <antcall target="template_object.xml_location.xml"/>
-        <condition taskname="p5omn:object_modeling_new_check_ok" property="p5omn:object_modeling_new_check">
+        <condition taskname="object_modeling_new_check_ok" property="object_modeling_new_check">
             <available file="${template_object.xml_location.xml}"/>
         </condition>
         
         <echo>#62 we checked it</echo>
-        <antcall target="p5omn:object_modeling_new_check_fail"/>
+        <antcall target="object_modeling_new_check_fail"/>
     </target>
     
     
@@ -95,13 +94,13 @@
         <echo> #82 $template_object.xml_location.xml = ${template_object.xml_location.xml}</echo>
     </target>    
     
-    <target name="p5omn:object_modeling_new_in_schema_check_condition" depends="read_build_properties,template_object.xml_location.xml" description="To check if such object exists in schema">
+    <target name="object_modeling_new_in_schema_check_condition" depends="template_object.xml_location.xml" description="To check if such object exists in schema"> <!-- R read_build_properties, -->
         <input addproperty="TargetNamespaceBindingsApi" defaultvalue="https://biuro.biall-net.pl/wfs"/> <!-- root namespace API -->
         <input addproperty="NamespaceDatabaseStorageDefinitionPrefix" defaultvalue="default_db"/>
         <input addproperty="NamespaceObjectInstanceType" defaultvalue="table"/>
         <input addproperty="NamespaceObjectInstanceTable" /> <!-- example CRM_PROCES -->
         <!--<antcall target="template_object.xml_location.xml"/>-->
-        <ant antfile="${build_root.xml}" target="procesy5_system_schema.xml_if_not_exists" />
+        <ant antfile="${p5build.build}" target="procesy5_system_schema.xml_if_not_exists" />
         
         <echo>#89 object_modeling_new_basedir_repository= ${object_modeling_new_basedir_repository}
             procesy5_system_schema.xml= ${procesy5_system_schema.xml} 
@@ -130,36 +129,42 @@
             <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
             <param name="targetNamespace.base" expression="${targetNamespace.base}"/>
             <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
+            <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
+            <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
+            <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
+            <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
+            <param name="object_modeling.Error.Handling" expression="${object_modeling.Error.Handling}"/>
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
         </xslt>
         <loadfile property="object_modeling_new_in_schema_check.xml.loadfile" srcfile="${object_modeling_new_in_schema_check.xml}"/>
-        <condition property="p5omn:object_modeling_new_in_schema_check" taskname="p5omn:object_modeling_new_in_schema_check">
+        <condition property="object_modeling_new_in_schema_check" taskname="object_modeling_new_in_schema_check">
             <contains string="${object_modeling_new_in_schema_check.xml.loadfile}" substring="ERROR"/>
         </condition>
-        <antcall target="p5omn:object_modeling_new_in_schema_check_fail"/>
+        <antcall target="object_modeling_new_in_schema_check_fail"/>
     </target>
     
-    <target name="p5omn:object_modeling_new_in_schema_check" depends="p5omn:object_modeling_new_in_schema_check_condition"/>
-    <target name="p5omn:object_modeling_new_in_schema_check_fail" if="${p5omn:object_modeling_new_in_schema_check}">
+    <target name="object_modeling_new_in_schema_check" depends="object_modeling_new_in_schema_check_condition"/>
+    <target name="object_modeling_new_in_schema_check_fail" if="object_modeling_new_in_schema_check" >
         <fail message="ERROR ${object_modeling_new_in_schema_check.xml.loadfile}"/>
     </target>
     
     
     
-    <target name="p5omn:object_modeling_new_in_xsd_check" depends="p5omn:object_modeling_new_in_schema_check_condition" description="To check if such object exists in xsd repository"/>
+    <target name="object_modeling_new_in_xsd_check" depends="object_modeling_new_in_schema_check_condition" description="To check if such object exists in xsd repository"/>
     
-    <target name="p5omn:object_modeling_new_check_fail" if="${p5omn:object_modeling_new_check}">
+    <target name="object_modeling_new_check_fail" if="${object_modeling_new_check}">
         <echo>OUTPUT_START</echo>
         <echo> Modeled object already exists in template directory - use model function instead of create new</echo>
         <echo>OUTPUT_END</echo>
         <fail/>
     </target>
     
-    <target name="p5omn:object_modeling_new" depends="read_build_properties,p5omn:object_modeling_new_in_schema_check,p5omn:object_modeling_new_in_xsd_check" description="ANT_TARGET new object by using prototype from Types to local repository to model it further" >
+    <target name="object_modeling_new" depends="read_build_properties,object_modeling_new_in_schema_check,object_modeling_new_in_xsd_check" description="ANT_TARGET new object by using prototype from Types to local repository to model it further" >
         <input addproperty="prototype_object_namespace" defaultvalue="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd" />
         
-        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="p5omn:default_db_get_xml_schema"/> <!-- or p5omn:default_db_get_xml_schema_if_not_exists -->
-        <ant antfile="${build_root.xml}" target="procesy5_system_schema.xml" />
+        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="default_db_get_xml_schema"/> <!-- or default_db_get_xml_schema_if_not_exists -->
+        <ant antfile="${p5build.build}" target="procesy5_system_schema.xml" />
         
         
         <echo>#148 object_modeling_new_basedir_repository= ${object_modeling_new_basedir_repository}
@@ -181,6 +186,11 @@
             <param name="template_object.xml_location" expression="${template_object.xml_location.xml}"/>
             <param name="object_modeling_new_basedir_repository" expression="${object_modeling_new_basedir_repository}"/>
             <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
+            <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
+            <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
+            <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
         </xslt>
         <loadfile property="new_object_by_prototype_result.xml_loadfile" srcfile="${new_object_by_prototype_result.xml}"/>
@@ -191,9 +201,9 @@
     
     
     
-    <target name="p5omn:object_modeling_new.build_Infrastructure" depends="read_build_properties" description="ANT_TARGET @2017-12-19 dobrze zrobilo prototypy z infrastr + brakujace elementy + simpleTYpe z default.db. new object by using prototype from Types with merging using regex select and igronre. Uwaga prototypy infrastruktury raz stworzone moga byc tylko odbudowywane z typespecial refs (TODO do poprawy @2017-12-28)" >
-        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="p5omn:default_db_get_xml_schema_if_not_exists"/>
-        <ant antfile="${build_root.xml}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />
+    <target name="object_modeling_new.build_Infrastructure" depends="read_build_properties" description="ANT_TARGET @2017-12-19 dobrze zrobilo prototypy z infrastr + brakujace elementy + simpleTYpe z default.db. new object by using prototype from Types with merging using regex select and igronre. Uwaga prototypy infrastruktury raz stworzone moga byc tylko odbudowywane z typespecial refs (TODO do poprawy @2017-12-28)" >
+        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="default_db_get_xml_schema_if_not_exists"/>
+        <ant antfile="${p5build.build}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />
         
         <property name="prototype_object_namespace.Infrastructure" value="https://biuro.biall-net.pl/wfs/default_db/Types/infrastructure.xsd"/>
         <property name="TargetNamespaceBindingsApi.Infrastructure" value="https://biuro.biall-net.pl/wfs"/>
@@ -221,7 +231,7 @@
             TargetNamespaceBindingsApi = ${TargetNamespaceBindingsApi.Infrastructure}
             NamespaceDatabaseStorageDefinitionPrefix = ${NamespaceDatabaseStorageDefinitionPrefix.Infrastructure}
             NamespaceObjectInstanceType = ${NamespaceObjectInstanceType.Infrastructure}
-            ant.target = p5omn:object_modeling_new_by_xml_schema
+            ant.target = object_modeling_new_by_xml_schema
             object_modeling.Error.Handling = ${object_modeling.Error.Handling.Infrastructure}
             external_schema_table.path = ${external_schema_table.path}
             procesy5_system_schema_collection_dir = ${basedir}
@@ -248,9 +258,9 @@
             <param name="NamespaceDatabaseStorageDefinitionPrefix" expression="${NamespaceDatabaseStorageDefinitionPrefix.Infrastructure}"/>
             <param name="NamespaceObjectInstanceType" expression="${NamespaceObjectInstanceType.Infrastructure}"/>
             <param name="ant.build" expression="${object_modeling_build}"/>
-            <param name="ant.target" expression="p5omn:new_object_by_prototype"/>
+            <param name="ant.target" expression="new_object_by_prototype"/>
             <!--<param name="ant.build" expression="${object_modeling_new}"/>--> <!-- location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml" -->
-            <!--<param name="ant.target" expression="p5omn:object_modeling_new_by_xml_schema"/>-->
+            <!--<param name="ant.target" expression="object_modeling_new_by_xml_schema"/>-->
             
             <param name="object_modeling.Error.Handling" expression="${object_modeling.Error.Handling.Infrastructure}"/>
             <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
@@ -272,9 +282,9 @@
     
     
     
-    <target name="p5omn:object_modeling_new.build_default" depends="read_build_properties" description="ANT_TARGET new object by using prototype from Types with merging using regex select and igronre" >
-        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="p5omn:default_db_get_xml_schema_if_not_exists"/>
-        <ant antfile="${build_root.xml}" target="procesy5_system_schema.xml" />
+    <target name="object_modeling_new.build_default" depends="read_build_properties" description="ANT_TARGET new object by using prototype from Types with merging using regex select and igronre" >
+        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="default_db_get_xml_schema_if_not_exists"/>
+        <ant antfile="${p5build.build}" target="procesy5_system_schema.xml" />
         
         <property name="prototype_object_namespace" value="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd"/>
         <property name="TargetNamespaceBindingsApi" value="https://biuro.biall-net.pl/wfs"/>
@@ -311,9 +321,9 @@
             <param name="NamespaceDatabaseStorageDefinitionPrefix" expression="${NamespaceDatabaseStorageDefinitionPrefix}"/>
             <param name="NamespaceObjectInstanceType" expression="${NamespaceObjectInstanceType}"/>
             <param name="ant.build" expression="${object_modeling_build}"/>
-            <param name="ant.target" expression="p5omn:new_object_by_prototype"/>
+            <param name="ant.target" expression="new_object_by_prototype"/>
             <!--<param name="ant.build" expression="${object_modeling_new}"/>--> <!-- location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml" -->
-            <!--<param name="ant.target" expression="p5omn:object_modeling_new_by_xml_schema"/>-->
+            <!--<param name="ant.target" expression="object_modeling_new_by_xml_schema"/>-->
             
             <param name="object_modeling.Error.Handling" expression="${object_modeling.Error.Handling}"/>
             <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
@@ -334,9 +344,9 @@
     
     
     
-    <target name="p5omn:object_modeling_new.build_Empty" depends="read_build_properties" description="ANT_TARGET @2017-12-19 dobrze zrobilo prototypy z infrastr + brakujace elementy + simpleTYpe z default.db. new object by using prototype from Types with merging using regex select and igronre" >
-        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="p5omn:default_db_get_xml_schema_if_not_exists"/>
-        <!--<ant antfile="${build_root.xml}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />-->
+    <target name="object_modeling_new.build_Empty" depends="read_build_properties" description="ANT_TARGET @2017-12-19 dobrze zrobilo prototypy z infrastr + brakujace elementy + simpleTYpe z default.db. new object by using prototype from Types with merging using regex select and igronre" >
+        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="default_db_get_xml_schema_if_not_exists"/>
+        <!--<ant antfile="${p5build.build}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />-->
         
         <property name="prototype_object_namespace.Empty" value="https://biuro.biall-net.pl/wfs/default_db/Types/Empty.xsd"/>
         <property name="TargetNamespaceBindingsApi.Empty" value="https://biuro.biall-net.pl/wfs"/>
@@ -363,7 +373,7 @@
             TargetNamespaceBindingsApi = ${TargetNamespaceBindingsApi.Empty}
             NamespaceDatabaseStorageDefinitionPrefix = ${NamespaceDatabaseStorageDefinitionPrefix.Empty}
             NamespaceObjectInstanceType = ${NamespaceObjectInstanceType.Empty}
-            ant.target = p5omn:object_modeling_new_by_xml_schema
+            ant.target = object_modeling_new_by_xml_schema
             object_modeling.Error.Handling = ${object_modeling.Error.Handling.Empty}
             external_schema_table.path = ${external_schema_table.path}
             procesy5_system_schema_collection_dir = ${basedir}
@@ -389,9 +399,9 @@
             <param name="NamespaceDatabaseStorageDefinitionPrefix" expression="${NamespaceDatabaseStorageDefinitionPrefix.Empty}"/>
             <param name="NamespaceObjectInstanceType" expression="${NamespaceObjectInstanceType.Empty}"/>
             <param name="ant.build" expression="${object_modeling_build}"/>
-            <param name="ant.target" expression="p5omn:new_object_by_prototype"/>
+            <param name="ant.target" expression="new_object_by_prototype"/>
             <!--<param name="ant.build" expression="${object_modeling_new}"/>--> <!-- location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml" -->
-            <!--<param name="ant.target" expression="p5omn:object_modeling_new_by_xml_schema"/>-->
+            <!--<param name="ant.target" expression="object_modeling_new_by_xml_schema"/>-->
             
             <param name="object_modeling.Error.Handling" expression="${object_modeling.Error.Handling.Empty}"/>
             <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
@@ -411,9 +421,9 @@
     
     
     
-    <target name="p5omn:object_modeling_new.build_from_default_db_schema" depends="read_build_properties" description="ANT_TARGET @2017-12-27 do tworzenia z bazy danych default_db.xsd brakujacych struktur (todo tu powinny tez byc refy)" >
-        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="p5omn:default_db_get_xml_schema_if_not_exists"/>
-        <ant antfile="${build_root.xml}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />
+    <target name="object_modeling_new.build_from_default_db_schema" depends="read_build_properties" description="ANT_TARGET @2017-12-27 do tworzenia z bazy danych default_db.xsd brakujacych struktur (todo tu powinny tez byc refy)" >
+        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="default_db_get_xml_schema_if_not_exists"/>
+        <ant antfile="${p5build.build}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />
         
         <exec executable="say" spawn="true" failifexecutionfails="false">
             <arg line="-v alex"/>
@@ -444,7 +454,7 @@
             procesy5_system_schema.xml = ${procesy5_system_schema.xml}; 
             default_db.xml = ${default_db.xml};
             external_schema_table.path = ${external_schema_table.path}
-            ant.target = p5omn:object_modeling_new_by_xml_schema
+            ant.target = object_modeling_new_by_xml_schema
             basedir = ${basedir} <!-- one level deeper -->
             object_modeling_new = ${object_modeling_new} <!-- location="${basedir}/WPS_Functions/object_modeling_new/build_object_modeling_new.xml" -->
             procesy5_system_schema_collection_dir = ${basedir}
@@ -509,11 +519,11 @@
     
     
     
-    <target name="p5omn:object_modeling_new.build_from_typespecial_refs" depends="read_build_properties" description="ANT_TARGET @2017-12-27 do tworzenia z typespecial to ref przetworzen zapisanych w default_db/id_zasob_36.xsd etc" >
+    <target name="object_modeling_new.build_from_typespecial_refs" depends="read_build_properties" description="ANT_TARGET @2017-12-27 do tworzenia z typespecial to ref przetworzen zapisanych w default_db/id_zasob_36.xsd etc" >
         <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="system_cache__appinfo:default_db_get_xml_schema_if_not_exists"/>
-        <!--<ant antfile="${build_root.xml}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />-->
+        <!--<ant antfile="${p5build.build}" target="new-schema-with-ID-to-move-and-rename-to-xsd" />-->
         
-        <copy file="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/table/USERS2_MARKETING.xsd" tofile="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/table/USERS2_MARKETING.x_s_d.${p5omn:current.timestamp}"/><!-- debut -->
+        <copy file="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/table/USERS2_MARKETING.xsd" tofile="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/table/USERS2_MARKETING.x_s_d.${current.timestamp}"/><!-- debut -->
         <!--<exec executable="say" spawn="true" failifexecutionfails="false">
             <arg line="-v alex"/>
             <arg line="generating new object by prototype by type special references"/>
@@ -618,10 +628,10 @@
     
     
     <!-- cannot do depends="read_build_properties" -->
-    <target name="test_hand_usage_modeling_new"  depends="read_build_properties"   description="To use it manually and edit to create object and development testing">
+    <target name="test_hand_usage_modeling_new"     description="To use it manually and edit to create object and development testing"> <!-- depends="read_build_properties" -->
            
-        <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="system_cache__appinfo:default_db_get_xml_schema"/> <!-- or system_cache__appinfo:default_db_get_xml_schema_if_not_exists -->
-        <ant antfile="${build_root.xml}" target="procesy5_system_schema.xml" />
+        <ant antfile="${object_modeling_by_default_db_xml_schema.build.xml}" target="system_cache__appinfo:default_db_get_xml_schema"/> <!-- or system_cache__appinfo:default_db_get_xml_schema_if_not_exists -->
+        <ant antfile="${p5build.build}" target="procesy5_system_schema.xml" />
         
         <!--<antcall target="system_cache__appinfo:object_modeling_new">
             <param name="NamespaceObjectInstanceTable" value="CRM_IMAGE"/>
@@ -665,15 +675,23 @@
         <echo>targetNamespace.base to ${targetNamespace.base}</echo>
        
         
-        <antcall target="p5omn:object_modeling_new_by_xml_schema">
+        <!--<antcall target="object_modeling_new_by_xml_schema">
             <param name="NamespaceObjectInstanceTable" value="Rozdzielcza_Kabel_swiatl_obcy"/>
             <param name="prototype_object_namespace" value="https://biuro.biall-net.pl/wfs/default_db/Types/infrastructure.xsd"/>
             <param name="TargetNamespaceBindingsApi" value="https://biuro.biall-net.pl/wfs"/>
             <param name="NamespaceDatabaseStorageDefinitionPrefix" value="default_db"/>
             <param name="NamespaceObjectInstanceType" value="table"/>
             <param name="targetNamespace.base" value="https://biuro.biall-net.pl/xmlschema_procesy5/default_db"/>
-        </antcall>
+        </antcall>-->
         
+        <antcall target="object_modeling_new_by_xml_schema">
+            <param name="NamespaceObjectInstanceTable" value="BILLS_RK_POS"/>
+            <param name="prototype_object_namespace" value="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd"/>
+            <param name="TargetNamespaceBindingsApi" value="https://biuro.biall-net.pl/wfs"/>
+            <param name="NamespaceDatabaseStorageDefinitionPrefix" value="default_db"/>
+            <param name="NamespaceObjectInstanceType" value="table"/>
+            <param name="targetNamespace.base" value="https://biuro.biall-net.pl/xmlschema_procesy5/default_db"/>
+        </antcall>
         
         
         
@@ -685,7 +703,7 @@
     
     
     <!--TODO TO TEST FIX ETC-->
-    <target  name="p5omn:object_modeling_new_add_new_table"  depends="read_build_properties,p5omn:object_modeling_new_in_schema_check,p5omn:object_modeling_new_in_xsd_check" description="TODO Create new schema (empty table - not working currently)">
+    <target  name="object_modeling_new_add_new_table"  depends="read_build_properties,object_modeling_new_in_schema_check,object_modeling_new_in_xsd_check" description="TODO Create new schema (empty table - not working currently)">
         <input addproperty="TargetNamespaceBindingsApi" defaultvalue="https://biuro.biall-net.pl/wfs"/> <!-- root namespace API -->
         <input addproperty="NamespaceDatabaseStorageDefinitionPrefix" defaultvalue="default_db"/>
         <input addproperty="NamespaceObjectInstanceType" defaultvalue="table"/>
@@ -714,18 +732,23 @@
             <param name="object_modeling_new_basedir_repository" expression="${object_modeling_new_basedir_repository}"/>
             <param name="procesy5_system_schema_collection_dir" expression="${basedir}"/>
             <param name="targetNamespace.base" expression="${targetNamespace.base}"/>
+            <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
+            <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${detect_objects_parent_relations.local}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
+            <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
         </xslt>
     </target>
     
-    <!-- depends="p5omn:object_modeling_new" test off -->
-    <target  name="p5omn:object_modeling_new_by_xml_schema" depends="read_build_properties,p5omn:object_modeling_new_in_schema_check,p5omn:object_modeling_new_in_xsd_check"   description="TESTING Create new schema based on default_db.xml(xsd) + prototype">
+    <!-- depends="object_modeling_new" test off -->
+    <target  name="object_modeling_new_by_xml_schema" depends="object_modeling_new_in_schema_check,object_modeling_new_in_xsd_check"   description="TESTING Create new schema based on default_db.xml(xsd) + prototype"> <!-- R read_build_properties, -->
         <input addproperty="prototype_object_namespace" defaultvalue="https://biuro.biall-net.pl/wfs/default_db/Types/Default.xsd" />
         <input addproperty="NamespaceDatabaseStorageDefinitionPrefix" defaultvalue="default_db" />
         <antcall target="template_object.xml_location.xml" inheritall="yes" inheritrefs="yes"/>
         <!--   
         <ant antfile="${build_object_modeling_by_default_db_xml_schema.xml}" target="system_cache__appinfo:default_db_get_xml_schema"/> <!-\- or system_cache__appinfo:default_db_get_xml_schema_if_not_exists -\->
-        <ant antfile="${build_root.xml}" target="procesy5_system_schema.xml" />
+        <ant antfile="${p5build.build}" target="procesy5_system_schema.xml" />
         -->
         <echo>#615 
             
@@ -749,12 +772,14 @@
             external_schema_table.path" expression="${external_schema_table.path}
             default_db.instance.xml" expression="${default_db.instance.xml}
             object_modeling_new ${object_modeling_new}
-            
-            
+            $object_modeling.Error.Handling = ${object_modeling.Error.Handling}
+            $object_modeling_new_add_new_table.result = ${object_modeling_new_add_new_table.result}
+            $procesy5_system_schema.xml = ${procesy5_system_schema.xml}
+            $new_object_by_prototype_result.xml = ${new_object_by_prototype_result.xml}
             <!--generating to ${new_object_namespace}-->
         </echo>
         
-        <xslt basedir="./" style="${object_modeling_new_by_xml_schema.xsl}"  in="${procesy5_system_schema.xml}"  destdir="./" out="${new_object_by_prototype_result.xml}" >
+        <xslt basedir="${object_modeling_new.temp}" style="${object_modeling_new_by_xml_schema.xsl}"  in="${procesy5_system_schema.xml}"   out="${new_object_by_prototype_result.xml}" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd}object_modeling_new_by_xml_schema"/>
@@ -771,26 +796,40 @@
             <param name="targetNamespace.base" expression="${targetNamespace.base}"/>
             <param name="external_schema_table.path" expression="${external_schema_table.path}"/>
             <param name="default_db.instance.xml" expression="${default_db.instance.xml}"/>
+            <param name="detect_resource_type.local" expression="${detect_resource_type.local}"/>
+            <param name="{http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/object_parent_relations/object_parent_relations.xsd}detect_objects_parent_relations.local" expression="${p5opr:detect_objects_parent_relations.local}"/>
+            <param name="vrtfNamespaces.xml" expression="${vrtfNamespaces.xml}"/>
+            <param name="zasob_id_db_targetNamespace_detect_string" expression="${zasob_id_db_targetNamespace_detect_string}"/>
+            <param name="default_db_targetNamespace_detect_string" expression="${default_db_targetNamespace_detect_string}"/>
+            <param name="object_modeling.Error.Handling" expression="${object_modeling.Error.Handling}"/>
+            <param name="debug" expression="${debug}"/>
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
         </xslt>
         <loadfile property="new_object_by_prototype_result.xml_loadfile" srcfile="${new_object_by_prototype_result.xml}"/>
         <echo message="${new_object_by_prototype_result.xml_loadfile}"/>
     </target>
     
-    <target name="p5omn:object_modeling_new_add_child_element" description="TODO add new child element"/>
-    <target name="p5omn:object_modeling_new_add_root_element_by_restriction" description="TODO add new instance element based on existient complexType"/>
-    <target name="p5omn:object_modeling_new_add_root_element_by_aliasing" description="TODO add new instance element based on existient complexType"/>
+    <target name="objectMergeAntObjectTry">
+        <input addproperty="objectMergeAntObjectTry.build.xml" message="Type generated ant build calling macro"/>
+        <ant antfile="${objectMergeAntObjectTry.build.xml}" inheritall="true"/>
+    </target>
+    
+    
+    
+    <target name="object_modeling_new_add_child_element" description="TODO add new child element"/>
+    <target name="object_modeling_new_add_root_element_by_restriction" description="TODO add new instance element based on existient complexType"/>
+    <target name="object_modeling_new_add_root_element_by_aliasing" description="TODO add new instance element based on existient complexType"/>
     
-    <target name="p5omn:object_modeling_new_add_child_element_reference" description="TODO add new element to reference"/>
+    <target name="object_modeling_new_add_child_element_reference" description="TODO add new element to reference"/>
     
-    <target name="p5omn:object_modeling_new_modify_child_element_simpleType" description="TODO set simpleType"/>
-    <target name="p5omn:object_modeling_new_add_simpleType" description="TODO add new simpleType"/>
-    <target name="p5omn:object_modeling_new_add_simpleType_derived" description="TODO add new simpleType based by existient simpleType adding new type enum to parent and single value to child"/>
+    <target name="object_modeling_new_modify_child_element_simpleType" description="TODO set simpleType"/>
+    <target name="object_modeling_new_add_simpleType" description="TODO add new simpleType"/>
+    <target name="object_modeling_new_add_simpleType_derived" description="TODO add new simpleType based by existient simpleType adding new type enum to parent and single value to child"/>
     
-    <target name="p5omn:object_modeling_new_modify_child_element_set_simpleType_to_parent" description="TODO to add simpleType to complexType - first parent complexType of parent simpleType than to all complexType"/>
-    <target name="p5omn:object_modeling_new_modify_child_element_set_simpleType_to_derived" description="TODO controlled allow set simpleType to derived complexType by controlling derivation"/>
+    <target name="object_modeling_new_modify_child_element_set_simpleType_to_parent" description="TODO to add simpleType to complexType - first parent complexType of parent simpleType than to all complexType"/>
+    <target name="object_modeling_new_modify_child_element_set_simpleType_to_derived" description="TODO controlled allow set simpleType to derived complexType by controlling derivation"/>
     <!-- occurs -->
-    <target name="p5omn:object_modeling_new_modify_child_element_set_Occurs_to_parent" description="TODO modify max/min Occurs to parent complexType and set all derived"/>
-    <target name="p5omn:object_modeling_new_modify_child_element_set_Occurs_to_derived" description="TODO modify max/min Occurs to derived with controlling of derivation tree"/>
+    <target name="object_modeling_new_modify_child_element_set_Occurs_to_parent" description="TODO modify max/min Occurs to parent complexType and set all derived"/>
+    <target name="object_modeling_new_modify_child_element_set_Occurs_to_derived" description="TODO modify max/min Occurs to derived with controlling of derivation tree"/>
   
 </project>

+ 46 - 1
SE/schema/WPS_Functions/object_modeling_new/object_modeling_new.xsd

@@ -4,12 +4,15 @@
     xmlns:p5omn="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling_new/object_modeling_new.xsd"
     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/WPS_Functions/object_modeling_new/object_modeling_new.xsd"
-    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning">
+    vc:minVersion="1.1" xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+    xmlns:p5build_SE="http://biuro.biall-net.pl/build_SE.xsd">
     <xs:annotation>
         <xs:documentation>To define main function modelling for merging objects into system schema parameters</xs:documentation>
     </xs:annotation>
     <xs:import schemaLocation="../object_modeling/object_modeling.xsd"
         namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/object_modeling/object_modeling.xsd"/>
+    <xs:import namespace="http://biuro.biall-net.pl/build_SE.xsd"
+        schemaLocation="../../build_SE.xsd"/>
     <xs:element name="object_modeling_new.build_from_typespecial_refs">
         <xs:annotation>
             <xs:documentation>ANT_TARGET @2017-12-27 do tworzenia z typespecial to ref przetworzen zapisanych w default_db/id_zasob_36.xsd etc</xs:documentation>
@@ -29,4 +32,46 @@
             <xs:attribute ref="p5om:suppres_saving.typespecial_refs"/>
         </xs:complexType>
     </xs:element>
+    <xs:simpleType name="NamespaceObjectInstanceTable">
+        <xs:annotation>
+            <xs:documentation>value="Rozdzielcza_Kabel_swiatl_obcy"</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:simpleType name="prototype_object_namespace">
+        <xs:annotation>
+            <xs:documentation>value="https://biuro.biall-net.pl/wfs/default_db/Types/infrastructure.xsd"</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="p5build_SE:prototype_object_namespace.default.default"/>
+    </xs:simpleType>
+    <xs:simpleType name="TargetNamespaceBindingsApi">
+        <xs:annotation>
+            <xs:documentation>value="https://biuro.biall-net.pl/wfs"</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:simpleType name="NamespaceDatabaseStorageDefinitionPrefix">
+        <xs:annotation>
+            <xs:documentation>value="default_db"</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:simpleType name="NamespaceObjectInstanceType">
+        <xs:annotation>
+            <xs:documentation>value="table"</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:simpleType name="targetNamespace.base">
+        <xs:annotation>
+            <xs:documentation>value="https://biuro.biall-net.pl/xmlschema_procesy5/default_db"</xs:documentation>
+        </xs:annotation>
+        <xs:restriction base="xs:string"/>
+    </xs:simpleType>
+    <xs:simpleType name="object_modeling.Error.Handling">
+        <xs:restriction base="xs:string">
+            <xs:enumeration value="ERROR"/>
+            <xs:enumeration value="IGNORE"/>
+        </xs:restriction>
+    </xs:simpleType>
 </xs:schema>

+ 56 - 0
SE/schema/WPS_Functions/procesy5_package/build.p5pckg.PRODUCT.xml

@@ -0,0 +1,56 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." name="p5pckg.PRODUCT" default="basedir"
+    xmlns:p5pckg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd"
+    >
+    
+    <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
+    <include file="../../build.p5build.SYSTEM.xml" optional="true"/>
+    
+    <property name="p5pckg.PRODUCT.name" value="${WPS_Functions.PRODUCT.name}.procesy5_package"/>
+    <property name="p5pckg.PRODUCT.vendor-domain" value="${p5build_SE.PRODUCT.vendor-domain}.procesy5_package"/>
+    
+    <property name="p5pckg.basedir"     value="${WPS_Functions.basedir}/procesy5_package"/>
+    <property name="p5pckg.build"     value="${p5pckg.basedir}/build_procesy5_package.xml"/>
+    <property name="p5pckg.repository"  value="${p5pckg.basedir}/repository"/>
+    <property name="p5pckg.xsl"     value="${p5pckg.basedir}/p5pckg.xsl"/>
+
+    <property name="p5pckg.temp" location="${p5pckg.basedir}/temp"/>    
+    <property name="p5pckg.childproperties" location="${WPS_Functions.childproperties}/build_procesy5_package.properties"/>
+    
+   
+    <property name="p5pckg.superedit-SQIX_STRUCTURE_DB_SYNC.php" location="${remote.SE}/superedit-SQIX_STRUCTURE_DB_SYNC.php"/>
+   
+    <property name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php" location="${remote.SE}/superedit-INSTALL_SES_PROCESY_A.php"/>
+    <property name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml" location="${p5pckg.repository}/p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml"/>
+    <property name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml" location="${p5pckg.repository}/p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml"/>
+    <property name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml" location="${p5pckg.repository}/p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml"/>
+    
+    
+    <property name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml" location="${p5pckg.repository}/p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml"/>
+    
+    <target name="basedir" description="to create local dirs">
+        <propertyset id="p5pckg.local.properties">
+            <propertyref prefix="p5pckg"/>
+            <mapper type="glob" from="p5pckg.*" to="local.*"/>
+        </propertyset>
+        <antcall target="WPS_Functions.basedir.p5bws:dirs" inheritall="false">
+            <propertyset refid="p5pckg.local.properties"/>
+        </antcall>
+    </target>
+    
+    <target name="clean"  description="To delete all temp and repository">
+        <antcall target="WPS_Functions.basedir.p5bws:dirs.clean" inheritall="false">
+            <propertyset refid="p5pckg.local.properties"/>
+        </antcall>
+    </target>
+    
+    
+    <target name="clean.temp"  description="To delete all temp and repository">
+        <antcall target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean" inheritall="false">
+            <propertyset refid="p5pckg.local.properties"/>
+        </antcall>
+    </target>
+    
+    
+    
+</project>

+ 16 - 0
SE/schema/WPS_Functions/procesy5_package/build.p5pckg.SYSTEM.xml

@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." name="p5pckg.SYSTEM" 
+    xmlns:p5pckg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd"
+    >
+    <include file="build.p5pckg.PRODUCT.xml" as="PRODUCT" optional="true"/>
+    <include file="../build.WPS_Functions.SYSTEM.xml" as="WPS_Functions"/>
+    
+    
+    <property name="p5pckg.SYSTEM.StandardOutPath" location="${p5build_SE.SYSTEM.StandardOutPath}/${p5pckg.PRODUCT.name}.log"/>
+    <property name="p5pckg.SYSTEM.StandardErrorPath" location="${p5build_SE.SYSTEM.StandardErrorPath}/${p5pckg.PRODUCT.name}.log"/>
+    
+    
+    
+    
+    
+</project>

+ 91 - 0
SE/schema/WPS_Functions/procesy5_package/build_procesy5_package.xml

@@ -0,0 +1,91 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." name="procesy5_package" 
+    xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+    xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+    xmlns:p5pckg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd"
+    default="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml"
+    >
+    
+    
+    <description>To analyze procesy5 old bash/php installer to generate debian installer and other functions stuffs</description>
+    
+    
+    <include file="build.p5pckg.PRODUCT.xml" as="PRODUCT" />
+    <include file="build.p5pckg.SYSTEM.xml" as="SYSTEM" />
+    <include file="../build.WPS_Functions.PRODUCT.xml" as="WPS_Functions"/>
+    
+    
+    <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
+    
+  
+    <target name="default" depends=" PRODUCT.basedir"/>
+        
+        
+        
+    
+  
+   
+    <target name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml" depends="default">
+        <local name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml.content"/>
+        <loadfile property="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml.content" srcfile="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php}"/>
+        <echoxml file="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml}" namespacepolicy="all">
+            <p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd">
+                ${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml.content}
+            </p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml>
+        </echoxml>
+    </target>
+   
+    <target name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml" depends=" default, p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml">
+        <ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
+            <property name="p5suis:say_text" value="parsing old procesy5 installer " />
+        </ant>
+        <xslt basedir="${p5pckg.temp}" style="${p5pckg.xsl}" in="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml}"   out="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml}"  force="true" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd}superedit-INSTALL_SES_PROCESY_A.php.analyze.xml"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>
+   </target>
+    
+    
+    <extension-point name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml.ep" depends="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml"/>
+    
+    <target name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml" depends=" default, p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml.ep">
+        <!--<ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
+            <property name="p5suis:say_text" value="parsing old procesy5 installer " />
+        </ant>-->
+        <xslt basedir="${p5pckg.temp}" style="${p5pckg.xsl}" in="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml}"   out="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml}"  force="true" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd}superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>
+    </target>
+    
+    
+    <target name="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml" depends=" default, p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml.ep">
+        <!--<ant antfile="${p5suis.build}" target="p5suis:say_to_queue">
+            <property name="p5suis:say_text" value="parsing old procesy5 installer " />
+        </ant>-->
+        <xslt basedir="${p5pckg.temp}" style="${p5pckg.xsl}" in="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze.xml}"   out="${p5pckg.superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml}"  force="true" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+                <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd}superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml"/>
+            </factory>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>
+    </target>
+    
+    
+    
+   
+   
+   
+    
+    
+   
+    
+  
+</project>

+ 284 - 0
SE/schema/WPS_Functions/procesy5_package/p5pckg.xsl

@@ -0,0 +1,284 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:p5pckg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd"
+    exclude-result-prefixes="xs" version="2.0">
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    
+    
+    <xsl:template mode="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml"
+        match="p5pckg.superedit-INSTALL_SES_PROCESY_A.php.xml"
+        xpath-default-namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/procesy5_package.xsd">
+        <p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml>
+            <xsl:variable name="context.prev" select="."/>
+            <xsl:for-each select="tokenize(text(), '\\/\*')">
+                <comment_in>
+                    <xsl:attribute name="pos" select="position()"/>
+                    <xsl:variable name="context.prev" select="."/>
+                    <xsl:for-each select="tokenize(current(), '\\/\*')">
+                        <xsl:attribute name="pos" select="position()"/>
+                        <comment_out>
+                            <xsl:variable name="context.prev" select="."/>
+                          
+                                            
+                                            
+                                            
+                                            
+                                            
+                                            
+                                            
+                                                                <xsl:for-each select="tokenize(current(),'static')">
+                                                                    <static>
+                                                                        <xsl:attribute name="pos" select="position()"/>
+                                                                        <xsl:attribute name="val" select="'static'"/>
+                                                                        <xsl:if test="contains($context.prev,'static')">
+                                                                            <xsl:attribute name="val.used" select="'static'"/>
+                                                                        </xsl:if>
+                                                                        <xsl:variable name="context.prev" select="."/>
+                                                                        <xsl:for-each select="tokenize(current(),'function')">
+                                                                            <function>
+                                                                                <xsl:attribute name="pos" select="position()"/>
+                                                                                <xsl:attribute name="val" select="'function'"/>
+                                                                                <xsl:if test="contains($context.prev,'function')">
+                                                                                    <xsl:attribute name="val.used" select="'function'"/>
+                                                                                </xsl:if>
+                                                                
+                                                                
+                                                                                <xsl:variable name="context.prev" select="."/>
+                                                                                <xsl:for-each select="tokenize(current(), '\{')">
+                                                                                    <lt>
+                                                                                        <xsl:attribute name="pos" select="position()"/>
+                                                                                        <xsl:attribute name="val" select="'{'"/>
+                                                                                        <xsl:if test="contains($context.prev,'{')">
+                                                                                            <xsl:attribute name="val.used" select="'{'"/>
+                                                                                        </xsl:if>
+                                                                                        <xsl:variable name="context.prev" select="."/>
+                                                                                        <xsl:for-each select="tokenize(current(), '}')">
+                                                                                            <rt>
+                                                                                                <xsl:attribute name="pos" select="position()"/>
+                                                                                                <xsl:attribute name="val" select="'}'"/>
+                                                                                                <xsl:if test="contains($context.prev,'}')">
+                                                                                                    <xsl:attribute name="val.used" select="'}'"/>
+                                                                                                </xsl:if>
+                                                                                                    <xsl:variable name="context.prev" select="."/>
+                                                                                                    
+                                                                                                
+                                                                                                                   <!-- <xsl:for-each select="tokenize(current(), '\n')">
+                                                                                                                        <nl>
+                                                                                                                          <xsl:attribute name="val" select="'\n'"/>
+                                                                                                                          <xsl:attribute name="pos" select="position()"/>
+                                                                                                                            <xsl:variable name="escaped" select="'(//.*)'"/>
+                                                                                                                            <xsl:choose>
+                                                                                                                                
+                                                                                                                                <xsl:when test="matches( current(),$escaped)">
+                                                                                                                                    <xsl:comment><xsl:value-of select="current()"/></xsl:comment>
+                                                                                                                                </xsl:when>
+                                                                                                                                <xsl:otherwise>-->
+                                                                                                                                    <!--<xsl:variable name="context.prev" select="."/>-->
+                                                                                                                                    <xsl:for-each select="tokenize(current(),'\(')">
+                                                                                                                                        <lb>
+                                                                                                                                            <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                            <xsl:attribute name="val" select="'('"/>
+                                                                                                                                            <xsl:if test="contains($context.prev,'(')">
+                                                                                                                                                <xsl:attribute name="val.used" select="'('"/>
+                                                                                                                                            </xsl:if>
+                                                                                                                                            <xsl:variable name="context.prev" select="."/>
+                                                                                                                                            <xsl:for-each select="tokenize(current(),'\)')">
+                                                                                                                                                <rb>
+                                                                                                                                                    <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                    <xsl:attribute name="val" select="')'"/>
+                                                                                                                                                    <xsl:if test="contains($context.prev,')')">
+                                                                                                                                                        <xsl:attribute name="val.used" select="')'"/>
+                                                                                                                                                    </xsl:if>
+                                                                                                                                                    <xsl:variable name="escape" select="';'"/>
+                                                                                                                                                    <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                    <xsl:for-each select="tokenize(current(),$escape)">
+                                                                                                                                                        <command>
+                                                                                                                                                            <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                            <xsl:attribute name="val" select="$escape"/>
+                                                                                                                                                            <xsl:if test="contains($context.prev,$escape)">
+                                                                                                                                                                <xsl:attribute name="val.used" select="$escape"/>
+                                                                                                                                                            </xsl:if>
+                                                                                                                                                            <xsl:variable name="escape" select="'='"/>
+                                                                                                                                                            <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                            <xsl:for-each select="tokenize(current(),$escape)">
+                                                                                                                                                                <equal>
+                                                                                                                                                                    <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                    <xsl:attribute name="val" select="$escape"/>
+                                                                                                                                                                    <xsl:if test="contains($context.prev,$escape)">
+                                                                                                                                                                        <xsl:attribute name="val.used" select="$escape"/>
+                                                                                                                                                                    </xsl:if>
+                                                                                                                                                                    <xsl:variable name="escape" select="'\$'"/>
+                                                                                                                                                                    <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                                    <xsl:for-each select="tokenize(current(),$escape)">
+                                                                                                                                                                        <dollar>
+                                                                                                                                                                            <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                            <xsl:attribute name="val" select="$escape"/>
+                                                                                                                                                                            <xsl:if test="contains($context.prev,$escape)">
+                                                                                                                                                                                <xsl:attribute name="val.used" select="$escape"/>
+                                                                                                                                                                            </xsl:if>
+                                                                                                                                                                            <xsl:value-of select="."/>
+                                                                                                                                                                        </dollar>
+                                                                                                                                                                    </xsl:for-each>
+                                                                                                                                                                </equal>
+                                                                                                                                                            </xsl:for-each>
+                                                                                                                                                            
+                                                                                                                                                        </command>
+                                                                                                                                                    </xsl:for-each>
+                                                                                                                                                    
+                                                                                                                                                                   
+                                                                                                                                                </rb>
+                                                                                                                                            </xsl:for-each>
+                                                                                                                                        </lb>
+                                                                                                                                    </xsl:for-each>
+                                                                                                
+                                                                                                
+                                                                                                                              <!--  </xsl:otherwise>
+                                                                                                                            </xsl:choose>
+                                                                                                                        </nl>
+                                                                                                                    </xsl:for-each>-->
+                                                                                            </rt>
+                                                                                        </xsl:for-each>
+                                                                                    </lt>
+                                                                                </xsl:for-each>
+                                                                            </function>
+                                                                        </xsl:for-each>
+                                                                    </static>
+                                                                </xsl:for-each>
+                                                            
+                                                            
+                                 
+                        </comment_out>
+                    </xsl:for-each>
+                </comment_in>
+            </xsl:for-each>
+        </p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml>
+    </xsl:template>
+    
+    
+    <!-- <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                                    <xsl:for-each select="tokenize(current(),'=')">
+                                                                                                                                                                        <equal>
+                                                                                                                                                                            <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                            <xsl:attribute name="val" select="'='"/>
+                                                                                                                                                                            <xsl:if test="contains($context.prev,'=')">
+                                                                                                                                                                                <xsl:attribute name="val.used" select="'='"/>
+                                                                                                                                                                            </xsl:if>
+                                                                                                                                                                            <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                                            <xsl:for-each select="tokenize(current(),'\[')">
+                                                                                                                                                                                <lqb>
+                                                                                                                                                                                    <xsl:if test="contains($context.prev,'[')">
+                                                                                                                                                                                        <xsl:attribute name="val.used" select="'['"/>
+                                                                                                                                                                                    </xsl:if>
+                                                                                                                                                                                    <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                                    <xsl:attribute name="val" select="'['"/>
+                                                                                                                                                                                    <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                                                    <xsl:for-each select="tokenize(current(),'\]')">
+                                                                                                                                                                                        <rqb>
+                                                                                                                                                                                            <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                                            <xsl:attribute name="val" select="']'"/>
+                                                                                                                                                                                            <xsl:if test="contains($context.prev,']')">
+                                                                                                                                                                                                <xsl:attribute name="val.used" select="']'"/>
+                                                                                                                                                                                            </xsl:if>
+                                                                                                                                                                                            <xsl:variable name="esape"><xsl:text>'</xsl:text></xsl:variable>
+                                                                                                                                                                                            <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                                                            <xsl:for-each select="tokenize(current(),$esape)">
+                                                                                                                                                                                                <apo>
+                                                                                                                                                                                                    <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                                                    <xsl:attribute name="val" select="$esape"/>
+                                                                                                                                                                                                    <xsl:if test="contains($context.prev,$esape)">
+                                                                                                                                                                                                        <xsl:attribute name="val.used" select="$esape"/>
+                                                                                                                                                                                                    </xsl:if>
+                                                                                                                                                                                                    <xsl:variable name="esape"><xsl:text>"</xsl:text></xsl:variable>
+                                                                                                                                                                                                    <xsl:variable name="context.prev" select="."/>
+                                                                                                                                                                                                    <xsl:for-each select="tokenize(current(),$esape)">
+                                                                                                                                                                                                        <quot>
+                                                                                                                                                                                                            <xsl:if test="contains($context.prev,$esape)">
+                                                                                                                                                                                                                <xsl:attribute name="val.used" select="$esape"/>
+                                                                                                                                                                                                            </xsl:if>
+                                                                                                                                                                                                            <xsl:attribute name="pos" select="position()"/>
+                                                                                                                                                                                                            <xsl:attribute name="val" select="$esape"/>
+                                                                                                                                                                                                            <xsl:value-of select="."/>
+                                                                                                                                                                                                        </quot>
+                                                                                                                                                                                                    </xsl:for-each>
+                                                                                                                                                                                                </apo>
+                                                                                                                                                                                            </xsl:for-each>
+                                                                                                                                                                                        </rqb>
+                                                                                                                                                                                    </xsl:for-each>
+                                                                                                                                                                                </lqb>
+                                                                                                                                                                            </xsl:for-each>
+                                                                                                                                                                        </equal>
+                                                                                                                                                                    </xsl:for-each>
+                                                                                                                                                                -->
+    <!--
+    <xsl:template mode="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml"
+        match="nl[matches('(\\/\\/.*)', text())]">
+        <comment>
+            <xsl:value-of select="text()"/>
+        </comment>
+    </xsl:template>
+    <xsl:template mode="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml" match="nl">
+        <rest>
+            <xsl:value-of select="text()"/>
+        </rest>
+    </xsl:template>-->
+    
+    
+            <xsl:template mode="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml" match="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml">
+                <p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml>
+                    <xsl:for-each select=".//*">
+                        <xsl:copy>
+                            <xsl:attribute name="p5pckg:pos.anal" select="position()"/>
+                            <xsl:copy-of select="@*"/>
+                            <xsl:copy-of select="text()"/>
+                        </xsl:copy>
+                    </xsl:for-each>
+                </p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze-flat.xml>
+            </xsl:template>        
+        
+    <xsl:template mode="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml" match="p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze.xml">
+        <p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml>
+            <xsl:for-each select=".//function[@val.used and .//text()]">
+                <p5pckg:function>
+                    <xsl:attribute name="name" select="(.//text())[1]"/>
+                    
+                    
+                    <xsl:for-each select=".//command[@val.used    ]">
+                        
+                        <xsl:choose>
+                            <xsl:when test=".//dollar[ contains( text(),'port install')]">
+                                <p5pckg:port1>
+                                    <xsl:attribute name="install" select="equal[@pos=2 ]/substring-after(dollar[@pos=1]/text(),'install')"/>
+                                </p5pckg:port1>
+                            </xsl:when>
+                            <xsl:when test=".//dollar[ contains( text(),'port install')]">
+                                <p5pckg:port2>
+                                    <xsl:attribute name="install" select="equal[@pos=2]/substring-after(dollar/text(),'install')"/>
+                                </p5pckg:port2>
+                            </xsl:when>
+                            <xsl:when test=".//dollar[@pos=2][ contains( text(),'rsh')]">
+                                <p5pckg:command>
+                                    <xsl:attribute name="rsh" select="equal[@pos=2]/dollar/text()"/>
+                                </p5pckg:command>
+                            </xsl:when>
+                        </xsl:choose>
+                        
+                        
+                    </xsl:for-each>
+                    
+                    
+                    
+                </p5pckg:function>
+            </xsl:for-each>
+            
+        </p5pckg:superedit-INSTALL_SES_PROCESY_A.php.analyze-functions-modules.xml>
+        
+    </xsl:template>
+        
+        
+            
+    
+    
+    
+</xsl:stylesheet>

+ 28 - 0
SE/schema/WPS_Functions/send_email/build.send_email.INSTALL.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." default="INSTALL" name="send_email.INSTALL">
+  <include file="build.send_email.PRODUCT.xml" />
+  <property location="${send_email.install}/install_example.file" name="send_email.INSTALL.install_example" />
+  <property location="${send_email.install}/javax.mail-1.6.1.jar" name="send_email.INSTALL.javax.mail-1.6.1.jar" />
+  
+  <condition property="send_email.INSTALL.javax.mail-1.6.1.jar.ifdef" taskname="INSTALL.javax.mail-1.6.1.jar">
+    <not>
+      <available file="${ant.library.dir}/javax.mail-1.6.1.jar" />
+    </not>
+  </condition>
+  
+  <condition property="send_email.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
+    <not>
+      <available file="${send_email.repository}/install_example.file" />
+    </not>
+  </condition>
+  
+  <target depends="INSTALL.javax.mail-1.6.1.jar" name="INSTALL" />
+  <target if="send_email.INSTALL.install_example.ifdef" name="INSTALL.install_example">
+    <copy file="${send_email.INSTALL.install_example}" tofile="${send_email.install_example}" />
+  </target>
+  
+  <target if="send_email.INSTALL.javax.mail-1.6.1.jar.ifdef" name="INSTALL.javax.mail-1.6.1.jar">
+    <copy file="${send_email.INSTALL.javax.mail-1.6.1.jar}" tofile="${ant.library.dir}/javax.mail-1.6.1.jar" />
+  </target>
+  
+</project>

+ 76 - 0
SE/schema/WPS_Functions/send_email/build.send_email.PRODUCT.xml

@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:send_email="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="send_email.PRODUCT">
+   <description>p5suis:say Created function send_email with prefix send_email by p5ant module</description>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="send_email.PRODUCT.ifdef.parent"
+              taskname="send_email.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="send_email.PRODUCT.name"
+             value="${WPS_Functions.PRODUCT.name}.send_email"/>
+   <property name="send_email.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.send_email"/>
+   <property name="send_email.basedir" value="${WPS_Functions.basedir}/send_email"/>
+   <property name="send_email.build.xml"
+             value="${send_email.basedir}/build_send_email.xml"/>
+   <property name="send_email.repository"
+             value="${WPS_Functions.repository}/send_email"/>
+   <property name="send_email.install" value="${send_email.basedir}/install"/>
+   <property location="${WPS_Functions.temp}/send_email" name="send_email.temp"/>
+   <property location="${send_email.basedir}/send_email.xsl" name="send_email.xsl"/>
+   <property location="${send_email.basedir}/send_email.xsd" name="send_email.xsd"/>
+   <property location="${send_email.basedir}/send_email.include.structure.xml"
+             name="send_email.include.structure.xml"/>
+   <property location="${send_email.basedir}/send_email.include.xsl.p5xsls.xml"
+             name="send_email.include.xsl.p5xsls.xml"/>
+   <property location="${send_email.repository}/install_example.file"
+             name="send_email.install_example"/>
+   <target depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="send_email.local.properties">
+         <propertyref prefix="send_email"/>
+         <mapper from="send_email.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="send_email.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="send_email.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="send_email.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="send_email.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly"
+               file="${send_email.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="send_email"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 7 - 0
SE/schema/WPS_Functions/send_email/build.send_email.SYSTEM.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="send_email.SYSTEM">
+  <include file="../build.WPS_Functions.SYSTEM.xml" optional="true" />
+  <include as="PRODUCT" file="build.send_email.PRODUCT.xml" optional="true" />
+  <property location="${p5build_SE.SYSTEM.StandardOutPath}/send_email.log" name="send_email.SYSTEM.StandardOutPath" />
+  <property location="${p5build_SE.SYSTEM.StandardErrorPath}/send_email.log" name="send_email.SYSTEM.StandardErrorPath" />
+</project>

+ 58 - 0
SE/schema/WPS_Functions/send_email/build_send_email.xml

@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:send_email="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd"
+         basedir="../../."
+         default="default"
+         name="send_email">
+   <include as="PRODUCT" file="build.send_email.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.send_email.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.send_email.INSTALL.xml"/>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
+   <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL" name="default"/>
+   
+   
+   
+   <target name="send_email_from_xml_parsed" description="To send email based on dita file - parse if there are any emails aviable">
+      <input addproperty="send_email.xml_to_parse.xml" message="Type url to XML with emails to parse - like .dita file"/>
+      <!--<property name="send_email.xml_to_parse.xml" location="/opt/local/pl.procesy5/p5build_SE/temp/WPS_Functions/temp/recurse_ant/62888prezes1/62888prezes1_out_task_dita_final.dita"/>-->
+      <tempfile property="send_email.send_email_from_xml_parsed.xml" destdir="${send_email.temp}" prefix="send_email.send_email_from_xml_parsed." suffix=".xml"/>
+      <tempfile property="send_email.send_email_from_xml_parsed.build.xml" destdir="${send_email.temp}" prefix="send_email.send_email_from_xml_parsed.build.xml" suffix=".xml"/>
+      
+      
+      <xslt basedir="${send_email.temp}" style="${send_email.xsl}" in="${send_email.xml_to_parse.xml}"  destdir="./" out="${send_email.send_email_from_xml_parsed.xml}" >
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd}send_email.send_email_from_xml_parsed.xml"/>
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+         <!--<param name="webRootUrl" expression="${webRootUrl}" />--> 
+         <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+         <!--<param name="uuid" expression="${uuid_tested}"/>-->
+         <param name="basedir" expression="${basedir}"/>
+        <!-- <param name="temp" expression="${temp}"/>
+         <param name="with_RelatedFeatureLoop" expression="1"/>
+         <param name="simpleSchema_dir" expression="${simpleSchema_dir}"/>-->
+         
+      </xslt>
+      
+      <xslt basedir="${send_email.temp}" style="${send_email.xsl}" in="${send_email.send_email_from_xml_parsed.xml}"  destdir="./" out="${send_email.send_email_from_xml_parsed.build.xml}" >
+         <factory name="net.sf.saxon.TransformerFactoryImpl">    
+            <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd}send_email.send_email_from_xml_parsed.build.xml"/>
+         </factory>
+         <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        
+         <param name="basedir" expression="${basedir}"/>
+         <param name="send_email.INSTALL.javax.mail-1.6.1.jar" expression="${send_email.INSTALL.javax.mail-1.6.1.jar}"/>
+         
+      </xslt>
+      
+      <ant antfile="${send_email.send_email_from_xml_parsed.build.xml}"/>
+      
+      <!--<exec executable="open">
+         <arg file="${send_email.send_email_from_xml_parsed.build.xml}"/>
+      </exec>-->
+      
+   </target>
+   
+</project>

BIN
SE/schema/WPS_Functions/send_email/install/javax.mail-1.6.1.jar


+ 33 - 0
SE/schema/WPS_Functions/send_email/send_email.xsd

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+           xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+           xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+           xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+           xmlns:send_email="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           vc:minVersion="1.1"
+           targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd">
+   <xs:import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd"
+              namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:group name="PRODUCT">
+      <xs:sequence>
+         <xs:element ref="send_email:PRODUCT"/>
+      </xs:sequence>
+   </xs:group>
+</xs:schema>

+ 79 - 0
SE/schema/WPS_Functions/send_email/send_email.xsl

@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    xmlns:send_email="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/send_email/send_email.xsd"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    
+    <xsl:output indent="yes"/>
+    <xsl:strip-space elements="*"/>
+    <xsl:param name="basedir"/>
+    
+    
+    <xsl:template mode="send_email:send_email.send_email_from_xml_parsed.xml" match="*">
+        <send_email:send_email_from_xml_parsed>
+            <xsl:apply-templates mode="send_email:send_email_from_xml_parsed.child"/>
+        </send_email:send_email_from_xml_parsed>
+    </xsl:template>
+    
+    
+    <xsl:template mode="send_email:send_email_from_xml_parsed.child" match="*">
+        <xsl:apply-templates mode="#current"/>
+    </xsl:template>
+    
+    <xsl:template mode="send_email:send_email_from_xml_parsed.child" match="title">
+        <send_email:send_email.send_email_from_xml_parsed.xml.child.title><xsl:copy-of select="*/text()"/></send_email:send_email.send_email_from_xml_parsed.xml.child.title>
+    </xsl:template>
+    
+    <xsl:template mode="send_email:send_email_from_xml_parsed.child" match="text()">
+        <xsl:for-each select="tokenize(.,' ')">
+            <xsl:choose>
+                <xsl:when test="contains(.,'@')">
+                    <send_email:send_email.send_email_from_xml_parsed.xml.child><xsl:value-of select="."/></send_email:send_email.send_email_from_xml_parsed.xml.child>
+                </xsl:when>
+                <xsl:otherwise>
+                    
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:for-each>
+    </xsl:template>
+    
+    
+    
+    <xsl:template match="send_email:send_email_from_xml_parsed" mode="send_email:send_email.send_email_from_xml_parsed.build.xml">
+        <project 
+            basedir="{$basedir}"
+            name="send_email.send_email_from_xml_parsed.build.xml"
+            default="send_email.send_email_from_xml_parsed.build.xml"><!--#98 This is generated by xsl:template match="p5build_SE:procesy5_config" mode="p5build_SE:build_procesy5_config.default_db.properties.xml"-->
+           
+           <xsl:variable name="title">
+               <xsl:choose>
+                   <xsl:when test="send_email:send_email.send_email_from_xml_parsed.xml.child.title">
+                       <property name="send_email.send_email_from_xml_parsed.build.xml.title" value="{send_email:send_email.send_email_from_xml_parsed.xml.child.title/text()}"/>
+                   </xsl:when>
+                   <xsl:otherwise>
+                       <property name="send_email.send_email_from_xml_parsed.build.xml.title" value="Wiadomosc systemowa"/>
+                   </xsl:otherwise>
+               </xsl:choose>
+           </xsl:variable>
+           
+            <target name="send_email.send_email_from_xml_parsed.build.xml">
+                <xsl:copy-of select="$title"/>
+                <xsl:for-each select="send_email:send_email.send_email_from_xml_parsed.xml.child">
+                    <echo>Sending message to <xsl:value-of select="."/></echo>
+                    <mail from="a.binder@biall-net.pl" failonerror="false"
+                        tolist="{text()}">
+                        <xsl:attribute name="subject">${send_email.send_email_from_xml_parsed.build.xml.title}</xsl:attribute>
+                        <message>Test wiadomosci</message>
+                    </mail>
+
+                </xsl:for-each>
+            </target>
+        </project>
+    </xsl:template>
+    
+    
+    
+    
+</xsl:stylesheet>

+ 1 - 1
SE/schema/WPS_Functions/system_ui_info_speech/build_system_ui_info_speech.xml

@@ -344,7 +344,7 @@
         <echo level="debug"> $p5suis:say_queue ${p5suis:say_queue}</echo>
         
         <tempfile property="p5suis:build_say_from_queue.xml" destdir="${system_ui_info_speech_basedir_temp}" prefix="build_say_from_queue_" suffix=".xml" deleteonexit="yes"/>
-        <xslt basedir="${system_ui_info_speech_basedir_temp}" style="${system_ui_info_speech.xsl}" in="${p5suis:say_queue.file}"  destdir="${system_ui_info_speech_basedir_temp}" out="${p5suis:build_say_from_queue.xml}"  >
+        <xslt basedir="${system_ui_info_speech_basedir_temp}" style="${system_ui_info_speech.xsl}" in="${p5suis:say_queue.file}"  destdir="${system_ui_info_speech_basedir_temp}" out="${p5suis:build_say_from_queue.xml}"  failonerror="false" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
                 <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
                 <attribute name="http://saxon.sf.net/feature/initialMode" value="{http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd}say_from_queue.build_ant"/>

+ 17 - 0
SE/schema/WPS_Functions/tidy/build.tidy.INSTALL.xml

@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." default="INSTALL" name="tidy.INSTALL">
+  <include file="build.tidy.PRODUCT.xml" />
+  <!--<property location="${tidy.install}/install_example.file" name="tidy.INSTALL.install_example" />-->
+  <condition property="tidy.INSTALL.install_example.ifdef" taskname="INSTALL.install_example">
+    <not>
+      <available file="${tidy}" />
+    </not>
+  </condition>
+  <target depends="INSTALL.install_example" name="INSTALL" />
+  <target if="tidy.INSTALL.install_example.ifdef" name="INSTALL.install_example">
+    <!--<copy file="${tidy.INSTALL.install_example}" tofile="${tidy.install_example}" />-->
+    <exec executable="port">
+      <arg line="install tidy"/>
+    </exec>
+  </target>
+</project>

+ 71 - 0
SE/schema/WPS_Functions/tidy/build.tidy.PRODUCT.xml

@@ -0,0 +1,71 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:tidy="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/tidy/tidy.xsd"
+         xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+         basedir="../../."
+         default="PRODUCT"
+         name="tidy.PRODUCT">
+   <description>p5suis:say Created function tidy with prefix tidy by p5ant module</description>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <condition property="tidy.PRODUCT.ifdef.parent"
+              taskname="tidy.parent.PRODUCT.ifdef">
+      <isset property="WPS_Functions.PRODUCT.name"/>
+   </condition>
+   <property name="tidy.PRODUCT.name" value="${WPS_Functions.PRODUCT.name}.tidy"/>
+   <property name="tidy.PRODUCT.vendor-domain"
+             value="${WPS_Functions.PRODUCT.name}.tidy"/>
+   <property name="tidy.basedir" value="${WPS_Functions.basedir}/tidy"/>
+   <property name="tidy.repository" value="${tidy.basedir}/repository"/>
+   <property name="tidy.install" value="${tidy.basedir}/install"/>
+   <property location="${tidy.basedir}/temp" name="tidy.temp"/>
+   <property location="${tidy.basedir}/tidy.xsl" name="tidy.xsl"/>
+   <property location="${tidy.basedir}/tidy.xsd" name="tidy.xsd"/>
+   <property location="${tidy.basedir}/tidy.include.structure.xml"
+             name="tidy.include.structure.xml"/>
+   <property location="${tidy.basedir}/tidy.include.xsl.p5xsls.xml"
+             name="tidy.include.xsl.p5xsls.xml"/>
+   <property location="${tidy.repository}/install_example.file"
+             name="tidy.install_example"/>
+   <target depends="basedir,p5xsls.xml"
+           description="to create basedir, includes and install"
+           name="PRODUCT"/>
+   <target description="to create local dirs" name="basedir">
+      <propertyset id="tidy.local.properties">
+         <propertyref prefix="tidy"/>
+         <mapper from="tidy.*" to="local.*" type="glob"/>
+      </propertyset>
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs">
+         <propertyset refid="tidy.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean">
+      <antcall inheritall="false" target="WPS_Functions.basedir.p5bws:dirs.clean">
+         <propertyset refid="tidy.local.properties"/>
+      </antcall>
+   </target>
+   <target description="To delete all temp and repository" name="clean.temp">
+      <antcall inheritall="false"
+               target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean">
+         <propertyset refid="tidy.local.properties"/>
+      </antcall>
+   </target>
+   <target name="parent.PRODUCT.ifdef"
+           unless="tidy.WPS_Functions.PRODUCT.ifdef.parent">
+      <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml"</fail>
+   </target>
+   <target name="p5xsls.xml" depends="basedir">
+      <description>
+                    TODO to be fixed by xslt to allow dynamic create of multi include xsl templates
+                </description>
+      <echoxml namespacepolicy="elementsOnly" file="${tidy.include.xsl.p5xsls.xml}">
+         <stylesheet_buildlist xmlns="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd">
+            <namespaces.list>
+               <namespaces.list.namespace prefix="tidy"
+                                          namespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/tidy/tidy.xsd"/>
+            </namespaces.list>
+            <include.list>
+               <include.list.href href="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/WPS_Functions/ant/p5ant.xsl"/>
+            </include.list>
+         </stylesheet_buildlist>
+      </echoxml>
+   </target>
+</project>

+ 7 - 0
SE/schema/WPS_Functions/tidy/build.tidy.SYSTEM.xml

@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="tidy.SYSTEM">
+  <include file="../build.WPS_Functions.SYSTEM.xml" optional="true" />
+  <include as="PRODUCT" file="build.tidy.PRODUCT.xml" optional="true" />
+  <property location="/opt/local/pl.procesy5/p5build_SE/temp/p5build_SE/StandardOutPath/tidy.log" name="tidy.SYSTEM.StandardOutPath" />
+  <property location="/opt/local/pl.procesy5/p5build_SE/temp/p5build_SE/StandardErrorPath/tidy.log" name="tidy.SYSTEM.StandardErrorPath" />
+</project>

+ 24 - 0
SE/schema/WPS_Functions/tidy/build_tidy.xml

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns:tidy="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/tidy.xsd"
+         basedir="/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html"
+         default="default"
+         name="tidy">
+   <include as="PRODUCT" file="build.tidy.PRODUCT.xml"/>
+   <include as="SYSTEM" file="build.tidy.SYSTEM.xml"/>
+   <include as="INSTALL" file="build.tidy.INSTALL.xml"/>
+   <include as="WPS_Functions" file="../build.WPS_Functions.PRODUCT.xml"/>
+   <include file="../system_ui_info_speech/build.system_ui_info_speech.PRODUCT.xml"/>
+   <target depends="PRODUCT.PRODUCT,INSTALL.INSTALL" name="default"/>
+   
+   <target name="toxml">
+      <input addproperty="html"/>
+      <input addproperty="xml"/>
+      <exec executable="${tidy}"  output="${xml}" error="/dev/null">
+         <arg line=" -q -asxml --numeric-entities yes ${html}"/>
+      </exec>
+   </target>
+   
+   
+   
+   
+</project>

+ 33 - 0
SE/schema/WPS_Functions/tidy/tidy.xsd

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xs:schema xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
+           xmlns:p5bws="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/WPS_Functions.xsd"
+           xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
+           xmlns:p5ant="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache.public/ant/ant.xsd"
+           xmlns:p5suis="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/system_ui_info_speech/system_ui_info_speech.xsd"
+           xmlns:p5dg="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/documentation_generator/documentation_generator.xsd"
+           xmlns:p5xsl="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/xsl_interface/xsl_interface.xsd"
+           xmlns:tidy="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/tidy/tidy.xsd"
+           xmlns:xs="http://www.w3.org/2001/XMLSchema"
+           vc:minVersion="1.1"
+           targetNamespace="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/tidy/tidy.xsd">
+   <xs:import schemaLocation="../../default_db_xml_cache.public/system_cache__appinfo/PRODUCT.xsd"
+              namespace="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"/>
+   <xs:element name="PRODUCT">
+      <xs:complexType>
+         <xs:complexContent>
+            <xs:extension base="system_cache__appinfo:PRODUCT">
+               <xs:sequence>
+                  <xs:element name="SYSTEM" type="system_cache__appinfo:SYSTEM"/>
+                  <xs:element name="GLOBALS" type="system_cache__appinfo:GLOBALS"/>
+                  <xs:element name="INSTALL" type="system_cache__appinfo:INSTALL"/>
+               </xs:sequence>
+            </xs:extension>
+         </xs:complexContent>
+      </xs:complexType>
+   </xs:element>
+   <xs:group name="PRODUCT">
+      <xs:sequence>
+         <xs:element ref="tidy:PRODUCT"/>
+      </xs:sequence>
+   </xs:group>
+</xs:schema>

+ 50 - 0
SE/schema/WPS_Functions/upgrade_offline_procesy5_bocian/build_upgrade_offline_procesy5_bocian.xml

@@ -0,0 +1,50 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." name="upgrade_offline_procesy5_bocian" default="default_CRM_tables.sql.dump">
+    <description>
+        To generate local sql tables for upgrade bocian procesy5
+        - get local tables and structures 
+        CRM_PROCES, CRM_WSKAZNIK, CRM_LISTA_ZASOBOW, CRM_TESTY_PYTANIA, CRM_IMAGE and CRM_IMPORT_TRANSLATE
+         to process.sql.dump 
+    </description>
+    
+    <include file="../build_WPS_Functions.xml"/>
+    <include file="../build_WPS_Functions.xml"/>
+    <!-- modules WPS_Functions - to be copied to any module needed -->
+    <property name="WPS_Functions" location="${WPS_Functions.basedir}"/>
+    <property name="build_WPS_Functions.xml" location="${WPS_Functions.build}"/> <!-- call it to get properties -->
+    <property name="build_WPS_Functions.xml.properties" location="${WPS_Functions.properties}"/>
+    
+    <!-- modules WPS_Functions - to be copied to any module needed -->
+    <!--<property name="WPS_Functions" location="${basedir}/WPS_Functions"/>
+    <property name="build_WPS_Functions.xml" location="${WPS_Functions}/build_WPS_Functions.xml"/> <!-\- call it to get properties -\->
+    <property name="build_WPS_Functions.xml.properties" location="${build_WPS_Functions.xml}.properties"/>-->
+    <!-- eof modules WPS_Functions  -->
+    
+    
+    <!-- global required properties -->
+    <property name="build_upgrade_offline_procesy5_bocian.local_path" value="WPS_Functions/upgrade_offline_procesy5_bocian"/> <!-- To be implemented in other modules to install xsl stylesheets correctly -->
+    <property name="build_upgrade_offline_procesy5_bocian" location="${basedir}/${build_upgrade_offline_procesy5_bocian.local_path}/build_upgrade_offline_procesy5_bocian.xml"/>
+    <property name="build_upgrade_offline_procesy5_bocian_basedir" location="${basedir}/${build_upgrade_offline_procesy5_bocian.local_path}"/>
+    <property name="build_upgrade_offline_procesy5_bocian_basedir.temp" location="${build_upgrade_offline_procesy5_bocian_basedir}/temp"/>
+    <property name="build_upgrade_offline_procesy5_bocian.childproperties" location="${WPS_Functions.childproperties}/.build_upgrade_offline_procesy5_bocian.properties"/>
+    
+    
+    <property name="default_CRM_tables.sql.dump" location="${build_upgrade_offline_procesy5_bocian_basedir.temp}/default_CRM_tables.sql.dump"/>
+    
+    
+    
+    
+    <target name="read_build_properties">
+        <ant antfile="${WPS_Functions.build}" target="save_build_properties" inheritall="yes" inheritrefs="yes"/>
+        <loadproperties srcfile="${WPS_Functions.properties}"/>
+        <property name="build_object_install_se_ant_object.xsl" location="${default_db_xml_cache.public}/build_object_install_se_ant_object.xsl"/>
+    </target>
+    
+    
+    <target name="default_CRM_tables.sql.dump" depends="read_build_properties" description="to create local dump file">
+        
+        
+        
+    </target>
+    
+</project>

+ 73 - 0
SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.PRODUCT.xml

@@ -0,0 +1,73 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." 
+    xmlns:p5up5b="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/upgrade_procesy5_bocian.xsd"
+    name="p5up5b.PRODUCT" default="basedir" > <!-- default="INSTALL.p5up5b.INSTALL" -->
+    
+    <include file="../build.WPS_Functions.PRODUCT.xml"/>
+    <include file="../../default_db_xml_cache.public/build.system_cache__appinfo.public.PRODUCT.xml"/>
+    <include file="../build_WPS_Function_basedir.xml" optional="true" as="WPS_Functions.basedir"/>
+    <!--<include file="build.p5up5b.INSTALL.xml" as="INSTALL"/>-->
+    
+    <condition property="p5up5b.PRODUCT.ifdef.parent" taskname="p5up5b.parent.PRODUCT.ifdef">
+        <isset property="WPS_Functions.PRODUCT.name"/>
+    </condition>
+    
+   
+    <property name="p5up5b.PRODUCT.name" value="${WPS_Functions.PRODUCT.name}.upgrade_procesy5_bocian"/>
+    <property name="p5up5b.PRODUCT.vendor-domain" value="${p5build_SE.PRODUCT.vendor-domain}"/>
+    
+    <property name="p5up5b.basedir"     value="${WPS_Functions.basedir}/upgrade_procesy5_bocian"/>
+    <property name="p5up5b.build" location="${p5up5b.basedir}/build_upgrade_procesy5_bocian.xml"/>
+
+    <property name="p5up5b.temp" location="${p5up5b.basedir}/temp"/>
+    <property name="p5up5b.repository" location="${p5up5b.basedir}/repository"/>
+    
+    <property name="p5up5b.childproperties" location="${WPS_Functions.childproperties}/upgrade_procesy5_bocian.properties"/>
+    
+    <property name="p5up5b.xsl" value="${p5up5b.basedir}/p5up5b.xsl"/>
+    <!--<property name="p5up5b.xpath_filter.xsl" value="${p5up5b.basedir}/p5up5b.xpath_filter.xsl"/>-->
+    
+    <property name="p5up5b.upgrade_properties.xml" location="${p5up5b.temp}/p5up5b.upgrade_properties.xml"/>
+    <property name="p5up5b.ws-bpel_executable.xml" location="${p5up5b.temp}/ws-bpel_executable.xml"/>
+    <property name="p5up5b.ws-bpel_executable.xml.sort_tasks.xml" location="${p5up5b.temp}/p5up5b.ws-bpel_executable.xml.sort_tasks.xml"/>
+    
+    <property name="p5up5b.process_table.sql" value="${p5up5b.repository}/p5up5b.process_table.sql"/>
+    
+    
+    <!--<property name="p5up5b.pid" location="${p5up5b.repository}/p5up5b.speech.pid"/>-->
+    
+    
+    
+    
+    <target name="basedir" description="to create local dirs">
+        <propertyset id="p5up5b.local.properties">
+            <propertyref prefix="p5up5b"/>
+            <mapper type="glob" from="p5up5b.*" to="local.*"/>
+        </propertyset>
+        <echo>#46 {local.p5suis.repository} = ${local.p5suis.repository}</echo>
+        <antcall target="WPS_Functions.basedir.p5bws:dirs" inheritall="false">
+            <propertyset refid="p5up5b.local.properties"/>
+        </antcall>
+    </target>
+    
+    <target name="clean"  description="To delete all temp and repository">
+        <antcall target="WPS_Functions.basedir.p5bws:dirs.clean" inheritall="false">
+            <propertyset refid="p5up5b.local.properties"/>
+        </antcall>
+    </target>
+    
+    
+    <target name="clean.temp"  description="To delete all temp and repository">
+        <antcall target="WPS_Functions.basedir.p5bw.p5bws:dirs.temp.clean" inheritall="false">
+            <propertyset refid="p5up5b.local.properties"/>
+        </antcall>
+    </target>
+    
+    
+    
+    
+    <target name="p5up5b.parent.PRODUCT.ifdef" unless="WPS_Functions.PRODUCT.ifdef.parent">
+        <fail>There is not set correct parent PRODUCT from expected file="../build.WPS_Functions.PRODUCT.xml" </fail>
+    </target>
+    
+</project>

+ 15 - 0
SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.SYSTEM.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../" name="p5up5b.SYSTEM"
+    xmlns:p5up5b="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/upgrade_procesy5_bocian.xsd"> <!-- default="bgwrx.SYSTEM.INIT" -->
+  
+   
+    <include file="../build.WPS_Functions.SYSTEM.xml" optional="true"/>
+    <include file="build.p5up5b.PRODUCT.xml" optional="true" as="PRODUCT"/>
+    
+   
+    <property name="p5up5b.SYSTEM.StandardOutPath" location="${p5build_SE.SYSTEM.StandardOutPath}/${p5up5b.PRODUCT.name}.log"/>
+    <property name="p5up5b.SYSTEM.StandardErrorPath" location="${p5build_SE.SYSTEM.StandardErrorPath}/${p5up5b.PRODUCT.name}.log"/>
+    
+    
+  
+</project>

+ 33 - 0
SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.local.SYSTEM.xml

@@ -0,0 +1,33 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." 
+    xmlns:p5up5b="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/upgrade_procesy5_bocian.xsd"
+    name="p5up5b.local.SYSTEM"  > <!-- default="INSTALL.p5up5b.INSTALL" -->
+    
+    <include file="build.p5up5b.PRODUCT.xml"/>
+    <include file="../workflow_controller/build.p5wc.PRODUCT.xml"/>
+    
+    <echo>#7 2018-01-28 to be automated from public_html/config/SystemsBindings.xml</echo>
+    <!--<property name="p5up5b.local.SYSTEM.BuildBase.directory" value="${p5up5b.local.SYSTEM.task_dir_root}/BuildBase.directory"/>-->
+    <property name="p5up5b.local.basedir" value="${p5build_SE.basedir}"/>
+    <property name="p5up5b.local.temp" value="${p5build_SE.temp}"/> <!-- ${p5up5b.local.SYSTEM.BuildBase.directory}/temp -->
+    <property name="p5up5b.local.repository" value="${p5build_SE.repository}"/>
+    <property name="p5up5b.local.properties" value="${p5build_SE.properties}"/>
+    <property name="p5up5b.local.build" value="${p5build_SE.build}"/>
+    
+    
+      <property name="p5up5b.local.p5build.basedir" value="${p5build.basedir}"/>
+      <property name="p5up5b.local.WPS_Functions.basedir" value="${WPS_Functions.basedir}"/>
+     
+    <property name="p5up5b.local.p5build.remote.SE" value="${p5build.remote.SE}"/> <!-- ${Shared_Git_Root}/se/SE -->
+    <property name="p5up5b.local.p5build.remote" value="${p5build.remote}"/> <!-- ${Shared_Git_Root}/se/SE/schema -->
+    <property name="p5up5b.local.p5wc.basedir" value="${p5wc.basedir}"/> <!-- ${p5up5b.local.SYSTEM.build_SE}/WPS_Functions/workflow_controller -->
+    
+    <property name="p5up5b.local.p5up5b.repository" value="${p5up5b.local.WPS_Functions.basedir}/upgrade_procesy5_bocian/repository"/>
+    <property name="p5up5b.local.p5up5b.process_table.sql" value="${p5up5b.local.SYSTEM.repository}/p5up5b.remote.SYSTEM.process_table.sql"/>
+    <!--<property name="p5up5b.pid" location="${p5up5b.repository}/p5up5b.speech.pid"/>-->
+    
+    
+    
+    
+    
+</project>

+ 37 - 0
SE/schema/WPS_Functions/upgrade_procesy5_bocian/build.p5up5b.remote.SYSTEM.xml

@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="../../." 
+    xmlns:p5up5b="http://biuro.biall-net.pl/xmlschema_procesy5/WPS_Functions/upgrade_procesy5_bocian.xsd"
+    name="p5up5b.remote.SYSTEM"  > <!-- default="INSTALL.p5up5b.INSTALL" -->
+    <include file="build.p5up5b.PRODUCT.xml" optional="true"/>
+    
+    <echo>#7 2018-01-28 to be automated from public_html/config/SystemsBindings.xml</echo>
+    
+    <!--<property name="p5up5b.remote.basedir" value="/var/spool/p5/src-xmlschema/public_html/p5build_SE"/>-->
+    <property name="p5up5b.remote.basedir" value="${p5build_SE.INSTALL_ROOT.basedir}"/>
+    <property name="p5up5b.remote.configuration.dir" value="${p5build_SE.INSTALL_ROOT.configuration.dir}"/>
+    
+    <property name="p5up5b.remote.temp" value="${p5build_SE.INSTALL_ROOT.temp}"/> <!-- ${p5up5b.local.SYSTEM.BuildBase.directory}/temp -->
+    <property name="p5up5b.remote.repository" value="${p5build_SE.INSTALL_ROOT.repository}"/>
+    <property name="p5up5b.remote.properties" value="${p5build.opt__local}/${p5build.INSTALL_PREFIX.name}/basedir/.build_SE.properties"/>
+    <property name="p5up5b.remote.build" value="${p5up5b.remote.basedir}/../build_SE.xml"/>
+    
+    
+    
+    <property name="p5up5b.remote.p5build.basedir" value="${p5up5b.remote.basedir}/public_html"/>
+    <property name="p5up5b.remote.WPS_Functions.basedir" value="${p5up5b.remote.p5build.basedir}/WPS_Functions"/>
+    
+    <property name="p5up5b.remote.p5build.remote.SE" value="/Library/Server/Web/Data/Sites/SE-production-git/se/SE"/> <!-- ${Shared_Git_Root}/se/SE -->
+    <property name="p5up5b.remote.p5build.remote" value="/Library/Server/Web/Data/Sites/SE-production-git/se/SE/schema"/> <!-- ${Shared_Git_Root}/se/SE/schema -->
+    <property name="p5up5b.remote.p5wc.basedir" value="${p5up5b.remote.WPS_Functions.basedir}/workflow_controller"/> <!-- ${p5up5b.local.SYSTEM.build_SE}/WPS_Functions/workflow_controller -->
+    
+    <property name="p5up5b.remote.p5up5b.repository" value="${p5up5b.remote.WPS_Functions.basedir}/upgrade_procesy5_bocian/repository"/> <!-- to be automated from  -->
+    
+    <property name="p5up5b.remote.p5up5b.process_table.sql" value="${p5up5b.remote.SYSTEM.repository}/p5up5b.remote.SYSTEM.process_table.sql"/><!-- for backups etc -->
+    
+    <!--<property name="p5up5b.pid" location="${p5up5b.repository}/p5up5b.speech.pid"/>-->
+    
+    
+    
+    
+    
+</project>

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff