Damiano,
> Related to my work on "pure XForms capability" for OPS (see
> <
http://mail-archive.objectweb.org/ops-users/2006-08/msg00515.html>),
> I'm trying to create a new processor to do URL rewriting of _XForms_
> elements, instead of (X)HTML elements.
Sounds good.
> So I had a look at the existing XHTMLRewrite.java thus
> AbstractRewrite.java file... but I must admit I didn't understand
> everything :-)
To be honest, neither do I (I did not write this code - not that I
always understand my own code anyway ;-)
> It _looks_ quite complex to do this URL rewriting. Wouldn't a 'simple'
> XSLT stylesheet fit this job ? In fact, the comments in the Java code
> say it implements such a stylesheet !
That's what we had before, and you can certainly do that. But XSLT
turned out to add too much overhead. We had several stylesheet in a row,
including for URL rewriting, conversion of XForms to XHTML, and more. So
we decided to rewrite as much as possible natively in Java.
> Could you give me some tips on how to adapt, if possible, the current
> "oxf:xhtml-rewrite" processor to my needs ?
Use the source, Luke ;-) I can't tell you much more than that unfortunately.
-Erik
--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/--
You receive this message as a subscriber of the
[hidden email] mailing list.
To unsubscribe: mailto:
[hidden email]
For general help: mailto:
[hidden email]?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws