Hello Lee <!--#var PUBLIC_Doc--> doesn't change anything, same error. (you are right, I can use the name directly , but I have some other piece of code where I have to use the _[_['']] construction, so it has to work...) But I found something: In my 'PUBLIC_Doc' document I display image with a <!--# var image_name--> tag, my problem disappear if I use <!--#var "image_name"-->, someone can explain this?? Thanks anyway for the replies Gilles -----Original Message----- From: LEE, Kwan Soo <kslee@plaza1.snu.ac.kr> To: Gilles Lavaux <gilles.lavaux@esrin.esa.it>; zope-dev@zope.org <zope-dev@zope.org> Date: Tuesday, July 04, 2000 12:32 PM Subject: Re: [Zope-dev] Help needed: why is this DTML not working in zope 2 ?
Not an answer, but a question.
<b><!--#var id--></b> <!--#if "_['id']=='PUBLIC_Doc'"--> ## <!--#try--> <!--#var "_[_['id']]"--> <!--#except--> You seems to "call" PUBLIC_Doc, then why don't you just <!--#var PUBLIC_Doc--> instead of the <!--#var "_[_['id']]"-->?
LEE Kwan Soo
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )