Subversion Repositories XServices

Rev

Rev 144 | Rev 173 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
62 brianR 1
<?xml version="1.0"?>
137 brianR 2
<project default="create-doc" basedir="." xmlns:ivy="antlib:org.apache.ivy.ant">
62 brianR 3
 
4
	<property name="current-loc" location="." />
5
	<property name="workspace" location=".." />
6
	<property name="htmldir" value="${current-loc}/doc/html" />
7
	<property name="docbookdir" value="C:\JAVA-DEV\docbook-xsl-ns-1.76.1\html\" />
137 brianR 8
	<property name="docbooksource" value="${current-loc}/doc" />
62 brianR 9
	<property name="xalan" value="org.apache.xalan.processor.TransformerFactoryImpl" />
10
 
137 brianR 11
 
62 brianR 12
	<!-- XSLT Chunking Properties -->
137 brianR 13
	<property name="base.dir" value="${htmldir}" />
14
 
62 brianR 15
	<target name="merge">
144 brianR 16
		<!-- XInclude support comes with Eclipse XML Tools Project,
17
			the Ant target needs to be executed in the Eclispe Workspace JRE
18
			in order to get found. Any custom project specific runtime
19
			may not work.
20
		-->
137 brianR 21
		<xsl.xinclude in="${docbooksource}/BruteXServices_User_Guide.xml" out="${docbooksource}/BruteXServices_User_Guide.dbk" />
62 brianR 22
	</target>
137 brianR 23
 
62 brianR 24
	<target name="clean-doc">
25
		<delete dir="${htmldir}" />
137 brianR 26
		<mkdir dir="${htmldir}" />
62 brianR 27
	</target>
28
 
29
	<target name="create-doc" depends="clean-doc, merge">
30
 
137 brianR 31
		<xslt force="true" style="${docbookdir}/../toHTML.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/index.html">
62 brianR 32
			<factory name="${xalan}" />
137 brianR 33
			<param name="base.dir" expression="${htmldir}/" />
62 brianR 34
			<param name="use.id.as.filename" expression="1" />
157 brianR 35
			<param name="html.stylesheet" expression="style.css" />
62 brianR 36
		</xslt>
157 brianR 37
	<copy file="${docbooksource}/style.css" overwrite="true" tofile="${htmldir}/style.css" />
62 brianR 38
	</target>
137 brianR 39
 
83 brianR 40
	<target name="create-webdoc" depends="clean-doc, merge">
62 brianR 41
 
137 brianR 42
		<xslt force="true" style="${docbookdir}/../fo/docbook.xsl" in="${docbooksource}/BruteXServices_User_Guide.dbk" out="${htmldir}/xservices.fo">
83 brianR 43
			<factory name="${xalan}" />
137 brianR 44
			<param name="base.dir" expression="${htmldir}/" />
83 brianR 45
			<param name="use.id.as.filename" expression="1" />
46
			<param name="fop.extensions" expression="0" />
47
		</xslt>
48
	</target>
49
 
137 brianR 50
	<!-- =================================
51
	          target: resolve
52
	         ================================= -->
53
	<target name="resolve" description="--> retrieve dependencies with ivy">
54
		<ivy:retrieve />
55
	</target>
56
 
62 brianR 57
</project>