Easy to implement basic XML diff tool using XForms?

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

Easy to implement basic XML diff tool using XForms?

Stian Sigvartsen
Easy to implement basic XML diff tool using XForms?

Does anyone know of a way to generically compare two XForms instances valid to the same schema?
I need to render a XForm which provides users with the ability to edit the first / default instance, yet display, using <xforms:output/> the original value for the field, which is held in the second XForms instance on the side of each bound control.

For elements with maxOccurs="unbounded" (or generally higher than 1) the position of the element can be used to compare the equivalent element of the second instance - i.e. keeping it simple.

Any thoughts would be much appreciated.

-Stian



--
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
Reply | Threaded
Open this post in threaded view
|

Re: Easy to implement basic XML diff tool using XForms?

Erik Bruchez
Administrator
Could you put, maybe temporarily, @id attributes on all elements, and
then use that to match between the two instances?

-Erik

On Tue, Aug 21, 2012 at 12:13 PM, Stian Sigvartsen
<[hidden email]> wrote:

> Does anyone know of a way to generically compare two XForms instances valid
> to the same schema?
> I need to render a XForm which provides users with the ability to edit the
> first / default instance, yet display, using <xforms:output/> the original
> value for the field, which is held in the second XForms instance on the side
> of each bound control.
>
> For elements with maxOccurs="unbounded" (or generally higher than 1) the
> position of the element can be used to compare the equivalent element of the
> second instance - i.e. keeping it simple.
>
> Any thoughts would be much appreciated.
>
> -Stian
>
>
>
> --
> 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
>


--
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