Xhtml with XForms export from OOo2.0 beta
László Meskó <[email protected]> Wed, 10 Aug 2005 08:45:53 +0200
| Newsgroups | gmane.comp.openoffice.devel.xml |
|---|---|
| Message-ID | <OF8E380144.7D17DC9E-ONC1257059.001EB417-C1257059.0025598D@pioffice.hu> |
--=_alternative 00255989C1257059_=
Content-Type: text/plain; charset="US-ASCII"
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
--=_alternative 00255989C1257059_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Hi everybody,</font>
<br>
<br><font size=2 face="sans-serif">My name is Laszlo Mesko, and I'm quite
new in this list (and the XML area...)</font>
<br><font size=2 face="sans-serif">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.</font>
<br><font size=2 face="sans-serif">I think issue 47549 is about this area,
but is seems yet no solution</font>
<br>
<br><font size=2 face="sans-serif">I've already read:</font>
<br><font size=2 face="sans-serif">- the XForms essentials ( http://xformsinstitute.com/essentials/browse/book.php
)</font>
<br><font size=2 face="sans-serif">- half of the w3c XForms recommendation</font>
<br><font size=2 face="sans-serif">- the thread in this list about "Xforms
support in OOO2.0 Beta", "OO xforms use for websites"</font>
<br><font size=2 face="sans-serif">and "Save a document with xform
format"</font>
<br>
<br><font size=2 face="sans-serif">I think my problem is like I've read
in Isidoro Legido's mail (http://xml.openoffice.org/servlets/ReadMsg?list=dev&msgId=1945801)</font>
<br><font size=2 face="sans-serif">and I wonder what was the solution (if
you have).</font>
<br>
<br>
<br><font size=2 face="sans-serif">I think I can write an xsl what transforms
the content.xml into a simple xhtml document with xforms controls.</font>
<br>
<br><font size=2 face="sans-serif">In the XSL I'll go through the office:draw
elements sorted by x and y coordinates,</font>
<br><font size=2 face="sans-serif">and I'll transform the OOo controls
into xforms controls like this:</font>
<br>
<br><font size=2 face="sans-serif"><form:text form:name="TextBox"
</font>
<br><font size=2 face="sans-serif"> form:control-implementation="ooo:com.sun.star.form.component.TextField"
</font>
<br><font size=2 face="sans-serif"> form:id="control2"
</font>
<br><font size=2 face="sans-serif"> form:convert-empty-to-null="true"
</font>
<br><font size=2 face="sans-serif"> xforms:bind="Binding
1"> </font>
<br>
<br><font size=2 face="sans-serif">into </font>
<br>
<br><font size=2 face="sans-serif"><xforms:input ....></font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Is there any solution already done for
this?</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">If not, have some questions:</font>
<br>
<br><font size=2 face="sans-serif">How to deal with the document text content?
I think I'll skip it, and only form controls will be exported.</font>
<br>
<br><font size=2 face="sans-serif">As I see, there is no solution for <xforms:repeat>,
<table repeat-nodeset> and <switch>/<case>.</font>
<br><font size=2 face="sans-serif">I need a workaround for this.</font>
<br>
<br><font size=2 face="sans-serif">Whether I have to check the form:control-implementation
attribute to choose the correct xforms control</font>
<br><font size=2 face="sans-serif">or rather check the element name (form:text)
and some other attributes like xforms:multiple?</font>
<br>
<br>
<br>
<br><font size=2 face="sans-serif">Any pieces of advice or help would be
appreciated.</font>
<br><font size=2 face="sans-serif">(I feel this task is quite big compared
to my knowledge.)</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br>
<br><font size=2 face="sans-serif">LML</font>
<br>
--=_alternative 00255989C1257059_=--