Fixed the table & fig title bug in appendix

Also removed redundant templates & functions from dita2fo_common.xsl.