Article

HTML Report Generation in Designer

Author Info

27 October 2009 - 11:37am
Submitted by: anravi

article
Reads:

436

Score:
5
5
1
 
Comments:

0

Designer 3.x currently supports report generation in pdf, rtf formats. There is no provision currently to generate html reports. To generate an out of box html report in Designer, there is an alternative.

  1. In designer do the following:

    Preferences -->Novell -->Identity Manager -->Document Generation --> check the 'Output XML source files'

  2. Run Document Generator for the project in the Designer
  3. Go to designer workspace location where your project is located.
    Say, '1' is the name of the project, then $workspace\1\Designer\Documents\Generated\1.fo.xml is the source file. This is xsl-fo file.
  4. Download fo2html.xsl from http://services.renderx.com/Content/tools/fo2html.html
  5. Execute the following command.
> java org.apache.xalan.xslt.Process -XML -in $workspace\1\Designer\Documents\Generated\1.fo.xml  -xsl fo2html.xsl -out  report.html

The above command takes xsl-fo as input and applies the xsl-fo to html transformation using fo2html.xsl and generates report.html

Dependency:

jdk1.6, xerces.jar, xalan.jar. By default jdk1.6 gets shipped with these jars in jre\lib\endorsed folder

Issues:

  1. The generated report can be best viewed in Windows internet explorer browser currently.
  2. fo2html.xsl needs to be tweaked to ensure the html gets generated in proper format.

Sample screenshot:


Author Info

27 October 2009 - 11:37am
Submitted by: anravi




User Comments

© 2009 Novell, Inc. All Rights Reserved.