[Zope] <dtml-var> html_quote

Chien-pin Wang cpw@suprize.com
Thu, 16 Mar 2000 14:18:58 +0800


Hi,

    Suppose the following folder/Obj structure:

		Zope Root
		    - test
                        showImage     (DTML Document)
		        - image
			    testImage (image object)
		    - test2
                        testProgram   (DTML Document)

    showImage contains one line of code:
       <A HREF="test"><dtml-var "image.testImage"></A> 
    that shows the testImage properly alone. But if I put
    <dtml-var "test.showImage"> in testProgram (in test2),
    I got all "<" as "&lt;" and the ugly code like the
    following was returned intead of the image with link.

&lt;A HREF=&quot;test.html&quot;&gt;&lt;dtml-var
&quot;testImg&quot;&gt;&lt;/A&gt;

    I have tried the following but none works out:
	- Use DTML Method instead of DTML Document to hold
	  showImage
	- Use "/" instead of "." to point to objects
	- Use single quote or no quote instead of double quotes

    Please advise the proper way to resolve this annoying issue.
    Thanks a lot!

Chien-pin