Blijkbaar was ik te lui om tot het einde van de documentatie te lezen... Verderop staat in de documentatie:
Dit zal werken
PIVOT XML (AVG(salary) FOR (company) IN (SELECT DISTINCT company FROM companies))
Bekijk de volledige documentatie
http://docs.oracle.com/cd /B28359_01/server.111/b28286/statements_10002.htm#CHDFAFIE