Uploaded image for project: 'FOP'
  1. FOP
  2. FOP-1800

[PATCH] Intermediate format files usage as input in FOP Ant task

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Resolution: Unresolved
    • 2.5
    • None
    • unqualified
    • None
    • Operating System: Windows Vista
      Platform: PC
    • 49211

    Description

      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...

      Attachments

        1. FOPAnt-Intermediate.patch
          16 kB
          Venkat Reddy
        2. FOPAnt-Intermediate.patch
          16 kB
          Venkat Reddy

        Activity

          People

            Unassigned Unassigned
            vanukuri.venkat@googlemail.com Venkat Reddy
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: