<xforms:bind nodeset="sector/@percentage" 
constraint="sum(../../sector/@percentage) = 100" /> ????

Le 04/05/2013 12:34, peter winstanley a écrit :
> Whoops!  silly question!
> I was calculating on individuals
> i.e.<xforms:bind nodeset="sector/@percentage" constraint="sum(.) = 100" />
>
> and not the nodeset :(
>
> <xforms:bind nodeset="sector/@percentage" constraint="sum(sector/@percentage) 
> = 100" />
>
>> -----Original Message-----
>> From: [email protected]
>> Sent: Sat, 4 May 2013 02:24:58 -0800
>> To: [email protected]
>> Subject: [Xsltforms-support] constraint against the sum of a series of
>> attributes
>>
>> Hello List
>>
>> I have a model with a set of one or more <sector/> elements where the sum
>> of the sector/@percentage attributes should always equal 100.
>>
>> how do I express this as a bind constraint?
>>
>> Cheers
>>
>> Peter
>>
>> ____________________________________________________________
>> FREE 3D EARTH SCREENSAVER - Watch the Earth right on your desktop!
>> Check it out at http://www.inbox.com/earth
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Get 100% visibility into Java/.NET code with AppDynamics Lite
>> It's a free troubleshooting tool designed for production
>> Get down to code-level detail for bottlenecks, with <2% overhead.
>> Download for free and get started troubleshooting in minutes.
>> http://p.sf.net/sfu/appdyn_d2d_ap2
>> _______________________________________________
>> Xsltforms-support mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/xsltforms-support
> ____________________________________________________________
> GET FREE SMILEYS FOR YOUR IM & EMAIL - Learn more at 
> http://www.inbox.com/smileys
> Works with AIM®, MSN® Messenger, Yahoo!® Messenger, ICQ®, Google Talk™ and 
> most webmails
>
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite
> It's a free troubleshooting tool designed for production
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://p.sf.net/sfu/appdyn_d2d_ap2
> _______________________________________________
> Xsltforms-support mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/xsltforms-support


------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
_______________________________________________
Xsltforms-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xsltforms-support

Reply via email to