I have the following XML input document:
1
2
3
4
5
6
7
8
The task is to flatten the data in descendants of the 'data' element to a plain text file so that each value of a descendant element of a certain element name is combined with each value of the elements of a different name.
To solve that I wrote the following stylesheet that first groups the data with for-each-group and then processes those groups with a recursive named template:
When I run that stylesheet with Saxon 9 or AltovaXML tools 2010 I get the output I want, namely
val_A,val_B,val_C,val_D,val_E,val_F 1,3,,5,,7 1,3,,5,,8 1,3,,6,,7 1,3,,6,,8 1,4,,5,,7 1,4,,5,,8 1,4,,6,,7 1,4,,6,,8 2,3,,5,,7 2,3,,5,,8 2,3,,6,,7 2,3,,6,,8 2,4,,5,,7 2,4,,5,,8 2,4,,6,,7 2,4,,6,,8
When I run the stylesheet with Intel's XSLT 2.0 processor I get a completely different result:
val_D,val_D,val_B,val_F,val_A,val_F,val_A,val_C,val_E,val_B 1,2,3,4,,5,6,,7,8
That seems to be a bug with Intel's processor.

