Kostas, what about using <xsl:value-of disable-output-escaping="yes" select="results:getJavaCode()"/>
rather than <xsl:copy-of select="results:getJavaCode()"/> (note that xsl:value-of has this attribute to disable escaping, but not your xsl:copy-of) See section 16.4 of the XSLT 1.0 recommendation, at http://www.w3.org/TR/xslt#disable-output-escaping - Brian - - - - - - - - - - - - - - - - - - - - Brian Minchau XSLT Development, IBM Toronto e-mail: [EMAIL PROTECTED] "You want it today? Sorry, I thought tomorrow would be yesterday and I still had more time." - My daughter Jennifer Kostas Karadamoglou <[EMAIL PROTECTED] To ahoo.gr> [EMAIL PROTECTED] Sent by: news cc <[EMAIL PROTECTED] rg> Subject Problem: extension function returns a string with html tags but I can 04/07/2005 03:16 view them in the browser PM Hi all, I am new to xalan and xslt extension. I have figured out how to call extension functions with java but I have a minor problem. The java method (function) returns a string with html tags. So I call it using xsl:copy-of like that: <xsl:template match="code"> <ol> <p> <i> <xsl:choose> <xsl:when test="@lang='java'"> <xsl:copy-of select="results:getJavaCode()"/> </xsl:when> <xsl:when test="@lang='xml'"> <xsl:copy-of select="results:getXMLScript()"/> </xsl:when> </xsl:choose> </i> </p> </ol> </xsl:template> The problem is that even using xsl:copy-of I can view the html tags in the browser. The source of the generated html transforms < to < and > to > Do you know, how can I solve this problem? Thank you in advance, Kostas.
