cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@wlkp.org>
Subject Re: cvs commit: cocoon-2.1/src/java/org/apache/cocoon/generation JXTemplateGenerator.java
Date Sun, 25 Apr 2004 11:43:51 GMT
On Sun, Apr 25, 2004 at 12:52:34PM +0200, Ugo Cei wrote:
> Il giorno 24/apr/04, alle 23:35, coliver@apache.org ha scritto:
> 
> >coliver     2004/04/24 14:35:35
> >
> >  Modified:    src/java/org/apache/cocoon/generation
> >                        JXTemplateGenerator.java
> >  Log:
> >  Allow a nodeset to be returned as the result of xpath evaluation
> 
> Before this change, I had a template which contained something like the 
> following:
> 
> <jx:forEach select="#{/docs}">
>   #{.}
> </jx:forEach>
> 
> where "docs" was passed from flowscript as an array of DOM objects. The 
> template serialized all the DOMs. Now, it does not work anymore. After 
> a few trials and errors, I was able to make it work again by changing 
> it to:
> 
> <jx:forEach select="#{/docs}">
>   #{*}
> </jx:forEach>
What about simple <content>#{/docs}</content>?
	lg
-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


Mime
View raw message