File: Data.xml
title 1
A
B
line 1
line 2
line 3
line 4
line 5
line 6
File: Transform.xsl
version="2.0">
group-by=".">
Cast:
mode="cast-list" />
,
Output:
title 1
Cast:
B
A
B
line 1
line 2
line 3
line 4
line 5
line 6