Jann Forrer wrote:
Jörn Nettingsmeier wrote:

fwiw, i have some code lying around that will create a skeleton lenya module with a form editor from a given (simple) rng grammar.


I was also thinking about generating a new module in 1.4.
But up to know, I could only generate a xslt out of the schema. This xslt on the other hand generates a input field for all elements in an xml-file.

i generate all needed files from the schema in one pass. most stuff is boilerplate code, but you always have all the schema information available, so each file can be customized as you like.

two problems are keeping me from releasing it:
* it got broken due to some recent svn changes, and i haven't had the time to fix it. * it is implemented in xsl 2.0 and would require to add the saxon-8 jar to lenya. i would like to use it everywhere instead of the old trax one, but again i have not found the time to work on it.

i think we should eventually try to create something like that for lenya. the cforms editor is a nice example, but the downside of cforms is that you need to modify so many different files, and most of it is boilerplate stuff, so it would be nice to automate it.

if you're interested, i can upload it somewhere, but as i said, it's not in working order, although the foundation is usable i think.

I am very much interested in your work. Can you pack and send it by mail or maybe better adding an "enhancment" bug in the bugzilla and attach the file.

it's here:
http://pol-serv1.politik.uni-duisburg-essen.de/~nettings/rng2cforms/
http://pol-serv1.politik.uni-duisburg-essen.de/~nettings/rng2cforms-0.0.1.tar.gz

start with reading rng2cforms.xsl, it's the main stylesheet that includes all the others. iirc there is a comment on how to invoke it. note that it only supports simple, russian-doll-style grammars atm - no refs, no defines.

the package includes michael kay's saxon 8 for convenience, so i'm not putting it on an apache server atm, since there will probably be licensing issues.

before anyone asks: it is absolutely impossible to do that kind of stuff in xstl1.0, so unless the xalan folk get up to speed, this will have to be out-of-tree...


best,

jörn






--
"Open source takes the bullshit out of software."
        - Charles Ferguson on TechnologyReview.com

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to