I don't think the variable ecoding is the problem because i've been playing with the following code (you might have to change the values in the for loops if you have a slower or faster computer) and even making the encoding a "hard coded" metahtml, the 2nd timestamp is earlier than the first (atleast on
5.0):
<@ASSIGN request$dynamicStuff VALUE="<@LITERAL VALUE='<@currenttime>'>">
<@ASSIGN request$dynamicStuff VALUE="<@currenttimestamp>">
<@for start=1 stop=100>
<@for start=1 stop=10000>
</@for>
</@for>
time = <@currenttimestamp>
<@for start=1 stop=100>
<@for start=1 stop=10000>
</@for>
</@for>
<br>
time 2 = <@VAR request$dynamicStuff ENCODING="@@request$fixEnc">
On 1/13/06, Scott Cadillac <[EMAIL PROTECTED]> wrote:
Thank you Alan,If you remove the <@LITERAL>, then the <@ASSIGN> metatag evaluates the <@VERSION> metatag and returns the expected value, whereas I need it evaluated on the <@VAR> call.The reason my sample is like this because we have database records containing raw Metatags, and so they are not evaluated until the <@VAR .... ENCODING=META> call. Using <@LITERAL> emulates this behavior.Thank you anyway.
From: Alan Wolfe [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 13, 2006 11:08 AM
To: witango-talk@witango.com
Subject: Re: Witango-Talk: Am I totally brain dead?
Something i noticed playign around with things is that this:<@format str="<@literal value='<@version>'>" encoding="@@request$fixenc">will output "<@version>" but if you take off the <@literal> it seems to work like it should (:
On 1/13/06, Scott Cadillac <[EMAIL PROTECTED]> wrote:Thank you Bill,
But that part works okay. It's the dynamic setting of the ENCODING attribute
that is the problem.
The ENCODING attribute does not want to accept a dynamic variable value, and
in the case of my example the <@VERSION> metatag is not evaluating - it's
returning the raw text of <@VERSION>, not executing the metatags.
The ENCODING is defaulting to NONE on 5.5, not the META value I'm trying to
set.
By the way, I've already tried searching the List archive on this, but no
luck.
Thanks.
> -----Original Message-----
> From: William M Conlon [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 13, 2006 10:43 AM
> To: witango-talk@witango.com
> Subject: Re: Witango-Talk: Am I totally brain dead?
>
> Try quoting ' 5.5' I'm betting 5.5 is getting cast as a number.
> On Jan 13, 2006, at 9:34 AM, Scott Cadillac wrote:
>
> > Hi All,
> >
> > I know I said I wouldn't do it again, but I couldn't help
> myself - it
> > felt sooo gooood!
> >
> > I'm writing Witango code again, but I'll leave you guessing who I'm
> > working for :-)
> >
> > Why doesn't the following work? Witango 5.0 or 5.5 on Windows.
> >
> > <@IF EXPR="<@VERSION> beginswith 5.5"> <@ASSIGN request$fixEnc
> > VALUE=META> <@ELSE> <@ASSIGN request$fixEnc VALUE=METAHTML> </@IF>
> >
> > <@ASSIGN request$dynamicStuff VALUE="<@LITERAL VALUE='<@VERSION>'>">
> >
> > <@VAR request$dynamicStuff ENCODING=@@request$fixEnc>
> >
> > Has it just been so long since writing Witango code for me, that I
> > can't remember some basic principle here?
> >
> > Shouldn't I be able to dynamically set any attribute value for a
> > Metatag?
> >
> > Thank you for any feedback.
> >
> >> From ~ Scott Cadillac,
> > Software Programmer For Hire
> >
> > Email ~ [EMAIL PROTECTED]
> > Phone ~ 403-254-5002
> > Web ~ http://www.xmlx.ca
> >
> > Mail ~ XML-Extranet
> > P.O. Box 69006
> > RPO Bridlewood SW
> > Calgary, Alberta
> > Canada T2Y 4T9
> >
> >
> >
> ______________________________________________________________________
> > __
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
>
> Bill
>
> William M. Conlon, P.E., Ph.D.
> To the Point
> 345 California Avenue Suite 2
> Palo Alto, CA 94306
> vox: 650.327.2175 (direct)
> fax: 650.329.8335
> mobile: 650.906.9929
> e-mail: mailto:[EMAIL PROTECTED]
> web: http://www.tothept.com
>
> ______________________________________________________________
> __________
> 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________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
________________________________________________________________________ TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf