|
16 | 16 | <property name="output.dir" value="output" /> |
17 | 17 | <property name="docbook.xsl.dir" value="docbook-xsl-1.76.1" /> |
18 | 18 |
|
19 | | - <property name="epub.stylesheet" value="${docbook.xsl.dir}/epub/docbook.xsl" /> |
| 19 | + <property name="epub.stylesheet" value="mystylesheets/mymobidocbook.xsl" /> |
20 | 20 |
|
21 | 21 | <property name="{destfilename}" value="book" /> |
22 | 22 |
|
|
25 | 25 | <pathelement location="lib/saxon.jar" /> |
26 | 26 | </path> |
27 | 27 |
|
28 | | - <property name="epubcheck.jar" value="lib/epubcheck-1.2.jar" /> |
| 28 | + <property name="epubcheck.jar" value="lib/epubcheck/epubcheck-1.2.jar" /> |
29 | 29 | <!-- |
30 | 30 | - target: usage |
31 | 31 | --> |
|
74 | 74 | --> |
75 | 75 | <target name="build-epub" depends="clean, depends" description="Generates EPUB files from DocBook XML"> |
76 | 76 |
|
77 | | - <xslt style="${epub.stylesheet}" extension=".html" basedir="${input.dir}" destdir="${output.dir}/tmp"> |
| 77 | + <xslt style="${epub.stylesheet}" extension=".html" |
| 78 | + basedir="${input.dir}" destdir="${output.dir}/tmp"> |
78 | 79 | <include name="**/*book.xml" /> |
79 | 80 | <param name="epub.stylesheet" expression="style.css" /> |
80 | 81 | <!-- The following parameter do not work currently |
|
113 | 114 | <delete dir="./OEBPS" /> |
114 | 115 | <delete dir="./META-INF" /> |
115 | 116 |
|
116 | | - <!-- epub check does currently not work as it does not find its dependent libraries |
117 | | - <epub.check epub="${destfilename}" /> |
| 117 | + <!-- Make sure the epubcheck lib has a subfolder lib with saxon.jar and jing.jar in it |
118 | 118 | --> |
| 119 | + <epub.check epub="book" /> |
| 120 | + |
119 | 121 | </target> |
120 | 122 |
|
121 | | - <!-- epub check does currently not work --> |
| 123 | + <!-- epub check macro definition --> |
122 | 124 | <macrodef name="epub.check" description="Check an epub"> |
123 | 125 | <attribute name="epub" description="Name of the EPUB" /> |
124 | 126 | <sequential> |
|
0 commit comments