XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 7th, 2003, 01:54 PM
areved areved is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Phoenix, Arizona
Posts: 3 areved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
xsl: render html tags within xml

hello,

i'm trying to render html tags that are inside xml nodes with xsl

example xml:
<blah>this is my node. <i>this is italics</i> this is <b>bold</b></blah>


so when i use:
<xsl:value-of select="."/> to pull the info from the <blah> node, the html is "ignored"

i've tried:
<xsl:output method="html" version="4.0" encoding="iso-8859-1" indent="yes"/>

at the start of the xslt file, but no use

i've also tried using cdata like so
<blah><![CDATA[this is my node. <i>this is italics</i> this is <b>bold</b>]]></blah>

but no use either, instead the "html tags" are displayed in the output on the web page so instead of italizing the text, i would see <i>this is italics</i> in IE

if anyone can help, please do

Reply With Quote
  #2  
Old July 7th, 2003, 03:19 PM
areved areved is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Location: Phoenix, Arizona
Posts: 3 areved User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
well, i guess i found the answer myself:

<xsl:value-of select="." disable-output-escaping="yes" />

althought this will only take affect on this <xsl:value of... />

also, for this to work, the text must be surrounded by <![CDATA[ ... ]]>
would anyone know of a way to apply disable-output-escaping="yes" throught the entire document?

Last edited by areved : July 7th, 2003 at 03:23 PM.

Reply With Quote
  #3  
Old September 6th, 2008, 09:21 PM
brianjburdan brianjburdan is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Sep 2008
Posts: 1 brianjburdan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 m 4 sec
Reputation Power: 0
Solution Found

I found that if you use:

<xsl:copy-of select="."/>

it works.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > xsl: render html tags within xml

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap