You have an extra </dtml-if> at the line: <p>No records are returned.</p></dtml-if> You will not all your other opened <dtml-if> have been closed by this point. As such, I'm also not sure what the "<dtml-else>" is an else TO. I thnk what you mean to write is: <dtml-if sequence-end> </tr> <dtml-else> <p>No records are returned.</p> </dtml-if> </dtml-in> Or something like that. J.F. -----Original Message----- From: zope-bounces@zope.org [mailto:zope-bounces@zope.org]On Behalf Of hpinson@indepthl.com Sent: August 27, 2004 4:05 PM To: zope@zope.org Subject: Re: [Zope] Simple DTML question Yes, thanks-- that's exactly what I'm trying to do-- it's the example is the Zope book too I think. I do have the dtml in clause as you suggest (i think), but saving what the book and you suggest results in a syntax error: Here's the code that won't save: <table> <dtml-in SQL_getNames> <dtml-if sequence-start> <tr align="left" valign="top"> </dtml-if> <td height="28" bgcolor="white"> <dtml-var last_name>, <dtml-var first_name> <dtml-var middle_name null=""> </td> <dtml-if sequence-end> </tr> </dtml-if> <dtml-else> <p>No records are returned.</p></dtml-if> </tr> </dtml-in> </table> It seems maybe a closing </dtml-if> should be needed, but none of the examples I've found have that, and adding one does not help the dtml compile. Harlow Pinson Indepth Learning Email: hpinson@indepthl.com Web: http://www.indepthl.com Voice: 505-994-2135 FAX: 208-475-7678 _______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )