as far as I know (I'm using Visio 2002), you can't insert attributes to
the UML-Template in a way they are recognized as attributes (you could
simply insert the text in the subshapes).
I also tried that, but finally I had to build my own UML-Shapes to do that.