Re: [Xsltforms-support] constraint against the sum of a series of attributes
Brought to you by:
alain-couthures
From: peter w. <p....@in...> - 2013-05-04 10:34:15
|
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: p....@in... > Sent: Sat, 4 May 2013 02:24:58 -0800 > To: xsl...@li... > 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 > Xsl...@li... > 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 |