[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] Diff of two XML's using XSLT


Subject: Re: [xsl] Diff of two XML's using XSLT
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Sun, 24 Sep 2006 22:15:59 +0530

I am not sure if there is a comprehensive pure XSLT utility for
comparing two XML documents. Google doesn't return any such solution.

I attempted something similar some time back. Please have a look at
http://gandhimukul.tripod.com/misc.html (item no 3). Perhaps you could
try extending my stylesheet.

But there are non XSLT solutions which do this. Two such tools are:
http://www.stylusstudio.com/xml_differencing.html
http://www.alphaworks.ibm.com/tech/xmldiffmerge

On 9/23/06, Guy Ellis <wildfiction@xxxxxxxxx> wrote:
This may be commonly solved problem but I yet to see it discussed
anywhere and search has not shown up anything..

Say, for example, you generate some "clean" XML using TIDY and then
you want to compare the before and after using something like WinDiff
etc.

Instead I would like to know if someone has written and XSLT template
that can compare two XML files and "diff" them, producing perhaps HTML
output showing missing on either side and differences?

Thanks!
Guy


--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com


Current Thread
Keywords