a.binder 9 rokov pred
rodič
commit
be1654b549

+ 57 - 4
SE/schema/ant-url_action/default_db.crm_proces/CRM_PROCES_tree/build.xml

@@ -51,18 +51,22 @@
     <property name="xpath_value" value="${xpath_value}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
     
     <property name="loop_path_recurs" value=""/>  <!-- w przypadku podania, system powinien w tym katalogu zapisywac wynik xml dzialania, azeby odbudowac rekursywne drzewo - zapisujemy po system_cache__appinfo:id np bedzie ${temp}/${uuid}_CRM_PROCES___d14e4479-1_PROCES_BEN/  -->
-    <property name="temp" value="${basedir}/temp${loop_path_recurs}"/> <!-- temp files-->
+    <property name="temp_name" value="temp"/> <!-- temp files-->
+    <property name="temp" value="${basedir}/${temp_name}${loop_path_recurs}"/> <!-- temp files-->
     <!-- 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"/>-->
     <property name="out_task.dita"  value="${temp}/${uuid}.out_task_dita"/>
     <property name="out_task.dita.final"   value="${temp}/${uuid}.out_task.dita.final"/>
+    <property name="out_task.dita.final_with_RelatedFeatureLoop_no_path"   value="${temp_name}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop"/>
     <property name="out_task.dita.final_with_RelatedFeatureLoop"   value="${temp}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop"/>
+    
+    <property name="recurse_ant_to_html.xsl" value="recurse_ant_to_html.xsl"/> <!-- do zrobienia  -->
     <!--<tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />-->
     
 
-    <!--<record name="${temp}/ant.log" loglevel="verbose" append="true"/>-->
+    <record name="ant.log" loglevel="verbose" append="true" />
 
     <echo> $basedir=${basedir}; 
         $temp=${temp};
@@ -309,10 +313,10 @@
                         </xslt>
                         <echo message="OUTPUT__START"/>
                         <echo>
-                            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop}.xml&lt;/a&gt;&lt;/br&gt; 
+                            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
                         </echo>
                         <echo message="OUTPUT__END"/>
-                    </target>
+         </target>
    
     <!-- #### eof tr_map #### -->
     
@@ -451,6 +455,7 @@
 
         </xslt>
         <!--<import file="${build_recurse_ant.xml}"/>-->
+        <record action="stop" name="ant.log"/>
         <ant  antfile="${build_recurse_ant.xml}" dir="." >
             <property name="" value=""></property>
         </ant>
@@ -491,6 +496,54 @@
         </xslt>
         <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
     </target>
+    
+    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_html" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz HTML">
+        <echo message="OUTPUT__START"/>
+        
+        <!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
+        <!--<copy file="${out_task.dita.final}" tofile="${temp}/${loop_path_recurs}/${uuid_tested}.loop_path.xml" />-->
+        
+        <!--<loadfile property="out_task.dita.final_no_RelatedFeatureRoot" srcfile="${out_task.dita.final}"/>-->
+        <!--<move file="${out_task.dita.final}" tofile="${out_task.dita.final}.xml"/>-->
+        <!--<echoxml file="${out_task.dita.final}.xml">
+                            <RelatedFeatureRoot>${out_task.dita.final_no_RelatedFeatureRoot}</RelatedFeatureRoot>
+                        </echoxml>-->
+        
+        <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_with_RelatedFeatureLoop}.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="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="with_RelatedFeatureLoop" expression="true"/>
+        </xslt>
+        
+        <xslt basedir="./" style="${recurse_ant_to_html.xsl}" in="${out_task.dita.final_with_RelatedFeatureLoop}.xml"  destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.html" >
+            <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}"/>-->
+            <!--<param name="with_RelatedFeatureLoop" expression="true"/>-->
+        </xslt>
+        
+        
+        <echo message="OUTPUT__START"/>
+        <echo>
+            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.html&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.html&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo message="OUTPUT__END"/>
+    </target>
+    
+    
 
     <!--<target name="build_recurse_ant_merge_dita_from_temp.xsl_with_RelatedFeatureLoop" depends="build_recurse_ant_merge_dita_from_temp.xsl" 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_with_RelatedFeatureLoop}" >

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

@@ -51,18 +51,22 @@
     <property name="xpath_value" value="${xpath_value}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
     
     <property name="loop_path_recurs" value=""/>  <!-- w przypadku podania, system powinien w tym katalogu zapisywac wynik xml dzialania, azeby odbudowac rekursywne drzewo - zapisujemy po system_cache__appinfo:id np bedzie ${temp}/${uuid}_CRM_PROCES___d14e4479-1_PROCES_BEN/  -->
-    <property name="temp" value="${basedir}/temp${loop_path_recurs}"/> <!-- temp files-->
+    <property name="temp_name" value="temp"/> <!-- temp files-->
+    <property name="temp" value="${basedir}/${temp_name}${loop_path_recurs}"/> <!-- temp files-->
     <!-- 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"/>-->
     <property name="out_task.dita"  value="${temp}/${uuid}.out_task_dita"/>
     <property name="out_task.dita.final"   value="${temp}/${uuid}.out_task.dita.final"/>
+    <property name="out_task.dita.final_with_RelatedFeatureLoop_no_path"   value="${temp_name}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop"/>
     <property name="out_task.dita.final_with_RelatedFeatureLoop"   value="${temp}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop"/>
+    
+    <property name="recurse_ant_to_html.xsl" value="recurse_ant_to_html.xsl"/> <!-- do zrobienia  -->
     <!--<tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />-->
     
 
-    <!--<record name="${temp}/ant.log" loglevel="verbose" append="true"/>-->
+    <record name="ant.log" loglevel="verbose" append="true" />
 
     <echo> $basedir=${basedir}; 
         $temp=${temp};
@@ -309,10 +313,10 @@
                         </xslt>
                         <echo message="OUTPUT__START"/>
                         <echo>
-                            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop}.xml&lt;/a&gt;&lt;/br&gt; 
+                            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
                         </echo>
                         <echo message="OUTPUT__END"/>
-                    </target>
+         </target>
    
     <!-- #### eof tr_map #### -->
     
@@ -451,6 +455,7 @@
 
         </xslt>
         <!--<import file="${build_recurse_ant.xml}"/>-->
+        <record action="stop" name="ant.log"/>
         <ant  antfile="${build_recurse_ant.xml}" dir="." >
             <property name="" value=""></property>
         </ant>
@@ -491,6 +496,54 @@
         </xslt>
         <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
     </target>
+    
+    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_html" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz HTML">
+        <echo message="OUTPUT__START"/>
+        
+        <!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
+        <!--<copy file="${out_task.dita.final}" tofile="${temp}/${loop_path_recurs}/${uuid_tested}.loop_path.xml" />-->
+        
+        <!--<loadfile property="out_task.dita.final_no_RelatedFeatureRoot" srcfile="${out_task.dita.final}"/>-->
+        <!--<move file="${out_task.dita.final}" tofile="${out_task.dita.final}.xml"/>-->
+        <!--<echoxml file="${out_task.dita.final}.xml">
+                            <RelatedFeatureRoot>${out_task.dita.final_no_RelatedFeatureRoot}</RelatedFeatureRoot>
+                        </echoxml>-->
+        
+        <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_with_RelatedFeatureLoop}.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="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="with_RelatedFeatureLoop" expression="true"/>
+        </xslt>
+        
+        <xslt basedir="./" style="${recurse_ant_to_html.xsl}" in="${out_task.dita.final_with_RelatedFeatureLoop}.xml"  destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.html" >
+            <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}"/>-->
+            <!--<param name="with_RelatedFeatureLoop" expression="true"/>-->
+        </xslt>
+        
+        
+        <echo message="OUTPUT__START"/>
+        <echo>
+            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.html&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.html&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo message="OUTPUT__END"/>
+    </target>
+    
+    
 
     <!--<target name="build_recurse_ant_merge_dita_from_temp.xsl_with_RelatedFeatureLoop" depends="build_recurse_ant_merge_dita_from_temp.xsl" 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_with_RelatedFeatureLoop}" >

+ 57 - 4
SE/schema/ant-url_action/default_db.in7_dziennik_koresp/umowa/build.xml

@@ -51,18 +51,22 @@
     <property name="xpath_value" value="${xpath_value}"/> <!-- to be set initially like 1000 (to search ID=1000, if ID we get by featureID  -->
     
     <property name="loop_path_recurs" value=""/>  <!-- w przypadku podania, system powinien w tym katalogu zapisywac wynik xml dzialania, azeby odbudowac rekursywne drzewo - zapisujemy po system_cache__appinfo:id np bedzie ${temp}/${uuid}_CRM_PROCES___d14e4479-1_PROCES_BEN/  -->
-    <property name="temp" value="${basedir}/temp${loop_path_recurs}"/> <!-- temp files-->
+    <property name="temp_name" value="temp"/> <!-- temp files-->
+    <property name="temp" value="${basedir}/${temp_name}${loop_path_recurs}"/> <!-- temp files-->
     <!-- 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"/>-->
     <property name="out_task.dita"  value="${temp}/${uuid}.out_task_dita"/>
     <property name="out_task.dita.final"   value="${temp}/${uuid}.out_task.dita.final"/>
+    <property name="out_task.dita.final_with_RelatedFeatureLoop_no_path"   value="${temp_name}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop"/>
     <property name="out_task.dita.final_with_RelatedFeatureLoop"   value="${temp}/${uuid}.out_task.dita.final_with_RelatedFeatureLoop"/>
+    
+    <property name="recurse_ant_to_html.xsl" value="recurse_ant_to_html.xsl"/> <!-- do zrobienia  -->
     <!--<tempfile property="wfs_output" deleteonexit="no"  destdir="temp"  suffix=".xml" />-->
     
 
-    <!--<record name="${temp}/ant.log" loglevel="verbose" append="true"/>-->
+    <record name="ant.log" loglevel="verbose" append="true" />
 
     <echo> $basedir=${basedir}; 
         $temp=${temp};
@@ -309,10 +313,10 @@
                         </xslt>
                         <echo message="OUTPUT__START"/>
                         <echo>
-                            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop}.xml&lt;/a&gt;&lt;/br&gt; 
+                            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.xml&lt;/a&gt;&lt;/br&gt; 
                         </echo>
                         <echo message="OUTPUT__END"/>
-                    </target>
+         </target>
    
     <!-- #### eof tr_map #### -->
     
@@ -451,6 +455,7 @@
 
         </xslt>
         <!--<import file="${build_recurse_ant.xml}"/>-->
+        <record action="stop" name="ant.log"/>
         <ant  antfile="${build_recurse_ant.xml}" dir="." >
             <property name="" value=""></property>
         </ant>
@@ -491,6 +496,54 @@
         </xslt>
         <echo> zapisalem plik gotowy do utworzenia dita do ${out_task.dita.final}. </echo>
     </target>
+    
+    <target name="xml_recursed_from_tr_map_with_RelatedFeatureLoop_html" depends="xml_recursed_from_tr_map" description="URL_TASK Pobierz HTML">
+        <echo message="OUTPUT__START"/>
+        
+        <!-- TODO proba wlaczenia rekursywnosci zapisanie wezla do sciezki w folderze-->
+        <!--<copy file="${out_task.dita.final}" tofile="${temp}/${loop_path_recurs}/${uuid_tested}.loop_path.xml" />-->
+        
+        <!--<loadfile property="out_task.dita.final_no_RelatedFeatureRoot" srcfile="${out_task.dita.final}"/>-->
+        <!--<move file="${out_task.dita.final}" tofile="${out_task.dita.final}.xml"/>-->
+        <!--<echoxml file="${out_task.dita.final}.xml">
+                            <RelatedFeatureRoot>${out_task.dita.final_no_RelatedFeatureRoot}</RelatedFeatureRoot>
+                        </echoxml>-->
+        
+        <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_with_RelatedFeatureLoop}.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="webRootUrl" expression="${webRootUrl}" />--> 
+            <!--<param name="main_build_recurse_ant.dita" expression="${main_build_recurse_ant.dita}"/>-->
+            <param name="uuid" expression="${uuid_tested}"/>
+            <!--<param name="basedir" expression="${basedir}"/>-->
+            <param name="temp" expression="${temp}"/>
+            <param name="with_RelatedFeatureLoop" expression="true"/>
+        </xslt>
+        
+        <xslt basedir="./" style="${recurse_ant_to_html.xsl}" in="${out_task.dita.final_with_RelatedFeatureLoop}.xml"  destdir="./" out="${out_task.dita.final_with_RelatedFeatureLoop}.html" >
+            <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}"/>-->
+            <!--<param name="with_RelatedFeatureLoop" expression="true"/>-->
+        </xslt>
+        
+        
+        <echo message="OUTPUT__START"/>
+        <echo>
+            &lt;br&gt;Wygenerowano wyjsciowy plik XML - sciagnij go &lt;a href=&quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.html&quot; target=&quot;_blank&quot;&gt; &quot;${webRootUrl}/${out_task.dita.final_with_RelatedFeatureLoop_no_path}.html&lt;/a&gt;&lt;/br&gt; 
+        </echo>
+        <echo message="OUTPUT__END"/>
+    </target>
+    
+    
 
     <!--<target name="build_recurse_ant_merge_dita_from_temp.xsl_with_RelatedFeatureLoop" depends="build_recurse_ant_merge_dita_from_temp.xsl" 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_with_RelatedFeatureLoop}" >

+ 15 - 1
SE/schema/default_db_xml_cache.public/recurse_ant_to_html.xsl

@@ -6,7 +6,21 @@
     <xsl:output indent="yes"/>
     <xsl:strip-space elements="*"/>
     
-    <xsl:template match="*"></xsl:template>
+    <xsl:template match="*">
+        <html>
+            <body>
+            <xsl:apply-templates mode="child"/>
+            </body>
+        </html>
+    </xsl:template>
 
 
+    <xsl:template mode="child" match="*">
+        <table>
+            <tr><td><xsl:value-of select="name()"/></td></tr>
+            <tr><td><xsl:value-of select="text()"/></td></tr>
+            <tr><td><xsl:apply-templates mode="child"></xsl:apply-templates></td></tr>    
+        </table>
+    </xsl:template>
+
 </xsl:stylesheet>