-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild_toc.xml
48 lines (41 loc) · 2.55 KB
/
build_toc.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
<?xml version="1.0" encoding="UTF-8"?>
<project name="net_ipov_dita_xhtml_toc" basedir=".">
<dirname property="net_ipov_dita_xhtml_toc.dir" file="${ant.file.net_ipov_dita_xhtml_toc}"/>
<target name="net.ipov.dita.xhtml.toc-html" unless="net.ipov.dita.xhtml.toc-html.off">
<description>Create HTML based ToC file</description>
<!-- Alas there does not appear to be a useful way to get the path to the source ant file, as the way the build works,
the contents of the build_plugin.xml are actually inserted into the dita build xml 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="${net_ipov_dita_xhtml_toc.dir}${file.separator}xsl${file.separator}xhtmtoc.xsl">
<excludesfile name="${dita.temp.dir}${file.separator}${resourceonlyfile}" if="resourceonlyfile"/>
<param name="DITAEXT" expression="${dita.ext}" if="dita.ext" />
<param name="OUTEXT" expression="${out.ext}" if="out.ext" />
<param name="contenttarget" expression="${args.xhtml.contenttarget}" if="args.xhtml.contenttarget"/>
<param name="CSS" expression="${args.css.file}" if="args.css.file" />
<param name="CSSPATH" expression="${user.csspath}" if="user.csspath" />
<param name="OUTPUTCLASS" expression="${args.xhtml.toc.class}" if="args.xhtml.toc.class" />
<mapper type="glob"
from="${user.input.file}"
to="${args.xhtml.toc}${out.ext}" />
</xslt>
</target>
<target name="net.ipov.dita.xhtml.toc-js" unless="net.ipov.dita.xhtml.toc-js.off">
<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="${net_ipov_dita_xhtml_toc.dir}${file.separator}xsl${file.separator}jstoc.xsl">
<excludesfile name="${dita.temp.dir}${file.separator}${resourceonlyfile}" if="resourceonlyfile"/>
<param name="DITAEXT" expression="${dita.ext}" if="dita.ext" />
<param name="contenttarget" expression="${args.xhtml.contenttarget}" if="args.xhtml.contenttarget"/>
<mapper type="glob"
from="${user.input.file}"
to="${args.xhtml.toc}.js" />
</xslt>
</target>
</project>