Not only does this work perfectly, I even have a 3e homebrewed epic feat that requires this, which I made for the Headsman of Moil in my 3.5 conversion of Return to the Tomb of Horrors:
WALL OF SWORDS STYLE [Epic, Style]
Your mastery of the ‘wall of swords’ style of fighting makes you lethal and virtually invulnerable.
Prerequisites: Str 25+, int 15+, Combat Expertise, Combat Reflexes, Greater Weapon Focus (any two-handed weapon), Improved Combat Expertise, Power Attack, Weapon Focus (any two-handed weapon)
Benefit: Whenever you attack with maximum power attack and maximum combat expertise with a two-handed weapon, you gain a +10 style bonus on your attack roll.