Does anyone know of any issue with using parameters in XSL template functions and the LotusXSL processor ?
It seems that the parameters passed to an XSL template functions cannot be used for any purpose other than for displaying when you
you use the java LotusXSL Processor to convert XML to HTML using XSL
e.g., if you want to use the passed parameter for the <xsl:for-each select=…> or for some comparison in the “count” function, it will not work. If you hard code the value in place of the parameter it works fine.
This problem occurs only in tha java Lotus XSL processor. Code snippet that I am using :
.
.
.
XSLProcessor xp = new XSLProcessor(new XML4JLiaison4dom());
XSLTInputSource xmlSource = new XSLTInputSource(Filename + “.xml”);
XSLTInputSource xslSheet = new XSLTInputSource(Filename + “.xsl”);
XSLTResultTarget result = new XSLTResultTarget(Filename + “.html”);
xp.process(xmlSource, xslSheet, result);
.
.
.
I have also tried adding the XML and XSL to a richtext field inside a Notes document and using the java Item.transformXML(…) function. Even this function does not work.
If you use the new LotusScript NotesXSLTransformer it seems to work fine without any problems
Any help or workaround for the java solution is greatly appreciated.
Thank You
Regards,
Bharat Kothari