Pete Muir wrote:
Hi Norman, and other XML experts,
One of the tasks for Web Beans is to build an XSD. There is an XSD per
package, and an root-element per class. Classes can have annotations,
such as bindings, which makes them into a bean. This means, for example,
that a child element of the class element could be a binding type
annotation (it's XML element equivalent), however placing, for example,
an annotation which is not, for example, a binding type would be an error.
Therefore, we can increase the "type safety" of the XSD by restricting
the category of child elements that can be placed in the class element.
However, I don't know how to do this in XSD - any pointers?
I'm not sure I understand what you want, however it sounds like a
substitution group. Can you give an example?
--
Jason T. Greene
JBoss, a division of Red Hat