<!-- 
  This file is part of the DITA Open Toolkit project hosted on
  Sourceforge.net. See the accompanying license.txt file for
  applicable licenses.
  
  (C) Copyright Shawn McKenzie, 2007. All Rights Reserved.
  *-->
<project>

  <target name="dita2tocjs" depends="dita-preprocess, map2tocjs, topic2tocjs"/>

  <target name="topic2tocjs" if="noMap" depends="dita-preprocess">
    <antcall target="dita.map.tocjs">
      <!-- To do -->
    </antcall>
  </target>

  <target name="map2tocjs" unless="noMap" depends="dita-preprocess">
    <antcall target="dita.map.tocjs">
      <param name="input" value="${dita.temp.dir}${file.separator}${user.input.file}"/>
    </antcall>
  </target>


  <target name="dita.map.tocjs" description="generate merged for tocjs">
    <xslt processor="trax" in="${input}" out="${output.file}"
      style="${dita.dir}/demo/tocjs/xsl/tocjs.xsl">
      <param name="contentwin" expression="${content.frame}" if="content.frame"/>
      <param name="ditaext" expression="${dita.extname}"/>
      <param name="htmlext" expression="${out.ext}"/>
      <!--<xmlcatalog refid="dita.catalog"/>-->
    </xslt>
  </target>

</project>
