Explorar el Código

Merge branch 'master' of bn.git:plabudda/se

Piotr Labudda hace 9 años
padre
commit
a56c945fb0

+ 8 - 62
SE/schema/ant-url_action/default_db.crm_proces/CRM_PROCES_tree/CRM_PROCES.dita

@@ -1,5 +1,4 @@
 <?xml version="1.0" encoding="UTF-8"?>
-
 <!-- do CRM_PROCES_tree  -->
 <RelatedFeature xpath="ID"  typeName="p5_default_db:CRM_PROCES"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
@@ -15,7 +14,7 @@
     <p> Opis <ph xpath="DESC"></ph></p>
     <p> Opis pelny <ph xpath="OPIS"></ph></p>
     <p><b>Powiazane Zasoby</b></p>
-            <RelatedFeature xpath="ID_PROCES" xpath_value="../A_RECORD_CREATE_DATE" typeName="p5_default_db:CRM_WSKAZNIK">  
+            <!--<RelatedFeature xpath="ID_PROCES" xpath_value="../A_RECORD_CREATE_DATE" typeName="p5_default_db:CRM_WSKAZNIK">  
               <p>
                 <codeblock><ph xpath="OPIS_ZASOB" />
                   <ph xpath="TYP"/>
@@ -29,18 +28,13 @@
                     </codeblock>
                   </RelatedFeature>
               </p>
-            </RelatedFeature>
+            </RelatedFeature>-->
   </body>
   
-  <topic id="CRM_PROCES_sibling_low" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-    xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
-    <title>nizej powinien pojawic sie sibling child</title>
-    <body>
-      <p>----</p>
-    </body>
-  </topic>
-  
-  <RelatedFeature xpath="PARENT_ID" xpath_value="../ID"  typeName="p5_default_db:CRM_PROCES"
+  <RelatedFeature xpath="PARENT_ID" xpath_value="../ID"  typeName="p5_default_db:CRM_PROCES" 
+    system_cache__appinfo:id="_CRM_PROCES___d14e4403-1_CRM_PROCES"
+    system_cache__appinfo:id="_CRM_PROCES___d14e4456-1"
+    system_cache__appinfo:loop_name_with_prefix="default_db__x3A__CRM_PROCES:PROCES_INIT"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
     xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
     <topic id="CRM_PROCES_tree2" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
@@ -48,57 +42,9 @@
       <title><ph>Proces podrzedny nr </ph><ph xpath="PARENT_ID"/><ph>-</ph><ph xpath="ID"/>
         <ph>z dnia</ph>
         <ph xpath="A_RECORD_CREATE_DATE"/> <ph>/</ph> <ph xpath="A_RECORD_UPDATE_DATE"/></title>
-      <body>
-        <p> Opis <ph xpath="DESC"></ph></p>
-        <p> Opis pelny <ph xpath="OPIS"></ph></p>
-        <p><b>Powiazane Zasoby</b></p>
-        <RelatedFeature xpath="ID_PROCES" xpath_value="../ID" typeName="p5_default_db:CRM_WSKAZNIK">  
-          <p>
-            <codeblock><ph xpath="OPIS_ZASOB" />
-              <ph xpath="TYP"/>
-              <ph xpath="ID_PRZYPADEK"/>
-            </codeblock>
-            <RelatedFeature xpath="ID" xpath_value="../ID_ZASOB" typeName="p5_default_db:CRM_LISTA_ZASOBOW">  
-              <codeblock>
-                <ph xpath="ID" />
-                <ph xpath="TYPE"/>
-                <ph xpath="DESC"/>
-              </codeblock>
-            </RelatedFeature>
-          </p>
-        </RelatedFeature>
-      </body>
+      <body/>
     </topic>
-    <RelatedFeature xpath="PARENT_ID" xpath_value="../ID"  typeName="p5_default_db:CRM_PROCES"
-      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
-      xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
-      <topic id="CRM_PROCES_tree3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-        xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
-        <title><ph>CRM_PROCES_tree3 Proces podrzedny nr </ph><ph xpath="PARENT_ID"/><ph>-</ph><ph xpath="ID"/>
-          <ph>z dnia</ph>
-          <ph xpath="A_RECORD_CREATE_DATE"/> <ph>/</ph> <ph xpath="A_RECORD_UPDATE_DATE"/></title>
-        <body>
-          <p> Opis <ph xpath="DESC"></ph></p>
-          <p> Opis pelny <ph xpath="OPIS"></ph></p>
-          <p><b>Powiazane Zasoby</b></p>
-          <RelatedFeature xpath="ID_PROCES" xpath_value="../ID" typeName="p5_default_db:CRM_WSKAZNIK">  
-            <p>
-              <codeblock><ph xpath="OPIS_ZASOB" />
-                <ph xpath="TYP"/>
-                <ph xpath="ID_PRZYPADEK"/>
-              </codeblock>
-              <RelatedFeature xpath="ID" xpath_value="../ID_ZASOB" typeName="p5_default_db:CRM_LISTA_ZASOBOW">  
-                <codeblock>
-                  <ph xpath="ID" />
-                  <ph xpath="TYPE"/>
-                  <ph xpath="DESC"/>
-                </codeblock>
-              </RelatedFeature>
-            </p>
-          </RelatedFeature>
-        </body>
-      </topic>
-    </RelatedFeature>
+    
   </RelatedFeature>
 </topic>
   

+ 264 - 93
SE/schema/ant-url_action/default_db.crm_proces/CRM_PROCES_tree/build.xml

@@ -1,11 +1,11 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <project basedir="." name="PRINT_TEMPLATE" default="buildpdf_recursed"  >
-
+    
     <!-- template do kopiowania test-druk @2017-03-02 bindera 
     Copyright BIALL-NET sp. z o.o. wszelkie prawa zastrzezone
-    -->    
-
-    <!-- CRM_PROCES_tree -->
+    
+    -->
+    
     
     <!-- Przykładowe wyzwolenie z bash :
     cat input.xml | /Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/ant -buildfile ild__IN7_DZIENNIK_KORESP.xml
@@ -13,7 +13,19 @@
     -->
 
 
-  
+    <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=UrlAction_Ant&_task=ant&path=default_db.in7_dziennik_koresp/test-druk&namespace=p5_default_db:IN7_DZIENNIK_KORESP&featureID=59682 -->
+    <!-- default procesy5 sample template is  file:/SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-get-wfs-xml/build.xml-->
+    <!-- sample URL which call this exact variables in this ANT build -->
+    <!-- przykladowy URL ktory przekazuje parametry do tego ANT -->
+    <!--https://biuro.biall-net.pl/SE/version-git/index.php?_route=UrlAction_Ant&_task=ant&
+        path=${default_db.in7_dziennik_koresp/test-get-wfs-xml} -  this is the place to keep ant build (directory name with build.xml)  
+        &namespace=p5_default_db:Rozdzielcza_test_bzyk_PE&featureID=123 - this is setting the 
+        <property name="url" value="${url}"/> - to point what is record/table to download
+        <property name="uuid" value="${uuid}"/> it is automatically also set to enable uinque transaction and to allow to save data with user
+        <property name="passwordBase64Basic" value="${passwordBase64Basic}"/> - this is also set - to enable communicate with API -
+        <property name="DwebRootUrl" value="${$webRootUrl}"/> - this is the place where script is localized to easyli to target user GUI by href to generated output      
+    />
+    -->
     
     <!---DpasswordBase64Basic="xxxx=="
         -DtypeName="p5_default_db:IN7_DZIENNIK_KORESP" 
@@ -21,31 +33,148 @@
         -Duuid=1 -DwebRootUrl=somePathDir-->
     <property name="temp" value="temp"/> <!-- temp files-->
     <property name="out" value="out"/> <!-- output ready files like pdf -->
+    <property name="p5_tr_map_dir" location="../../../default_db.instance.xml/p5_tr_map" />
     
     <property name="uuid" value="${uuid}"/> <!--TODO-->
     <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
     <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 -->
     <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  -->
     
     <!-- variables to first transform of doc for then get related features -->
-    <property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/> <!-- katalog z xsl z projektu src-xmlschema.git -->
-    <property name="build_recurse_ant.xsl" value="${default_db_xml_cache.public}/build_recurse_ant.xsl"/>
-    <property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
-    <property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
-    
+    <!--<property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>--> <!-- katalog z xsl z projektu src-xmlschema.git -->
     
     <!--<tempfile property="uuid" deleteonexit="yes"/>-->
     <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>
     <tempfile property="out_task.dita.final" deleteonexit="no"  destdir="temp"/>
     <!--<tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />-->
     
+    <!-- uuid -->
+    <target name="uuid_cond">
+        <condition property="uuid_set" taskname="uuid_check">
+            <or>
+                <equals arg1="${uuid}" arg2=""/>
+                <equals arg1="${uuid}" arg2="$${uuid}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="uuid_check" depends="uuid_cond,uuid_ok,uuid_fail"/>
+    <target name="uuid_ok"   unless="${uuid_set}" >
+        <property name="uuid_tested" value="${uuid}"/>
+    </target>
+    <target name="uuid_fail"  if="${uuid_set}" >
+        <echo>uuid_fail setting to timestamp</echo>
+        <exec  executable="date" outputproperty="uuid_tested" >
+            <arg line="-u +&quot;%Y-%m-%dT%H%M%SZ&quot;"/>
+        </exec>
+    </target>
+    <!-- typeName -->
+    <target name="typeName_cond">
+        <condition property="typeName_set" taskname="typeName_check">
+            <or>
+                <equals arg1="${typeName}" arg2=""/>
+                <equals arg1="${typeName}" arg2="$${typeName}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="typeName_check" depends="typeName_cond,typeName_ok,typeName_fail"/>
+    <target name="typeName_ok"   unless="${typeName_set}" >
+        <property name="typeName_tested" value="${typeName}"/>
+    </target>
+    <target name="typeName_fail"  if="${typeName_set}" >
+        <echo>typeName setting manually</echo>
+        <input addproperty="typeName_input" message="podaj typeName  - nazwa obiektu  np:  nazwe obiektu np CRM_PROCES "/>
+        <property name="typeName_tested" value="p5_default_db:${typeName_input}"/>
+    </target>
+    
+    <!-- xpath -->
+    <target name="xpath_cond">
+        <condition property="xpath_set" taskname="xpath_check">
+            <or>
+                <equals arg1="${xpath}" arg2=""/>
+                <equals arg1="${xpath}" arg2="$${xpath}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="xpath_check" depends="xpath_cond,xpath_ok,xpath_fail"/>
+    <target name="xpath_ok"   unless="${xpath_set}" >
+        <property name="xpath_tested" value="${xpath}"/>
+    </target>
+    <target name="xpath_fail"  if="${xpath_set}" >
+        <echo>xpath setting </echo>
+        <input addproperty="xpath_tested" message="Podaj xpath -  po czym szukac glonwego zaglebienia - np ID "/>
+    </target>
+    
+    <!-- xpath_value -->
+    <target name="xpath_value_cond">
+        <condition property="xpath_value_set" taskname="xpath_value_check">
+            <or>
+                <equals arg1="${xpath_value}" arg2=""/>
+                <equals arg1="${xpath_value}" arg2="$${xpath_value}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="xpath_value_check" depends="xpath_value_cond,xpath_value_ok,xpath_value_fail"/>
+    <target name="xpath_value_ok"   unless="${xpath_value_set}" >
+        <property name="xpath_value_tested" value="${xpath_value}"/>
+    </target>
+    <target name="xpath_value_fail"  if="${xpath_value_set}" >
+        <echo>xpath_value setting </echo>
+        <input addproperty="xpath_value_tested" message="Podaj xpath_value -  podaj wartosc do wyszukiwania - np 1234"/>
+    </target>
+    
+    
+    <!-- passwordBase64Basic -->
+    <target name="passwordBase64Basic_cond">
+        <condition property="passwordBase64Basic_set" taskname="passwordBase64Basic_check">
+            <or>
+                <equals arg1="${passwordBase64Basic}" arg2=""/>
+                <equals arg1="${passwordBase64Basic}" arg2="$${passwordBase64Basic}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="passwordBase64Basic_check" depends="passwordBase64Basic_cond,passwordBase64Basic_ok,passwordBase64Basic_fail"/>
+    <target name="passwordBase64Basic_ok"   unless="${passwordBase64Basic_set}" >
+        <property name="passwordBase64Basic_tested" value="${passwordBase64Basic}"/>
+    </target>
+    <target name="passwordBase64Basic_fail"  if="${passwordBase64Basic_set}" >
+        <echo>passwordBase64Basic setting </echo>
+        <input addproperty="Username" message="podaj nazwe uzytkownika do autoryzacji w API ${api_url} ;  np. a.binder"/>
+        <input addproperty="Password" message="podaj hasło dla uzytkownika ${Username} "/>
+        <exec outputproperty="passwordBase64Basic_tested" executable="base64" inputstring="${Username}:${Password}">
+            <!--<arg line="/bin/echo &quot;${Username}:${Password}&quot; | base64 - "/>-->
+            <!--<arg line="|"/>
+            <arg line="base64 -"/>-->
+        </exec>
+        <echo> Ustalono $passwordBase64Basic na ${passwordBase64Basic_tested} </echo>
+        
+        
+    </target>
+    
+    
+    
+    <target name="konsola" description="wyzwolenie interaktywne z konsoli" depends="uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check">
+        <!--<property name="uuid" value="$"/>-->
+        <!--<exec command="date" outputproperty="uuidd" >
+            <arg line="-u +&quot;%Y-%m-%dT%H%M%SZ&quot;"/>
+        </exec>-->
+        <!--<echo> Ustalilem uuid na ${uuidd}</echo>-->
+        <!--<echo>Podaj nazwe druku</echo>-->
+        <input  addproperty="typeName" message="Podaj typeName -  nazwe obiektu np p5_default_db:CRM_PROCES"/>
+        <input  addproperty="xpath" message="Podaj xpath -  po czym szukac glonwego zaglebienia - np ID"/>
+        <input  addproperty="xpath_value" message="Podaj xpath_value -  podaj wartosc do wyszukiwania - np 1234"/>
+        <input  addproperty="passwordBase64Basic" message="Podaj passwordBase64Basic -  Username i Password w typie base64 "/>
+        <echo> $typeName=${typeName_tested}; $xpath=${xpath_tested}; $xpath_value=${xpath_value} $passwordBase64Basic=${passwordBase64Basic_tested}</echo>
+        
+        <antcall target="buildpdf_recursed"/>
+    </target>
+    
     
     <target name="install_folders">
         <mkdir dir="${temp}"/>
@@ -55,16 +184,12 @@
     </target>
 
 
-    <target name="set_dita" >
-        
+    <target name="set_dita" depends="check_set_default_db_xml_cache.public_local,check_default_db_xml_cache.public_default" >
         <!--<property name="main_build_recurse_ant.dita" value="main_build_recurse_ant.dita"/>-->
-        
         <exec  executable="bash" dir="." outputproperty="main_build_recurse_ant.dita_sed">
             <arg value="-c"/>
-            <arg value="echo ${typeName} |sed 's/.*://'"/>
+            <arg value="echo ${typeName_tested} |sed 's/.*://'"/>
         </exec>
-        <regexp pattern=""/>
-        
         <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>
         
@@ -75,18 +200,107 @@
         </condition>
     </target>
     
-    
-    
-    <target name="check_dita" depends="set_dita" if="${test_if_dita}">
+    <target name="check_dita" depends="set_dita,dita_fail,dita_ok">
         <echo> testujemy czy jest dita</echo>
-        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
     </target>
     
-    <target name="info_brak_dita" unless="${test_if_dita}">
+    <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 message="OUTPUT__END"/>
     </target>
+    
+    
+    <target name="dita_ok" if="${test_if_dita}">
+        <!-- polaczenie pdfa -->
+        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
+    </target>
+    
+    
+    <!-- ####  tr_map #### -->
+    
+    
+                    
+                    <target name="set_tr_map" depends="check_set_default_db_xml_cache.public_local,check_default_db_xml_cache.public_default" >
+                        <!--<property name="main_build_recurse_ant.dita" value="main_build_recurse_ant.dita"/>-->
+                        <exec  executable="bash" dir="." outputproperty="main_build_recurse_ant.tr_map_sed">
+                            <arg value="-c"/>
+                            <arg value="echo ${typeName_tested} |sed 's/.*://'"/>
+                        </exec>
+                                                         <!-- element-default_db__x3A__CRM_PROCES__x3A__CRM_PROCES -->
+                        <property name="main_build_recurse_ant.dita" value="${p5_tr_map_dir}/element-${namespace_prefix_p5_tr_map}__x3A__${main_build_recurse_ant.tr_map_sed}__x3A__${main_build_recurse_ant.tr_map_sed}.xml"/>
+                        <echo> Ustawiam $main_build_recurse_ant.dita na ${main_build_recurse_ant.dita} ;  </echo>
+                                    
+                        <property name="main_build_recurse_ant.dita_with_id" value="${temp}/${main_build_recurse_ant.tr_map_sed}.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_tr_map" taskname="check_tr_map" >
+                            <available file="${main_build_recurse_ant.dita}"/>  
+                        </condition>
+                    </target>
+                    
+                    <target name="check_tr_map" depends="set_tr_map,tr_map_fail,tr_map_ok">
+                        <echo> testujemy czy jest tr_map</echo>
+                    </target>
+                    
+                    <target name="tr_map_fail" unless="${test_if_tr_map}">
+                        <echo message="OUTPUT__START"/>   
+                        <echo>&lt;br&gt;Brakuje druku dla powiązanego obiektu ${main_build_recurse_ant.dita} &lt;/br&gt;</echo>         
+                        <echo message="OUTPUT__END"/>
+                    </target>
+                    
+                    
+                    <target name="tr_map_ok" if="${test_if_tr_map}">
+                        <!-- polaczenie pdfa -->
+                        <echo>#251 wyzwalam build_recurse_ant_merge_dita_from_temp.xsl</echo>
+                        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
+                    </target>
+                    
+            <target name="xml_recursed_from_tr_map" depends="install_folders,uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_tr_map" description="Buduje wyjsciowego XMLa na podstawie mapy transportowej dla zastosowan w API DEVEL">
+                <echo message="OUTPUT__START"/>
+                <echo>
+                    &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final}&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final}&lt;/a&gt;&lt;/br&gt; 
+                </echo>
+                <echo message="OUTPUT__END"/>
+            </target>
+    
+            
+   
+    
+    <!-- #### eof tr_map #### -->
+    
+    <target name="set_default_db_xml_cache.public_local">
+        <condition property="set_default_db_xml_cache.public_local">
+            <available file="default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl"/> 
+        </condition>
+        <echo>Ustawiam sciezke default_db_xml_cache.public  w glownym katalogu ./default_db_xml_cache.public</echo>
+    </target>
+    
+    <target name="set_default_db_xml_cache.public_default">
+        <echo>Ustawiam sciezke default_db_xml_cache.public  zagniezdzona domyslnie ../../../default_db_xml_cache.public </echo>
+        <!--<condition property="set_default_db_xml_cache.public_default">
+            <available></available>
+        </condition>
+       -->
+    </target>
+    
+    <target name="check_set_default_db_xml_cache.public_local" depends="set_default_db_xml_cache.public_local" if="${set_default_db_xml_cache.public_local}">
+        <!--<echo> testujemy czy jest dita</echo>-->
+        <property name="default_db_xml_cache.public" value="default_db_xml_cache.public"/>
+        <property name="build_recurse_ant.xsl" value="${default_db_xml_cache.public}/build_recurse_ant.xsl"/>
+        <property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
+        <property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
+    </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}">
+        <echo> Ustawiamy ../../../default_db_xml_cache.public</echo>
+        <property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>
+        <property name="build_recurse_ant.xsl" value="${default_db_xml_cache.public}/build_recurse_ant.xsl"/>
+        <property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
+        <property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
+        
+    </target>
+    
+    
    
     <target name="main_build_recurse_ant.dita_with_id"  if="${test_if_dita}">
         <xslt 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}" >
@@ -96,6 +310,16 @@
             <classpath location="/opt/local/share/java/saxon9he.jar"/>
         </xslt>
     </target>
+    
+    <target name="main_build_recurse_ant.tr_map_with_id"  if="${test_if_tr_map}">
+        <xslt 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}" >
+            <factory name="net.sf.saxon.TransformerFactoryImpl">    
+                <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
+            </factory>
+            <param name="namespace_prefix" expression="${namespace_prefix}"/>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>
+    </target>
    
    
     <target name="clean_temp_dir" description="URL_TASK Target clean_temp_dir">
@@ -108,37 +332,34 @@
     </target>
 
     <!-- wygenerowanie ant builda do sciagniecia niezbednego elementu na podstawie template main.dita i tam zagniezdzonego RelatedFeature-->
-    <target name="build_recurse_ant.xml" depends="main_build_recurse_ant.dita_with_id">
+    <target name="build_recurse_ant.xml" depends="main_build_recurse_ant.dita_with_id,main_build_recurse_ant.tr_map_with_id">
         <!-- build do wytworzenia pierwszego przetworzenia zagniezdzen -->
-        
         <record name="${temp}/ant.log" loglevel="verbose" append="true"/>
         <property name="loop_xpath"  value="root"/>
-        <property name="build_recurse_ant.xml" value="${temp}/${uuid}.build_${loop_xpath}.xml"/>
+        <property name="build_recurse_ant.xml" value="${temp}/${uuid_tested}.build_${loop_xpath}.xml"/>
         <echo>#113 ant build_recurse_ant.xml=${build_recurse_ant.xml}; </echo>
         <!--<delete file="${build_recurse_ant.xml}"/>-->
-        <xslt basedir="./" style="${build_recurse_ant.xsl}" 
-              in="${main_build_recurse_ant.dita_with_id}"  destdir="./" 
-              out="${build_recurse_ant.xml}"  >
+        <xslt basedir="./" style="${build_recurse_ant.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${build_recurse_ant.xml}"  >
             <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="build_recurse_ant.xsl" expression="${build_recurse_ant.xsl}"/>
-            <param name="passwordBase64Basic" expression="${passwordBase64Basic}"/>
+            <param name="passwordBase64Basic" expression="${passwordBase64Basic_tested}"/>
             <param name="url" expression="${url}" />
             <param name="webRootUrl" expression="${webRootUrl}" /> 
             <param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita_with_id}"/>
-            <param name="uuid" expression="${uuid}"/>
+            <param name="uuid" expression="${uuid_tested}"/>
             
             <!--<param name="out_task.dita" expression="${out_task.dita}"/>-->
             <!--<param name="wfs_output" expression=""/>-->
             
             <param name="api_url" expression="${api_url}"/>
             <!--<param name="namespace_prefix" expression="${namespace_prefix}"/>--> 
-            <param name="typeName" expression="${typeName}"/> 
-            <param name="xpath" expression="${xpath}"/> <!-- to be set initially like as key to search ID  -->
-            <param name="xpath_value" expression="${xpath_value}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
+            <param name="typeName" expression="${typeName_tested}"/> 
+            <param name="xpath" expression="${xpath_tested}"/> <!-- to be set initially like as key to search ID  -->
+            <param name="xpath_value" expression="${xpath_value_tested}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
             <param name="loop_xpath" expression="root"/><!-- xpath sciezki przetwarzania xmla -->
             <param name="loop_xpath_save" expression="${loop_xpath}"/>
             <param name="current_leaf.dita" expression="${main_build_recurse_ant.dita_with_id}"/>
@@ -152,6 +373,9 @@
         <!-- pozbierac wszystkie do kupy xmle  -->
     </target>
     
+    
+    
+    
     <target name="build_recurse_ant_merge_dita_from_temp.xsl" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
         <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final}" >
             <factory name="net.sf.saxon.TransformerFactoryImpl">    
@@ -160,7 +384,7 @@
             <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}"/>
+            <param name="uuid" expression="${uuid_tested}"/>
             <param name="basedir" expression="${basedir}"/>
             <param name="temp" expression="${temp}"/>
         </xslt>
@@ -168,26 +392,9 @@
     </target>
 
 
-    <!--<target name="get_related_feature">
-        <exec executable="curl"  output="${wfs_output}" errorproperty="wfs_error" resultproperty="wfs_result">
-            <arg line="-H 'Authorization: Basic ${passwordBase64Basic}' ${url}"/>
-        </exec>
-        <echo message="curl -H 'Authorization: Basic ${passwordBase64Basic}' '${url}'"/>
-        
-        <echo message="ERROR__START"/>
-        <echo message="${wfs_error}"/>
-        <echo> gues path of pdf is </echo>
-        <exec  executable="bash" dir="." outputproperty="url_of_current_script">
-             <arg value="-c"/>
-             <arg value="echo &quot;${url}&quot; |sed 's/[a-zA-Z0-9]*.php.*//'"/>
-        </exec>
-        <echo message="ERROR__END"/>
-        
-    </target>-->
 
 
-    <target name="buildpdf_recursed" depends="check_dita,info_brak_dita" if="${test_if_dita}">
-       
+    <target name="buildpdf_recursed" depends="uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_dita" if="${test_if_dita}">
         <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"/>
@@ -206,7 +413,7 @@
         <echo message="OUTPUT__START"/>        
         <!--<echo> url = ${url} 
         </echo>-->
-        <!--<echo> passwordBase64Basic = ${passwordBase64Basic} 
+        <!--<echo> passwordBase64Basic = ${passwordBase64Basic_tested} 
         </echo>-->
         <!--<echo> $webRootUrl = ${webRootUrl} 
         </echo>-->
@@ -215,45 +422,6 @@
         <echo>
             &lt;br&gt;Wygenerowano druk pdf - sciagnij go &lt;a href=&quot;${webRootUrl}/out/${out_task_file}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/out/${out_task_file}.pdf&lt;/a&gt;&lt;/br&gt; 
         </echo>
-        <echo message="OUTPUT__END"/>
-    </target>
-
-
-    <!--<target name="buildpdf" depends="get_related_feature">
-        <xslt basedir="./" style="IN7_DZIENNIK_KORESP.xsl" in="${wfs_output}"  destdir="./" out="${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/initialMode" value="PROCES_INCLUDE"/>-\->
-                <!-\-<attribute name="http://saxon.sf.net/feature/initialTemplate" value="Types__x3A__xlsx__x3A__main"/>-\->
-            </factory>
-            <classpath location="/opt/local/share/java/saxon9he.jar"/>
-            <param name="dita_task_template_file_param" expression="main.dita"/>
-        </xslt> 
-        <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}" />
-            <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} |sed 's/^.*\///'"/>
-        </exec>
-        <echo message="OUTPUT__START"/>        
-        <!-\-<echo> url = ${url} 
-        </echo>-\->
-        <!-\-<echo> passwordBase64Basic = ${passwordBase64Basic} 
-        </echo>-\->
-        <!-\-<echo> $webRootUrl = ${webRootUrl} 
-        </echo>-\->
-        <!-\-<echo> $wfs_output = ${wfs_output} 
-        </echo>-\->
-        <echo>
-            &lt;br&gt;Wygenerowano druk pdf - sciagnij go &lt;a href=&quot;${webRootUrl}/out/${out_task_file}.pdf&quot;&gt; &quot;${webRootUrl}/out/${out_task_file}.pdf&lt;/a&gt;&lt;/br&gt; 
-        </echo>
         <echo>
             &lt;br&gt;Dodaj do korespondencji (W przygotowaniu)&lt;/br&gt; 
         </echo>
@@ -264,7 +432,10 @@
             &lt;br&gt;Umieść swój podpis graficzny (W przygotowaniu)&lt;/br&gt; 
         </echo>
         <echo message="OUTPUT__END"/>
-    </target>-->
+    </target>
+
+
+
     
     
 </project>

+ 3 - 0
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/IN7_DZIENNIK_KORESP.dita

@@ -122,6 +122,9 @@
         </tgroup>
       </table>
     </p> 
+    <p/>
+    <p/>
+    <p><sup>wygenerowano przez procesy5.pl</sup></p>
   </body>
 </topic>
 </RelatedFeature>

+ 52 - 0
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa/ADMIN_USERS.dita

@@ -0,0 +1,52 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<RelatedFeature xpath="ID"  typeName="p5_default_db:ADMIN_USERS" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+  xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
+<topic id="untitled4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
+  <title><ph>Załącznik do umowy - dane wyposazenia dla </ph><ph xpath="ID"/><ph>-</ph><ph xpath="ADM_NAME"/>
+    </title>
+  <body>    
+    <p><b>Wyposażenia</b></p>
+    <p>
+      <table>
+        <tgroup cols="4">
+          <thead>
+            <row>
+              <entry>ID</entry>
+              <entry>TYP</entry>
+              <entry>s/n</entry>
+              <entry>koszt</entry>
+            </row>
+          </thead>
+          <tbody>
+            <row>
+              <entry/>
+              <entry/>
+              <entry/>
+              <entry/>
+            </row>
+            <RelatedFeature xpath="ADMIN_USERS_ID" xpath_value="../ID" typeName="p5_default_db:DEVICES">  <!-- test sciagniecia powiazanych pism do sprawy -->
+                <RelatedFilter xpath="PARENT_ID" xpath_value=""/>
+              <!-- to disable copied records  -->
+              <row>
+                <entry xpath="ID" />
+                <entry xpath="T_DEVICE_TYPE"/>
+                <entry xpath="T_DEVICE_SERIAL"/>
+                <entry xpath="F_BILL_COST"/>
+              </row>
+              <RelatedFeature xpath="PARENT_ID" xpath_value="../ID" typeName="p5_default_db:DEVICES">  <!-- test sciagniecia powiazanych pism do sprawy -->
+                <row>
+                  <entry xpath="ID" >Parent</entry>
+                  <entry xpath="T_DEVICE_TYPE"/>
+                  <entry xpath="T_DEVICE_SERIAL"/>
+                  <entry xpath="F_BILL_COST"/>
+                </row>
+              </RelatedFeature>
+            </RelatedFeature>
+          </tbody>
+        </tgroup>
+      </table>
+    </p> 
+  </body>
+  </topic>
+</RelatedFeature>

+ 82 - 0
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa/IN7_DZIENNIK_KORESP.dita

@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<RelatedFeature xpath="ID"  typeName="p5_default_db:IN7_DZIENNIK_KORESP"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
+  xsi:noNamespaceSchemaLocation="../../../default_db_xml_cache.public/topicProcesy5.xsd">
+  <!-- Sample template to use with Procesy5 model-driven engine with Concurrent and Parallel processing   -->
+  <!-- for more information see http://procesy5.pl/procesy5-wfs-api-doc/ or http://procesy5.pl/procesy5-wfs-api-doc/data_read_ant_example_with_filter.html  -->
+  <!-- to be used inside Procesy5 system or separatelly in ant environment  together with following scripts:
+       build.xml - TODO TO BE DOCUMENTED
+       Documentation ref - TODO TO BE DOCUMENTED
+
+    -->
+  
+  <!-- oznacza to refa z w $var=ID_BILLING_OWNER jest FeatureID=BILLING_OWNER.$var do sciagniecia z p5_default_db:BILLING_OWNER -->
+  
+<topic id="untitled4" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:noNamespaceSchemaLocation="urn:oasis:names:tc:dita:xsd:topic.xsd">
+  <title><ph>Umowa nr </ph><ph xpath="ID_PROJECT"/><ph>-</ph><ph xpath="ID"/>
+    <ph>z dnia</ph>
+    <ph xpath="K_DATA_OTRZYMANEJ_KORESP"/></title>
+  <body>
+    <simpletable id="simpletable_uym_ps1_zy">
+      <strow>
+        <stentry>
+          <RelatedFeature xpath="ID" xpath_value="../ID_BILLING_OWNER" typeName="p5_default_db:BILLING_OWNER"><!-- oznacza to refa z w $var=ID_BILLING_OWNER jest FeatureID=BILLING_OWNER.$var do sciagniecia z p5_default_db:BILLING_OWNER -->
+            <p>Zleceniodawca:</p><ph/>
+            <p xpath="name1"/><ph/>
+            <p xpath="name2"/><ph/>
+            <p><ph xpath="kod"/><ph> </ph><ph xpath="miasto"/><ph> ul.</ph><ph xpath="ulica"/><ph> </ph><ph xpath="numer_dom"/></p>
+            <p><ph>nip:</ph><ph xpath="nip"/><ph> regon:</ph><ph xpath="regon"/></p>
+            <p><ph>email:</ph><ph xpath="BILLING_OWNER_EMAIL"/> <ph> tel:</ph><ph xpath="tel"/> </p>
+            <p><ph>nr r-ku:</ph><ph xpath="nr_rach"/></p>
+            
+        </RelatedFeature></stentry>
+        <stentry>
+          <p>Zleceniobiorca:</p><ph/>
+          <p xpath="K_OD_KOGO"/><ph/>
+          <p xpath="OD_KOGO_ADRES"/><ph/>
+          <p xpath="K_NR_OTRZYM_KORESP"/><ph/>
+          <p xpath="K_NR_OTRZYM_KORESP"/><ph/>
+        </stentry>
+      </strow>
+    </simpletable>
+    
+    <p><b>Temat: <ph/><ph xpath="K_ZAWARTOS"/></b></p>
+  
+ 
+    <p>Tresc: </p>
+    <bodydiv xpath="K_ZAWARTOSC_HTML"/>
+    
+    
+    <p> Miejsca na podpisy<simpletable frame="all" relcolwidth="1.0* 1.0*"
+      id="simpletable_ejm_j2r_cz">
+      <strow>
+        <stentry>Zleceniodawca:</stentry> 
+        <stentry>Zleceniobiorca:</stentry>
+      </strow>
+      <strow>
+        <stentry>
+          <codeblock>
+|            
+|            
+|            
+|                       
+          </codeblock>
+        </stentry>
+        <stentry>
+          <codeblock>
+|            
+|            
+|            
+|                       
+          </codeblock>
+        </stentry>
+      </strow>
+    </simpletable>
+    </p>
+    <p/>
+    <p/>
+    <p><sup>wygenerowano przez procesy5.pl</sup></p>
+  </body>
+</topic>
+</RelatedFeature>

+ 371 - 0
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa/build.xml

@@ -0,0 +1,371 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." name="PRINT_TEMPLATE" default="buildpdf_recursed"  >
+    
+    <!-- template do kopiowania test-druk @2017-03-02 bindera 
+    Copyright BIALL-NET sp. z o.o. wszelkie prawa zastrzezone
+    
+    -->
+    
+    
+    <!-- Przykładowe wyzwolenie z bash :
+    cat input.xml | /Library/Server/Web/Data/Sites/Default/SE/stuff/dita-ot-2.3.3/bin/ant -buildfile ild__IN7_DZIENNIK_KORESP.xml
+    na output mamy pdf'a
+    -->
+
+
+    <!-- https://biuro.biall-net.pl/SE/version-git/index.php?_route=UrlAction_Ant&_task=ant&path=default_db.in7_dziennik_koresp/test-druk&namespace=p5_default_db:IN7_DZIENNIK_KORESP&featureID=59682 -->
+    <!-- default procesy5 sample template is  file:/SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-get-wfs-xml/build.xml-->
+    <!-- sample URL which call this exact variables in this ANT build -->
+    <!-- przykladowy URL ktory przekazuje parametry do tego ANT -->
+    <!--https://biuro.biall-net.pl/SE/version-git/index.php?_route=UrlAction_Ant&_task=ant&
+        path=${default_db.in7_dziennik_koresp/test-get-wfs-xml} -  this is the place to keep ant build (directory name with build.xml)  
+        &namespace=p5_default_db:Rozdzielcza_test_bzyk_PE&featureID=123 - this is setting the 
+        <property name="url" value="${url}"/> - to point what is record/table to download
+        <property name="uuid" value="${uuid}"/> it is automatically also set to enable uinque transaction and to allow to save data with user
+        <property name="passwordBase64Basic" value="${passwordBase64Basic}"/> - this is also set - to enable communicate with API -
+        <property name="DwebRootUrl" value="${$webRootUrl}"/> - this is the place where script is localized to easyli to target user GUI by href to generated output      
+    />
+    -->
+    
+    <!---DpasswordBase64Basic="xxxx=="
+        -DtypeName="p5_default_db:IN7_DZIENNIK_KORESP" 
+        -Dxpath=ID -Dxpath_value=1000 
+        -Duuid=1 -DwebRootUrl=somePathDir-->
+    <property name="temp" value="temp"/> <!-- temp files-->
+    <property name="out" value="out"/> <!-- output ready files like pdf -->
+    
+    <property name="uuid" value="${uuid}"/> <!--TODO-->
+    <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
+    <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="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  -->
+    
+    <!-- variables to first transform of doc for then get related features -->
+    <!--<property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>--> <!-- katalog z xsl z projektu src-xmlschema.git -->
+    
+    <!--<tempfile property="uuid" deleteonexit="yes"/>-->
+    <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>
+    <tempfile property="out_task.dita.final" deleteonexit="no"  destdir="temp"/>
+    <!--<tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />-->
+    
+    <!-- uuid -->
+    <target name="uuid_cond">
+        <condition property="uuid_set" taskname="uuid_check">
+            <or>
+                <equals arg1="${uuid}" arg2=""/>
+                <equals arg1="${uuid}" arg2="$${uuid}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="uuid_check" depends="uuid_cond,uuid_ok,uuid_fail"/>
+    <target name="uuid_ok"   unless="${uuid_set}" >
+        <property name="uuid_tested" value="${uuid}"/>
+    </target>
+    <target name="uuid_fail"  if="${uuid_set}" >
+        <echo>uuid_fail setting to timestamp</echo>
+        <exec  executable="date" outputproperty="uuid_tested" >
+            <arg line="-u +&quot;%Y-%m-%dT%H%M%SZ&quot;"/>
+        </exec>
+    </target>
+    <!-- typeName -->
+    <target name="typeName_cond">
+        <condition property="typeName_set" taskname="typeName_check">
+            <or>
+                <equals arg1="${typeName}" arg2=""/>
+                <equals arg1="${typeName}" arg2="$${typeName}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="typeName_check" depends="typeName_cond,typeName_ok,typeName_fail"/>
+    <target name="typeName_ok"   unless="${typeName_set}" >
+        <property name="typeName_tested" value="${typeName}"/>
+    </target>
+    <target name="typeName_fail"  if="${typeName_set}" >
+        <echo>typeName setting manually</echo>
+        <input addproperty="typeName_input" message="podaj typeName  - nazwa obiektu  np:  nazwe obiektu np CRM_PROCES "/>
+        <property name="typeName_tested" value="p5_default_db:${typeName_input}"/>
+    </target>
+    
+    <!-- xpath -->
+    <target name="xpath_cond">
+        <condition property="xpath_set" taskname="xpath_check">
+            <or>
+                <equals arg1="${xpath}" arg2=""/>
+                <equals arg1="${xpath}" arg2="$${xpath}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="xpath_check" depends="xpath_cond,xpath_ok,xpath_fail"/>
+    <target name="xpath_ok"   unless="${xpath_set}" >
+        <property name="xpath_tested" value="${xpath}"/>
+    </target>
+    <target name="xpath_fail"  if="${xpath_set}" >
+        <echo>xpath setting </echo>
+        <input addproperty="xpath_tested" message="Podaj xpath -  po czym szukac glonwego zaglebienia - np ID "/>
+    </target>
+    
+    <!-- xpath_value -->
+    <target name="xpath_value_cond">
+        <condition property="xpath_value_set" taskname="xpath_value_check">
+            <or>
+                <equals arg1="${xpath_value}" arg2=""/>
+                <equals arg1="${xpath_value}" arg2="$${xpath_value}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="xpath_value_check" depends="xpath_value_cond,xpath_value_ok,xpath_value_fail"/>
+    <target name="xpath_value_ok"   unless="${xpath_value_set}" >
+        <property name="xpath_value_tested" value="${xpath_value}"/>
+    </target>
+    <target name="xpath_value_fail"  if="${xpath_value_set}" >
+        <echo>xpath_value setting </echo>
+        <input addproperty="xpath_value_tested" message="Podaj xpath_value -  podaj wartosc do wyszukiwania - np 1234"/>
+    </target>
+    
+    
+    <!-- passwordBase64Basic -->
+    <target name="passwordBase64Basic_cond">
+        <condition property="passwordBase64Basic_set" taskname="passwordBase64Basic_check">
+            <or>
+                <equals arg1="${passwordBase64Basic}" arg2=""/>
+                <equals arg1="${passwordBase64Basic}" arg2="$${passwordBase64Basic}"/>
+            </or>
+        </condition>
+    </target>
+    <target name="passwordBase64Basic_check" depends="passwordBase64Basic_cond,passwordBase64Basic_ok,passwordBase64Basic_fail"/>
+    <target name="passwordBase64Basic_ok"   unless="${passwordBase64Basic_set}" >
+        <property name="passwordBase64Basic_tested" value="${passwordBase64Basic}"/>
+    </target>
+    <target name="passwordBase64Basic_fail"  if="${passwordBase64Basic_set}" >
+        <echo>passwordBase64Basic setting </echo>
+        <input addproperty="Username" message="podaj nazwe uzytkownika do autoryzacji w API ${api_url} ;  np. a.binder"/>
+        <input addproperty="Password" message="podaj hasło dla uzytkownika ${Username} "/>
+        <exec outputproperty="passwordBase64Basic_tested" executable="base64" inputstring="${Username}:${Password}">
+            <!--<arg line="/bin/echo &quot;${Username}:${Password}&quot; | base64 - "/>-->
+            <!--<arg line="|"/>
+            <arg line="base64 -"/>-->
+        </exec>
+        <echo> Ustalono $passwordBase64Basic na ${passwordBase64Basic_tested} </echo>
+        
+        
+    </target>
+    
+    
+    
+    <target name="konsola" description="wyzwolenie interaktywne z konsoli" depends="uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check">
+        <!--<property name="uuid" value="$"/>-->
+        <!--<exec command="date" outputproperty="uuidd" >
+            <arg line="-u +&quot;%Y-%m-%dT%H%M%SZ&quot;"/>
+        </exec>-->
+        <!--<echo> Ustalilem uuid na ${uuidd}</echo>-->
+        <!--<echo>Podaj nazwe druku</echo>-->
+        <input  addproperty="typeName" message="Podaj typeName -  nazwe obiektu np p5_default_db:CRM_PROCES"/>
+        <input  addproperty="xpath" message="Podaj xpath -  po czym szukac glonwego zaglebienia - np ID"/>
+        <input  addproperty="xpath_value" message="Podaj xpath_value -  podaj wartosc do wyszukiwania - np 1234"/>
+        <input  addproperty="passwordBase64Basic" message="Podaj passwordBase64Basic -  Username i Password w typie base64 "/>
+        <echo> $typeName=${typeName_tested}; $xpath=${xpath_tested}; $xpath_value=${xpath_value} $passwordBase64Basic=${passwordBase64Basic_tested}</echo>
+        
+        <antcall target="buildpdf_recursed"/>
+    </target>
+    
+    
+    <target name="install_folders">
+        <mkdir dir="${temp}"/>
+        <mkdir dir="${out}"/>
+        <chmod  dir="${temp}" perm="ugo+rwx"/>
+        <chmod  dir="${out}" perm="ugo+rwx"/>
+    </target>
+
+
+    <target name="set_dita" depends="check_set_default_db_xml_cache.public_local,check_default_db_xml_cache.public_default" >
+        <!--<property name="main_build_recurse_ant.dita" value="main_build_recurse_ant.dita"/>-->
+        <exec  executable="bash" dir="." outputproperty="main_build_recurse_ant.dita_sed">
+            <arg value="-c"/>
+            <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>
+        
+        <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}"/>  
+        </condition>
+    </target>
+    
+    <target name="check_dita" depends="set_dita,dita_fail,dita_ok">
+        <echo> testujemy czy jest dita</echo>
+    </target>
+    
+    <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 message="OUTPUT__END"/>
+    </target>
+    <target name="dita_ok" if="${test_if_dita}">
+        <antcall target="build_recurse_ant_merge_dita_from_temp.xsl"/>
+    </target>
+    
+    <target name="set_default_db_xml_cache.public_local">
+        <condition property="set_default_db_xml_cache.public_local">
+            <available file="default_db_xml_cache.public/build_recurse_ant_merge_dita_from_temp.xsl"/> 
+        </condition>
+        <echo>Ustawiam sciezke default_db_xml_cache.public  w glownym katalogu ./default_db_xml_cache.public</echo>
+    </target>
+    
+    <target name="set_default_db_xml_cache.public_default">
+        <echo>Ustawiam sciezke default_db_xml_cache.public  zagniezdzona domyslnie ../../../default_db_xml_cache.public </echo>
+        <!--<condition property="set_default_db_xml_cache.public_default">
+            <available></available>
+        </condition>
+       -->
+    </target>
+    
+    <target name="check_set_default_db_xml_cache.public_local" depends="set_default_db_xml_cache.public_local" if="${set_default_db_xml_cache.public_local}">
+        <!--<echo> testujemy czy jest dita</echo>-->
+        <property name="default_db_xml_cache.public" value="default_db_xml_cache.public"/>
+        <property name="build_recurse_ant.xsl" value="${default_db_xml_cache.public}/build_recurse_ant.xsl"/>
+        <property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
+        <property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
+    </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}">
+        <echo> Ustawiamy ../../../default_db_xml_cache.public</echo>
+        <property name="default_db_xml_cache.public" value="../../../default_db_xml_cache.public"/>
+        <property name="build_recurse_ant.xsl" value="${default_db_xml_cache.public}/build_recurse_ant.xsl"/>
+        <property name="build_recurse_ant_merge_dita_from_temp.xsl" value="${default_db_xml_cache.public}/build_recurse_ant_merge_dita_from_temp.xsl"/>
+        <property name="builds_to_ant.xsl" value="${default_db_xml_cache.public}/builds_to_ant.xsl"/>
+        
+    </target>
+    
+    
+   
+    <target name="main_build_recurse_ant.dita_with_id"  if="${test_if_dita}">
+        <xslt 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}" >
+            <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"/>
+        </xslt>
+    </target>
+   
+   
+    <target name="clean_temp_dir" description="URL_TASK Target clean_temp_dir">
+        <delete>
+            <fileset dir="${temp}"/>
+        </delete>        
+        <echo message="OUTPUT__START"/>   
+        <echo>&lt;br&gt;Skasowano pliki tymczasowe&lt;/br&gt;</echo>         
+        <echo message="OUTPUT__END"/>
+    </target>
+
+    <!-- wygenerowanie ant builda do sciagniecia niezbednego elementu na podstawie template main.dita i tam zagniezdzonego RelatedFeature-->
+    <target name="build_recurse_ant.xml" depends="main_build_recurse_ant.dita_with_id">
+        <!-- build do wytworzenia pierwszego przetworzenia zagniezdzen -->
+        <record name="${temp}/ant.log" loglevel="verbose" append="true"/>
+        <property name="loop_xpath"  value="root"/>
+        <property name="build_recurse_ant.xml" value="${temp}/${uuid_tested}.build_${loop_xpath}.xml"/>
+        <echo>#113 ant build_recurse_ant.xml=${build_recurse_ant.xml}; </echo>
+        <!--<delete file="${build_recurse_ant.xml}"/>-->
+        <xslt basedir="./" style="${build_recurse_ant.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${build_recurse_ant.xml}"  >
+            <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="build_recurse_ant.xsl" expression="${build_recurse_ant.xsl}"/>
+            <param name="passwordBase64Basic" expression="${passwordBase64Basic_tested}"/>
+            <param name="url" expression="${url}" />
+            <param name="webRootUrl" expression="${webRootUrl}" /> 
+            <param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita_with_id}"/>
+            <param name="uuid" expression="${uuid_tested}"/>
+            
+            <!--<param name="out_task.dita" expression="${out_task.dita}"/>-->
+            <!--<param name="wfs_output" expression=""/>-->
+            
+            <param name="api_url" expression="${api_url}"/>
+            <!--<param name="namespace_prefix" expression="${namespace_prefix}"/>--> 
+            <param name="typeName" expression="${typeName_tested}"/> 
+            <param name="xpath" expression="${xpath_tested}"/> <!-- to be set initially like as key to search ID  -->
+            <param name="xpath_value" expression="${xpath_value_tested}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
+            <param name="loop_xpath" expression="root"/><!-- xpath sciezki przetwarzania xmla -->
+            <param name="loop_xpath_save" expression="${loop_xpath}"/>
+            <param name="current_leaf.dita" expression="${main_build_recurse_ant.dita_with_id}"/>
+            <param name="basedir" expression="${basedir}"/>
+            <param name="build_recurse_ant.xsl" expression="${build_recurse_ant.xsl}"/>
+            <param name="temp" expression="${temp}"/>
+            <param name="builds_to_ant.xsl" expression="${builds_to_ant.xsl}"/>
+        </xslt>
+        <!--<import file="${build_recurse_ant.xml}"/>-->
+        <ant  antfile="${build_recurse_ant.xml}" dir="."/>
+        <!-- pozbierac wszystkie do kupy xmle  -->
+    </target>
+    
+    <target name="build_recurse_ant_merge_dita_from_temp.xsl" depends="build_recurse_ant.xml" description="z plikow temp/$uuid.* buduje $out_task.dita.final ">
+        <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita_with_id}"  destdir="./" out="${out_task.dita.final}" >
+            <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="uuid" expression="${uuid_tested}"/>
+            <param name="basedir" expression="${basedir}"/>
+            <param name="temp" expression="${temp}"/>
+        </xslt>
+        <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita}. </echo>
+    </target>
+
+
+
+
+    <target name="buildpdf_recursed" depends="uuid_check,typeName_check,xpath_check,xpath_value_check,passwordBase64Basic_check,check_dita" if="${test_if_dita}">
+        <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}" />
+           <!-- <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>
+            &lt;br&gt;Wygenerowano druk pdf - sciagnij go &lt;a href=&quot;${webRootUrl}/out/${out_task_file}.pdf&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/out/${out_task_file}.pdf&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo>
+            &lt;br&gt;Dodaj do korespondencji (W przygotowaniu)&lt;/br&gt; 
+        </echo>
+        <echo>
+            &lt;br&gt;Wyślij do adresatów emailem (W przygotowaniu)&lt;/br&gt; 
+        </echo>
+        <echo>
+            &lt;br&gt;Umieść swój podpis graficzny (W przygotowaniu)&lt;/br&gt; 
+        </echo>
+        <echo message="OUTPUT__END"/>
+    </target>
+
+
+
+    
+    
+</project>

+ 0 - 49
SE/schema/default_db.instance.xml/p5_tr_map/complexType-system_cache__graph_relation_elements__x3A__graphLinkComplex.xml

@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<p5_tr_map:go_recurse_from_root_by_build_element xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-                                                 xmlns:p5_tr_map_js="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map_js.xsd"
-                                                 xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-                                                 xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-                                                 xmlns:TERYT_terc_xml_import_after_main="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/TERYT_terc_xml_import_after_main.xsd"
-                                                 xmlns:default_default_objects_types="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/default_objects_types.xsd"
-                                                 xmlns:default_db="http://biuro.biall-net.pl/xmlschema_procesy5/default_db"
-                                                 xmlns:default_projects="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/projects.xsd"
-                                                 xmlns:default_db_CRM_WSKAZNIK="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/CRM_WSKAZNIK"
-                                                 xmlns:default_infrastructure_buildings="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure_buildings.xsd"
-                                                 xmlns:default_workers="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/workers.xsd"
-                                                 xmlns:bpmn20="http://www.omg.org/spec/BPMN/20100524/MODEL"
-                                                 xmlns:database_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/database_objects.xsd"
-                                                 xmlns:system_cache__procesy5_xsd_business_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_xsd_business_objects.xsd"
-                                                 xmlns:default_crm_proces="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/crm_proces.xsd"
-                                                 xmlns:teryt="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd"
-                                                 xmlns:default_db_TELBOXES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/TELBOXES"
-                                                 xmlns:graph_relation_elements="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd"
-                                                 xmlns:default_corespondence="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/corespondence.xsd"
-                                                 xmlns:default_db_CRM_LISTA_ZASOBOW="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/CRM_LISTA_ZASOBOW"
-                                                 xmlns:default_db_BUILDINGS="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/BUILDINGS"
-                                                 xmlns:default_db_DEVICES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/DEVICES"
-                                                 xmlns:default_recurring_accounting_features="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/recurring_accounting_features.xsd"
-                                                 xmlns:system_cache__filesystem="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/filesystem.xsd"
-                                                 xmlns:gml="http://www.opengis.net/gml/3.2"
-                                                 xmlns:xlink="http://www.w3.org/1999/xlink"
-                                                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                                                 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"
-                                                 xsi:schemaLocation="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd ../../default_db_xml_cache/p5_tr_map.xsd">
-   <p5_tr_map:go_recurse_from_root_by_build_element_494 p5_tr_map:uuid="d90e1"
-                                                        retrieve_ID="parent::node()/REMOTE_ID"
-                                                        retrieve_REMOTE_ID="empty(REMOTE_ID) or REMOTE_ID"
-                                                        retrieve_TYPE="system_cache__graph_relation_elements:graphLinkComplex"
-                                                        local-name="complexType"
-                                                        local-name-name="graphLinkComplex"
-                                                        restriciction_base=""
-                                                        event_type="494"
-                                                        comment="494 jedyna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID "
-                                                        system_cache__appinfo:xpath_full="system_cache__graph_relation_elements:graphLinkComplex"
-                                                        system_cache__appinfo:xpath="system_cache__graph_relation_elements:graphLinkComplex"
-                                                        system_cache__appinfo:restriction_path_TODEL=""
-                                                        system_cache__appinfo:name="graphLinkComplex"
-                                                        system_cache__appinfo:id="system_cache__graph_relation_elements___d185e9"
-                                                        system_cache__appinfo:sort="0"
-                                                        system_cache__appinfo:root_element_in_schema="true"
-                                                        system_cache__appinfo:prefix="system_cache__graph_relation_elements"
-                                                        system_cache__appinfo:namespace_uri="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd"/>
-</p5_tr_map:go_recurse_from_root_by_build_element>

+ 0 - 49
SE/schema/default_db.instance.xml/p5_tr_map/complexType-system_cache__graph_relation_elements__x3A__graphNodeComplex.xml

@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<p5_tr_map:go_recurse_from_root_by_build_element xmlns:p5_tr_map="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd"
-                                                 xmlns:p5_tr_map_js="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map_js.xsd"
-                                                 xmlns:vc="http://www.w3.org/2007/XMLSchema-versioning"
-                                                 xmlns:system_cache__appinfo="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/appinfo.xsd"
-                                                 xmlns:TERYT_terc_xml_import_after_main="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/TERYT_terc_xml_import_after_main.xsd"
-                                                 xmlns:default_default_objects_types="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/default_objects_types.xsd"
-                                                 xmlns:default_db="http://biuro.biall-net.pl/xmlschema_procesy5/default_db"
-                                                 xmlns:default_projects="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/projects.xsd"
-                                                 xmlns:default_db_CRM_WSKAZNIK="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/CRM_WSKAZNIK"
-                                                 xmlns:default_infrastructure_buildings="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/infrastructure_buildings.xsd"
-                                                 xmlns:default_workers="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/workers.xsd"
-                                                 xmlns:bpmn20="http://www.omg.org/spec/BPMN/20100524/MODEL"
-                                                 xmlns:database_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/database_objects.xsd"
-                                                 xmlns:system_cache__procesy5_xsd_business_objects="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/procesy5_xsd_business_objects.xsd"
-                                                 xmlns:default_crm_proces="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/crm_proces.xsd"
-                                                 xmlns:teryt="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/teryt.xsd"
-                                                 xmlns:default_db_TELBOXES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/TELBOXES"
-                                                 xmlns:graph_relation_elements="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd"
-                                                 xmlns:default_corespondence="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/corespondence.xsd"
-                                                 xmlns:default_db_CRM_LISTA_ZASOBOW="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/CRM_LISTA_ZASOBOW"
-                                                 xmlns:default_db_BUILDINGS="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/BUILDINGS"
-                                                 xmlns:default_db_DEVICES="http://biuro.biall-net.pl/xmlschema_procesy5/default_db/DEVICES"
-                                                 xmlns:default_recurring_accounting_features="http://biuro.biall-net.pl/xmlschema_procesy5/default_objects/recurring_accounting_features.xsd"
-                                                 xmlns:system_cache__filesystem="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/filesystem.xsd"
-                                                 xmlns:gml="http://www.opengis.net/gml/3.2"
-                                                 xmlns:xlink="http://www.w3.org/1999/xlink"
-                                                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-                                                 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"
-                                                 xsi:schemaLocation="http://biuro.biall-net.pl/xmlschema_procesy5/default_db_xml_cache/procesy5_translate_map.xsd ../../default_db_xml_cache/p5_tr_map.xsd">
-   <p5_tr_map:go_recurse_from_root_by_build_element_494 p5_tr_map:uuid="d108e1"
-                                                        retrieve_ID="parent::node()/REMOTE_ID"
-                                                        retrieve_REMOTE_ID="empty(REMOTE_ID) or REMOTE_ID"
-                                                        retrieve_TYPE="system_cache__graph_relation_elements:graphNodeComplex"
-                                                        local-name="complexType"
-                                                        local-name-name="graphNodeComplex"
-                                                        restriciction_base=""
-                                                        event_type="494"
-                                                        comment="494 jedyna derewiacja np. database_objects:LinearRingType/LinearRingType/AbstractRingType - w kolejnej oczekujemy REMOTE_ID=parent::node()/ID "
-                                                        system_cache__appinfo:xpath_full="system_cache__graph_relation_elements:graphNodeComplex"
-                                                        system_cache__appinfo:xpath="system_cache__graph_relation_elements:graphNodeComplex"
-                                                        system_cache__appinfo:restriction_path_TODEL=""
-                                                        system_cache__appinfo:name="graphNodeComplex"
-                                                        system_cache__appinfo:id="system_cache__graph_relation_elements___d185e63"
-                                                        system_cache__appinfo:sort="0"
-                                                        system_cache__appinfo:root_element_in_schema="true"
-                                                        system_cache__appinfo:prefix="system_cache__graph_relation_elements"
-                                                        system_cache__appinfo:namespace_uri="http://biuro.biall-net.pl/xmlschema_procesy5/system_cache/graph_relation_elements.xsd"/>
-</p5_tr_map:go_recurse_from_root_by_build_element>