An implementation of ID/IDREF fixup after transclusion