I use custom tags all the time in other tags, so I think you should be okay.... but read on...

I first noticed the problem when I used a custom tag in an "If" action... And then later inside of an expr attribute of an @if tag... which if you think about it is basically the same thing, so Right now i'm guessing that the problem is with any "expression" in witango. I'll try to put together a test case for this at the begining of next week... and submit it to te list and to Witango's bug reporting system.

/John

Bill Conlon wrote:

John,

Did you get any resolution on this?

I would like to make a custom tag to treat arrays as hashes (associative arrays in Perl & PHP). This would simplify the repeated use of

<@ASSIGN NAME="desired_row" VALUE="<@FILTER ARRAY="array" EXPR="#col='expr'">">
@@desired_row[1,column]

to

<@HASHREF KEY="expr" [ARRAY="array"] [KEYCOL="col"] COL="column">

But for this to be worthwhile, my result needs to be usable in other metatags.


On Thursday, June 23, 2005, at 07:54  AM, John McGowan wrote:

So... Are there known issues with using Custom Tags in expressions. (ie, "If" Actions, expr="" attributes etc...) because It's not something we've ever really done before, and now that I'm testing out a couple of new custom tags that i will be doing that sort of thing with i'm seeing some very strange behaviour. Like "LEN(<@mycustomtag>)" where <@mycustomtag> returns an empty string, LEN is returning "56" obviously wronge, If I assign the output of the custom tag to a var and do a len on the var it returns 0 like it should...

Just wanted to know if these issues were know about by anybody else or if they are new and I should submit bug reports.

/John
_______________________________________________________________________ _
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf


________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to