Does anyone know a good way of comparing aspects of two XML instance
documents using XSLT. The number of possible differences may be large so I
would prefer not to have to create a hard coded test for each e.g. would
prefer not to do this :-
<xsl:variable name="foo" select="document('foo.xml')"/>
<xsl:template match="Person">
<xsl:if test="FName = $foo/Person/FNamel"> .. report mis-match ..
</xsl:if>
<xsl:if test="MiddleInitial = $foo/Person/MiddleInitial"> .. report
mis-match .. </xsl:if>
<xsl:if test="LName = $foo/Person/LName"> .. report mis-match ..
</xsl:if>
....
</xsl:template>
... gzillions of other templates and tests ...
Am I barking up the wrong tree here trying to do this sort of thing in XSLT
??
Cheers
Fraser.
--~------------------------------------------------------------------
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>
--~--