I have 2 xml files. How can I compare both files are equal or not by using xslt? If not equal means where the changes havebeen occur in the second xml?
In XPath 2.0 you could simple use fn:deep-equal.
Following the same pattern in XSLT 1.0, this stylesheet:
Documents are different Documents are deep equal false false false
Output:
Documents are different