Thank you so mauck.  I will try this tonight

Dan
----- Original Message ----- 
From: "Hussein Shafie" <[email protected]>
To: "Dan Palmer" <dan.palmer at sympatico.ca>
Cc: <xmleditor-support at xmlmind.com>
Sent: Tuesday, July 06, 2004 5:11 AM
Subject: Re: [XXE] Ant tasks for HTML and PDF generation


> Dan Palmer wrote:
> > XXe is a wonderful product.  However, what I would like to be able to
> > deo is to be able to generate the HTML (single), HTML (buffered) and the
> > PDF files for a site from an ant script.
> >
> > I have not been able to figure out how to do this.
> >
> > I know that I can do it from the GUI using the DocBook->Convert but as I
> > said, I would like to be able to ensure consistent results when I
> > perform my build
> >
>
> You need to emulate in ant tasks the process commands found in
> XXE_install_dir/config/docbook/xslMenu.incl.
>
> For example, this process command generates multi-page HTML from a
> DocBook document:
>
> ---
>      <process>
>        <mkdir dir="resources" />
>        <!-- add attribute selection="true" to copyDocument if you want
>             to be able to process explicitely selected element -->
>        <copyDocument to="__doc.xml">
>          <resources match="(https|http|ftp)://.*" />
>          <resources match=".+" copyTo="resources" />
>        </copyDocument>
>
>        <mkdir dir="callouts" />
>        <copyProcessResources
>           resources="@xsl/images/callouts/gif_callouts.list"
>           to="callouts" />
>
>        <copyProcessResources resources="xsl/css/html.css"
>                              to="html.css" />
>
>        <transform stylesheet="xsl/html/chunk.xsl"
>                   file="__doc.xml" to="__doc.html" >
>          <parameter name="base.dir">%W%S</parameter>
>          <parameter name="chunk.first.sections">1</parameter>
>          <parameter name="chunk.section.depth">1</parameter>
>
>          <parameter name="toc.section.depth">3</parameter>
>          <parameter name="section.autolabel">1</parameter>
>
>          <parameter name="callout.graphics">1</parameter>
>          <parameter name="callout.graphics.path">callouts/</parameter>
>          <parameter name="callout.graphics.extension">.gif</parameter>
>
>          <parameter name="html.stylesheet">html.css</parameter>
>
>          <parameterGroup name="docb.toHTML.transformParameters" />
>        </transform>
>
>        <!-- The real HTML file is index.html -->
>        <delete files="__doc.*" />
>
>        <upload base="%0/">
>          <copyFiles files="*.*" toDir="." />
>          <copyFiles files="resources/*" toDir="resources" />
>          <copyFiles files="callouts/*" toDir="callouts" />
>        </upload>
>      </process>
> ---
>
> Process commands are described here:
> http://www.xmlmind.com/xmleditor/_distrib/docs/commands/ch05.html
>
>



Reply via email to