Java Functions in BPEL XSL


                                       

 Even though we have umpteen XSL inbuilt functions we can also use the java functions in transformations. To avail java functions in xsl we must provide the namespace

xmlns:stringFun="http://www.oracle.com/XSL/Transform/java/java.lang.String"
                 xmlns:systemFun="http://www.oracle.com/XSL/Transform/java/java.lang.System"

xmlns:dateFun=http://www.oracle.com/XSL/Transform/java/java.util.Date




In transformation we are using the java functions as shown below

Here we are creating new Date object and using toString() function to convert date object to String.Result after deploying the project



No comments:

Post a Comment