inquirydog
Usenet Archive
- Joined
- Dec 13, 2003
- Messages
- 21
- Reaction score
- 0
Hi-
Does anyone know a way to compare whether two nodes contain the same information in xslt (the name, attributes, and all content recursivly should be the same. I am interested in the case where node ordering matters, and also the case where it doesn't, but perhaps that is an advanced topic). Ideally the method should be available to xpath expressions, so I think that creating new templates which compare nodes will not work (well, it will if you store the results of the apply-template in a variable and then use that in an expression, but this seems way too complex at times, especially since variables are fixed after they are evaluated).
thanks
-I
Does anyone know a way to compare whether two nodes contain the same information in xslt (the name, attributes, and all content recursivly should be the same. I am interested in the case where node ordering matters, and also the case where it doesn't, but perhaps that is an advanced topic). Ideally the method should be available to xpath expressions, so I think that creating new templates which compare nodes will not work (well, it will if you store the results of the apply-template in a variable and then use that in an expression, but this seems way too complex at times, especially since variables are fixed after they are evaluated).
thanks
-I