Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

HTML tags inside XML Node

Status
Not open for further replies.

sunila7

Technical User
Apr 11, 2001
1,087
US
I would like to display contents inside an XML Node as HTML i.e if there are HTML tags in the content of XML then I would like to process it and display accrodingly.

For Eg:
Code:
<StoryText>The five-item line, sold under Initial product trial, [b]<b>[/b][COLOR=green]which started in December[/color][b]</b>[/b], has been met with a "favorable reaction," according to Goldman. "It's a new opportunity."
</StoryText>

For above XML snippet after I get the Value from the XML using XSLT, I would like the bold section iside HTML to be processed and have the portion of thesentence in bold. I have marked the portion which should appear as bold in green color so that is easily identifiable.

Is this possible?

Thanks



Sunil
 
Got the solution.. use <xsl:copy-of> instead of <xsl:value-of

Thanks


Sunil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top