Re[: [Zope] simple question...more problems

John Morton John Morton <jwm@plain.co.nz>
Tue, 20 Feb 2001 16:36:23 +1300 (NZDT)


On Mon, 19 Feb 2001 22:15:39 -0500 Donald Braman <donald.braman@yale.edu> w=
rote:

> With Tim's advice, I can get it to work for a single if expression, I can=
't
> get it to work for more than one...and I need NINE! Any idea what I can d=
o?
> Here's the code again (I didn't change it to nice generic names this time=
).
>=20
> =09<!--#in rankingquery-->
> =09<tr>
> =09=09<td>Score</td>
> =09=09<td><!--#var citation--><!--#var year--></td>
> =09=09<td><!--#var casenameshort--></td>
> =09=09<td><!--#if expr=3D"currie=3D=3D't'"-->Currie<!--#/if></td>
> =09=09<td><!--#if expr=3D"farber=3D=3D't'"-->Farber<!--#/if></td>
> =09=09<td><!--#if expr=3D"fisher=3D=3D't'"-->Fisher<!--#/if></td>
> =09=09<td><!--#if expr=3D"gunther=3D=3D't'"-->Gunther<!--#/if></td>
> =09=09<td><!--#if expr=3D"landmark=3D=3D't'"-->Landmark<!--#/if></td>
> =09=09<td><!--#if expr=3D"lockhart=3D=3D't'"-->Lockhart<!--#/if></td>
> =09=09<td><!--#if expr=3D"oxford=3D=3D't'"-->Oxford<!--#/if></td>
> =09=09<td><!--#if expr=3D"schwartz=3D=3D't'"-->Schwartz<!--#/if></td>
> =09=09<td><!--#if expr=3D"stone=3D=3D't'"-->Stone<!--#/if></td>
> =09</tr>
> =09<!--#/in-->
=20
> And the error I get this time is:
>=20
>=20
> unexpected end tag, for tag <!--#/if></td> <td><!--#if
> expr=3D"fisher=3D=3D't'"-->, on line 83 of index_html

Transform your closing dtml tags to the form <!--#/if--> or better yet,
ditch the ugly html comment form entirely and go for <dtml-if> </dtml-if>.

You might like to give Shane Hathaway's ZDebug product a go, as well, as
it makes DTML error diagnosis much easier.

http://www.zope.org/Members/hathawsh/ZDebug

John