RE: Re: Xforms support in OOO2.0 Beta

Legido Martínez, Isidoro <[email protected]> Tue, 12 Apr 2005 13:21:10 +0200
Newsgroups gmane.comp.openoffice.devel.xml
Message-ID <[email protected]>
Hi,

Regarding the form's submission I have tried to submit to a servlet and it
works. Apparently the file's submission doesn't.

Another question: does anybody know if it exists a way to translate the 'form' namespace (urn:oasis:names:tc:opendocument:xmlns:form:1.0) to the 'xforms' (http://www.w3.org/2002/xforms)? Are they equivalent? The problem is that all the visual part stored in the content.xml (fex. 'text') belongs to the 'form' namespace and I would like to use the 'xforms' one.
So, I would like to change something like
<form:text form:name="TextBox" 
           form:control-implementation="ooo:com.sun.star.form.component.TextField" 
           form:id="control2" 
           form:convert-empty-to-null="true" 
           xforms:bind="Binding 1"> 

into 

<xforms:input ....>

Thanks a lot,

Isi,


-----Mensaje original-----
De: Pierre-Andre Galmes [mailto:[email protected]] 
Enviado el: martes, 12 de abril de 2005 11:18
Para: René Peinl
CC: [email protected]; Legido Martínez, Isidoro
Asunto: Re: [xml-dev] Re: Xforms support in OOO2.0 Beta

* René Peinl <[email protected]> [050412 10:15]:
> Hi Pedro, hi Isidoro,

Hello René,

> I'm also working on XForms with OO 2.0 beta for a lecture I'm giving.
> I want to compare the capabilities and ease of use of OO 2.0 with
> native XForms (+XHTML), Word 2003 professional, Infopath and Adobe
> Acrobat.

XForms is a standard defined using XML. This means that Xforms can be
used without XHTML. Actually, this is what OOo2.0 does : it includes
XForms in its XML. 

From What I remember, the inclusion of XForms into XHTML within
OpenOffice is not planned for these release of OpenOffice (which is I
think a pity, but developpers already have a lot of work ;-)

> 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.

The Function for XForms support are still not all included. For the
moment, there are still many "issues" about it. The last time I tried, I
was able to save my document as an odt file.

And then, if you look at the content.xml in your odt file (which is a
zip archive), you willnotice the XForms part.

> 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.

Did you tried to create your instance, and next to use the drag and drop
? Next, to feed the form with data, click on the button "design mode on
/off"

> Many thanks in advance
> Regards, René

> P.S.: By the way: shouldn't it be possible to create an instance by
> loading a schema or an XML document?

You can do so. This is already working. At the bottom of the data
navigator, there is a list "instance". If you click on it, you can
"add...". Next, just choose your XML document. I still didn't tryed if
it works with schemas.

Regards,
Pierre-Andre (Pedro)
-- 
Pierre-Andre Galmes
StarXpert : www.starxpert.fr
email : [email protected]