Report format types

Introduction

A report format type implements a specific way of rendering the report output.

The principle of creating a report format type is quite simple: it is a just a directory containing a Cocoon sitemap.xmap file. The sitemap.xmap should contain at least one pipeline for rendering the output.

Various default format types are included with xReporter, their implementation can be found in:

<webapp>/xreporter/resources/formattypes

You can add your own ones by adding them in the directory:

<conf.home>/customformattypes

By executing "xreporter-cocoon deploy", these custom format types are simply copied to the formattypes directory in the webapp, so be careful not to have any name collisions with the built-in format types.

More

More things we could write about here:

  • what the pipeline should match ("OutputPipe" or another name specified in the format file)
  • the xreporter generator
  • the things available in the flow context
  • ...
Comments (0)