Problem in Notes Java Agent when converting from XML to HTML using XSL

Hi,

I am trying to get an HTML output by converting a XML file using a XSL file.

When I use java agent and use :

.

.

.

XSLProcessor xp = new XSLProcessor(new XMLParserLiaisonDefault());

XSLTInputSource xmlSource = new XSLTInputSource(xmlFilename);

XSLTInputSource xslSheet = new XSLTInputSource(xslFilename);

XSLTResultTarget result = new XSLTResultTarget(htmlFilename);

xp.process(xmlSource, xslSheet, result);

.

.

.

The conversion does not happen correctly. I am using “count” function in the XSL which does not seem to work.

If I write a Lotus Script agent with the new classes of R6, the conversion works just fine.

The XML and XSL are correct because I have verified it by opening the XML in Internet Explorer and let IE do the conversions.

Does anyone know if there is some problem with the java xml-xsl conversions or if there is an alternative that I can use in my java code

Any help is greatly appreciated.

Thank You

Regards,

Bharat Kothari

Subject: Problem in Notes Java Agent when converting from XML to HTML using XSL

Please note the correction to the code snippet :

.

.

.

XSLProcessor xp = new XSLProcessor(new XML4JLiaison4dom());

.

.

.

Regards,

Bharat kothari