Hi Marcin
The dynamic XForms features are not currently available in
OpenOffice.org. This is a limitation of the XForms implementation, that
is caused by the fact that it cannot modify the containing document
dynamically as would be required for such cases as adding items, hiding
items corresponding to certain nodes, etc. You can try to emulate such
dynamic behavior with macros but that would somewhat defeat the reason
one would use XForms in the first place. An XForms+XHTML approach (e.g.
Firefox XForms Plugin, Chiba or Orbeon) might be a better fit for your
requirements.
Cheers,
Lars
Marcin Miłkowski wrote:
Hi,
I'm investigating if using XForms in OOo would be a good solution for
the OpenOffice.org extension that I'm co-developing, LanguageTool
(grammar checker for many languages). We have complex XML files that
specify rules - and we'd like to have an easy UI for average users that
are interested in writing rules for the grammar checker but aren't able
to edit XML files directly.
The question is whether it's possible to implement things like adding
nodes to the document (add another rule, add another element etc.) and
deleting nodes using XML Form controls. Currently, we're using XMLmind
XML Editor css-based method, but as this is not open source, we'd like
to migrate to OOo. Another thing that XMLMind editor has is collapsing
some nodes - that would be quite important for us as rule-specifying
documents are pretty complex and long (several hundreds of rules for
some languages). Something like collapsing or easy browsing the file is
therefore very important.
So my idea was to use XSLT to generate ODF document with XForms. The
user could edit the document and use a button to test the file (using
our extension Java method, after saving to a test location, for
example). Then she would save the file to the original location using
the Save method with the action specifying the URL of the file (the old
file being backed up, of course).
But maybe I should write XSLT to build ODF with some basic input forms,
and then use another XSLT for re-generating the rules (this could result
in many XML problems, like users disobeying some format constraints, I'm
afraid).
Thank you in advance for any advice on that,
Regards,
---
Marcin Miłkowski
Polish NL Lead
PS. http://www.languagetool.org
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]