Skip to main content

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 20:34
Alexander Stockinger is currently offline Alexander StockingerFriend
Messages: 8
Registered: July 2009
Junior Member

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,

Previous Topic:XSD root element
Next Topic:Extension to XSD?
Goto Forum:

Current Time: Sat Jan 23 01:44:33 GMT 2021

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

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

Back to the top