[Zope] Pass <dtml-var sequence-item> as parameter to External Method

Jonathan dev101 at magma.ca
Wed Oct 19 09:25:29 EDT 2005


----- Original Message ----- 
From: "Thomas G. Apostolou" <thomas.info at hol.gr>
> I have an External Method "CharSetConv" that get a
> String_To_Be_Converted, its encoding and the encoding to convert it
> to.
> 
> I call it like this:
> <dtml-in sequence-item>
>        <td><dtml-var expr="CharSetConv(_, 'String_To_Be_Converted',
> 'ISO-8859-7', 'UTF-8')"> </td>
>      </dtml-in>
> but in the place of 'String_To_Be_Converted' i want to pass <dtml-var
> sequence-item>, and i can not find the way to do so.
> i have tried to write it like:
> <dtml-in sequence-item>
>        <td><dtml-var expr="CharSetConv(_, '<dtml-var sequence-item>',
> 'ISO-8859-7', 'UTF-8')"> </td>
>      </dtml-in>
> but does not work

You can't embedded dtml within dtml.  However, this should work:

<dtml-var "CharSetConv(_,_['sequence-item'])">

hth

Jonathan




More information about the Zope mailing list