Which Pipeline for XForms => XHTML?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Which Pipeline for XForms => XHTML?

lacco
Hello!

I try to figure out which pipeline/ XPL file I have to trigger to get a XHTML representation (with all the YUI controls etc) out of XForms source (extracted with form builder's "Edit Source"). I started with the "/xforms-renderer"-API, but it seems that it only converts XForms to some very basic HTML. My next step is now the html-view.xpl pipeline which seems a little bit more promising, but the output is still not executable by a web browser [1].

Which are the XPLs/ XSLTs files I have to look at to get the desired output?

Thank you very much!


[1] http://gist.github.com/380003
Reply | Threaded
Open this post in threaded view
|

Re: Which Pipeline for XForms => XHTML?

lacco
I figured out that a combination of html-view.xpl and epilogue.xpl should be able to convert a XForms to XHTML. My current version of the combined pipeline can be found under [1], but right now it still does not work with a simple "Hello World" form [2]: I get different kinds of Java exceptions [3], some database-related could be eliminated by changing the property "oxf.xforms.state-handling" to "client". Do you have any ideas about the others, what am I doing wrong?

Thx!

[1] http://gist.github.com/381364#file_generic_pipeline.xml
[2] http://gist.github.com/381364#file_hello_world_pipeline.xml
[3] http://gist.github.com/381364#file_console.log
Reply | Threaded
Open this post in threaded view
|

Re: Re: Which Pipeline for XForms => XHTML?

Alessandro  Vernet
Administrator
You could put a debug somewhere in the epilogue-servlet.xpl, for
instance on the data input of the oxf:xml-converter, and you'll have
the HTML in the log, which you can extract from there. But I am not
sure what would be the goal of this exercise though. You are aware
that this HTML won't run without Orbeon Forms, as it needs to do Ajax
request to Orbeon Forms, right?

Alex

On Tue, Apr 27, 2010 at 2:45 PM, lacco <[hidden email]> wrote:

>
> I figured out that a combination of html-view.xpl and epilogue.xpl should be
> able to convert a XForms to XHTML. My current version of the combined
> pipeline can be found under [1], but right now it still does not work with a
> simple "Hello World" form [2]: I get different kinds of Java exceptions [3],
> some database-related could be eliminated by changing the property
> "oxf.xforms.state-handling" to "client". Do you have any ideas about the
> others, what am I doing wrong?
>
> Thx!
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/Which-Pipeline-for-XForms-XHTML-tp2065893p2068310.html
> Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.
>
>
> --
> 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
> OW2 mailing lists service home page: http://www.ow2.org/wws
>
>


--
Orbeon Forms - Web forms, open-source, for the Enterprise -
http://www.orbeon.com/
My Twitter: http://twitter.com/avernet


--
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
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet