[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Using HTML tags

Subject: Using HTML tags
From: Alessio Mazzieri <mazzieri@xxxxxxxxxxx>
Date: Tue, 27 Nov 2001 15:01:28 +0100
using html taglib
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 &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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.