File: Data.xml
title 1
author 1
publisher 1
1-11-11111-1
6.99
235
title 2
author 2
publisher 2
0 14 018967 X
12.99
12
File: Transform.xslt
xmlns:xs="http://www.w3.org/2001/XMLSchema"
exclude-result-prefixes="xs" version="2.0">
select="distinct-values(/booklist/book/publisher)" />
Sales volume by publisher
Sales volume by publisher
Publisher
Total Sales Value
Output:
Sales volume by publisher
Sales volume by publisher
Publisher
Total Sales Value
publisher 1
235
publisher 2
12