cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From H.vanderLin...@MI.unimaas.nl
Subject RE: Help: XPath to Jexl
Date Thu, 23 Sep 2004 07:38:30 GMT
Hi,

Have you ever tried to debug the code? I know it's a hassle and you have to
pay very close attention to where you are in the document. I've done this a
few times and at least it showed me why it was not working as expected. In
my case it resulted in the discovery of a bug in JXTemplateGenerator.

Bye, Helma


> -----Original Message-----
> From: oceatoon [mailto:t.katelbach@systheo.com] 
> Sent: Tuesday, 21 September, 2004 17:50
> To: users@cocoon.apache.org
> Subject: RE: Help: XPath to Jexl
> 
> 
> Yes offcourse Helma, thousand apologies, I tried to simplify 
> the doc tags 
> so it is "desc" instead of "description" 
> 
> H.vanderLinden@MI.unimaas.nl wrote:
> 
> > Hi,
> > 
> > Maybe I'm stating the perfectly obvious, but
> > 
> >> ******************************************
> >> My doc is like this:
> >> <rooms>
> >> <room><desc maxoc="12">text0</desc></room>
> >> <room><desc maxoc="5"/>text1</desc></room>
> >> <room><desc maxoc="6"/>text2</desc></room>
> >> <room><desc maxoc="9"/>text3</desc></room>
> >> </rooms>
> >> *****************************************
> >> This is in my html_jx page:
> >>  <jx:forEach select="#{rooms/room}"  varStatus="status">
> >>                     
> >>  <jx:macro name="tablerows">
> >>       <jx:parameter name="maxoc"/>
> >>       <jx:forEach begin="0" end="${maxoc}" step="1" 
> >> varStatus="statoc">
> >>             <tr>
> >>             <td><script>${statoc.count}</script></td>
> >>             <td><script>${statoc.count*24}</script></td>
> >>             <td><script>${maxoc}</script></td>
> >>             </tr>
> >>        </jx:forEach>
> >>   </jx:macro>
> >>                    
> >> <table>
> >>     <tbody>
> >>        <tablerows maxoc="${description.getAttribute('maxoc')}"/>
> > 
> > I would assume you need "desc" rather than "description"
> > 
> > 
> > HTH.
> > 
> > Bye, Helma
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message