Web Design and Development Forums

Render HTML inside CDATA with XSL

This is a discussion on "Render HTML inside CDATA with XSL" within the XML, RSS & Atom section. This forum, and the thread "Render HTML inside CDATA with XSL are both part of the Program Your Website category.


Go Back   Webforumz.com > Program Your Website > XML, RSS & Atom

Welcome to Webforumz.com.
Register Now Register now!

Reply
 
LinkBack Thread Tools Rate Thread
Old Sep 10th, 2006, 16:19   #1 (permalink)
New Member
 
Join Date: Sep 2006
Location: Fr
Posts: 1
Question Render HTML inside CDATA with XSL

Hi, I'm trying to style my Atom 1.0 feed with XSL.
I need to use <![cdata[...]]> to prevent special characters to create a parse error.
But then HTML tags inside <![cdata[...]]> aren't recognized by any browser.

That's the part of my Atom 1.0 feed :
Code: Select all
<summary type="xhtml">
<![cdata[
<div xmlns="http://www.w3.org/1999/xhtml">
my content
</div>
]]>
</summary>
and I get :
Code: Select all
<div xmlns="http://www.w3.org/1999/xhtml">
my content
</div>
instead of :
Code: Select all
my content
Using <xsl:value-of select="atom:summary"/>
I tried several ways to get it work, but none did :

method="text"
cdata-section-elements="atom:summary"
disable-output-escaping="yes"
<summary type="xhtml"><![cdata[<div xmlns="http://www.w3.org/1999/xhtml">my content</div>]]></summary>

I took example on my feedburner feed.
Their BrowserFriendly feature (which is just an XSL in fact) works fine on my feed,
but once I copy locally my feedburner feed (the XML file) and try to view it still using their XSL, it's broken, HTML tags aren't recognized.
zweb is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
render, html, inside, cdata, xsl

Thread Tools
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Media player inside HTML. McAurthur19 HTML Forum 6 Feb 18th, 2007 14:09
Media player inside HTML. sannbe Introduce Yourself 5 Feb 15th, 2007 21:52
Video playlist inside the HTML page. McAurthur19 HTML Forum 1 Feb 11th, 2007 19:38
Render html with php Perad PHP Forum 11 Dec 15th, 2006 10:11
HTML inside of flash..... courtjester Flash & Multimedia Forum 12 Mar 30th, 2004 12:24



Latest Updates

All Points SEO Security Advisory - CHECK YOUR SITE NOW!

Creative Coding :: February 2008

Webforumz is sponsored by: WESH UK Web Hosting
All times are GMT. The time now is 16:27.

Sleep Study Scoring :: Free Bet :: Website Templates :: Online Betting :: Bookmakers :: Funny Quotes :: Internet Recruitment Software :: Microsoft CRM Experts :: Online Casino :: Decorated Christmas Trees :: Midwife Forums :: Football Betting :: Ecommerce Software :: Web Hosting :: Football Stats :: Dry Cleaning Collection :: xtreme wales - extreme clothing :: Apuestas :: Sharepoint Consultants :: Website Optimisation :: Office Clearance London :: Sharepoint Experts :: Sports Betting :: Casino :: Website Templates :: Web Design Development India :: Online Gambling

Powered by: vBulletin Version 3.7, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
© 2003-2008 Webforumz.com : All Rights Reserved
Search Engine Friendly URLs by vBSEO 3.2.0 RC6


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59