On Mon, 19 Feb 2001 22:15:39 -0500 Donald Braman <donald.braman@yale.edu> wrote:
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 do? Here's the code again (I didn't change it to nice generic names this time).
<!--#in rankingquery--> <tr> <td>Score</td> <td><!--#var citation--><!--#var year--></td> <td><!--#var casenameshort--></td> <td><!--#if expr="currie=='t'"-->Currie<!--#/if></td> <td><!--#if expr="farber=='t'"-->Farber<!--#/if></td> <td><!--#if expr="fisher=='t'"-->Fisher<!--#/if></td> <td><!--#if expr="gunther=='t'"-->Gunther<!--#/if></td> <td><!--#if expr="landmark=='t'"-->Landmark<!--#/if></td> <td><!--#if expr="lockhart=='t'"-->Lockhart<!--#/if></td> <td><!--#if expr="oxford=='t'"-->Oxford<!--#/if></td> <td><!--#if expr="schwartz=='t'"-->Schwartz<!--#/if></td> <td><!--#if expr="stone=='t'"-->Stone<!--#/if></td> </tr> <!--#/in-->
And the error I get this time is:
unexpected end tag, for tag <!--#/if></td> <td><!--#if expr="fisher=='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