<?xml version="1.0" encoding="UTF-8"?>

<project name="" default="main" basedir=".">
  <path id="saxon8.classpath">
    <pathelement location="c:/saxon/saxon8.jar"/>
  </path>

  <target name="clean">
    <delete>
      <fileset dir="output">
        <include name="*.*"/>
      </fileset>
    </delete>
  </target>

  <target name="generate-its-decorator">
    <java fork="true" classname="net.sf.saxon.Transform">
      <classpath refid="saxon8.classpath"/>
      <arg value="-o"/>
      <arg value="output/its-decorator.xsl"/>
      <arg value="xml-serialization/in-pre.html"/>
      <arg value="stylesheets/generate-its-decorator.xsl"/>
      <arg value="inputDoc=../xml-serialization/in-pre.html"/>
      <arg value="externalRules=../rules/xhtml-sample-rules.xml"/>
    </java>
  </target>           	
  <target name="decorate-input" depends="generate-its-decorator">
    <java fork="true" classname="net.sf.saxon.Transform">
      <classpath refid="saxon8.classpath"/>
      <arg value="-o"/>
      <arg value="output/its-decoration.xml"/>
      <arg value="xml-serialization/in-pre.html"/>
      <arg value="output/its-decorator.xsl"/>
    </java>
  </target>
  <target name="generate-css-styling" depends="decorate-input">
    <java fork="true" classname="net.sf.saxon.Transform">
      <classpath refid="saxon8.classpath"/>
      <arg value="-o"/>
      <arg value="output/its-decoration.html"/>
      <arg value="output/its-decoration.xml"/>
      <arg value="stylesheets/generate-css-styling.xsl"/>
    </java>
  </target>
  <target name="main" depends="generate-css-styling"/>

</project>
