Re: AW: Re: Xforms support in OOO2.0 Beta
Daniel Vogelheim <[email protected]> Tue, 12 Apr 2005 16:22:00 +0200
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Organization | Sun Microsystems, Inc. |
| Message-ID | <[email protected]> |
Hello René, You wrote: > I've created a form in OOwriter 1.9.87 and failed to write the XML > data to disk. I have tried to do it via save as, or export without > success, so I put in a button and also created a submission, but > still nothing happens. The instance data seems to be filled correctly > (at least most of it as I was not able to create an element that can > occur multiple times). I have upgraded to OO 1.9.91 after your email > yesterday, Pedro, but that doesn't seem to change anything. Ah, many thanks for the document. I think I found the problem with the help of your document: According to the XForms spec (section 11.1), any invalid data stops the submission process. In your document, some data is invalid, and hence the submission aborts. Now... I guess the best way would be to inform the user, and give him/her an option to continue. We will do that, but probably not now, because last-minute changes to resource strings are problematic for internationalization. I think we should ignore the invalid state for now, until we have a better solution (with user interaction) available. > I also tried to generate another instance to serve as a data source > for a combo box, but failed again. It's not the binding, or anything > like that, but I am missing a way to put data into the instance. When you create (or edit) an instance, you can supply a URL from which to load the data. If you check on the 'link' box, the data will be re-loaded (<xforms:instance src="...">); if the box is not checked, the data will be loaded once. > P.S.: By the way: shouldn't it be possible to create an instance by > loading a schema or an XML document? XML document: Yes, see above. Schema: This would be nice, but we haven't implemented this yet. Sincerely, Daniel