Przeglądaj źródła

rekursywne pobieranie relacyjnych danych formularza po ID TODO po dowolnym polu na rzecz ogc:filter

a.binder 9 lat temu
rodzic
commit
41e3d1857a

+ 105 - 26
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/build.xml

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<project basedir="." name="PRINT_TEMPLATE" default="buildpdf">
+<project basedir="." name="PRINT_TEMPLATE" default="buildpdf_recursed"  >
     
     
     
@@ -22,41 +22,89 @@
         <property name="DwebRootUrl" value="${$webRootUrl}"/> - this is the place where script is localized to easyli to target user GUI by href to generated output      
     />
     -->
+    <property name="temp" value="temp"/> <!-- temp files-->
+    <property name="out" value="out"/> <!-- output ready files like pdf -->
     
-    <!-- variables to first transform of doc for then get related features -->
-    <property name="build_recurse_ant.xsl" value="build_recurse_ant.xsl"/>
-    <property name="build_recurse_ant.xml" value="build_recurse_ant.xml"/><!-- build do wytworzenia pierwszego przetworzenia zagniezdzen -->
-    <property name="main_build_recurse_ant.dita" value="main_build_recurse_ant.dita"/>
- 
     <property name="uuid" value="${uuid}"/>
     <property name="passwordBase64Basic" value="${passwordBase64Basic}"/>
     <property name="url" value="${url}"/>
-    <property name="DwebRootUrl" value="${$webRootUrl}"/>
+    <property name="webRootUrl" value="${$webRootUrl}"/>
+
+
+    <property name="api_url" value="https://biuro.biall-net.pl/SE/version-git/wfs-data.php"/>
+    <property name="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="build_recurse_ant.xsl" value="build_recurse_ant.xsl"/>
+    <property name="build_recurse_ant_merge_dita_from_temp.xsl" value="build_recurse_ant_merge_dita_from_temp.xsl"/>
+    <property name="main_build_recurse_ant.dita" value="main_build_recurse_ant.dita"/>
+ 
     
     <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>
-    <tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  />
-
+    <tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />
+    
+    <target name="install_folders">
+        <mkdir dir="${temp}"/>
+        <mkdir dir="${out}"/>
+        <chmod  dir="${temp}" perm="ugo+rwx"/>
+        <chmod  dir="${out}" perm="ugo+rwx"/>
+    </target>
 
    
 
     <!-- wygenerowanie ant builda do sciagniecia niezbednego elementu na podstawie template main.dita i tam zagniezdzonego RelatedFeature-->
     <target name="build_recurse_ant.xml">
+        <!-- build do wytworzenia pierwszego przetworzenia zagniezdzen -->
+        <property name="loop_xpath"  value="root"/>
+        <property name="build_recurse_ant.xml" value="${temp}/${uuid}.build_${loop_xpath}.xml"/>
+        <delete file="${build_recurse_ant.xml}"/>
         <xslt basedir="./" style="${build_recurse_ant.xsl}" in="${main_build_recurse_ant.dita}"  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="url" expression="${url}" />
+            <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="out_task.dita" expression="${out_task.dita}"/>
+            <param name="wfs_output" expression="${wfs_output}"/>
+            
+            <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="loop_xpath" expression="${loop_xpath}"/><!-- xpath sciezki przetwarzania xmla -->
+            <param name="current_leaf.dita" expression="${main_build_recurse_ant.dita}"/>
         </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 ">
+        <xslt basedir="./" style="${build_recurse_ant_merge_dita_from_temp.xsl}" in="${main_build_recurse_ant.dita}"  destdir="./" out="${out_task.dita}" >
+            <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}"/>
+        </xslt>
+        <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita}. </echo>
     </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>
@@ -64,7 +112,6 @@
         
         <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"/>
@@ -73,18 +120,54 @@
         <echo message="ERROR__END"/>
         
     </target>
-    
-    
-    
-    
 
 
-    <target name="buildpdf" depends="get_related_feature">
+    <target name="buildpdf_recursed" depends="build_recurse_ant_merge_dita_from_temp.xsl">
+       
+        <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>
+        <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>
 
-        
+
+    <target name="buildpdf" depends="get_related_feature">
         <xslt basedir="./" style="IN7_DZIENNIK_KORESP.xsl" in="${wfs_output}"  destdir="./" out="${out_task.dita}" >
             <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"/>
@@ -98,24 +181,19 @@
             <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>
@@ -128,7 +206,8 @@
         <echo>
             &lt;br&gt;Umieść swój podpis graficzny (W przygotowaniu)&lt;/br&gt; 
         </echo>
-
         <echo message="OUTPUT__END"/>
     </target>
+    
+    
 </project>

+ 395 - 32
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/build_recurse_ant.xsl

@@ -1,6 +1,10 @@
 <?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:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+    xmlns:xlink="http://www.w3.org/1999/xlink"
+    xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
+    xmlns:wfs="http://www.opengis.net/wfs"
     exclude-result-prefixes="xs"
     version="2.0">
     <xsl:output indent="yes" />
@@ -12,22 +16,173 @@
     <property name="DwebRootUrl" value="${$webRootUrl}"/> - this is the place where script is localized to easyli to target user GUI by href to generated output   -->
     
     <!-- variables to be set first by GUI first_request from executing API (php -> bash)-->
-    <xsl:param name="uuid" />
-    <xsl:param name="passwordBase64Basic" />
+    <xsl:param name="uuid" required="yes" /> <!-- pewnie bedziemy ignorowac i dzialac na bazie ${'wfs_output'} ktory juz jest tempfilem -->
+    <xsl:param name="passwordBase64Basic" required="yes" />
     <xsl:param name="url" />
-    <xsl:param name="DwebRootUrl" /> 
-    
+    <xsl:param name="webRootUrl" /> 
     
+    <xsl:param name="out_task.dita"/> <!-- nazwa temp docelowego zrodla do wykonania pliku pdf -->
+    <!--<xsl:param name="current_leaf.dita" required="yes"/>--> <!-- nazwa aktualnego przetowarzenia .dita - najpierw main_build_recurse_ant.dita potem przechodzi w  1.1.root_x2f_IN7_DZIENNIK_KORESP.1.dita.xml -->
+    <!--<xsl:param name="wfs_output" select="concat('temp/wfs_output.',$uuid)"/>-->
+                    <!-- jak parametr jest to znaczy, ze przetwarzamy  -->
+    <xsl:param name="wfs_output" required="yes"/> <!-- potem wfs_output.xml jak sciagnie nazwa temp sciagniecia z api xml forsowana przez pierwsze sciagniecie -->
+    <xsl:param name="api_url"  select="'https://biuro.biall-net.pl/SE/version-git/wfs-data.php'"/>
+    <!--<xsl:param name="namespace_prefix" select="'p5_default_db'"/>--> 
+    <xsl:param name="typeName" required="yes" />  <!-- to be set initially ex: p5_default_db:IN7_DZIENNIK_KORESP  -->
+    <xsl:param name="xpath" required="yes" />  <!-- to be set initially ex: ID  -->
+    <xsl:param name="xpath_value" required="yes" />  <!-- to be set ex: 1000 -->
+    <xsl:param name="loop_xpath" required="yes"/> <!-- sciezka do zapisywania xmli w przetwarzaniu plikow default root -->
     
     <!-- static project variables as default styles.dita/xsl and names-->
     <xsl:param name="main_build_recurse_ant.dita" select="'main_build_recurse_ant.dita'"/>
     <xsl:param name="build_recurse_ant.xsl" select="'build_recurse_ant.xsl'"/>
     
+    <!-- second step fist loop - with data -->
+    <!--<xsl:param name="wfs_output.xml"/>--> <!-- to be set in second step by ant build generated by this style to fill by its data childs -->
     
+    <xsl:template match="*">
+        <xsl:param name="typeName"  select="$typeName" />
+        <xsl:param name="xpath" select="$xpath" />
+        <xsl:param name="xpath_value" select="$xpath_value" />
+        <xsl:param name="loop_xpath" select="$loop_xpath"/>
+        <xsl:param name="input_obj_with_xpath" /> <!-- przekazany z template  match="RelatedFeature" mode="after_first_ant_assing_vars_childs" -->
+        <xsl:choose>
+            <xsl:when test="name()='RelatedFeature'">
+                <xsl:variable name="RelatedFeatureCount" select="last()"/>
+                <xsl:variable name="RelatedFeaturePos" select="position()"/>
+                <xsl:variable name="featureID_name" select="substring-after($typeName,':')"/>
+                <xsl:variable name="typeName_dita" select="@typeName"/>
+                <xsl:variable name="featureID_name_dita" select="substring-after($typeName_dita,':')"/>
+                <xsl:variable name="wfs_output" select="concat($uuid,'.',$loop_xpath,'_x2f_',$featureID_name)"/>
+                <xsl:variable name="wfs_output.xml" select="concat($wfs_output,'.',position(),'.xml')"/>
+                <xsl:variable name="wfs_output.dita" select="concat($wfs_output,'.',position(),'.dita.xml')"/>
+                <!-- dane z oczekiwanego template .dita -->
+                <xsl:variable name="xpath_dita" select="@xpath"/>
+                <xsl:variable name="xpath_value_dita">
+                    <xsl:choose>
+                        <xsl:when test="@xpath_value">
+                            <!--<xsl:variable name="xpath_value_tokens" select="tokenize(@xpath_value,'/')"/>-->
+                            <!--<xsl:value-of select="'todo zapytanie xpath do przetworzenia'"/>-->
+                            <!--<xsl:copy-of select="$xpath_value_tokens"></xsl:copy-of>-->
+                            <xsl:message>#67 probuje ustali wartosc z @xpath_value=<xsl:value-of select="@xpath_value"/>; $input_obj_with_xpath/node()[@xpath="ID_BILLING_OWNER"] =<xsl:value-of select="$input_obj_with_xpath/node()[@xpath='ID_BILLING_OWNER']"/>; </xsl:message>
+                            <xsl:variable name="xpath_value_token">
+                                <xsl:for-each select=" tokenize(@xpath_value,'/')">
+                                    <xsl:message>#70 znalazlem dla=<xsl:value-of select="."/>; <xsl:value-of select="$input_obj_with_xpath/node()[@xpath=current()]"/></xsl:message>
+                                    <xsl:copy-of select="$input_obj_with_xpath/node()[@xpath='ID_BILLING_OWNER']"></xsl:copy-of><!-- todo to jest bledne ale dziala tymczasowo-->
+                                </xsl:for-each>
+                            </xsl:variable>
+                            <xsl:message>#73 ustalam na <xsl:value-of select="$xpath_value_token/node()[1]/text()"/>;</xsl:message>
+                            <xsl:value-of select="$xpath_value_token/node()[1]/text()"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:value-of select="$xpath_value"/><!-- parametr z template narzuca wartosc -->
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:variable>
+                <xsl:message>#71 wstawiam projekt $loop_xpath=<xsl:value-of select="$loop_xpath"/>; </xsl:message>
+                <project basedir="../." name="get_related_feature" default="get_related_feature_run_child_ant">
+                    <xsl:comment>RelatedFeatureCount:<xsl:value-of select="count(*)"/></xsl:comment>
+                    <!--<xsl:variable name="typeName" select='replace($typeName,"&quot;","")'/>--><!-- oczyszczenie z apostrofow -->
+                    <xsl:element name="property">
+                        <xsl:attribute name="name" select="'uuid'"/>
+                        <xsl:attribute name="value" select="$uuid"/>
+                    </xsl:element>
+                    <xsl:element name="property">
+                        <xsl:attribute name="name" select="'passwordBase64Basic'"/>
+                        <xsl:attribute name="value" select="$passwordBase64Basic"/>
+                    </xsl:element>
+                    <xsl:element name="property">
+                        <xsl:attribute name="name" select="'url'"/>
+                        <xsl:attribute name="value" select="$url"/>
+                    </xsl:element>
+                    <xsl:element name="property">
+                        <xsl:attribute name="name" select="'webRootUrl'"/>
+                        <xsl:attribute name="value" select="$webRootUrl"/>
+                    </xsl:element>
+                    
+                    
+                    
+                    <xsl:apply-templates mode="ant_target" select=".">
+                        <xsl:with-param name="typeName_dita" select="$typeName_dita"/>
+                        <xsl:with-param name="featureID_name_dita" select="$featureID_name_dita"/>
+                        <xsl:with-param name="wfs_output" select="$wfs_output"/>
+                        <xsl:with-param name="wfs_output.xml" select="$wfs_output.xml"/>
+                        <xsl:with-param name="wfs_output.dita" select="$wfs_output.dita"/>
+                        <xsl:with-param name="xpath" select="$xpath"/>
+                        <xsl:with-param name="xpath_dita" select="$xpath_dita"/>
+                        <xsl:with-param name="featureID_name" select="$featureID_name"/>
+                        <xsl:with-param name="xpath_value_dita" select="$xpath_value_dita"/>
+                        <xsl:with-param name="RelatedFeatureCount" select="$RelatedFeatureCount"/>
+                        <xsl:with-param name="RelatedFeaturePos" select="$RelatedFeaturePos"/>
+                        <xsl:with-param name="typeName" select="$typeName"/>
+                        <xsl:with-param name="xpath_value" select="$xpath_value"/>
+                        <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
+                    </xsl:apply-templates>
+                    <!-- na koniec przetwarzania kazdego z wezlow, podmieniamy xsl biezacy wezel -->
+                    
+                    <xsl:comment>template  match="RelatedFeature" mode="after_first_ant_assing_vars_childs" 
+                                robi result-document href="build_{$loop_xpath}.{$uuid}.xml
+                               wiec powinnismy uruchomic ant ten plik w ciemno znajac jego nizsze wezly</xsl:comment>
+                    <xsl:variable name="featureID_name_child" select="substring-after($typeName,':')"/>
+                    <xsl:variable name="loop_xpath_child" select="concat($loop_xpath,'_x2f_',$featureID_name)"/>
+                    
+                    <xsl:choose>
+                        <xsl:when test=".//RelatedFeature">
+                            <xsl:element name="target">
+                                <xsl:attribute name="name" select="'get_related_feature_run_child_ant'"/>
+                                <xsl:attribute name="depends" select="concat('get_related_feature.',$RelatedFeaturePos)"/>
+                                <ant antfile="temp/{$uuid}.build_{$loop_xpath_child}.xml" dir="."/>
+                            </xsl:element>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:comment>#135 nie ma wiecej //RelatedFeature</xsl:comment>
+                            <xsl:element name="target">
+                                <xsl:attribute name="name" select="'get_related_feature_run_child_ant'"/>
+                                <xsl:attribute name="depends" select="concat('get_related_feature.',$RelatedFeaturePos)"/>
+                            </xsl:element>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                    
+                    <!-- na koniec przetwarzania danego zaglebienia uruchamiamy calosc ponownie do kolejnego zaglebienia -->
+                    
+                    <!-- task do polaczenia zaglebien -->
+                    
+                    <!-- jak nie ma zaglebien to generujemy pdf i dajemy uzytkownikowi linka  -->
+                    
+                </project>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:apply-templates mode="child_nodes"/>
+            </xsl:otherwise>
+        </xsl:choose>
+    </xsl:template>
     
     
-    <xsl:template match="RelatedFeature"  >    
-    <!--  template do przetworzenia dity w celu wykrycia:
+    <xsl:template mode="child_nodes" match="*">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+
+    
+    <xsl:template match="RelatedFeature"  mode="ant_target" >  
+        <xsl:param name="typeName_dita" required="yes"/>
+        <xsl:param name="featureID_name_dita" required="yes"/>
+        <xsl:param name="wfs_output" required="yes"/>
+        <xsl:param name="wfs_output.xml" required="yes"/>
+        <xsl:param name="wfs_output.dita" required="yes"/>
+        <xsl:param name="xpath_dita" required="yes"/>
+        <xsl:param name="xpath_value_dita" required="yes"/>
+        <xsl:param name="xpath" required="yes"/>
+        <xsl:param name="featureID_name" required="yes"/>
+        <xsl:param name="RelatedFeatureCount" required="yes"/>
+        <xsl:param name="RelatedFeaturePos" required="yes"/>
+        <xsl:param name="typeName"  required="yes"/>
+        <xsl:param name="xpath_value"  required="yes"/>
+        <xsl:param name="loop_xpath"  required="yes"/>
+        <xsl:choose>
+            <xsl:when test="$wfs_output"/>
+            <xsl:otherwise><xsl:message terminate="yes">Not required param wfs_output - nazwa temp sciagniecia z api xml forsowana przez pierwsze sciagniecie - to set by next parraler step in ant build  </xsl:message></xsl:otherwise>
+        </xsl:choose>
+        <!--  template do przetworzenia dity w celu wykrycia:
         <RelatedFeature xpath="ID_BILLING_OWNER" typeName="p5_default_db:BILLING_OWNER">
         <ph>Nadawca:</ph><br/>
         <ph xpath="name1"/><br/>
@@ -43,32 +198,240 @@
       Template powinien budować projekt ant do wyzwolenia z odpowiednimi parametrami dalszymi
       
     -->
-            <project basedir="." name="PRINT_TEMPLATE" default="buildpdf">
-                <property name="uuid" value="${'uuid'}"/>
-                <property name="passwordBase64Basic" value="'${passwordBase64Basic}'"/>
-                <property name="url" value="${url}"/>
-                <property name="DwebRootUrl" value="'${webRootUrl}'"/>
-                
-                <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>
-                <tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  />
-                
-                <target name="get_related_feature">
-                    <exec executable="curl"  output="${'wfs_output'}'" errorproperty="wfs_error" resultproperty="wfs_result">
-                        <arg line="'-H &apos;Authorization: Basic ${passwordBase64Basic}&apos; ${url}'"/>
-                    </exec>
-                    <echo message="'curl -H &apos;Authorization: Basic ${passwordBase64Basic}&apos; &apos;${url}&apos;'"/>
-                    
-                    <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 &apos;s/[a-zA-Z0-9]*.php.*//&apos;'"/>
-                    </exec>
-                    <echo message="ERROR__END"/>
-                </target>
-            </project>
+             <!-- sprawdzamy czy template pasuje do zadania wyzwolenia czy xpath=xpath_dita oraz czy typeName=typeName_dita-->
+             <xsl:choose>
+                 <xsl:when test="string($xpath_dita)= string($xpath) and string($featureID_name)=string($featureID_name_dita)">
+                     <!-- calculate query to api default_db/?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=p5_default_db:IN7_DZIENNIK_KORESP&SRSNAME=EPSG:3003&featureID=IN7_DZIENNIK_KORESP.1000'-->
+                     <xsl:variable name="url">
+                         <xsl:value-of select="$api_url"/>/default_db/?SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=GetFeature&amp;TYPENAME=<xsl:value-of select="$typeName_dita"/>&amp;SRSNAME=EPSG:3003&amp;featureID=<xsl:value-of select="$featureID_name_dita"/>.<xsl:value-of select="$xpath_value_dita"/>
+                     </xsl:variable>
+
+                            <xsl:element name="target">
+                                <xsl:attribute name="name" select="concat('get_related_feature.',position())"/>
+                                <xsl:choose>
+                                    <xsl:when test="$RelatedFeatureCount=$RelatedFeaturePos"/>
+                                    <xsl:otherwise>
+                                        <xsl:attribute name="depends" select="concat('get_related_feature.',position()-1)"/>
+                                    </xsl:otherwise>
+                                </xsl:choose>
+                                
+                                <tempfile property="out_task.dita" deleteonexit="no"  destdir="temp"/>
+                                    <tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />
+                                    <xsl:element name="exec">
+                                        <xsl:attribute name="executable" select="'curl'"/>
+                                        <xsl:attribute name="output"  select="concat('temp/',$wfs_output.xml)"/>
+                                        <xsl:attribute name="errorproperty" select="'wfs_error'"/>
+                                        <xsl:attribute name="resultproperty" select="'wfs_result'"/>
+                                        <xsl:element name="arg">
+                                            <!--<xsl:attribute name="line" select='concat("-H ","&amp;Authorization: Basic ",$passwordBase64Basic," ",$url)'/>-->
+                                            <xsl:attribute name="line">-H 'Authorization: Basic <xsl:value-of select="$passwordBase64Basic"/>' "<xsl:value-of select="$url"/>"</xsl:attribute> 
+                                        </xsl:element>
+                                    </xsl:element>
+                                    <echo message="ERROR__START"/>
+                                    <xsl:element name="echo">
+                                        <xsl:attribute name="message">${wfs_error}</xsl:attribute>
+                                    </xsl:element>
+                                    <echo message="ERROR__END"/>
+                                    <xsl:choose>
+                                        <xsl:when test="position()=last()">
+                                            <xsl:comment>antcall target="build_recurse_ant.<xsl:value-of select="position()+1"/>.xml"</xsl:comment>
+                                        </xsl:when>
+                                        <xsl:otherwise>
+                                            <antcall target="build_recurse_ant.{position()+1}.xml"/>
+                                        </xsl:otherwise>
+                                    </xsl:choose>
+                                    <echo> related .dita.xml template is: $wfs_output.dita=<xsl:value-of select="$wfs_output.dita"/>; do przetwarzania na podstawie: $wfs_output.xml=<xsl:value-of select="$wfs_output.xml"/>;</echo>
+                                    <xsl:comment> teraz podmieniamy dane z otrzymanego xmla do pliku dita aby potem zrobic polaczony plik  w kolejnym wyzwoleniu ant</xsl:comment>
+                                    <delete file="temp/{$wfs_output.dita}.vals.dita"/>
+                                    <xslt basedir="./" style="{$build_recurse_ant.xsl}" in="temp/{$wfs_output.dita}"  destdir="./" out="temp/{$wfs_output.dita}.vals.dita" >
+                                            <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="after_first_ant_assing_vars"/>
+                                            </factory>
+                                            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+                                            <param name="wfs_output" expression="temp/{$wfs_output.xml}"/>
+                                            <param name="xpath" expression="{$xpath}" /> <!-- kontrolnie - nie potrzebne -->
+                                            <param name="xpath_value" expression="{$xpath_value}" /> <!-- kontrolnie - nie potrzebne -->
+                                            <param name="loop_xpath" expression="{$loop_xpath}"/>
+                                            <param name="typeName" expression="{$typeName}"/><!-- kontrolnie - nie potrzebne -->
+                                            <param name="uuid" expression="{$uuid}"/>
+                                        <param name="passwordBase64Basic" expression="{$passwordBase64Basic}"/>
+                                    </xslt>
+                                
+                            </xsl:element>
+                        <!-- zapisujemy wynik naszego biezacego przetwarzania dita element nizej do kolejnego przejechania z ant wyniku dla podstawienia danych  -->
+                        <!-- blad - result jest po tym template -->
+                     <xsl:result-document href="{$wfs_output.dita}"><xsl:copy-of select="."/></xsl:result-document>
+                 </xsl:when>
+                 <xsl:otherwise>
+                     <error>
+                         <xsl:attribute name="xpath" select="$xpath"/>
+                         <xsl:attribute name="xpath_dita" select="$xpath_dita"/>
+                         <xsl:attribute name="xpath_value" select="$xpath_value"/>
+                         <xsl:attribute name="xpath_value_dita" select="$xpath_value_dita"/>
+                         <xsl:attribute name="typeName" select="$typeName"/>
+                         <xsl:attribute name="typeName_dita" select="$typeName_dita"/>
+                         <xsl:attribute name="featureID_name" select="$featureID_name"/>
+                         <xsl:attribute name="featureID_name_dita" select="$featureID_name_dita"/>
+                         Current template doesnt fit the requested data - TODO search for another template!
+                     </error>
+                 </xsl:otherwise>
+             </xsl:choose>
     </xsl:template>
     
+    
+    
+    <!-- second step from local ant leaf -->
+    
+    
+    <xsl:template match="RelatedFeature" mode="after_first_ant_assing_vars">
+        <RelatedFeatureRoot>
+        <xsl:message>#228 templ match RelatedFeature mode after_first_ant_assing_vars dla @typeName=<xsl:value-of select="@typeName"/>;</xsl:message>
+        <!-- first assign xpath to features from  -->
+        <xsl:variable name="wfs_output_nodes" select="doc($wfs_output)"/>
+        <!--<input_obj_with_xpath_debug>
+            <xsl:copy-of select="$wfs_output_nodes"/>
+        </input_obj_with_xpath_debug>-->
+        <xsl:variable name="input_obj_with_xpath">
+            <xsl:apply-templates mode="after_first_ant_assing_xpath" select="$wfs_output_nodes"/>
+        </xsl:variable>
+        <!--<input_obj_with_xpath_debug>
+            <xsl:attribute name="xpath" select="$xpath"/>
+            <!-\-<xsl:attribute name="xpath_dita" select="$xpath_dita"/>-\->
+            <xsl:attribute name="xpath_value" select="$xpath_value"/>
+            <!-\-<xsl:attribute name="xpath_value_dita" select="$xpath_value_dita"/>-\->
+            <xsl:attribute name="typeName" select="$typeName"/>
+            <!-\-<xsl:attribute name="typeName_dita" select="$typeName_dita"/>-\->
+            <!-\-<xsl:attribute name="featureID_name" select="$featureID_name"/>-\->
+            <!-\-<xsl:attribute name="featureID_name_dita" select="$featureID_name_dita"/>-\->
+            <xsl:copy-of select="$input_obj_with_xpath"/>
+        </input_obj_with_xpath_debug>-->
+        <!--<input_node_debug>
+            <xsl:copy-of select="."/>
+        </input_node_debug>-->
+        <xsl:apply-templates mode="after_first_ant_assing_vars_childs">
+            <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
+        </xsl:apply-templates>
+        </RelatedFeatureRoot>
+    </xsl:template>
+    
+    <xsl:template match="wfs:FeatureCollection|gml:featureMember" mode="after_first_ant_assing_xpath">
+        <xsl:apply-templates mode="after_first_ant_assing_xpath"/>
+    </xsl:template>
+    
+    
+    <xsl:template mode="after_first_ant_assing_xpath" match="*">
+        <xsl:param name="curr_xpath"/>
+        <xsl:choose>
+            <xsl:when test="name()=$typeName">
+                <xsl:apply-templates mode="after_first_ant_assing_xpath">
+                    <xsl:with-param name="curr_xpath" select="$curr_xpath"/>
+                </xsl:apply-templates>
+            </xsl:when>
+            <xsl:otherwise>
+                <xsl:variable name="curr_xpath_tmpl">
+                    <xsl:choose>
+                        <xsl:when test="$curr_xpath=''">
+                            <xsl:value-of select="local-name()"/>
+                        </xsl:when>
+                        <xsl:otherwise>
+                            <xsl:value-of select="concat($curr_xpath,'/',local-name())"/>
+                        </xsl:otherwise>
+                    </xsl:choose>
+                </xsl:variable>
+                <!--<xsl:variable name="curr_xpath_tmpl" select="'asdf'"/>-->
+                <xsl:element name="{name()}">
+                    <xsl:attribute name="xpath" select="$curr_xpath_tmpl"/>
+                    <xsl:for-each select="@*">
+                        <xsl:attribute name="{name()}"><xsl:value-of select="."/></xsl:attribute>
+                    </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:otherwise>
+        </xsl:choose>
+    </xsl:template>
+    
+    <xsl:template match="text()" mode="after_first_ant_assing_xpath"/>
+    
+    <xsl:template  match="RelatedFeature" mode="after_first_ant_assing_vars_childs">
+        <xsl:param name="input_obj_with_xpath" required="yes"/>
+        <!-- jest okazja do zrobienia bilda aby sciagnal rzeczy nizej -->
+        <xsl:variable name="featureID_name" select="substring-after($typeName,':')"/>
+        <xsl:variable name="loop_xpath" select="concat($loop_xpath,'_x2f_',$featureID_name)"/>
+        <!--<debug_358_RelatedFeature>
+            <xsl:copy-of select="$input_obj_with_xpath"/>
+        </debug_358_RelatedFeature>-->
+        <xsl:result-document href="{$uuid}.build_{$loop_xpath}.xml">
+            <xsl:apply-templates select=".">
+                <xsl:with-param name="typeName" select="@typeName"/>
+                <xsl:with-param name="xpath" select="@xpath"/>
+                <xsl:with-param name="xpath_value" select="@xpath_value"/>
+                <xsl:with-param name="loop_xpath" select="$loop_xpath"/>
+                <xsl:with-param name="input_obj_with_xpath"  select="$input_obj_with_xpath"/>
+            </xsl:apply-templates>
+        </xsl:result-document>
+        <xsl:element name="RelatedFeature">
+            <xsl:copy-of select="@*"/>
+            <xsl:attribute name="featureID_name" select="$featureID_name"/>
+            <xsl:attribute name="loop_xpath" select="$loop_xpath"/>
+        </xsl:element>
+        
+    </xsl:template>
+    
+    <xsl:template  match="*" mode="after_first_ant_assing_vars_childs">
+        <xsl:param name="input_obj_with_xpath" required="yes"/>
+        <xsl:for-each select=".">
+            <xsl:choose>
+                <!--<xsl:when test="node()='topic'">asdad</xsl:when>-->
+                <!--<xsl:when test="name()='RelatedFeature'">
+                    <xsl:for-each select="data/apiname[@base='PROCES_INCLUDE']">
+                        <xsl:apply-templates mode="PROCES_INCLUDE">
+                            <xsl:with-param name="ID_PROCES" select="text()"/>
+                        </xsl:apply-templates>
+                    </xsl:for-each>
+                </xsl:when>-->
+                <!--<xsl:when test="name()='data-about'">
+                    <xsl:for-each select="data/apiname[@base='PROCES_INCLUDE']">
+                        <xsl:apply-templates mode="PROCES_INCLUDE">
+                            <xsl:with-param name="ID_PROCES" select="text()"/>
+                        </xsl:apply-templates>
+                    </xsl:for-each>
+                </xsl:when>-->
+                <xsl:when test="1=2"/>
+                <xsl:otherwise>
+                    <xsl:element name="{name()}">
+                        <!--<xsl:copy-of select="namespace::node()"/>-->
+                        <xsl:for-each select="@*">
+                            <xsl:choose>
+                                <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()"/>-->
+                                    <!--<xsl:value-of select="$parent_obj//node()[local-name()=$xpath]/text()"/>-->
+                                    <!--V:<xsl:value-of select="$xpath"/>-->
+                                </xsl:when>
+                                <xsl:otherwise><xsl:copy-of select="."/></xsl:otherwise>
+                            </xsl:choose>
+                        </xsl:for-each>
+                        <xsl:choose>
+                            <xsl:when test="@xpath">
+                                <xsl:copy-of select="$input_obj_with_xpath/node()[local-name()=current()/@xpath]/text()"/>
+                            </xsl:when>
+                        </xsl:choose>
+                        <xsl:value-of select="text()"/>
+                        <xsl:apply-templates mode="after_first_ant_assing_vars_childs">
+                            <xsl:with-param name="input_obj_with_xpath" select="$input_obj_with_xpath"/>
+                        </xsl:apply-templates>
+                    </xsl:element>
+                </xsl:otherwise>
+            </xsl:choose>
+        </xsl:for-each>
+    </xsl:template>
+    <xsl:template match="text()" mode="after_first_ant_assing_vars_childs"/>
+    
+    <!-- pozbieranie do kupy wszystkich xmli i zlozenie dity -->
+    
+    
 </xsl:stylesheet>

+ 36 - 69
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/test-druk/main_build_recurse_ant.dita

@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<RelatedFeature xpath="ID_BILLING_OWNER" typeName="p5_default_db:BILLING_OWNER"
+<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">
   <!-- oznacza to refa z w $var=ID_BILLING_OWNER jest FeatureID=BILLING_OWNER.$var do sciagniecia z p5_default_db:BILLING_OWNER -->
@@ -10,80 +10,47 @@
     <ph>z dnia</ph>
     <ph xpath="K_DATA_OTRZYMANEJ_KORESP"/></title>
   <body>
-    <codeblock>
-      <RelatedFeature xpath="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 -->
-        <ph>Nadawca:</ph><ph/>
-        <ph xpath="name1"/><ph/>
-        <ph xpath="name2"/><ph/>
-        <ph xpath="miasto"/><ph/>
-        <ph xpath="nr_rach"/><ph/>
-        <ph xpath="BILLING_OWNER_EMAIL"/><ph/>
-      </RelatedFeature>
-    </codeblock>
+    <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>Nadawca:</p><ph/>
+          <p xpath="name1"/><ph/>
+          <p xpath="name2"/><ph/>
+          <p xpath="miasto"/><ph/>
+          <p xpath="nr_rach"/><ph/>
+          <p xpath="BILLING_OWNER_EMAIL"/><ph/>
+        </RelatedFeature></stentry>
+        <stentry>
+          <p>Odbiorca:</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>
     
-    
-    <table frame="all" rowsep="1" colsep="1" id="table_uh2_3qg_vx">
-      <title>Nagłówek</title>
-      <tgroup cols="2" align="right">
-        <colspec colname="c1" colnum="1" colwidth="2.57*"/>
-        <colspec colname="c2" colnum="2" colwidth="1*"/>
-        <thead>
-          <row>
-            <entry>Adresat</entry>
-            <entry xpath="K_OD_KOGO"/>
-          </row>
-        </thead>
-        <tbody>
-          <row>
-            <entry>Adres:</entry>
-            <entry xpath="OD_KOGO_ADRES"/>
-          </row>
-          <row>
-            <entry>Wasz znak</entry>
-            <entry xpath="K_NR_OTRZYM_KORESP"/>
-          </row>
-        </tbody>
-      </tgroup>
-    </table>
-    <!--<p>Druga tabela - przetwarzanie tresci z data-about/data</p>-->
-    <!--<table frame="all" rowsep="1" colsep="1" id="table_uh2_3qg_vxz">
-      <title>Nagłówek</title>
-      <tgroup cols="2" align="right">
-        <colspec colname="c1" colnum="1" colwidth="2.57*"/>
-        <colspec colname="c2" colnum="2" colwidth="1*"/>
-        <thead>
-          <row>
-            <entry>Adresat</entry>
-            <entry xpath="K_OD_KOGO">
-              <data-about>
-                <data>
-                    <apiname base="SOURCE_INCLUDE"></apiname><!-\- jaki xml lub dane z API sa do zainkludowania -\->
-                    <apiname base="STYLE_INCLUDE"></apiname><!-\- jaki styl xsl jest do zaimportowania -\->
-                    <apiname base="SOURCE_NAMESPACE">https://biuro.biall-net.pl/wfs/default_db/table/IN7_DZIENNIK_KORESP.xsd</apiname><!-\- -\->
-                    <apiname base="XPATH_VALUE">/*/K_OD_KOGO</apiname>
-                </data>
-              </data-about>
-            </entry>
-          </row>
-        </thead>
-        <tbody>
-          <row>
-            <entry>Adres:</entry>
-            <entry xpath="default_db__x3A__IN7_DZIENNIK_KORESP:OD_KOGO_ADRES"/>
-          </row>
-          <row>
-            <entry>Wasz znak</entry>
-            <entry xpath="default_db__x3A__IN7_DZIENNIK_KORESP:K_NR_OTRZYM_KORESP"/>
-          </row>
-        </tbody>
-      </tgroup>
-    </table>-->
+    <p><b>Temat: <ph/><ph xpath="K_ZAWARTOS"/></b></p>
+  
+ 
     <p>Tresc: </p>
-    <p xpath="K_ZAWARTOS">
+    <p xpath="K_ZAWARTOS_HTML">
     </p>
    <!-- <data-about>
       <data><apiname base="PROCES_INCLUDE">1607</apiname></data>
     </data-about>-->
+    <!--<simpletable id="simpletable_uym_ps1_zy">
+      <strow>
+        <stentry>
+          <RelatedFeature xpath="ID" xpath_value="../ID_BILLING_OWNER" typeName="p5_default_db:BILLING_OWNER"></RelatedFeature>
+          
+        </stentry>
+        <stentry>
+        </stentry>
+      </strow>
+    </simpletable>-->
+    
   </body>
   
   <!--<topic id="topic_e22_jwx_yx">

+ 7 - 2
SE/schema/default_db_xml_cache.public/topicProcesy5.xsd

@@ -149,7 +149,7 @@
           <xs:group ref="ph"/>
         </xs:sequence>
       </xs:choice>
-      <xs:attribute name="typeName">
+      <xs:attribute name="typeName" use="required">
         <xs:annotation>
           <xs:documentation>ex: typeName="p5_default_db:BILLING_OWNER"</xs:documentation>
         </xs:annotation>
@@ -159,11 +159,16 @@
           </xs:restriction>
         </xs:simpleType>
       </xs:attribute>
-      <xs:attribute name="xpath">
+      <xs:attribute name="xpath" type="xs:Name" use="required">
         <xs:annotation>
           <xs:documentation>Like ID_BILLING_OWNER to show that (in some xpath meaning) current()/ID_BILLING_OWNER = node()[@typeName]/node()[type()='primary_key']</xs:documentation>
         </xs:annotation>
       </xs:attribute>
+      <xs:attribute name="xpath_value" type="xs:string">
+        <xs:annotation>
+          <xs:documentation>Wartosc do wstawienia w xpath, moze byc xpath. Jak nie ma, to nadpisac z template</xs:documentation>
+        </xs:annotation>
+      </xs:attribute>
     </xs:complexType>
   </xs:element>
 </xs:schema>

+ 0 - 428
SE/schema/prezes.xpr

@@ -1,428 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<project version="18.0">
-    <meta>
-        <filters directoryPatterns="" filePatterns="prezes.xpr" positiveFilePatterns="" showHiddenFiles="false"/>
-        <options>
-            <serialized version="18.0" xml:space="preserve">
-                <serializableOrderedMap>
-                    <entry>
-                        <String>enable.project.master.files.support</String>
-                        <Boolean>true</Boolean>
-                    </entry>
-                    <entry>
-                        <String>scenario.associations</String>
-                        <scenarioAssociation-array>
-                            <scenarioAssociation>
-                                <field name="url">
-                                    <String>ant-url_action/default_db.in7_dziennik_koresp/test-druk/temp.dita</String>
-                                </field>
-                                <field name="scenarioIds">
-                                    <list>
-                                        <String>temp (PDF)</String>
-                                    </list>
-                                </field>
-                                <field name="scenarioTypes">
-                                    <list>
-                                        <String>DITAMAP</String>
-                                    </list>
-                                </field>
-                            </scenarioAssociation>
-                            <scenarioAssociation>
-                                <field name="url">
-                                    <String>ant-url_action/default_db.in7_dziennik_koresp/test-druk/IN7_DZIENNIK_KORESP.xsl</String>
-                                </field>
-                                <field name="scenarioIds">
-                                    <list>
-                                        <String>IN7_DZIENNIK_KORESP</String>
-                                    </list>
-                                </field>
-                                <field name="scenarioTypes">
-                                    <list>
-                                        <String>XML</String>
-                                    </list>
-                                </field>
-                            </scenarioAssociation>
-                            <scenarioAssociation>
-                                <field name="url">
-                                    <String>../../../xmlschema_procesy5/src-xmlschema/public_html/table/IN7_DZIENNIK_KORESP.wsdl/IN7_DZIENNIK_KORESP.xsl</String>
-                                </field>
-                                <field name="scenarioIds">
-                                    <list>
-                                        <String>IN7_DZIENNIK_KORESP1</String>
-                                    </list>
-                                </field>
-                                <field name="scenarioTypes">
-                                    <list>
-                                        <String>XML</String>
-                                    </list>
-                                </field>
-                            </scenarioAssociation>
-                        </scenarioAssociation-array>
-                    </entry>
-                    <entry>
-                        <String>scenarios</String>
-                        <scenario-array>
-                            <ditaScenario>
-                                <field name="useXEP">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="useAntennaHouse">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="baseDir">
-                                    <String>${cfd}</String>
-                                </field>
-                                <field name="outputDir">
-                                    <String>${cfd}/out/pdf</String>
-                                </field>
-                                <field name="tempDir">
-                                    <String>${cfd}/temp/pdf</String>
-                                </field>
-                                <field name="transtype">
-                                    <String>pdf</String>
-                                </field>
-                                <field name="filters">
-                                    <ditavalFilters>
-                                        <field name="useDitavalFilePath">
-                                            <Boolean>false</Boolean>
-                                        </field>
-                                        <field name="useAppliedConditionSet">
-                                            <Boolean>true</Boolean>
-                                        </field>
-                                        <field name="appliedConditionSet">
-                                            <null/>
-                                        </field>
-                                        <field name="ditavalFilePath">
-                                            <String></String>
-                                        </field>
-                                        <field name="simpleFiltersList">
-                                            <list/>
-                                        </field>
-                                    </ditavalFilters>
-                                </field>
-                                <field name="addOxygenJars">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="skinCssFile">
-                                    <null/>
-                                </field>
-                                <field name="lastCustomSkinCssPath">
-                                    <null/>
-                                </field>
-                                <field name="webhelpResponsiveTemplate">
-                                    <null/>
-                                </field>
-                                <field name="additionalAntArgs">
-                                    <String></String>
-                                </field>
-                                <field name="buildTarget">
-                                    <String></String>
-                                </field>
-                                <field name="buildFilePath">
-                                    <String></String>
-                                </field>
-                                <field name="ditaParams">
-                                    <list/>
-                                </field>
-                                <field name="jvmArgs">
-                                    <String>-Xmx384m</String>
-                                </field>
-                                <field name="useCustomJavaHome">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="customJavaHomeDir">
-                                    <String></String>
-                                </field>
-                                <field name="useCustomANTHome">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="customANTHomeDir">
-                                    <String></String>
-                                </field>
-                                <field name="workingDir">
-                                    <null/>
-                                </field>
-                                <field name="showConsoleAlways">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="advancedOptionsMap">
-                                    <null/>
-                                </field>
-                                <field name="name">
-                                    <String>temp (PDF)</String>
-                                </field>
-                                <field name="baseURL">
-                                    <null/>
-                                </field>
-                                <field name="footerURL">
-                                    <null/>
-                                </field>
-                                <field name="fOPMethod">
-                                    <null/>
-                                </field>
-                                <field name="fOProcessorName">
-                                    <null/>
-                                </field>
-                                <field name="headerURL">
-                                    <null/>
-                                </field>
-                                <field name="inputXSLURL">
-                                    <null/>
-                                </field>
-                                <field name="inputXMLURL">
-                                    <null/>
-                                </field>
-                                <field name="defaultScenario">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="isFOPPerforming">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="type">
-                                    <String>DITAMAP</String>
-                                </field>
-                                <field name="saveAs">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="openInBrowser">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="outputFile">
-                                    <null/>
-                                </field>
-                                <field name="outputResource">
-                                    <null/>
-                                </field>
-                                <field name="openOtherLocationInBrowser">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="locationToOpenInBrowserURL">
-                                    <String></String>
-                                </field>
-                                <field name="openInEditor">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInHTMLPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInXMLPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInSVGPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInResultSetPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="useXSLTInput">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="xsltParams">
-                                    <list/>
-                                </field>
-                                <field name="cascadingStylesheets">
-                                    <String-array/>
-                                </field>
-                                <field name="xslTransformer">
-                                    <String>DITA-OT</String>
-                                </field>
-                                <field name="extensionURLs">
-                                    <String-array/>
-                                </field>
-                            </ditaScenario>
-                            <scenario>
-                                <field name="advancedOptionsMap">
-                                    <null/>
-                                </field>
-                                <field name="name">
-                                    <String>IN7_DZIENNIK_KORESP</String>
-                                </field>
-                                <field name="baseURL">
-                                    <String></String>
-                                </field>
-                                <field name="footerURL">
-                                    <String></String>
-                                </field>
-                                <field name="fOPMethod">
-                                    <String>pdf</String>
-                                </field>
-                                <field name="fOProcessorName">
-                                    <String>Apache FOP</String>
-                                </field>
-                                <field name="headerURL">
-                                    <String></String>
-                                </field>
-                                <field name="inputXSLURL">
-                                    <String>${currentFileURL}</String>
-                                </field>
-                                <field name="inputXMLURL">
-                                    <String>${pdu}/ant-url_action/default_db.in7_dziennik_koresp/test-druk/sample_test_xml_from_api.xml</String>
-                                </field>
-                                <field name="defaultScenario">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="isFOPPerforming">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="type">
-                                    <String>XML</String>
-                                </field>
-                                <field name="saveAs">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="openInBrowser">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="outputFile">
-                                    <File>temp.dita</File>
-                                </field>
-                                <field name="outputResource">
-                                    <String>temp.dita</String>
-                                </field>
-                                <field name="openOtherLocationInBrowser">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="locationToOpenInBrowserURL">
-                                    <null/>
-                                </field>
-                                <field name="openInEditor">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInHTMLPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInXMLPane">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="showInSVGPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInResultSetPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="useXSLTInput">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="xsltParams">
-                                    <list/>
-                                </field>
-                                <field name="cascadingStylesheets">
-                                    <String-array/>
-                                </field>
-                                <field name="xslTransformer">
-                                    <String>Saxon-PE</String>
-                                </field>
-                                <field name="extensionURLs">
-                                    <String-array/>
-                                </field>
-                            </scenario>
-                            <scenario>
-                                <field name="advancedOptionsMap">
-                                    <null/>
-                                </field>
-                                <field name="name">
-                                    <String>IN7_DZIENNIK_KORESP1</String>
-                                </field>
-                                <field name="baseURL">
-                                    <String></String>
-                                </field>
-                                <field name="footerURL">
-                                    <String></String>
-                                </field>
-                                <field name="fOPMethod">
-                                    <String>pdf</String>
-                                </field>
-                                <field name="fOProcessorName">
-                                    <String>Apache FOP</String>
-                                </field>
-                                <field name="headerURL">
-                                    <String></String>
-                                </field>
-                                <field name="inputXSLURL">
-                                    <String>${currentFileURL}</String>
-                                </field>
-                                <field name="inputXMLURL">
-                                    <String>file:/Users/a.binder/Documents/xmlschema_procesy5/src-xmlschema/public_html/table/IN7_DZIENNIK_KORESP.wsdl/Test_z_getfeature_do_parse.xml</String>
-                                </field>
-                                <field name="defaultScenario">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="isFOPPerforming">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="type">
-                                    <String>XML</String>
-                                </field>
-                                <field name="saveAs">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="openInBrowser">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="outputFile">
-                                    <null/>
-                                </field>
-                                <field name="outputResource">
-                                    <null/>
-                                </field>
-                                <field name="openOtherLocationInBrowser">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="locationToOpenInBrowserURL">
-                                    <null/>
-                                </field>
-                                <field name="openInEditor">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInHTMLPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInXMLPane">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="showInSVGPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="showInResultSetPane">
-                                    <Boolean>false</Boolean>
-                                </field>
-                                <field name="useXSLTInput">
-                                    <Boolean>true</Boolean>
-                                </field>
-                                <field name="xsltParams">
-                                    <list/>
-                                </field>
-                                <field name="cascadingStylesheets">
-                                    <String-array/>
-                                </field>
-                                <field name="xslTransformer">
-                                    <String>Saxon-PE</String>
-                                </field>
-                                <field name="extensionURLs">
-                                    <String-array/>
-                                </field>
-                            </scenario>
-                        </scenario-array>
-                    </entry>
-                </serializableOrderedMap>
-            </serialized>
-        </options>
-    </meta>
-    <projectTree name="prezes.xpr">
-        <folder masterFiles="true" name="Master Files">
-            <folder name="test-get-wfs-xml">
-                <file name="ant-url_action/default_db.in7_dziennik_koresp/test-get-wfs-xml/build.xml"/>
-            </folder>
-            <file name="types.xsd"/>
-        </folder>
-        <folder name="SyncResurcesYed">
-            <file name="ant-tool/SyncResourcesYed/build.xml"/>
-            <file name="ant-tool/SyncResourcesYed/http_fist_input.html"/>
-            <file name="ant-tool/SyncResourcesYed/http_fist_input.xsl"/>
-        </folder>
-        <folder name="test-druk">
-            <folder path="ant-url_action/default_db.in7_dziennik_koresp/test-druk/"/>
-        </folder>
-        <folder path="."/>
-    </projectTree>
-</project>