xml java xslt tag

GabdipdeattKaw

New Member
I have a java code snippet:\[code\]public static String echo(String a) { System.out.println("HERE I AM:"+a+":"); return "<xxx>" + a + "</xxx>";}\[/code\]called by the below xsl snippet:\[code\]<GOGO> <xsl:variable name="test"> <xsl:copy-of select="responseStatus"/> </xsl:variable> <xsl:copy-of select="javamap:echo($test)"/></GOGO>\[/code\]For some reason if xml is passed to the java method, all the element tags are dropped. on the output side if i try to return xml tags, the < and > would be converted to & lt; and & gt;What is wrong with my snippet and how can it be fixed so it outputs XML?
 
Back
Top