[Zope] DTML Question on lines

Dieter Maurer dieter@handshake.de
Fri, 8 Sep 2000 22:45:12 +0200 (CEST)

Tim Cook writes:
 > "Coleman, Bryan" wrote:
 > > I am trying to itterate through a lines ....
 > <SELECT name="mySelection">
 > <dtml-in valid_codes>
 >      <option value="<dtml-var sequence-item>"> <dtml-var sequence-item>
 > &nbsp; </option>
In some cases, "html_quote" will be necessary, or a dtml-entity
reference (which automatically does "html_quote") like this:
        <option value="<dtml-var sequence-item html_quote>"> <dtml-var sequence-item>
        <option value="&dtml-sequence-item;"> <dtml-var sequence-item>

As a general rule, use a dtml entity reference, when a variable
is used in a HTML attribute.