Hi,
I am having problems trying to use <xforms:copy> in an <xforms:itemset>. As I understand it <xforms:copy> should be interchangable with <xforms:value> but when I try changing <xforms:value ref="accessvalue"/> to <xforms:copy ref="accessvalue"/> in the form below Orbeon gives me an error message "xforms:itemset element must contain one xforms:value or one xforms:copy element". Am I doing something wrong? <?xml version="1.0" encoding="UTF-8"?> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:xforms="http://www.w3.org/2002/xforms"> <head> <title>Itemset Test</title> <xforms:model> <xforms:instance id="form-data"> <user_selection xmlns=""/> </xforms:instance> <xforms:instance id="accessibility-instance"> <accessibility xmlns=""> <accesstype> <accessterm>Example1</accessterm> <accessvalue>Example1</accessvalue> </accesstype> <accesstype> <accessterm>Example2</accessterm> <accessvalue>Example2</accessvalue> </accesstype> <accesstype> <accessterm>Example3</accessterm> <accessvalue>Example3</accessvalue> </accesstype> </accessibility> </xforms:instance> <xforms:bind id="user_selection" nodeset="/user_selection"/> </xforms:model> </head> <body> <xforms:group> <xforms:select bind="user_selection"> <xforms:label>Select one or more:</xforms:label> <xforms:itemset nodeset="instance('accessibility-instance')/accesstype"> <xforms:label> <xforms:output value="accessterm"/> </xforms:label> <xforms:copy ref="accessvalue"/> </xforms:itemset> </xforms:select> </xforms:group> </body> </html> Thanks Rob Walpole Devon Portal Developer Email [hidden email] Web http://www.devonline.gov.uk -- 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 |
Administrator
|
Robert Walpole wrote:
> Hi, > > I am having problems trying to use <xforms:copy> in an <xforms:itemset>. > As I understand it <xforms:copy> should be interchangable with > <xforms:value> but when I try changing > <xforms:value ref="accessvalue"/> to <xforms:copy ref="accessvalue"/> in > the form below Orbeon gives me an error message "xforms:itemset element > must contain one xforms:value or one xforms:copy element". Am I doing > something wrong? Unfortunately, yes: Orbeon Forms does not yet support xforms:copy: http://mail-archive.objectweb.org/ops-users/2006-12/msg00284.html http://forge.objectweb.org/tracker/index.php?func=detail&aid=305615&group_id=168&atid=350207 We know, we know... As a workaround, you should be able to build something similar with xforms:insert, but it's going to be a little more involved. -Erik -- 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 |
In reply to this post by Robert Walpole
Thanks Erik. Sorry to raise it again, I did try searching the archives
but I didn't see the entry you refer to. At least I know not to spend any more time trying to get my form to work with xforms:copy - I will see what I can do with xforms:insert instead. Cheers Rob Walpole Devon Portal Developer Email [hidden email] Web http://www.devonline.gov.uk > -----Original Message----- > From: Erik Bruchez [mailto:[hidden email]] On Behalf Of > Erik Bruchez > Sent: 02 May 2007 11:06 > To: [hidden email] > Subject: Re: [ops-users] xforms:copy error message > > > Robert Walpole wrote: > > Hi, > > > > I am having problems trying to use <xforms:copy> in an > <xforms:itemset>. > > As I understand it <xforms:copy> should be interchangable with > > <xforms:value> but when I try changing > > <xforms:value ref="accessvalue"/> to <xforms:copy > ref="accessvalue"/> in > > the form below Orbeon gives me an error message > "xforms:itemset element > > must contain one xforms:value or one xforms:copy element". > Am I doing > > something wrong? > > Unfortunately, yes: Orbeon Forms does not yet support xforms:copy: > p_id=168&atid=350207 We know, we know... As a workaround, you should be able to build something similar with xforms:insert, but it's going to be a little more involved. -Erik -- 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 |
Free forum by Nabble | Edit this page |