[Zope] Nesting <dtml-in>
David S. Harrison
dsh@magma-da.com
Fri, 05 Nov 1999 14:54:54 -0800
Is it possible to nest <dtml-in> constructs such that the inner
structure still has access to the data in the outer structure?
My reading of the DTML guide seems to indicate that the answer
is no. It appears that the name of the item for iteration
is "sequence-item" at all levels.
Is there a better way to handle two dimensional data using
<dtml-in>? The guide seems to imply that it is possible
for the <dtml-in> construct to set up a name for each value
in a column. But nothing is said about how this can be arranged.
I am calling an external method to get the data. I thought
I might be able to return a table from this method and then
access the value using <dtml-var> by suppling key names.
That doesn't work. I suppose I could try using an expr
clause in <dtml-var>. But I get the feeling that there
is a more obvious way that I haven't discovered in the
documentation.
David S. Harrison
(dsh@magma-da.com)