The regiochemistry and stereochemistry of the biosynthesis of vitamin B6 from triose units.