[Zope] Strange CSS inclusion BUG

Li Dongfeng mavip1@inet.polyu.edu.hk
Tue, 19 Sep 2000 17:53:49 +0800


To use CSS file, I put the following line in the head of HTML files:

    <dtml-if local_css>
    <link href="<dtml-var "local_css.absolute_url()">"
          rel="stylesheet" type="text/css">
    </dtml-if>

Where "local_css" is a DTML document containing CSS style sheet.
But the DTML generates the following error message:

    Error Type: AttributeError
    Error Value: 'string' object has no attribute 'absolute_url'

If I strip the <dtml-if  protection, the code works OK.
Why is the DTML document local_css changed into a string 
after <dtml-if>?