Enumerations in a schema


we use enumerations within a W3C schema. We also use this schema to generate a tsd file. All works fine.

Now we want check from within a java program whether some enumerations exist for a certain element. How does this work and does it work at all?