Hey Steve,
Good code - but if you wrap it in [ code="sql" ] [ /code ] tags (remove those extra spaces), it will look much nicer on the page 😉
The PIVOT is cool if there is a known, constant, number of delimited strings (though a manual PIVOT based on CASE is faster).
Side note: a more general problem that most methods struggle with is that of the quoted/embedded delimiter:
apple,pear,banana,"melon,honeydew",grape
Paul