- From: Terry Brady <terrywbrady@yahoo.com>
- Date: Fri, 30 Dec 2005 13:47:22 -0800 (PST)
- To: www-forms@w3.org
I am experimenting with XForms in Mozilla Firefox. I have a how-to question. Is this the correct forum for such questions? If not, please advise me on where I should direct my question. I have one structure <foos> <foo pos="1"/> <foo pos="4"/> <foo pos="4"/> </foos> That I would like to bind into another structure <bars> <bar count="0"/> <bar count="0"/> <bar count="0"/> <bar count="0"/> </bars> I would like to set a binding on bars/bar/@count to contain the count of all foo's pointing to a bar. I am able to accomplish this by explicitly setting a binding on each instance of bar. bars/bar[1]/@count --> count(foos/foo/@pos=1) bars/bar[2]/@count --> count(foos/foo/@pos=2) bars/bar[3]/@count --> count(foos/foo/@pos=3) bars/bar[4]/@count --> count(foos/foo/@pos=4) But, I would like to set the formula generically for bars/bar/@count. What is the correct way to accomplish this? I am using O'Reilly's XForms Essentials as a reference. Can you recommend a better reference for me? Thanks, Terry Brady --------------------------------- Yahoo! DSL Something to write home about. Just $16.99/mo. or less --0-1452559979-1135979242=:14597 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit <div>I am experimenting with XForms in Mozilla Firefox.</div> <div>I have a how-to question. Is this the correct forum for such questions? If not, please advise me on where I should direct my question.</div> <div>I have one structure </div> <div><foos></div> <div> <foo pos="1"/></div> <div> <foo pos="4"/></div> <div> <foo pos="4"/></div> <div></foos></div> <div>That I would like to bind into another structure</div> <div><bars></div> <div> <bar count="0"/></div> <div> <bar count="0"/></div> <div> <bar count="0"/></div> <div> <bar count="0"/></div> <div></bars></div> <div>I would like to set a binding on <A href="mailto:bars/bar/@count">bars/bar/@count</A> to contain the count of all foo's pointing to a bar.</div> <div>I am able to accomplish this by explicitly setting a binding on each instance of bar.</div> <div>bars/bar[1]/@count --> count(<A href="mailto:foos/foo/@pos=1">foos/foo/@pos=1</A>)</div> <div>bars/bar[2]/@count --> count(<A href="mailto:foos/foo/@pos=2">foos/foo/@pos=2</A>)</div> <div>bars/bar[3]/@count --> count(<A href="mailto:foos/foo/@pos=3">foos/foo/@pos=3</A>)</div> <div>bars/bar[4]/@count --> count(<A href="mailto:foos/foo/@pos=4">foos/foo/@pos=4</A>)</div> <div>But, I would like to set the formula generically for <A href="mailto:bars/bar/@count">bars/bar/@count</A>.</div> <div>What is the correct way to accomplish this?</div> <div>I am using O'Reilly's XForms Essentials as a reference. Can you recommend a better reference for me?</div> <div>Thanks, </div> <div>Terry Brady</div><p> <hr size=1> <a href="http://pa.yahoo.com/*http://us.rd.yahoo.com/evt=37474/*http://promo.yahoo.com/broadband/ ">Yahoo! DSL</a> Something to write home about. Just $16.99/mo. or less --0-1452559979-1135979242=:14597--
Received on Saturday, 31 December 2005 07:47:33 UTC