a.binder 9 роки тому
батько
коміт
ef1af5ffcf

+ 22 - 0
SE/schema/ant-tool/SyncResourcesYed/build.xml

@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." name="SyncResourcesYed"  default="http_fist_input" >
+   
+    <property name="uuid" value="${uuid}"/>
+    
+    
+    <property  name="http_fist_input" value="http_fist_input"/>
+    <property  name="http_fist_input.html" value="${http_fist_input}.html"/>
+    <property  name="http_fist_input.xsl" value="${http_fist_input}.xsl"/>
+    
+    <target name="http_fist_input">
+        <!--<echo message="${uuid}"/>-->
+        <echo file="${http_fist_input.html}"/>
+    </target>
+   
+   
+    <target name="http_first_output">
+        <echo message="${uuid}"/>
+        <echo>http_first_output</echo>
+    </target>
+   
+</project>

+ 6 - 0
SE/schema/ant-tool/SyncResourcesYed/http_fist_input.html

@@ -0,0 +1,6 @@
+<form  method="post">
+    <input type="hidden"  name="uuid" value="123"/>
+    <input type="hidden"  name="ant_target" value="http_first_output"/>
+    Text<input type="text" name="text" />
+    <input type="submit" />
+</form>

+ 21 - 0
SE/schema/ant-tool/SyncResourcesYed/http_fist_input.xsl

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:param name="uuid"/>
+    
+    <xsl:template match="*">
+        <xsl:element name="{name()}">
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>
+    <xsl:template match="@*">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    <xsl:template match="@uuid">
+        <xsl:attribute name="{name()}" select="$uuid"/>
+    </xsl:template>
+    
+</xsl:stylesheet>

+ 24 - 0
SE/schema/ant-tool/example_ant_as_function_to_move/build.html

@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?><project>
+  
+    
+    <input/>
+    <property/>
+    
+    <property/>
+        <property/>
+        <property/>
+    
+    <target>
+        <xslt>
+            
+            <factory>    
+                <attribute/>
+                
+                
+            </factory>
+            <param/>
+            <classpath/>
+        </xslt>
+        
+    </target>
+</project>

+ 43 - 0
SE/schema/ant-tool/example_ant_as_function_to_move/build.xml

@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project basedir="." name="przykladowy ant - do wymiany informacji jako ogolny modul typu WPS obslugujacy zadania get/post" default="http_fist_input">
+  
+    
+    <!--<input addproperty="http_input" />--><!-- dane z apache requesty -->
+    <property name="uuid" value="${uuid}"/>
+    
+    <property  name="http_fist_input" value="http_fist_input"/>
+        <property  name="http_fist_input.html" value="${http_fist_input}.html"/>
+        <property  name="http_fist_input.xsl" value="${http_fist_input}.xsl"/>
+    
+    <target name="http_fist_input">
+        <echo message="${uuid}"/>
+        <echo></echo>
+        <!--<echo message="${uuid}"/>-->
+        <!--<xslt basedir="./" style="${http_fist_input.xsl}"  in="${http_fist_input.html}"  destdir="./"  >
+            <!-\-<fileset refid="edge_paths_with_PE.xml_collection"/>-\->
+            <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="DITA_PARSE_templ"/>-\->
+                <!-\-<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-\->
+            </factory>
+            <param name="uuid" expression="${uuid}"/>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>-->
+    </target>
+    
+    
+    <target name="http_fist_output">
+        <echo message="${uuid}"/>
+        <!--<echo message="${uuid}"/>-->
+        <!--<xslt basedir="./" style="${http_fist_input.xsl}"  in="${http_fist_input.html}"  destdir="./"  >
+            <!-\-<fileset refid="edge_paths_with_PE.xml_collection"/>-\->
+            <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="DITA_PARSE_templ"/>-\->
+                <!-\-<attribute name="http://saxon.sf.net/feature/initialTemplate" value="asd"/>-\->
+            </factory>
+            <param name="uuid" expression="${uuid}"/>
+            <classpath location="/opt/local/share/java/saxon9he.jar"/>
+        </xslt>-->
+    </target>
+</project>

+ 21 - 0
SE/schema/ant-tool/example_ant_as_function_to_move/http_fist_input.xsl

@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+    xmlns:xs="http://www.w3.org/2001/XMLSchema"
+    exclude-result-prefixes="xs"
+    version="2.0">
+    
+    <xsl:param name="uuid"/>
+    
+    <xsl:template match="*">
+        <xsl:element name="{name()}">
+            <xsl:apply-templates/>
+        </xsl:element>
+    </xsl:template>
+    <xsl:template match="@*">
+        <xsl:copy-of select="."/>
+    </xsl:template>
+    <xsl:template match="@uuid">
+        <xsl:attribute name="{name()}" select="$uuid"/>
+    </xsl:template>
+    
+</xsl:stylesheet>