I posted yesterday, but I guess I am not eligible yet.
After some investigation, I realize the problem I have is with the xslt file. As written, it has no provision for sorting like-named elements. So, if you have 50 elements of the sort:
<whatever name="zyx" />
<whatever name="qrd" />
...
<whatever name="abc" />
They end up sorted in essentially random order.
If I were expert enough in xslt (I am essentially a novice) I guess I could solve this myself.
The XML I want to compare has multiple elements of the same type on multiple levels. I need an xslt that will sort elements of the same type by their name attribute, within an overall sort by element. (And, sorted by attribute within element)
From a cursory Google, I gather this is a messy problem in the general case.
Maybe an xslt guru will join in.
After some investigation, I realize the problem I have is with the xslt file. As written, it has no provision for sorting like-named elements. So, if you have 50 elements of the sort:
<whatever name="zyx" />
<whatever name="qrd" />
...
<whatever name="abc" />
They end up sorted in essentially random order.
If I were expert enough in xslt (I am essentially a novice) I guess I could solve this myself.
The XML I want to compare has multiple elements of the same type on multiple levels. I need an xslt that will sort elements of the same type by their name attribute, within an overall sort by element. (And, sorted by attribute within element)
From a cursory Google, I gather this is a messy problem in the general case.
Maybe an xslt guru will join in.
Comment