List Info

Thread: XML Forms question




XML Forms question
user name
2007-09-19 15:39:51
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.o
rg

------------------------------------------------------------
---------
To unsubscribe, e-mail: dev-unsubscribexml.openoffice.org
For additional commands, e-mail: dev-helpxml.openoffice.org


[1]

about | contact  Other archives ( Real Estate discussion Medical topics )