@SmartDataUK I believe <xsl:output method="xml" indent="yes"/> on the XSLT would have saved you the xmllint formatting step.