Re: [xsl] Visual XHTML diff

Subject: Re: [xsl] Visual XHTML diff
From: Michael Müller-Hillebrand <mmh@xxxxxxxxxxxxx>
Date: Mon, 28 Dec 2009 11:50:35 +0100
Am 24.12.2009 um 23:40 schrieb Aaron Gray:

>> You have both missed my point. I want an XSLT stylesheet to compared
>> or merge XML(XBEL)/XHTML files resulting in XHTML or XBEL output
>> files. Maybe I shouldhave not said "Visual".
>>>>> I am wondering how to do a visual diff of two XHTML files, one newer
>>>>> one and a second older one, showing new text in green and
>>>> old text in
>>>>> red strike through.
>>>>> I need to do this in XSLT 1.0 if it is at all possible, although I
>>>>> would have thought it was as its a Turin computable problem.
>>>>>
>>>>> Many thanks in advance,
>
> Anyone give me any clue how to approach this problem ?

Apparently this is not a task that would be very easy to do in XSL, depending
on the level of detail you want in the result. It would be no fun at all to
implement a longest common string algorithm in XSL 1.0. So, it seems most
solutions use other tools to prepare something which could then be turned into
a visual representation in a way you like.

I am currently evaluating those options to handle the diff task:

* http://nwalsh.com/java/diffmk/ [not under development]
* http://xmlunit.sourceforge.net/ [active development]
* http://www.xmldifftool.com/ [author says a new version is under
development]

- Michael

--
_______________________________________________________________
Michael M|ller-Hillebrand: Dokumentations-Technologie
Adobe Certified Expert, FrameMaker
Lvsungen und Training, FrameScript, XML/XSL, Unicode
Blog: http://cap-studio.de/ - Tel. +49 (9131) 28747

Current Thread