[Zope] Simple DTML question

hpinson at indepthl.com hpinson at indepthl.com
Fri Aug 27 16:04:50 EDT 2004


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 at indepthl.com 
Web: http://www.indepthl.com
Voice: 505-994-2135
FAX: 208-475-7678



More information about the Zope mailing list