[EMAIL PROTECTED] wrote:
> 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:[EMAIL PROTECTED]
>> Sent: Tuesday, 21 September, 2004 17:50
>> To: [EMAIL PROTECTED]
>> 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"
Thanks Helma
This was the answer, I was afraid of ;)
but I guess it was bound to happen some day
haven't done this yet, so I'm off
Cheers
Tibor
>>
>> [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]