cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Deininger (JIRA)" <j...@apache.org>
Subject [jira] Created: (COCOON-1657) VelocityGenerator: error when sending string containing ampersand
Date Mon, 24 Oct 2005 12:40:55 GMT
VelocityGenerator: error when sending string containing ampersand
-----------------------------------------------------------------

         Key: COCOON-1657
         URL: http://issues.apache.org/jira/browse/COCOON-1657
     Project: Cocoon
        Type: Bug
  Components: * Cocoon Core  
    Versions: 2.1.7    
    Reporter: Andreas Deininger


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


Mime
View raw message