If you're interested in functional programming, you might also want to checkout my second blog which i'm actively working on!!

Thursday, May 7, 2009

comparing nodes with XSLT

Sometimes you want to compare xml nodes for equality. In case of equality you want let's say consequent rows to be spanned. Xpath provides a nice function for this use case:

http://www.w3.org/TR/xpath-functions/#func-deep-equal

Below you will find a testcase (input, xslt and output).

Input.xml













XSLT
















Output.xml


No comments:

Post a Comment