You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Jörg Heinicke (JIRA)" <ji...@apache.org> on 2005/11/10 13:21:03 UTC

[jira] Zugewiesen: (COCOON-1657) VelocityGenerator: error when sending string containing ampersand

     [ http://issues.apache.org/jira/browse/COCOON-1657?page=all ]

Jörg Heinicke reassigned COCOON-1657:
-------------------------------------

    Assign To: Cocoon Developers Team

> VelocityGenerator: error when sending string containing ampersand
> -----------------------------------------------------------------
>
>          Key: COCOON-1657
>          URL: http://issues.apache.org/jira/browse/COCOON-1657
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Velocity
>     Versions: 2.1.7
>     Reporter: Andreas Deininger
>     Assignee: Cocoon Developers Team

>
> Take this flowscript:
>  function velotest() {
>     cocoon.sendPage("abstract.vm", { "test" : "vm&vm" } );
>   }
> With abstract.vm being an velocity template processed by the Velocity Generator:
> <?xml version ?>
> <data>$test</data>
> You receive the following error, due to the occurence of the
> ampersand-sign in the "vm&vm" string::
> An Error Occurred: The reference to entity "vm" must end with the ';' delimiter.
> This seems to be due to the fact that the sent value is not escaped, i.e. & remains & and does not get converted to &amp; in the resulting XML.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira