<!-- try.xml ... these are trial build targets which are currently
  undergoing testing. When ready they can be moved into the main build.xml -->

<!DOCTYPE project [
<!ENTITY xmlcatalog-include SYSTEM "../../../build/src/resources/schema/catalog-ant.xcat">
]>

<project default="transform2v11" basedir="."
         name="Doc Transition Trial: transform from v1.0 to v1.1">
<!-- see procedure at
http://marc.theaimsgroup.com/?l=forrest-dev&m=102456379811908
-->

<target name="transform2v11">

  <echo message="Including the temporary Ant xmlcatalog."/>
  &xmlcatalog-include;

  <property name="v10.dir" value="src/testcases/c2/v10"/>
  <property name="v11.dir" value="src/testcases/c2/v11"/>

  <delete dir="${v11.dir}"/>

  <echo message=""/>
  <echo message="Transforming document files."/>
  <xslt basedir="${v10.dir}"
    destdir="${v11.dir}"
    extension=".xml"
    style="${xlayout.source.resources.dir}/library/xslt/docv10todocv11.xsl"
    includes="**/*.xml"
    excludes="css/**, drafts/**, faq/faq**.xml, book.xml, **/book.xml, plan/changes-doc.xml"
  >
    <xmlcatalog refid="forrest-schema">
      <classpath>
        <pathelement location="${xlayout.source.resources.dir}/schema" />
      </classpath>
    </xmlcatalog>
  </xslt> 

  <echo message=""/>
  <echo message="Transforming faq files."/>
  <xslt basedir="src/testcases/c2/v10/faq"
    destdir="src/testcases/c2/v11/faq"
    extension=".xml" 
    style="${xlayout.source.resources.dir}/library/xslt/faqv10tofaqv11.xsl"
    includes="*.xml"
    excludes="book.xml, index.xml"
  >
    <xmlcatalog refid="forrest-schema">
      <classpath>
        <pathelement location="${xlayout.source.resources.dir}/schema" />
      </classpath>
    </xmlcatalog>
  </xslt> 
		   
  <echo message=""/>
  <echo message="Transforming book.xml files."/>
  <xslt basedir="src/testcases/c2/v10"
    destdir="src/testcases/c2/v11"
    extension=".xml" 
    style="${xlayout.source.resources.dir}/library/xslt/bookv10.xsl"
    includes="book.xml, **/book.xml"
  >
    <xmlcatalog refid="forrest-schema">
      <classpath>
        <pathelement location="${xlayout.source.resources.dir}/schema" />
      </classpath>
    </xmlcatalog>
  </xslt> 
		   
  <echo message=""/>
  <echo message="Transforming changes-doc.xml file."/>
  <xslt basedir="src/testcases/c2/v10/plan"
    destdir="src/testcases/c2/v11/plan"
    extension=".xml" 
    style="${xlayout.source.resources.dir}/library/xslt/changesv10tochangesv11.xsl"
    includes="changes-doc.xml"
  >
    <xmlcatalog refid="forrest-schema">
      <classpath>
        <pathelement location="${xlayout.source.resources.dir}/schema" />
      </classpath>
    </xmlcatalog>
  </xslt> 
    
</target>
</project>

<!-- End of file -->
