This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Using HTML tags
- From: Alessio Mazzieri <mazzieri at umbrars dot com>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Tue, 27 Nov 2001 15:01:28 +0100
- Subject: [xsl] Using HTML tags
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi to all. This time a "non-stupid" question...
I've an XML document like this
<?xml version="1.0" encoding="ISO-8859-1"?>
<items>
<object>
<name>Object name</name>
<description>Some description</description>
</object>
.
.
.
</items>
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 <b>description</b></description>
No problem. But, during the XSL transformation that produce HTML
document, the "<b>" and "</b>" 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 <b>description</b>
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