VirtualBox

source: vbox/trunk/src/libs/dita-ot-1.8.5/plugins/org.dita.docbook/build_dita2docbook.xml@ 98817

Last change on this file since 98817 was 98584, checked in by vboxsync, 2 years ago

Docs: bugref:10302. Setting svn properties of DITA-OT library.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!-- This file is part of the DITA Open Toolkit project.
3 See the accompanying license.txt file for applicable licenses.-->
4<!-- (c) Copyright IBM Corp. 2006 All Rights Reserved. -->
5<project name="dita2docbook">
6
7 <target name="dita2docbook"
8 depends="build-init, preprocess, topic2docbook, map2docbook">
9 </target>
10
11 <target name="topic2docbook" if="noMap">
12 <antcall target="dita.topic.docbook">
13 <param name="inputFile"
14 value="${dita.temp.dir}${file.separator}${user.input.file}" />
15 <param name="outputFile"
16 value="${dita.map.output.dir}${file.separator}${dita.topic.filename.root}.xml" />
17 </antcall>
18 </target>
19
20 <target name="map2docbook" unless="noMap">
21 <antcall target="dita.map.docbook">
22 <param name="mapRoot" value="${dita.map.filename.root}" />
23 <param name="inputMap" value="${user.input.file}" />
24 <param name="inputDir" value="${dita.temp.dir}" />
25 <param name="outputDir" value="${dita.map.output.dir}" />
26 </antcall>
27 </target>
28
29 <!-- Build DocBook output from ditamap -->
30 <target name="dita.map.docbook"
31 description="Build DocBook output from ditamap">
32 <condition property="args.xsl"
33 value="${dita.plugin.org.dita.docbook.dir}/xsl/map2docbook.xsl">
34 <not>
35 <isset property="args.xsl" />
36 </not>
37 </condition>
38 <mkdir dir="${outputDir}" />
39 <xslt in="${inputDir}${file.separator}${inputMap}"
40 out="${outputDir}${file.separator}${mapRoot}.xml"
41 classpathref="dost.class.path"
42 style="${args.xsl}">
43 <param name="outputdir" expression="${outputDir}" />
44 <xmlcatalog refid="dita.catalog"/>
45 </xslt>
46 </target>
47
48 <!-- Build DocBook output from dita topic -->
49 <target name="dita.topic.docbook"
50 description="Build DocBook output from dita topic">
51 <condition property="args.xsl"
52 value="${dita.plugin.org.dita.docbook.dir}/xsl/dita2docbook.xsl">
53 <not>
54 <isset property="args.xsl" />
55 </not>
56 </condition>
57 <xslt in="${inputFile}" out="${outputFile}"
58 classpathref="dost.class.path"
59 style="${args.xsl}">
60 <xmlcatalog refid="dita.catalog"/>
61 </xslt>
62 </target>
63</project>
Note: See TracBrowser for help on using the repository browser.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette