Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Extension to XSD?
Extension to XSD? [message #598204] Wed, 14 June 2006 16:34
Alexander Stockinger is currently offline 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
Previous Topic:XSD root element
Next Topic:Extension to XSD?
Goto Forum:
  


Current Time: Thu Aug 21 10:22:01 EDT 2014

Powered by FUDForum. Page generated in 0.02391 seconds