Finish with conditional XSD generation - works on Win, needs to be tested on Ubuntu.