9 Apr
2005
9 Apr
'05
11:15 a.m.
Antonio Beamud Montero wrote:
How I can create attribute names dynamically? For example, I want something like this: <books ref1="http://boo" ref2="http://foo" ...>
Where ref1 and ref2, are created by the url list. I have done in DTML because I cannot with ZPT.
The easiest way is probably to create the tag in something else (e.g. a Python script) and then just insert it into your output at the relevant point: <books tal:replace="structure here/generateBooksTag" /> A better solution would be to avoid doing this in the first place.