a.binder 9 лет назад
Родитель
Сommit
7e10fcff46

+ 13 - 6
SE/schema/ant-url_action/procesy5_status/build.xml

@@ -4,18 +4,21 @@
   <description>TODO do kontroli kondycji systemu komunikacja - do podlaczenia pod API aby mozna było po tym requestowac</description>
   
     <property name="temp" value="temp_procesy5_status"/>
-    
+    <property name="out" value="out"/>
     <property name="storage_free.xml" value="${temp}/storage_free.xml" />
-    <property name="procesy5_status.xml"  value="${temp}/procesy5_status.xml"/>
+    <property name="procesy5_status" value="${temp}/procesy5_status"/>
+    <property name="procesy5_status.xml"  value="${out}/procesy5_status.xml"/>
+    <property name="empty.xml"  value="empty.xml"/>
     
     <!--<tempfile property="storage_free"  deleteonexit="false" destdir="${temp}"/>-->
   
     
-    <property name="build_procesy5_status.xsl" value="build_procesy5_status.xsl"/>
+    <property name="procesy5_status.xsl" value="procesy5_status.xsl"/>
   
   
   <target name="create_dirs">
       <mkdir dir="${temp}"/>
+      <mkdir dir="${out}"/>
   </target>
   
   
@@ -51,10 +54,14 @@
   <target name="procesy5_status" depends="storage_free" description="sprawdzenie kondycji systemu">
       
       
+      <echoxml file="${empty.xml}"><empty>empty</empty></echoxml>
+      
+      
       <xslt basedir="./"
-          style="${build_procesy5_status.xsl}"
-          destdir="./"
-          out="${procesy5_status.xml}">
+          in="${empty.xml}"
+          style="${procesy5_status.xsl}"
+           destdir="./"
+          out="${procesy5_status.xml}" >
           <factory name="net.sf.saxon.TransformerFactoryImpl">
               <attribute name="http://saxon.sf.net/feature/xinclude-aware" value="true"/>
               <attribute name="http://saxon.sf.net/feature/initialTemplate" value="build_procesy5_status" />

+ 18 - 4
SE/schema/ant-url_action/procesy5_status/build_procesy5_status.xsl → SE/schema/ant-url_action/procesy5_status/procesy5_status.xsl

@@ -18,11 +18,11 @@
     
     
     <xsl:template name="build_procesy5_status">
-        <xsl:message>#13 odpalam templ </xsl:message>
-        <xsl:variable name="collection" select="collection(concat($temp,'/?select*.xml'))"/>
-        
+        <xsl:message>#13 odpalam templ $temp:<xsl:value-of select="$temp"/>; </xsl:message>
+        <xsl:variable name="collection" select="collection(concat($temp,'/?select=*.xml'))"/>
+        <build_procesy5_status>
         <xsl:apply-templates select="$collection"/>
-        
+        </build_procesy5_status>
     </xsl:template>
     
     
@@ -35,6 +35,17 @@
     </xsl:template>
     
     
+  <!--  [element]
+       [text]
+       [attribute]
+          [text]
+       [element]
+    [comment]
+    [processing instruction]-->
+   
+   
+    
+    <xsl:template match="empty"/>
     
     
     
@@ -54,6 +65,9 @@
                 <xsl:if test="number($raport:df_correct/hd0/@raport:free) &gt; number($df_output//el[@pos='17'])  ">
                     <xsl:attribute name="error" select="'blad za malo'"/>
                 </xsl:if>
+                <!--<xsl:processing-instruction name="php">
+                    echo "dupa";
+                </xsl:processing-instruction>-->
             </hd0>
         </raport:df>
         <!--<xsl:copy-of select="$df_output"/>-->