This is an old favorite for Max and Adam and Tucker.

Tucker has a proposal for how to fix this in the platform:
http://wiki.openlaszlo.org/Attribute_Type_Coercion

On Aug 9, 2006, at 12:30 AM, Robin Sheat wrote:

> I keep running into the problem where I have something like this:
> <attribute name="start" type="number" value="$path{'@start'}"/>
> However, because the data is coming from XML, it doesn't seem to
> actually be a number when I access it like 'object.start', rather  
> it's a
> string. Is it possible to coerce that value into being a number  
> when it
> loads? Something like:
> <attribute name="start" type="number" value="${Number(path 
> {'@start'})"/>
>
> This would save me a lot of time debugging silly little issues every
> time I forget about it :)
>
> Cheers, Robin.
> _______________________________________________
> Laszlo-user mailing list
> [email protected]
> http://www.openlaszlo.org/mailman/listinfo/laszlo-user


_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to