Synthesis of both enantiomers of hydroxypipecolic acid derivatives equivalent to 5-azapyranuronic acids and evaluation of their inhibitory activities against glycosidases.