I frequently use xsd schema files in my work, and I got to wondering: Is it possible to write an xsd schema file for the xsd schema language? It seems like an obvious way to document the schema language, and I would think it would be one of the first things its developers would try. However, I've been unable to find such a file with obvious search terms. If it's not possible, why not? If it is possible, has anyone done it and is there a place I could download such a file?
Notes:
Wikipedia suggests the xsd schema language is "not 100% self describing" because "content and attribute declarations cannot depend on attributes or element context". If this is so, can you provide an example of a feature of xsd that requires such context and therefore can't be represented?
This question isn't purely academic. I may need to write a program that processes xsd schema files in the near future, and generating source code from an xsd (with a tool such as generateDS) would be an easy place to start.