Subject: Re: [xsl] XML Differences From: Antonio Fiol Bonnín <fiol@xxxxxxxxxx> Date: Thu, 27 Jun 2002 07:38:26 +0200 |
Hi,I have done something along that line. However the result was very picky (as expected from an automatic comparison tool), and I did not find any way of making it better.
Has someone work on a style sheet that "detects" the different between two documents. Taking one of them as the master, the style sheet should be able to return the included/excluded elements (attributes) and element content differences.
Any information will be very much appreciated.
Carlos
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
.
File 1: <asdf> <qwerty> <poiuyy fwefew="1" /> text </querty> <test /> </asdf>
File 2: <asdf> <qwerty> <poiuyy fwefew="2" /> different text </querty> </asdf>
Result: <asdf> <qwerty> <xsl:choose> <xsl:when test="$mode=1"> <poiuyy fwefew="1" /> text </xsl:when> <xsl:when test="$mode=2"> <poiuyy fwefew="2" /> different text </xsl:when> </xsl:choose> </querty> <xsl:choose> <xsl:when test="$mode=1"> <test /> </xsl:when> </xsl:choose> </asdf>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] XML Differences, Carlos Sanchez | Thread | [xsl] Skip Nodes If Condition, Scott Purcell |
Re: [xsl] remove extra chars from t, Mike Brown | Date | Re: [xsl] remove extra chars from t, James Fuller |
Month |