cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Linczak <>
Subject CInclude and cocoon:/ pseudo-protocol
Date Wed, 25 Aug 2004 17:42:12 GMT

I created a pipeline for a document that grabs one news item out of a 
database.  The actual news content has HTML tags in it that I need to 
have displayed, not escaped.  When using:

<esql:get-string column="news"/>

It escapes everything for you, so that the HTML tags actually display 
on the screen.  So, to combat this, I created a pipeline with an XSLT 
transformer to wrap an <xsl:text 
disable-output-escaping="yes"></xsl:text> around the string of news:

   <map:match pattern="latest_news">
     <map:generate type="serverpages" 
     <map:transform type="xslt" src="xslt/latest.xsl"/>
     <map:serialize type="html"/>

I go the URL 
and the output displays great, not escaping the HTML tags I need.  But, 
when using it in a CInclude in my XSLT file, all of a sudden, it 
ignores the disable-output-escaping portion and escapes the HTML tags 
so that I see them in my web page:

<cinclude:include src="cocoon:/latest_news"/>

Everything else transforms just fine.  Am I missing something as to why 
this would happen?  Does it have to do with the cocoon:/ 
pseudo-protocol that I am using?  Any help would be greatly 
appreciated.  I'm using Cocoon 2.1.5 and Lenya 1.2.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message