cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stephan Coboos <cromo...@gmx.net>
Subject Re: Velocity generator throws exception on encountering &nbsp
Date Thu, 08 Jul 2004 18:19:02 GMT
kranga wrote:

>I'm using cocoon 2.1 and I have a Velocity page that I'm trying to serve.
>The page as a non-breaking space &nbsp in it. The exception I get is:
>
> The entity "nbsp" was referenced, but not declared. In generated document:
><html> <head>
>....
>
>
>at
> at
>org.apache.cocoon.generation.VelocityGenerator.generate(VelocityGenerator.ja
>va:1067)
>	at
>org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.processXMLP
>ipeline(AbstractProcessingPipeline.java:581)
>	at
>org.apache.cocoon.components.pipeline.impl.AbstractCachingProcessingPipeline
>.processXMLPipeline(AbstractCachingProcessingPipeline.java:196)
>	at
>org.apache.cocoon.components.pipeline.AbstractProcessingPipeline.process(Abs
>tractProcessingPipeline.java:525)
>	at
>org.apache.cocoon.components.treeprocessor.sitemap.SerializeNode.invoke(Seri
>alizeNode.java:155)
>...
>
>I'm sure I'm not the first to encounter this. Can someone help?
>
>Thanks
>K
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>
Put this on top of your velocity template:

<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
               "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

Regards


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


Mime
View raw message