The basic rules regarding the Schengen visa are described in the Visa Code (Regulation EC No. 810/2009) where it is said that citizens of certain countries need a valid visa to visit any country that is member of the Schengen zone. This is necessary also if one is only traveling through a country in the zone.