Fixes the id attribute to be ref-id to allow bookmarks to build. Leaves a weird xsl error that omits the <fo:block> in one place though.