2006/ws/policy build.xml,1.1,1.2

Update of /sources/public/2006/ws/policy
In directory hutz:/tmp/cvs-serv30937/policy

Modified Files:
	build.xml 
Log Message:
Now a usable build.xml

Index: build.xml
===================================================================
RCS file: /sources/public/2006/ws/policy/build.xml,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- build.xml	31 May 2006 17:20:37 -0000	1.1
+++ build.xml	6 Jul 2006 19:39:28 -0000	1.2
@@ -1,31 +1,36 @@
 <!-- Apache Ant script to build spec.
-     Marc Hadley, Sun Microsystems -->
+     Philippe Le Hegaret, W3C -->
      
-<project name="WS-Policy" default="xslt" basedir=".">
+<project name="WS-Policy" default="main" basedir=".">
 
-  <property name="dist.home" value="."/>
-  <property name="doc.home" value="."/>
-  <property name="style.home" value="."/>
-  <property name="stylesheet" value="${style.home}/xmlspec-addressing.xsl"/>
+  <property name="stylesheet" value="xmlspec-policy.xsl"/>
   <property name="change.log.start" value="1 Oct 2004"/>
   <property name="change.log.end" value="1 Dec 2006"/>
   
   <target name="clean">
+  	<delete quiet="true" file="ws-policy-framework.html" />
+  	<delete quiet="true" file="ws-policy-attachment.html" />
   </target>
   
-  <target name="prepare">
-  </target>
-  
-  <target name="xslt" depends="prepare">
-    <style
-      basedir="${doc.home}"
-      destdir="${dist.home}"
-      style="${stylesheet}"
-      reloadstylesheet="true"
-      includes="policy-framework.xml policy-attachment.xml"/>
-  </target>
-  
-  <target name="changelog" depends="prepare">
+	<target name="validate" description="Validates all XML and XSL files.">
+		<xmlvalidate lenient="true">
+			<fileset dir="." includes="*.xsl" />
+		</xmlvalidate>
+		<xmlvalidate lenient="false">
+			<fileset dir="." includes="ws-policy*.xml" />
+		</xmlvalidate>
+	</target>
+
+	<target name="html" description="Transforms xml into html.">
+	    <xslt style="${stylesheet}" in="ws-policy-framework.xml" out="ws-policy-framework.html" force="yes">
+			<param name="status" expression="ed-copy" />
+		</xslt>
+	    <xslt style="${stylesheet}" in="ws-policy-attachment.xml" out="ws-policy-attachment.html" force='yes'>
+			<param name="status" expression="ed-copy" />
+		</xslt>
+	</target>
+
+  <target name="changelog">
     <cvschangelog
       dir="${doc.home}"
       destfile="${dist.home}/changelog.xml"
@@ -33,6 +38,7 @@
       end="${change.log.end}"/>
   </target>
 
-  <target name="all" depends="clean,xslt"/>
-
+  <target name="main" depends="validate,html">
+  </target>
+		
 </project>

Received on Thursday, 6 July 2006 19:39:39 UTC