Form Template Migration - apply xsl transformation to templates?

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

Form Template Migration - apply xsl transformation to templates?

bwallis42
We have a lot of old customer forms dating back many years and running with orbeon 3.9. There are 100's that are hand crafted, mostly to enable the use of repeats.

We need to migrate these templates so they will work with Orbeon 4.10. The migrations could potentially be done on the fly using XSL transformations. For example, most of the hand crafted templates are missing the metadata instance
            <xforms:instance id="fr-form-metadata" xxforms:readonly="true">
                <metadata>
                    <application-name>CPF</application-name>
                    <form-name>My_eform_checkboxes</form-name>
                    <title xml:lang="en">Untitled Form</title>
                    <description xml:lang="en"/>
                    <author/>
                    <logo filename="" mediatype="" size=""/>
                </metadata>
            </xforms:instance>

This could be inserted on the fly if I can

a) get the form name and title and
b) configure orbeon to run an XSLT transformation on the form template when it is loaded.

There are other things we need to do as well but all should be doable via xsl transformations

Is there a way I could do this via configuration in properties-local.xml?
Reply | Threaded
Open this post in threaded view
|

Re: Form Template Migration - apply xsl transformation to templates?

Alessandro  Vernet
Administrator
Hi Brian,

If you want to transform repeats into grids, it might be worth doing this when loading the form in Form Builder, so you can check that everything is OK, and when it is, publish the form. This would allow you to handle the forms incrementally, and perform some checks for each form. Assuming this would work for you, you could add your own XSLT to annotate.xpl:

https://github.com/orbeon/orbeon-forms/blob/master/src/resources/forms/orbeon/builder/form/annotate.xpl

Could this work for you?

Alex
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet