[Yanel-usage] Docbook / ant tasks

Mike W autonomicpilot at yahoo.com
Tue Jun 3 20:33:51 CEST 2008


I use a docbook / ant framework called "Dopus". All xslt processing is done by a macro called "xslt-runner" which is included below.

  <macrodef name="xslt-runner">
    <attribute name="dir" default="${project.dir.output}/${project.output.mode}" />
    <attribute name="inputfile" default="${project.dir.output}/${project.output.mode}/${project.input.file}.docbook" />
    <attribute name="outputfile" default="" />
    <attribute name="stylesheet"/>
    <attribute name="maxmemory" default="${xslt.maxmemory.default}" />
    <element name="xslt-argset" optional="true"/>
    <sequential>
      <java fork="true" dir="@{dir}" failonerror="true" maxmemory="@{maxmemory}" classname="com.icl.saxon.StyleSheet">
         <classpath refid="saxon.classpath" />
        <jvmarg line="-Dhttp.proxyHost=${http.proxyHost}" />
        <jvmarg line="-Dhttp.proxyPort=${http.proxyPort}" />
        <jvmarg line="-Djavax.xml.parsers.DocumentBuilderFactory=org.apache.xerces.jaxp.DocumentBuilderFactoryImpl" />
        <jvmarg line="-Djavax.xml.parsers.SAXParserFactory=org.apache.xerces.jaxp.SAXParserFactoryImpl" />
        <jvmarg line="-Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parsers.XIncludeParserConfiguration" />
        <arg line="-x org.apache.xml.resolver.tools.ResolvingXMLReader" />
        <arg line="-y org.apache.xml.resolver.tools.ResolvingXMLReader"  />
        <arg line="-r org.apache.xml.resolver.tools.CatalogResolver" />
        <arg line="@{outputfile}" />
        <arg value="@{inputfile}" />
        <arg value="@{stylesheet}" />
        <arg line="docbook-schema.version=${docbook-schema.version}" />
        <xslt-argset/>
      </java>
    </sequential>
  </macrodef>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wyona.com/pipermail/yanel-usage/attachments/20080603/c654906b/attachment.htm


More information about the Yanel-usage mailing list