Fixed bug #309338, reported by Kupriyanov Anotolij. Added a regression

* xmlschemastypes.c: Fixed bug #309338, reported by Kupriyanov
  Anotolij.
* test/schemas/bug309338* result/schemas/bug309338*:
  Added a regression test for the above bug.
6 files changed