How to display CDATA content using XSLT

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
gowni
Forum Newbie
Posts: 7
Joined: Sat Sep 20, 2003 7:14 am
Contact:

How to display CDATA content using XSLT

Post by gowni »

Hi friends,

I need some help. I am unable to show CDATA content using xsl.
In the HTML its showing like this:

<![CDATA[
<BR><BR><CENTER>
</CENTER>

]]>

In the xsl file the code i am using is :
<xsl:variable name="brc" select="tag1/tag2/brochure"/>
<xsl:value-of select="$brc" disable-output-escaping="yes"/>

the brochure tag is a CDATA content.

Thanks in advance
gowni
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Have you tried removing the disable-output-escaping attribute or changing it to no?

Mac
Post Reply