`<xsl:output indent="yes"/>` leads to bad spaces. Example:  It should be diligentiam]diligere S2c or diligentiam]diligere S2c Add spaces, where it makes sense. But, turn of `indent="yes"`!