Tech Jigyasu
2005-09-15 14:46:24 UTC
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,'</b>',' ')" />
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-***@lists.mulberrytech.com>
--~--
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,'</b>',' ')" />
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-***@lists.mulberrytech.com>
--~--