XSD Schema usage for XForm model

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

XSD Schema usage for XForm model

Karthi
1) Is there a feature to have XSD schema validation applied for the entire XML that's been submitted by form runner to an external service.
        For example: User upload an XSD schema from form builder (just like simple type schema upload) which will then be used by Orbeon form runner to validate the XML generated during user form submission.
2) Same way, do we have a feature in Orbeon to format the user submitted instance xml model data to a different XML structure?
        For example: User designs a form for which an XForm model xml is embedded in XHTML which is bound to UI components, then the same xml is to be converted to one or more other formats which is more business specific (or any other format)? I could write an XSL to process the incoming XML to convert to different format, but it will be good if form runner does this transformation and call integrated application service with converted XML -- in which case integrated application need not to understand the XForm XML instance used by Orbeon form builder and runner.

Thanks,
Reply | Threaded
Open this post in threaded view
|

Re: XSD Schema usage for XForm model

Alessandro  Vernet
Administrator
Hi Karthi,

1. You can attach a schema to a form in Form Builder, allowing you to use the single types in the schema to validate fields. But this is not to validate the XML produced by Orbeon Forms.

http://doc.orbeon.com/form-builder/advanced/xml-schema-support.html

2. There is no built-in facility to map the XML format produced by Form Builder to another XML format, and we'd indeed recommend you use XSTL for this.

I hope this helps,

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

Re: XSD Schema usage for XForm model

Karthi
Thank you Alessandro Vernet.
Its helpful to understand.