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

Replacing HTML in my XML using XSLT

Subject: Replacing HTML in my XML using XSLT
From: Tech Jigyasu <techjigyasu@xxxxxxxxx>
Date: Thu, 15 Sep 2005 07:46:24 -0700 (PDT)
xslt replace html
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 

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.