You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Daniele Madama (JIRA)" <ji...@apache.org> on 2006/10/02 15:34:22 UTC
[jira] Commented: (COCOON-905) JXTemplate evaluates expressions in
comments, need jx:comment?
[ http://issues.apache.org/jira/browse/COCOON-905?page=comments#action_12439140 ]
Daniele Madama commented on COCOON-905:
---------------------------------------
I think this was related with bug #1866, so this can be closed or reported as duplicate.
> JXTemplate evaluates expressions in comments, need jx:comment?
> --------------------------------------------------------------
>
> Key: COCOON-905
> URL: http://issues.apache.org/jira/browse/COCOON-905
> Project: Cocoon
> Issue Type: Bug
> Components: - Components: Sitemap
> Affects Versions: 2.1.8
> Environment: Operating System: All
> Platform: PC
> Reporter: Mariusz Sieraczkiewicz
> Assigned To: Cocoon Developers Team
>
> The code like this
> <jx:forEach select="#{queryWrapper/data}">
> <p>
> <jx:out value="#{.}" />
> <!--
> <jx:out value="#{.[4]}" />
> -->
> </p>
> </jx:forEach>
> throws
> Original Exception: org.apache.commons.jxpath.JXPathException: No value for
> xpath: .[4]
> at org.apache.cocoon.generation.JXTemplateGenerator.
> characters(JXTemplateGenerator.java:2820) at
> org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.
> java:3495) at
> org.apache.cocoon.generation.JXTemplateGenerator.execute(JXTemplateGenerator.
> java:3179) at
> org.apache.cocoon.generation.JXTemplateGenerator.generate(JXTemplateGenerator.
> java:2790)
> what means that commented out part of code is evaluated.
--
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