Thanks very much, that works a treat with one minor change.
I amended the line
<xsl:if test="not(Plot = preceding-sibling::*[1]/Plot)">
to read
<xsl:if test="not(Plot = preceding-sibling::OrderLine[1]/Plot)">
Not sure if this is because I didn't post my complete source XML or some other reason.
Anyhow, it works now, I can enjoy the rest of my Friday afternoon now
Thanks again
Gray