Printable Reports

Version

Date

Changes

1.1

2007-12-06

Works.

1.0

2007-11-30

Initial version.

Supported Versions

Product

Supported

ePublisher 9.3

Yes

NOTE: Printable reports were included in the 2008.1 release.

WWEP2572  Integrate Printable Reports into mainline build

Description

A set of ePublisher overrides which enable printable reports on the ePublisher platform.

Goal

Users have requested printable reports in ePublisher products. This is useful for:

The current XML form of these reports are buried in the "Data" folder and are not easily

readable.

Requirements

The delivered solution should:

  1. Create a "Reports" folder in the project area.
  2. Copy XML reports to this new folder.
  3. Create an XSL stylesheet to pretty-print the existing XML reports.

This approach requires development of an XSL stylesheet and a stage to create the new

"Reports" folder.

Implementation

The implementation requires the following files:

Custom Formats

A format.wwfmt file require two additional stages for each report type. One stage handles document level reports. The other stage handles group level reports. These actions must be performed for all defined report types.

For example, using the Dynamic HTML format.wwfmt as an example, pipeline Report-Styles transforms from:

  <Pipeline name="Report-Styles">
   <Depends pipeline="Locale" />
   <Depends pipeline="Links" />

   <Stage type="xsl" action="wwtransform:reports/styles/document.xsl">
    <Parameter name="ParameterDependsType" value="engine:wif" />
    <Parameter name="ParameterLinksType" value="links:project" />
    <Parameter name="ParameterType" value="reports:styles:document" />
    <Parameter name="ParameterUILocaleType" value="uilocale:project" />
    <Parameter name="ParameterCategory" value="report" />
    <Parameter name="ParameterUse" value="external" />
    <Parameter name="ParameterDeploy" value="false" />
   </Stage>
   <Stage type="xsl" action="wwtransform:reports/group.xsl">
    <Parameter name="ParameterDependsType" value="reports:styles:document" />
    <Parameter name="ParameterType" value="reports:styles:group" />
    <Parameter name="ParameterUILocaleType" value="uilocale:project" />
    <Parameter name="ParameterCategory" value="report" />
    <Parameter name="ParameterUse" value="external" />
    <Parameter name="ParameterDeploy" value="false" />
   </Stage>

to:

  <Pipeline name="Report-Styles">
   <Depends pipeline="Locale" />
   <Depends pipeline="Links" />

   <Stage type="xsl" action="wwtransform:reports/styles/document.xsl">
    <Parameter name="ParameterDependsType" value="engine:wif" />
    <Parameter name="ParameterLinksType" value="links:project" />
    <Parameter name="ParameterType" value="reports:styles:document" />
    <Parameter name="ParameterUILocaleType" value="uilocale:project" />
    <Parameter name="ParameterCategory" value="report" />
    <Parameter name="ParameterUse" value="external" />
    <Parameter name="ParameterDeploy" value="false" />
   </Stage>
   <Stage type="xsl" action="wwtransform:reports/group.xsl">
    <Parameter name="ParameterDependsType" value="reports:styles:document" />
    <Parameter name="ParameterType" value="reports:styles:group" />
    <Parameter name="ParameterUILocaleType" value="uilocale:project" />
    <Parameter name="ParameterCategory" value="report" />
    <Parameter name="ParameterUse" value="external" />
    <Parameter name="ParameterDeploy" value="false" />
   </Stage>

   <!-- Printable -->
   <!--           -->
   <Stage type="xsl" action="wwtransform:reports/printable.xsl">
    <Parameter name="ParameterDependsType" value="reports:styles:document" />
    <Parameter name="ParameterType" value="reports:styles:document:printable" />
    <Parameter name="ParameterBrowserXSLType" value="reports:printable:xsl" />
    <Parameter name="ParameterCategory" value="pages" />
    <Parameter name="ParameterUse" value="external" />
    <Parameter name="ParameterDeploy" value="false" />
   </Stage>
   <Stage type="xsl" action="wwtransform:reports/printable.xsl">
    <Parameter name="ParameterDependsType" value="reports:styles:group" />
    <Parameter name="ParameterType" value="reports:styles:group:printable" />
    <Parameter name="ParameterBrowserXSLType" value="reports:printable:xsl" />
    <Parameter name="ParameterCategory" value="navigation" />
    <Parameter name="ParameterUse" value="external" />
    <Parameter name="ParameterDeploy" value="false" />
   </Stage>
  </Pipeline>

Downloads


CategoryRoundUp

:) :)) :( ;) :\ |) X-( B)

Enhancements/@Implemented/Printable_Reports (last edited 2010-08-16 19:35:29 by BenAllums)