Handler - processViaXSL

Note: To use this agent the file PAMXML.jar must be in your Java classpath. You will also need XML4Jx_x_x.jar, and FESI.jar in your Java classpath. See the installation notes for how these may be obtained. This requires you to modify ipam.bat or ipam12.bat.

Description

This filter uses XSLP to apply an XSL stylesheet to an XML file. The stylesheet basically controls what this filter produces. Users of this filter are expected to write their own stylesheets for use with this filter.

This filter includes a list of iPAM product attributes to ignore. This list is used when iPAM products must be converted internally to XML format. This does not apply to incoming products that are already XML files.

This filter also includes a target file name attribute, however this attribute will only be applied when the incoming product does not contain a target file name attribute.

Configuration Variables

XSLFile
The XSL stylesheet to apply to the XML file.

productAttributesToExclude

A list of product properties that should not appear in the XML. Only applies if the product is passed through the AsXML visitor.

postProcessHTMLFile

If true the resultant file will be parsed. The parsing will remove certain hard coded keywords and replace them with new characters. This attribute should normally be set to true.

targetXSLOutputName

The name of the resultant file. Will be ignored if there is a product attribute with the same name.

Product

A BasicProduct that contains a FileRef as content. The FileRef refers to the newly created file.
 

How it Works

The filter first looks at the content of the product to see if it contains an XML file. If there is no XML file present then the product structure is passed through the AsXML visitor to generate an XML file.

The XML file is then passed to XSLP along with an XSL stylesheet. The resultant file is then stored in a BasicProduct.

Revised: 20 September 1999