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

Leszek Gawron reassigned COCOON-1737:
-------------------------------------

    Assign To: Leszek Gawron

> JXTemplate Generater: set var problem
> -------------------------------------
>
>          Key: COCOON-1737
>          URL: http://issues.apache.org/jira/browse/COCOON-1737
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Templating
>     Versions: 2.1.9-dev (current SVN)
>     Reporter: Werner Masik
>     Assignee: Leszek Gawron
>     Priority: Minor

>
> It looks to me like something is wrong with <jx:set var="" > . AFAIK set var 
> just is a alias and can be used like any other variable in the template. But 
> it is not possible to use it in a attribute value.
> example:
> <jx:set var="testvar" value="hello" />
> <somexml    myattr="${testvar}" />
> leads to something like:
> <somexml    myattr="[Lorg.w3c.dom.Node;@1abcd5e" />
> Obviously not the content of the variable is returned, but the reference to 
> the DOM-node. It works normal if it is used within the body.
> This problem might be related to 
> https://issues.apache.org/jira/browse/COCOON-1417

-- 
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