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

classic Classic list List threaded Threaded
2 messages Options
Thomas G. Apostolou Thomas G. Apostolou
Reply | Threaded
Open this post in threaded view
|

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


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
Can anyone help please?



Thomas G. Apostolou
Software Engineer
Θωμάς Γ. Αποστόλου
Μηχανικός Λογισμικού



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Plone-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users
Nikos Papagrigoriou Nikos Papagrigoriou
Reply | Threaded
Open this post in threaded view
|

Re: Pass <dtml-var sequence-item> as parameter to External Method

You cannot add <dtml-var sequence-item> in an expression. Try this:

<dtml-var expr="CharSetConv(_, _['sequence-item'], 'ISO-8859-7', 'UTF-8')">

I have to program in DTML for many years. I am not sure for the result.

On 10/19/05, Thomas G. Apostolou <[hidden email]> wrote:

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
Can anyone help please?



Thomas G. Apostolou
Software Engineer
Θωμάς Γ. Αποστόλου
Μηχανικός Λογισμικού



-------------------------------------------------------
This SF.Net email is sponsored by:
Power Architecture Resource Center: Free content, downloads, discussions,
and more. http://solutions.newsforge.com/ibmarch.tmpl
_______________________________________________
Plone-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/plone-users



--
Nikos Papagrigoriou <[hidden email]>
http://www.papagrigoriou.gr