Re-format addPtr.xsl to make it readable. Also add a ptr attribute to fo:table-and-caption and fo:table-caption, even if they are not supported, in order to avoid a crash.