Juggler - processViaXSL

Note: To use this agent the file PAMXML.jar must be in your Java classpath. 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 an exclusion list attribute, however this list will only be aplied to products that pass through the AsXML visitor. In other words if the incoming product contains an XML file the exclusion list will not be applied.

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 points 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: 10 June 1999