xsl-list
[Top] [All Lists]

Replacing HTML in my XML using XSLT

2005-09-15 07:46:24
Hi All,
  In my XSL File,    I am using <xsl:value-of
select="title" /> to get the value of the '<title>'
tag from xml. 
 When the XML has HTML tags in it ('e.g.' <b> Some
Text Here</b>. etc.), I get the HTML tags back as it
is. How do I get rid of these XML tags??? I tried
something like: 
<xsl:value-of
select="translate(atom:title,'&lt;/b&gt;','     ')" />

to replace the <b> or </b>  tags with blanks. This
replaces even the legitimate 'b' values in the text
with blank. How do I look for a specific string  e.g.
"<b>" in XSLT and replace it with another string? This
is urgent.

Thanks,

Dev



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>