Jann Forrer wrote:
Jörn Nettingsmeier wrote:
Jann Forrer wrote:
Jörn Nettingsmeier wrote:
[ ... ]
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
Thank you for the pointer. I did download your work and will have a look
at it as soon as possible ....
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.
Therfore i decided to do the first step in java in order to resolve all
includes and following all refs to their defs.
This class then generates the appropriate xslt-file.
supporting only a subset of rng was a design decision to keep the
prototype simple and get working results more quickly. it's by no means
impossible (actually quite easy since xslt2 supports intermediary result
trees) to support all internal and external refs with plain xsl code.
as to my choice of language, it may be hard to believe for anyone who
has tried to solve nontrivial problems in xslt version 1, but
xslt2/xpath2 is actually beautiful and very pleasant to use, mostly due
to the fact that variables are no longer second-class citizens and can
contain usable trees, and to the introduction of <xsl:function/>.
regards,
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]