I want to transform xml to html with a build.xml ant file from eclipse How to modify the build.xml ant file to work with xsltproc.exe instead of using xalan?
actually build.xml
[XML]<?xml version="1.0"?>
<!--
- Author: Lars Vogel
-->
<project name="docbook-src" >
<description>
This Ant buildhtml.xml file is used to transform DocBook XML to html output
</description>
<!--
- Configure basic properties that will be used in the file.
-->
<property name="docbook.xsl.dir" value="docbook-xsl-1.72.0" />
<property name="doc.dir" value="output" />
<property name="src" value="src" />
<property name="html.stylesheet" value="${docbook.xsl.dir}/html/docbook.xsl" />
<property name="xalan.lib.dir" value="lib/xalan-j_2_7_0" />
<!--
- Sets up the classpath for the Xalan and Xerces implementations
- that are to be used in this script, since the versions that ship
- with Ant may be out of date.
-->
<path id="xalan.classpath">
<fileset dir="${xalan.lib.dir}" id="xalan.fileset">
<include name="xalan.jar" />
<include name="xercesImpl.jar" />
<include name="serializer.jar" />
</fileset>
</path>
<target name="build-html" description="Generates HTML files from DocBook XML">
<xslt style="${html.stylesheet}" extension=".html" basedir="${src}" destdir="${doc.dir}">
<classpath refid="xalan.classpath" />
<include name="**/*book.xml" />
<include name="**/*article.xml" />
<param name="html.stylesheet" expression="style.css" />
</xslt>
<!-- Copy the stylesheet to the same directory as the HTML files -->
<copy todir="${doc.dir}">
<fileset dir="lib">
<include name="style.css" />
</fileset>
</copy>
</target>
</project>
[/XML]
I have to modify docbook to the new version docbook-5.0 and "docbook-xsl-1.72.0" to "docbook-xsl-1.74.3" and instead of "xalan-j_2_7_0" i must use just xsltproc.exe.
Can anyone help me?
Thanks!
actually build.xml
[XML]<?xml version="1.0"?>
<!--
- Author: Lars Vogel
-->
<project name="docbook-src" >
<description>
This Ant buildhtml.xml file is used to transform DocBook XML to html output
</description>
<!--
- Configure basic properties that will be used in the file.
-->
<property name="docbook.xsl.dir" value="docbook-xsl-1.72.0" />
<property name="doc.dir" value="output" />
<property name="src" value="src" />
<property name="html.stylesheet" value="${docbook.xsl.dir}/html/docbook.xsl" />
<property name="xalan.lib.dir" value="lib/xalan-j_2_7_0" />
<!--
- Sets up the classpath for the Xalan and Xerces implementations
- that are to be used in this script, since the versions that ship
- with Ant may be out of date.
-->
<path id="xalan.classpath">
<fileset dir="${xalan.lib.dir}" id="xalan.fileset">
<include name="xalan.jar" />
<include name="xercesImpl.jar" />
<include name="serializer.jar" />
</fileset>
</path>
<target name="build-html" description="Generates HTML files from DocBook XML">
<xslt style="${html.stylesheet}" extension=".html" basedir="${src}" destdir="${doc.dir}">
<classpath refid="xalan.classpath" />
<include name="**/*book.xml" />
<include name="**/*article.xml" />
<param name="html.stylesheet" expression="style.css" />
</xslt>
<!-- Copy the stylesheet to the same directory as the HTML files -->
<copy todir="${doc.dir}">
<fileset dir="lib">
<include name="style.css" />
</fileset>
</copy>
</target>
</project>
[/XML]
I have to modify docbook to the new version docbook-5.0 and "docbook-xsl-1.72.0" to "docbook-xsl-1.74.3" and instead of "xalan-j_2_7_0" i must use just xsltproc.exe.
Can anyone help me?
Thanks!