How can I embed Java code in XSL? I want to call a Java object from my XSL file. This object will return HTML code. This HTML code will then become part of my XSL before it goes through XSLT. Is this possible or am I asking for too much?
Created May 4, 2012
Davanum Srinivas Yes, it can be done. But is heavily dependent on the XSLT Engine. For example in Xalan (open source XSLT Engine from Apache) you can use Java or JavaScript in your XSL's.