xxforms:format with xxforms:output/@value

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

xxforms:format with xxforms:output/@value

Ryan Puddephatt
Hi,
    I have a calculated value "one div another" with a format-number(.,'#.###') but it isn't being applied. When I put "format-number(one div another,'#.###')" in the @value it works fine. Is this a feature or a bug?
 
Thanks
 
Ryan

Ryan Puddephatt
Software Engineer
 

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP
 
e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108
w> www.teleflex.com

 


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:format with xxforms:output/@value

Erik Bruchez
Administrator
Ryan,

I assume you are using the @xxforms:format attribute?

I guess it sort of is a feature, as @xxforms:format was put in place to
allow formatting output without modifying the value in the instance, so
it was designed to work with @ref and not @value.

Now I could be convinced that it should work with @value as well ;-)

-Erik

Ryan Puddephatt wrote:

> Hi,
>     I have a calculated value "one div another" with a
> format-number(.,'#.###') but it isn't being applied. When I put
> "format-number(one div another,'#.###')" in the @value it works fine. Is
> this a feature or a bug?
>  
> Thanks
>  
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>  
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>  
> e> [hidden email] <mailto:[hidden email]>
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
> w> www.teleflex.com <http://www.teleflex.com/>
>
>  

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

RE: xxforms:format with xxforms:output/@value

Ryan Puddephatt
Erik,
        I guess it would make sense to, and I can't see what harm it would
do? Although you can achieve it the same way I have so I guess this is a low
priority one!

Ryan

Ryan Puddephatt
Software Engineer

Teleflex Group - IT UK
1 Michaelson Square
Livingston
West Lothian
Scotland
EH54 7DP

e> [hidden email]
t> +44(0)1506 407 110
f> +44(0)1506 407 108

 

>-----Original Message-----
>From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>Erik Bruchez
>Sent: 04 January 2007 21:09
>To: [hidden email]
>Subject: Re: [ops-users] xxforms:format with xxforms:output/@value
>
>Ryan,
>
>I assume you are using the @xxforms:format attribute?
>
>I guess it sort of is a feature, as @xxforms:format was put in
>place to allow formatting output without modifying the value
>in the instance, so it was designed to work with @ref and not @value.
>
>Now I could be convinced that it should work with @value as well ;-)
>
>-Erik
>
>Ryan Puddephatt wrote:
>> Hi,
>>     I have a calculated value "one div another" with a
>> format-number(.,'#.###') but it isn't being applied. When I put
>> "format-number(one div another,'#.###')" in the @value it
>works fine.
>> Is this a feature or a bug?
>>  
>> Thanks
>>  
>> Ryan
>>
>> Ryan Puddephatt
>> Software Engineer
>>  
>>
>> Teleflex Group - IT UK
>> 1 Michaelson Square
>> Livingston
>> West Lothian
>> Scotland
>> EH54 7DP
>>  
>> e> [hidden email] <mailto:[hidden email]>
>> t> +44(0)1506 407 110
>> f> +44(0)1506 407 108
>> w> www.teleflex.com <http://www.teleflex.com/>
>>
>>  
>
>
>--
>Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>http://www.orbeon.com/
>
>



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:format with xxforms:output/@value

Erik Bruchez
Administrator
Ryan,

Thinking a little more about it, this made sense for @ref, because then
we can evaluate xxforms:format in the context of the single-node binding.

If you no longer have a single-node binding, how does xxforms:format
access the value computed by @value? It doesn't work anymore. So I think
it is in fact reasonable to disallow that.

-Erik

Ryan Puddephatt wrote:

> Erik,
> I guess it would make sense to, and I can't see what harm it would
> do? Although you can achieve it the same way I have so I guess this is a low
> priority one!
>
> Ryan
>
> Ryan Puddephatt
> Software Engineer
>
> Teleflex Group - IT UK
> 1 Michaelson Square
> Livingston
> West Lothian
> Scotland
> EH54 7DP
>
> e> [hidden email]
> t> +44(0)1506 407 110
> f> +44(0)1506 407 108
>
>  
>
>> -----Original Message-----
>> From: Erik Bruchez [mailto:[hidden email]] On Behalf Of
>> Erik Bruchez
>> Sent: 04 January 2007 21:09
>> To: [hidden email]
>> Subject: Re: [ops-users] xxforms:format with xxforms:output/@value
>>
>> Ryan,
>>
>> I assume you are using the @xxforms:format attribute?
>>
>> I guess it sort of is a feature, as @xxforms:format was put in
>> place to allow formatting output without modifying the value
>> in the instance, so it was designed to work with @ref and not @value.
>>
>> Now I could be convinced that it should work with @value as well ;-)
>>
>> -Erik
>>
>> Ryan Puddephatt wrote:
>>> Hi,
>>>     I have a calculated value "one div another" with a
>>> format-number(.,'#.###') but it isn't being applied. When I put
>>> "format-number(one div another,'#.###')" in the @value it
>> works fine.
>>> Is this a feature or a bug?
>>>  
>>> Thanks
>>>  
>>> Ryan
>>>
>>> Ryan Puddephatt
>>> Software Engineer
>>>  
>>>
>>> Teleflex Group - IT UK
>>> 1 Michaelson Square
>>> Livingston
>>> West Lothian
>>> Scotland
>>> EH54 7DP
>>>  
>>> e> [hidden email] <mailto:[hidden email]>
>>> t> +44(0)1506 407 110
>>> f> +44(0)1506 407 108
>>> w> www.teleflex.com <http://www.teleflex.com/>
>>>
>>>  
>>
>> --
>> Orbeon Forms - Web Forms for the Enterprise Done the Right Way
>> http://www.orbeon.com/
>>
>>
>
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.com/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws