Hi everybody,

My name is Laszlo Mesko, and I'm quite new in this list (and the XML area...)
I'd like to create (x)html file using XForms inside in it. I'd like to use OOo as the editor for the xforms model and form controls.
I think issue 47549 is about this area, but is seems yet no solution

I've already read:
- the XForms essentials ( http://xformsinstitute.com/essentials/browse/book.php )
- half of the w3c XForms recommendation
- the thread in this list about "Xforms support in OOO2.0 Beta", "OO xforms use for websites"
and "Save a document with xform format"

I think my problem is like I've read in Isidoro Legido's mail (http://xml.openoffice.org/servlets/ReadMsg?list=dev&msgId=1945801)
and I wonder what was the solution (if you have).


I think I can write an xsl what transforms the content.xml into a simple xhtml document with xforms controls.

In the XSL I'll go through the office:draw elements sorted by x and y coordinates,
and  I'll transform the OOo controls into xforms controls like this:

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



Is there any solution already done for this?



If not, have some questions:

How to deal with the document text content? I think I'll skip it, and only form controls will be exported.

As I see, there is no solution for <xforms:repeat>, <table repeat-nodeset> and <switch>/<case>.
I need a workaround for this.

Whether I have to check the form:control-implementation attribute to choose the correct xforms control
or rather check the element name (form:text)  and some other attributes like xforms:multiple?



Any pieces of advice or help would be appreciated.
(I feel this task is quite big compared to my knowledge.)

Thanks,

LML

Reply via email to