Extension to XSD? [message #598204] |
Wed, 14 June 2006 20:34 |
Alexander Stockinger Messages: 8 Registered: July 2009 |
Junior Member |
|
|
Hello,
I want to extend the XSD validator by a self-written feature. Basically
what I want to accomplish it to restrain a <xsd:any/> tag in a complex
type definition to only accept elements of types that extend a specific
base type (some sort of polymorphism if you want). so what I want to end
up with is something like <xsd:any typeRestriction="ns0:MyBaseType"/>.
I guess specifying this in a valid XSD document wouldn't be all that
hard - simply provide a namespace for the typeRestriction attribute and
things should go well, shouldn't they? my question is: how to integrate
that in a JAXB compliant XSD validator? Is there a easy way to do what I
want or do I need to implement my own XSD validator (which would indeed
be overkill).
Thanks for your help,
Alex
|
|
|
Powered by
FUDForum. Page generated in 0.02558 seconds