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 &lt; and > to &gt;

Do you know, how can I solve this problem?

Thank you in advance, Kostas.



Reply via email to