Thank you Jason,

Replace <@ASSIGN with <@VAR and you basically have the workaround I had in
mind.

But consider the difference involved in globally search & replacing 10,000+
occurrences in the code with a substitute for METAHTML to @@request$fixEnc
and now having to wrap all those occurrences with an
<@IF>...<@ELSE>...</@IF> statement, when each occurrence has a multitude of
different variable names and scopes?

I'm refreshing my Regular Expression skills now as we speak.

Thanks.

 

> -----Original Message-----
> From: Jason Pamental [mailto:[EMAIL PROTECTED] 
> Sent: Friday, January 13, 2006 11:31 AM
> To: [email protected]
> Subject: Re: Witango-Talk: Am I totally brain dead?
> 
> Scott - why not put the whole string in the variable, like below:
> 
> <@IF EXPR="<@VERSION> beginswith 5.5">
>    <@ASSIGN request$fixEnc VALUE='Encoding=META'>
>   <@ELSE>  <@ASSIGN request$fixEnc VALUE='Encoding=METAHTML'> </@IF>
> 
> <@ASSIGN request$dynamicStuff VALUE="<@LITERALVALUE='<@VERSION>'>">
> 
> <@VAR request$dynamicStuff @@request$fixEnc>
> 
> Haven't tried that yet, but maybe that would do the trick...
> 
> Jason
> 
> -----
> 
> Jason Pamental
> Director of Web Services
> North Sails
> 
> Office: 401.643.1415
> Fax: 401.643.1420
> Mobile: 401.743.4406
> Email: [EMAIL PROTECTED]
> 
> 
> 
> 
> On Jan 13, 2006, at 1:21 PM, Scott Cadillac wrote:
> 
> > Thank you for your feeback Stefan,
> >
> > I appreciate it.
> >
> > I have a workaround in mind, but it's not a simple task :-(
> >
> >
> >
> >> -----Original Message-----
> >> From: Stefan Gonick [mailto:[EMAIL PROTECTED]
> >> Sent: Friday, January 13, 2006 11:11 AM
> >> To: [email protected]
> >> Subject: RE: Witango-Talk: Am I totally brain dead?
> >>
> >> I've had the same problem. It just doesn't seem to work to have a 
> >> variable hold the encoding value.  I'm guessing that it is a bug.
> >>
> >> Stefan
> >>
> >> At 01:05 PM 1/13/2006, you wrote:
> >>> Thank you Bill,
> >>>
> >>> I tried your suggestion, but that doesn't help.
> >>>
> >>> Placing @@request$fixEnc by itself in the sample returns the
> >> value META
> >>> just fine.
> >>>
> >>> The ENCODING attribute is just not accepting it.
> >>>
> >>> Am I crazy, or shouldn't any Metatag attribute accept a
> >> dynamic value?
> >>>
> >>>
> >>>
> >>>> -----Original Message-----
> >>>> From: William M Conlon [mailto:[EMAIL PROTECTED]
> >>>> Sent: Friday, January 13, 2006 10:56 AM
> >>>> To: [email protected]
> >>>> Subject: Re: Witango-Talk: Am I totally brain dead?
> >>>>
> >>>> How about quoting attributes?
> >>>>
> >>>> <@IF EXPR="<@VERSION> beginswith 5.5">
> >>>>   <@ASSIGN SCOPE="request" NAME="fixEnc" VALUE="META"> <@ELSE>
> >>>>   <@ASSIGN SCOPE="request" NAME="fixEnc" VALUE="METAHTML"> </@IF>
> >>>>
> >>>> On Jan 13, 2006, at 9:48 AM, Scott Cadillac 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: [email protected]
> >>>>>> 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
> >>>>
> >>>> 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
> >>
> >> =====================================================
> >> Database WebWorks: Dynamic web sites through database integration 
> >> http://www.DatabaseWebWorks.com
> >>
> >>
> >> ______________________________________________________________
> >> __________
> >> TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> >>
> >
> >
> > 
> ______________________________________________________________________
> > __
> > TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf
> >
> > Visit us at http://www.northsails.com
> >
> > [This E-mail scanned for viruses by Declude Virus]
> 
> 
> Visit us at http://www.northsails.com
> 
> [This E-mail scanned for viruses by Declude Virus]
> 
> ______________________________________________________________
> __________
> 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