https://issues.apache.org/bugzilla/show_bug.cgi?id=49211

           Summary: [PATCH] Intermediate format files usage as input in
                    FOP Ant task
           Product: Fop
           Version: all
          Platform: PC
        OS/Version: Windows Vista
            Status: NEW
          Severity: normal
          Priority: P2
         Component: general
        AssignedTo: fop-dev@xmlgraphics.apache.org
        ReportedBy: vanukuri.ven...@googlemail.com


Created an attachment (id=25367)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=25367)
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...

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

Reply via email to