Bug 49211 - [PATCH] Intermediate format files usage as input in FOP Ant task
Summary: [PATCH] Intermediate format files usage as input in FOP Ant task
Status: NEW
Alias: None
Product: Fop - Now in Jira
Classification: Unclassified
Component: general (show other bugs)
Version: all
Hardware: PC Windows Vista
: P2 normal
Target Milestone: ---
Assignee: fop-dev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-28 10:12 UTC by Venkat Reddy
Modified: 2012-04-11 03:20 UTC (History)
1 user (show)



Attachments
FOP ant task patch for intermediate format file allowed as input files (15.73 KB, patch)
2010-04-28 10:12 UTC, Venkat Reddy
Details | Diff
FOP ant task patch for intermediate format file allowed as input files (15.76 KB, patch)
2010-04-28 11:35 UTC, Venkat Reddy
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Venkat Reddy 2010-04-28 10:12:52 UTC
Created attachment 25367 [details]
FOP ant task patch for intermediate format file allowed as input files

The current FOP ant task only allows xsl:fo input files to transfer into different output formats. This patch updates the current FOP ant task and provides the intermediate format file processing with the FOP ant task.

I have made the following changes in order to achieve this:

1. Introduced 'iffile' attribute to accept the intermediate format file as input in FOP ant task.

2. Introduced 'inputformat' attribute (optional, defaults to 'fo') to accept the below formats
       
              --> fo (xsl:fo input file)
              --> if (intermediate format file)
              --> at (area tree input file)
              --> xml

3. Renamed the current 'format' attribute to 'outputformat'

4. Updated the corresponding documenation 'content/xdocs/anttasks.xml' for the examples and usage.

Usage:

<target name="generate-ps-from-intermediate-format" description="Generates PostScript file using an intermediate format file">
   <fop outputformat="application/postscript"
        iffile="c:\working\ifDirectory\ifDocument.if"
        outfile="c:\working\psDirectory\psDocument.ps" />
</target>

<target name="generate-multiple-ps-from-intermediate-format" description="Generates multiple PostScript files using an intermediate format files">
   <fop outputformat="application/postscript"
        inputformat="if"
        outdir="${build.dir}" messagelevel="debug">
        <fileset dir="${test.dir}">
           <include name="*.if.xml"/>
        </fileset>
   </fop>
</target>

Please find the patch attached to this bug...
Comment 1 Venkat Reddy 2010-04-28 10:41:33 UTC
Please find more details about the FOP ant task using the following URL:

http://xmlgraphics.apache.org/fop/trunk/anttask.html
Comment 2 Venkat Reddy 2010-04-28 11:35:12 UTC
Created attachment 25368 [details]
FOP ant task patch for intermediate format file allowed as input files

Please find the latest attachment
Comment 3 Glenn Adams 2012-04-07 01:41:45 UTC
resetting P2 open bugs to P3 pending further review
Comment 4 Glenn Adams 2012-04-11 03:20:53 UTC
increase priority for bugs with a patch