[xsl] Using HTML tags

Subject: [xsl] Using HTML tags
From: Alessio Mazzieri <mazzieri@xxxxxxxxxxx>
Date: Tue, 27 Nov 2001 15:01:28 +0100
Hi to all. This time a "non-stupid" question...
I've an XML document like this

<?xml version="1.0" encoding="ISO-8859-1"?>
    <name>Object name</name>
    <description>Some description</description>

Then, using XSP (and specifically FP-TAGLIB), I update the items.
When typing something like "Some <b>description</b>" into the description node, the FP-TAGLIB <fp:write> encode the previous string as

<description>Some &lt;b&gt;description&lt;/b&gt;</description>

No problem. But, during the XSL transformation that produce HTML document, the "&lt;b&gt;" and "&lt;/b&gt;" is not traslated, so the HTML
output is "Some <b>description</b>" (without "description" in bold - as I want), because the generated HTML code is:

Some &lt;b&gt;description&lt;/b&gt;

How can I translate the text node to produce this output:

Some <b>description</b>

I can't use <xsl:copy-of select="."/> because the <description> node doesn't contains a tree fragment, just a simple text.
Any suggestion?

Thanks, Alessio.

XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list

Current Thread