I know that XSLT itself has attribute-sets, but that forces me to use
every time I want to output an<
In XSLT 2.0 there is also another option. The following template can be in a seperate file. You only need to include this file in the original xsl file that generates the FO structure.