[Zope] zope page templates and image tags. tal:attributes:

Russell Uman russ@viz.com
Wed, 1 May 2002 10:14:37 -0700


hi.

i'm trying to call an image and set the attributes of the image tag dynamically.

<span tal:replace="structure container/images/image.gif" tal:attributes="border string:1"></span><br>
<img tal:replace="structure container/images/image.gif" tal:attributes="border string:1"><br>

in each case i get an error:

Error Type: AttributeError
Error Value: Context instance has no attribute 'getCompilerError'

so instead i am building my images like this:

<img src=nothing.gif tal:attributes="src string:images/image.gif; border string:1">

this seems kind of painful to me. can someone explain the error i am receiving and give me a clue about how to do this the right way
in zope? should i give up on page templates and use dtml instead? pointers to useful documentation would be greatly appreciated.
i've read the zope book up and down but clearly i need more fine manuals to read...

thanks!