<?xml version="1.0" encoding="utf-8"?><!-- 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 IBM Corp. 2006 All Rights Reserved. --><project name="dita2xhtml" default="dita2xhtml">
    <property name="transtype" value="xhtml"></property>
    
    <import file="build_init.xml"></import>
    <import file="build_preprocess.xml"></import>
    <import file="build_general.xml"></import>
	
    <target name="dita2xhtml" depends="build-init, preprocess, dita.map.xhtml, copy-revflag,                       copy-css , dita.topics.xhtml, dita.inner.topics.xhtml, dita.outer.topics.xhtml">
    </target>

    <target name="dita.map.xhtml" depends="dita.map.xhtml.init, dita.map.xhtml.toc , dita.out.map.xhtml.toc"></target>

    <target name="dita.map.xhtml.init" description="">
        <condition property="out.ext" value=".html">
            <not>
                <isset property="out.ext"></isset>
            </not>
        </condition>
        <condition property="args.xhtml.toc" value="index">
            <not>
                <isset property="args.xhtml.toc"></isset>
            </not>
        </condition>
    </target>
    

  	
    <target name="dita.map.xhtml.toc" unless="noMap" if="old.transform" description="Build HTML TOC file">
        <xslt processor="trax" basedir="${dita.temp.dir}" destdir="${output.dir}" includesfile="${dita.temp.dir}${file.separator}${user.input.file.listfile}" classpathref="dost.class.path" style="${dita.script.dir}${file.separator}map2xhtmtoc.xsl">
        	<excludesfile name="${dita.temp.dir}${file.separator}${resourceonlyfile}" if="resourceonlyfile"></excludesfile>
            <param name="DITAEXT" expression="${dita.ext}" if="dita.ext"></param>
            <param name="OUTEXT" expression="${out.ext}" if="out.ext"></param>
            <param name="contenttarget" expression="${args.xhtml.contenttarget}" if="args.xhtml.contenttarget"></param>
            <param name="CSS" expression="${args.css.file}" if="args.css.file"></param>
            <param name="CSSPATH" expression="${user.csspath}" if="user.csspath"></param>
            <param name="OUTPUTCLASS" expression="${args.xhtml.toc.class}" if="args.xhtml.toc.class"></param>
            
            <mapper type="glob" from="*${dita.input.filename}" to="*${args.xhtml.toc}${out.ext}"></mapper>
        </xslt>
    </target>
    

    <target name="dita.out.map.xhtml.toc" unless="noMap" if="inner.transform" description="Build HTML TOC file,which will adjust the directory">
        <xslt processor="trax" basedir="${dita.temp.dir}" destdir="${output.dir}" includesfile="${dita.temp.dir}${file.separator}${user.input.file.listfile}" classpathref="dost.class.path" style="${dita.script.dir}${file.separator}map2xhtmtoc.xsl">
        	<excludesfile name="${dita.temp.dir}${file.separator}${resourceonlyfile}" if="resourceonlyfile"></excludesfile>
            <param name="DITAEXT" expression="${dita.ext}" if="dita.ext"></param>
            <param name="OUTEXT" expression="${out.ext}" if="out.ext"></param>
            <param name="contenttarget" expression="${args.xhtml.contenttarget}" if="args.xhtml.contenttarget"></param>
            <param name="CSS" expression="${args.css.file}" if="args.css.file"></param>
            <param name="CSSPATH" expression="${user.csspath}" if="user.csspath"></param>
            <param name="OUTPUTCLASS" expression="${args.xhtml.toc.class}" if="args.xhtml.toc.class"></param>
            
            <mapper type="glob" from="${user.input.file}" to="${args.xhtml.toc}${out.ext}"></mapper>
        </xslt>
    </target>
</project>