An xforms:instance must contain a well formed xml document, so only one root element
------------------------ Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539 2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] Web: http://www.latentzero.com Sent from my blackberry device ----- Original Message ----- From: Adrian Butnaru <[hidden email]> To: [hidden email] <[hidden email]> Sent: Tue Jul 08 20:17:01 2008 Subject: [ops-users] Repeating a row with multiple cells Hi, I am trying in my an application to repeat not just one textarea but many. I defined: <!-- Instance that contains all the projects --> <xforms:instance id="fr-form-instance" xxforms:validation="strict"> <project xmlns=""> <details> ... <relatedprojects> <relatedprojectname/> <relatedprojecturl/> </relatedprojects> ... </details> But when I create the template: <xforms:instance id="relatedprojects-template"> <relatedprojectname xmlns=""/> <relatedprojecturl xmlns=""/> </xforms:instance> ... I receive an error that multiple instance in one template are not OK. How can I repeat rows with more than one cell (relatedprojectname, relatedprojecturl etc.)? What if I want to repeat one textarea and one PDF file selection? Is this possible? Thanks for the help in advance. Regards, Adrian ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Thanks Ryan,
I just started to "discover" Orbeon XForms so I do not have to much experience. I am still not able to correct the problem. I used: as type declaration: <xs:element name="relatedprojects" type <!-- Type for relatedprojects --> <xs:complexType name="relatedprojects"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="relatedprojectname" type="xs:string"/> <xs:element name="relatedprojecturl" type="link"/> </xs:sequence> </xs:complexType>="relatedprojects"/> for the instance: <!-- Instance that contains all the projects --> <xforms:instance id="fr-form-instance" xxforms:validation="strict"> <project xmlns=""> <details> <title/> <summary/> <relatedprojects> <relatedprojectname> </relatedprojectname> <relatedprojecturl> </relatedprojecturl> </relatedprojects> <topics> </topics> </details> <keydeliverables> <keytitle/> <keydate/> <keyorganisation/> <keyabstract/> <keypdf/> </keydeliverables> </project> </xforms:instance> as template: <xforms:instance id="relatedprojects-template"> <relatedprojects> <relatedprojectname xmlns=""/> <relatedprojecturl xmlns=""/> </relatedprojects> </xforms:instance> and for repeating: <tr> <td> <xforms:label ref="$form-resources/relatedprojects/label"/> <fr:repeat nodeset="relatedprojects" id="relatedprojects-repeat" origin="instance('relatedprojects-template')" columns="2" appearance="xxforms:table"> <tr> <td> <xforms:textarea ref="." appearance="xxforms:autosize" incremental="true"> <xforms:label ref="$form-resources/relatedprojectname/label"/> <xforms:hint ref="$form-resources/relatedprojectname/hint"/> <xforms:help ref="$form-resources/relatedprojectname/help"/> <xforms:alert ref="$form-resources/relatedprojectname/alert"/> </xforms:textarea> </td> <td> <xforms:textarea ref="." appearance="xxforms:autosize" incremental="true"> <xforms:label ref="$form-resources/relatedprojecturl/label"/> <xforms:hint ref="$form-resources/relatedprojecturl/hint"/> <xforms:help ref="$form-resources/relatedprojecturl/help"/> <xforms:alert ref="$form-resources/relatedprojecturl/alert"/> </xforms:textarea> </td> </tr> </fr:repeat> </td> </tr> I want to repeat rows with: relatedprojectname + relatedprojecturl and further a row with the keydeliverables. (but if I will manage the first I will be able to do it also for the second part). When I open this XForms in orbeon two textareas appears one next each other and the Add (+) button, but when I press Add thease textareas dissapear. What I am during wrong? Thanks for the help, Adrian Ryan Puddephatt schreef: > An xforms:instance must contain a well formed xml document, so only one root element > ------------------------ > Ryan Puddephatt > FIX Developer > Fidessa LatentZero > 1 Alfred Place > London WC1E 7EB > Office: +44 (0) 20 7462 4200 > Direct: +44 (0) 20 7323 6112 > Blackberry: +44 (0) 79 8539 2458 > Fax: +44 (0) 20 7462 4242 > Email: [hidden email] > Web: http://www.latentzero.com > Sent from my blackberry device > > ----- Original Message ----- > From: Adrian Butnaru <[hidden email]> > To: [hidden email] <[hidden email]> > Sent: Tue Jul 08 20:17:01 2008 > Subject: [ops-users] Repeating a row with multiple cells > > Hi, > I am trying in my an application to repeat not just one textarea but many. > I defined: > <!-- Instance that contains all the projects --> > <xforms:instance id="fr-form-instance" > xxforms:validation="strict"> > <project xmlns=""> > <details> > ... > <relatedprojects> > <relatedprojectname/> > <relatedprojecturl/> > </relatedprojects> > ... > </details> > But when I create the template: > <xforms:instance id="relatedprojects-template"> > <relatedprojectname xmlns=""/> > <relatedprojecturl xmlns=""/> > </xforms:instance> > > > ... I receive an error that multiple instance in one template are not OK. > > How can I repeat rows with more than one cell (relatedprojectname, > relatedprojecturl etc.)? > What if I want to repeat one textarea and one PDF file selection? Is > this possible? > > Thanks for the help in advance. > > Regards, > Adrian > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________________________________ > The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. > > _____________________________________________________________________ > This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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 OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by Ryan Puddephatt-3
I'm not sure what the fr:repeat element does, is this something you have defined?
Perhaps an example of what your trying to achieve that works in the xforms sandbox might help? Thanks Ryan ------------------------ Ryan Puddephatt FIX Developer Fidessa LatentZero 1 Alfred Place London WC1E 7EB Office: +44 (0) 20 7462 4200 Direct: +44 (0) 20 7323 6112 Blackberry: +44 (0) 79 8539 2458 Fax: +44 (0) 20 7462 4242 Email: [hidden email] Web: http://www.latentzero.com Sent from my blackberry device ----- Original Message ----- From: Adrian Butnaru <[hidden email]> To: [hidden email] <[hidden email]> Sent: Wed Jul 09 07:36:07 2008 Subject: [ops-users] Re: Re: Repeating a row with multiple cells Thanks Ryan, I just started to "discover" Orbeon XForms so I do not have to much experience. I am still not able to correct the problem. I used: as type declaration: <xs:element name="relatedprojects" type <!-- Type for relatedprojects --> <xs:complexType name="relatedprojects"> <xs:sequence minOccurs="0" maxOccurs="unbounded"> <xs:element name="relatedprojectname" type="xs:string"/> <xs:element name="relatedprojecturl" type="link"/> </xs:sequence> </xs:complexType>="relatedprojects"/> for the instance: <!-- Instance that contains all the projects --> <xforms:instance id="fr-form-instance" xxforms:validation="strict"> <project xmlns=""> <details> <title/> <summary/> <relatedprojects> <relatedprojectname> </relatedprojectname> <relatedprojecturl> </relatedprojecturl> </relatedprojects> <topics> </topics> </details> <keydeliverables> <keytitle/> <keydate/> <keyorganisation/> <keyabstract/> <keypdf/> </keydeliverables> </project> </xforms:instance> as template: <xforms:instance id="relatedprojects-template"> <relatedprojects> <relatedprojectname xmlns=""/> <relatedprojecturl xmlns=""/> </relatedprojects> </xforms:instance> and for repeating: <tr> <td> <xforms:label ref="$form-resources/relatedprojects/label"/> <fr:repeat nodeset="relatedprojects" id="relatedprojects-repeat" origin="instance('relatedprojects-template')" columns="2" appearance="xxforms:table"> <tr> <td> <xforms:textarea ref="." appearance="xxforms:autosize" incremental="true"> <xforms:label ref="$form-resources/relatedprojectname/label"/> <xforms:hint ref="$form-resources/relatedprojectname/hint"/> <xforms:help ref="$form-resources/relatedprojectname/help"/> <xforms:alert ref="$form-resources/relatedprojectname/alert"/> </xforms:textarea> </td> <td> <xforms:textarea ref="." appearance="xxforms:autosize" incremental="true"> <xforms:label ref="$form-resources/relatedprojecturl/label"/> <xforms:hint ref="$form-resources/relatedprojecturl/hint"/> <xforms:help ref="$form-resources/relatedprojecturl/help"/> <xforms:alert ref="$form-resources/relatedprojecturl/alert"/> </xforms:textarea> </td> </tr> </fr:repeat> </td> </tr> I want to repeat rows with: relatedprojectname + relatedprojecturl and further a row with the keydeliverables. (but if I will manage the first I will be able to do it also for the second part). When I open this XForms in orbeon two textareas appears one next each other and the Add (+) button, but when I press Add thease textareas dissapear. What I am during wrong? Thanks for the help, Adrian Ryan Puddephatt schreef: > An xforms:instance must contain a well formed xml document, so only one root element > ------------------------ > Ryan Puddephatt > FIX Developer > Fidessa LatentZero > 1 Alfred Place > London WC1E 7EB > Office: +44 (0) 20 7462 4200 > Direct: +44 (0) 20 7323 6112 > Blackberry: +44 (0) 79 8539 2458 > Fax: +44 (0) 20 7462 4242 > Email: [hidden email] > Web: http://www.latentzero.com > Sent from my blackberry device > > ----- Original Message ----- > From: Adrian Butnaru <[hidden email]> > To: [hidden email] <[hidden email]> > Sent: Tue Jul 08 20:17:01 2008 > Subject: [ops-users] Repeating a row with multiple cells > > Hi, > I am trying in my an application to repeat not just one textarea but many. > I defined: > <!-- Instance that contains all the projects --> > <xforms:instance id="fr-form-instance" > xxforms:validation="strict"> > <project xmlns=""> > <details> > ... > <relatedprojects> > <relatedprojectname/> > <relatedprojecturl/> > </relatedprojects> > ... > </details> > But when I create the template: > <xforms:instance id="relatedprojects-template"> > <relatedprojectname xmlns=""/> > <relatedprojecturl xmlns=""/> > </xforms:instance> > > > ... I receive an error that multiple instance in one template are not OK. > > How can I repeat rows with more than one cell (relatedprojectname, > relatedprojecturl etc.)? > What if I want to repeat one textarea and one PDF file selection? Is > this possible? > > Thanks for the help in advance. > > Regards, > Adrian > > > ______________________________________________________________________ > This email has been scanned by the MessageLabs Email Security System. > For more information please visit http://www.messagelabs.com/email > ______________________________________________________________________ > > _______________________________________________________________________ > The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. > > _____________________________________________________________________ > This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.com > ______________________________________________________________________ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email ______________________________________________________________________ _______________________________________________________________________ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. _____________________________________________________________________ This e-mail has been scanned for viruses by Verizon Business Internet Managed Scanning Services - powered by MessageLabs. For further information visit http://www.mci.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 OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by abutnaru
Adrian,
could you please post a complete xforms example file thats working in the sandbox? Without complete information, it's hard to find errors. > <tr> > <td> > <xforms:label ref="$form-resources/relatedprojects/label"/> what's the rationale behind that label? I suppose there's no need for it if there's no containing xforms control to get labeled. > <fr:repeat nodeset="relatedprojects" > id="relatedprojects-repeat" > origin="instance('relatedprojects-template')" > columns="2" > appearance="xxforms:table"> Some observations: You're using a special namespace fr: for the repeat - why not the standard xforms:? The origin attribute seems strange - the specs don't say anything about it, i think it isn't allowed for a xforms:repeat. It should be moved to the xforms:insert that adds new nodes to the nodeset. The same applies to the @columns and @appearance attributes. > <tr> > <td> > <xforms:textarea ref="." > appearance="xxforms:autosize" incremental="true"> > <xforms:label > ref="$form-resources/relatedprojectname/label"/> > <xforms:hint > ref="$form-resources/relatedprojectname/hint"/> > <xforms:help > ref="$form-resources/relatedprojectname/help"/> > <xforms:alert > ref="$form-resources/relatedprojectname/alert"/> > </xforms:textarea> > </td> > <td> > <xforms:textarea ref="." > appearance="xxforms:autosize" incremental="true"> > <xforms:label > ref="$form-resources/relatedprojecturl/label"/> > <xforms:hint > ref="$form-resources/relatedprojecturl/hint"/> > <xforms:help > ref="$form-resources/relatedprojecturl/help"/> > <xforms:alert > ref="$form-resources/relatedprojecturl/alert"/> > </xforms:textarea> should be ref="relatedprojectname" and the second ref="relatedprojecturl" > and further > a row with the keydeliverables. hmm - then i think it would be better to use the project nodes as nodeset for the repeat - otherwise, you will have to "climb up" the axis to reach the keydeliverables nodes. > When I open this XForms in orbeon two textareas appears one next each > other and the Add (+) button, but when I press Add thease textareas If there's a problem with that button, it would be useful to know how you tried to implement it. HTH florian -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
>> <xforms:label ref="$form-resources/relatedprojects/label"/>
> > what's the rationale behind that label? I suppose there's no need > for it if there's no containing xforms control to get labeled. That's right, a label must be within a control. > Some observations: You're using a special namespace fr: for the > repeat - why not the standard xforms:? The origin attribute seems > strange - the specs don't say anything about it, i think it isn't > allowed for a xforms:repeat. It should be moved to the xforms:insert > that adds new nodes to the nodeset. The same applies to the @columns > and @appearance attributes. This is actually from Form Runner, which defines some "components" processed by XSLT. But if you use that outside Form Runner, it likely won't work. -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 OW2 mailing lists service home page: http://www.ow2.org/wws |
In reply to this post by fl.schmitt(ops-users)
Hi Florian, Erik,
I attached the form I am using. It is built in the bookcast directory of the server, using the example of Bookcast Form for Form Builder provided there. It is not working in Sandbox as it is now but is displayed well when I type: http://localhost:8080/orbeon/fr/orbeon/bookcast/new/ in the browser. Can you please give me an advice how to make it working? I have the impression that I am mixing functionalities from Form Builder with XForms one's. I am a little bit confused. Regards, Adrian Florian Schmitt schreef: > Adrian, > > could you please post a complete xforms example file thats working in > the sandbox? Without complete information, it's hard to find errors. > > >> <tr> >> <td> >> <xforms:label ref="$form-resources/relatedprojects/label"/> > > what's the rationale behind that label? I suppose there's no need for > it if there's no containing xforms control to get labeled. > >> <fr:repeat nodeset="relatedprojects" >> id="relatedprojects-repeat" >> origin="instance('relatedprojects-template')" > > columns="2" > > appearance="xxforms:table"> > > Some observations: You're using a special namespace fr: for the repeat > - why not the standard xforms:? The origin attribute seems strange - > the specs don't say anything about it, i think it isn't allowed for a > xforms:repeat. It should be moved to the xforms:insert that adds new > nodes to the nodeset. The same applies to the @columns and @appearance > attributes. > >> <tr> >> <td> >> <xforms:textarea ref="." >> appearance="xxforms:autosize" incremental="true"> >> <xforms:label >> ref="$form-resources/relatedprojectname/label"/> >> <xforms:hint >> ref="$form-resources/relatedprojectname/hint"/> >> <xforms:help >> ref="$form-resources/relatedprojectname/help"/> >> <xforms:alert >> ref="$form-resources/relatedprojectname/alert"/> >> </xforms:textarea> >> </td> >> <td> >> <xforms:textarea ref="." >> appearance="xxforms:autosize" incremental="true"> >> <xforms:label >> ref="$form-resources/relatedprojecturl/label"/> >> <xforms:hint >> ref="$form-resources/relatedprojecturl/hint"/> >> <xforms:help >> ref="$form-resources/relatedprojecturl/help"/> >> <xforms:alert >> ref="$form-resources/relatedprojecturl/alert"/> >> </xforms:textarea> > > Two times a reference to the same instance node? I think the first > should be ref="relatedprojectname" and the second ref="relatedprojecturl" > >> and further >> a row with the keydeliverables. > > hmm - then i think it would be better to use the project nodes as > nodeset for the repeat - otherwise, you will have to "climb up" the > axis to reach the keydeliverables nodes. > >> When I open this XForms in orbeon two textareas appears one next each >> other and the Add (+) button, but when I press Add thease textareas > > If there's a problem with that button, it would be useful to know how > you tried to implement it. > > > HTH > florian > > -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws form.xhtml (24K) Download Attachment |
Hi Adrian,
> It is built in the bookcast directory of the server, using the example > of Bookcast Form for Form Builder provided there. > It is not working in Sandbox as it is now but is displayed well when I > type: > http://localhost:8080/orbeon/fr/orbeon/bookcast/new/ in the browser. i'm very sorry, i thougt you were using "plain" xforms - i don't have any experience with FormRunner or FormBuilder, and i don't know how to import your attached xforms file into formbuilder or how to transform it into standard xforms. I hope other list-members will be able to help you. florian -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Administrator
|
In reply to this post by abutnaru
Adrian,
On Wed, Jul 9, 2008 at 11:07 AM, Adrian Butnaru <[hidden email]> wrote: > I attached the form I am using. > It is built in the bookcast directory of the server, using the example of > Bookcast Form for Form Builder provided there. > It is not working in Sandbox as it is now but is displayed well when I type: > http://localhost:8080/orbeon/fr/orbeon/bookcast/new/ in the browser. > > Can you please give me an advice how to make it working? > I have the impression that I am mixing functionalities from Form Builder > with XForms one's. Forms that run in Form Runner use some elements with the "fr" prefix, which implement some concepts that are more high level than what is available in XForms. Those are then transformed into XForms through XSLT. So if you build a form with Form Builder, you won't be able to directly run it in the sandbox, because the sandbox won't understand those elements with the "fr' prefix. Alex -- Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise Orbeon's Blog: http://www.orbeon.com/blog/ Personal Blog: http://avernet.blogspot.com/ Twitter - http://twitter.com/avernet -- 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 OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |