Getting restrictions for xsd types