-
Notifications
You must be signed in to change notification settings - Fork 0
/
json-antcode.xml
30 lines (26 loc) · 1.7 KB
/
json-antcode.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
<?xml version="1.0" encoding="UTF-8"?>
<project>
<target name="dita2json" depends="build-init, preprocess, map2json"/>
<target name="map2json" unless="noMap" depends="build-init, preprocess">
<dirname property="dita.temp.dir.fullpath" file="${dita.temp.dir}${file.separator}dummy.file"></dirname>
<pipeline message="topicmerge" inputmap="${dita.temp.dir.fullpath}${file.separator}${user.input.file}" tempdir="${dita.temp.dir.fullpath}">
<module class="org.dita.dost.module.TopicMergeModule">
<param name="output" location="${dita.temp.dir.fullpath}${file.separator}${dita.map.filename.root}_MERGED.xml"></param>
</module>
</pipeline>
<!-- Note: the style attribute makes use of the dita.plugin.com.github.damianoneill.json.dir property.
This property is generated when the plug-in is integrated, using the plug-in's ID
(resulting in the property dita.plugin.PLUGIN-ID.dir )-->
<xslt processor="trax"
in="${dita.temp.dir}${file.separator}${dita.map.filename.root}_MERGED.xml"
out="${output.dir}${file.separator}${dita.map.filename.root}-int.xml"
style="${dita.plugin.com.github.damianoneill.json.dir}${file.separator}xsl${file.separator}preprocess.xsl">
</xslt>
<xslt processor="trax"
in="${output.dir}${file.separator}${dita.map.filename.root}-int.xml"
out="${output.dir}${file.separator}${dita.map.filename.root}.json"
style="${dita.plugin.com.github.damianoneill.json.dir}${file.separator}xsl${file.separator}xml2json.xsl">
</xslt>
<copy file="${dita.temp.dir}${file.separator}${dita.map.filename.root}_MERGED.xml" tofile="${output.dir}/${dita.map.filename.root}.xml"/>
</target>
</project>