cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shai200 <shai...@gmail.com>
Subject Character escaping problem with custom generator
Date Sun, 30 Mar 2008 07:39:42 GMT

I have a custom generator with a generate() method that looks like this:
public void generate() throws IOException, SAXException, ProcessingException
{
		
		contentHandler.startDocument();
			contentHandler.startElement("", "content", "content", emptyAttr);
				contentHandler.characters(xhtml_output.toCharArray(), 0,
xhtml_output.length());
			contentHandler.endElement("","content","content");
		contentHandler.endDocument();
	}

where xhtml_output is some html code. 

My sitemap entry looks like this:

<map:match pattern="xmlaction">
	 <map:generate type="skunk" />
	<map:serialize type="xml"/>
</map:match>

The problem is that this returns HTML code with escaped characters ( i.e. &
lt;  and & gt; instead of < and >, etc.)

How do I fix this?
-- 
View this message in context: http://www.nabble.com/Character-escaping-problem-with-custom-generator-tp16379318p16379318.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message