This thread kinda makes me glad I have a female!
I've had a few male foster GSDs and none of them peed on their legs. The other male dogs I've had mostly lifted their leg or were close enough to the ground (short, not GSDs) that it wasn't a problem.
Actually my terrier mix who had hip dysplasia had an interesting solution... Before his FHO surgery, sometimes he'd go to mark a tree and he would lift the "good" leg and balance on the "bad" hip. That would bother him though, so he's just lift that leg up too! He'd stand there, on his front legs doing basically a "handstand" until he was done!