Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Extension to XSD?
Extension to XSD? [message #598204] Wed, 14 June 2006 20:34
Alexander Stockinger is currently offline Alexander StockingerFriend
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: Fri Apr 26 21:42:41 GMT 2024

Powered by FUDForum. Page generated in 0.02558 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top