xsl-list
[Top] [All Lists]

[xsl] Diffing XML

2012-10-24 05:36:34
I have a requirement to produce an end-user-readable "checklist" of all the 
places where an XML file has changed since the last version, with custom 
explanations of what each difference is. I'm able to run diffs which are fine 
for my own purposes, but the end users need the differences spelled out more 
precisely in plain language (eg: "there is an extra paragraph here", "the text 
'xyz' has changed", "the attribute 'audience' has been changed to 'book'" etc).

Being an XSLT developer, I'm thinking of using an XSLT stylesheet to work on 
the "new" version of the file, document() in the "old" version, and then 
compare the nodes in the "new" version to those in the "old" version, 
generating appropriate messages into an HTML output as I go along.

Does that sound like a reasonable approach? Are there existing tools or 
examples that might do what I'm after? Any recommendations on the best way of 
comparing individual nodes? I am planning to do this in Oxygen 14 so the world 
is my oyster as far as XSLT is concerned. :)

Just looking for general suggestions to point me in the right direction. Thanks!


______________________________________________________________________
This email has been scanned by the Symantec Email Security.cloud service.
For more information please visit http://www.symanteccloud.com
______________________________________________________________________

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--


<Prev in Thread] Current Thread [Next in Thread>