OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: Re: [docbook-apps] Weird callout issue


Hi Jacques,

As you mentioned in your mail you've already a working Apache Ant installation. That build.xml file is thought as a small Ant script to loop over 15 numbers and do all the necessary tasks to transform the XML to SVG and raterize the SVG to a PNG image.

Ok, now the hurdle with that script.. it needs two additional task definitions:
1) the contribute tasks from http://ant-contrib.sourceforge.net to use "foreach"
2) a raterizer task to convert SVG to PNG using Apache Batik library (or whatever)

Apache Batik provides an Ant rasterizer task (unfortunately shipped only as source, not as binary)
please have a look at the Batik pages for further information how to use it http://xml.apache.org/batik/svgrasterizer.html#task

there is also an alternative from http://www.cs.helsinki.fi/u/ruini/structure/others/SVGRasterizer/
which is shipped as ready to use binary
just change the appropriate line from the build.xml from

<taskdef name="rasterize" classname="org.apache.tools.ant.taskdefs.optional.RasterizerTask"/>

to

<taskdef name="rasterize" classname="org.apache.tools.ant.taskdefs.optional.SVGRasterizer"/>

nevertheless you'll need the Batik jar files installed in your Ant lib directory if it's not already there

after all go into the directory where the 3 XML files reside (D:\devel\temp in my case) and just type ant

D:\devel\temp> ant

Ant will look for a file named build.xml an starts the default task from that build file automatically

if all is fine the following output will appear

Buildfile: build.xml

init:

main:

createSVGCallout:
     [xslt] Processing D:\devel\temp\number.xml to D:\devel\temp\number-1.svg
     [xslt] Loading stylesheet D:\devel\temp\callout-svg.xsl

doRasterize:
[rasterize] Rasterizing 1 image from SVG to image/png.

....

BUILD SUCCESSFUL
Total time: 15 seconds


regards
Alex


At 16:43 16.10.2004, you wrote:

After a long time, I re-read you mail about callout image and how
generate them.

And I must admit, I don't know how to use it.

I installed in my ant library folder the file ant-contrib-1.0b1.jar  (if
I correctly interstood your last line).

I put every "files" you gave in separate file.

I suppose I have to deal with xsltproc with something like :

% xsltproc callout-svg.xsl build.xml

but I not sure.


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]