How to Maintain Part of XForms in different file

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

How to Maintain Part of XForms in different file

Vedha
Is there a way to keep part of XForms code in separate file and dynamically include in the main XForms file?

Just for reusability.

I like to keep all by bind 's in separate file and include in main xhtml using something like xinclude?
Reply | Threaded
Open this post in threaded view
|

Re: How to Maintain Part of XForms in different file

Alessandro  Vernet
Administrator
Hi Vedha,

If you're writing XForms by hand, you can use XInclude. It is supported by Orbeon Forms. But since you're mentioning XInclude, maybe you tried already and it isn't working for the use case you have in mind?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet
Reply | Threaded
Open this post in threaded view
|

Re: How to Maintain Part of XForms in different file

Vedha
Thanks for your reply. I got it working. XInclude worked fine, i was complicating it with processors and all. Finally it was very simple.
Reply | Threaded
Open this post in threaded view
|

Re: How to Maintain Part of XForms in different file

Alessandro  Vernet
Administrator
Vedha, OK, perfect!
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet