XSLT calling java embedded with XML

Testing_Loading

New Member
I've got an xsl snippet:\[code\]<GOGO> <xsl:variable name="test"> <xsl:copy-of select="response"/> </xsl:variable> <xsl:copy-of select="javamap:echo($test)"/></GOGO>\[/code\]This snippet calls a java method:\[code\]public static String echo(String a) { System.out.println("HERE I AM:"+a+":"); return "<xxx>" + a + "</xxx>";}\[/code\]If I just have the following snippet:\[code\]<GOGO><xsl:copy-of select="response"/></GOGO>\[/code\]the result transformation will soemthing like:\[code\]<foo>val1</foo><bar>val2</bar>\[/code\]However when the Java method is invoked, the system out output is unexpected only printing out:\[code\]val1val2\[/code\]What am I doing wrong and how do I get java method to output the expected xml snippet?
 
Back
Top