Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Validation of annotations
Validation of annotations [message #73161] Wed, 03 October 2007 16:14 Go to next message
Eclipse User
Originally posted by: nospam.ibm.com

Hi,

We use appinfo annotations in our schema. Validation appears not to validate the content within the annotation, for
example I can place unqualified elements in the annotation (having explicitly set the schema to be element qualified) or
I can add elements from another schema's namespace which don't exist in that schema. Using a SaxParser on the xsd shows
the errors.

Thanks in advance

Tony
Re: Validation of annotations [message #73180 is a reply to message #73161] Wed, 03 October 2007 16:31 Go to previous message
Eclipse User
Originally posted by: merks.ca.ibm.com

Tony,

That's not supported directly. You'd need to run a DOM validator
against the DOM if you want validation on annotation content. Then you
get into issues like is the schema location for the namespace known, and
so on. In general, since the validation for those wildcards is lax, one
could argue that it's reasonable for a validator to always fail to find
the schemas (i.e., if there were a fire wall) and to always find no
problems...


TG wrote:
> Hi,
>
> We use appinfo annotations in our schema. Validation appears not to
> validate the content within the annotation, for example I can place
> unqualified elements in the annotation (having explicitly set the
> schema to be element qualified) or I can add elements from another
> schema's namespace which don't exist in that schema. Using a SaxParser
> on the xsd shows the errors.
>
> Thanks in advance
>
> Tony
Re: Validation of annotations [message #602665 is a reply to message #73161] Wed, 03 October 2007 16:31 Go to previous message
Ed Merks is currently offline Ed Merks
Messages: 25740
Registered: July 2009
Senior Member
Tony,

That's not supported directly. You'd need to run a DOM validator
against the DOM if you want validation on annotation content. Then you
get into issues like is the schema location for the namespace known, and
so on. In general, since the validation for those wildcards is lax, one
could argue that it's reasonable for a validator to always fail to find
the schemas (i.e., if there were a fire wall) and to always find no
problems...


TG wrote:
> Hi,
>
> We use appinfo annotations in our schema. Validation appears not to
> validate the content within the annotation, for example I can place
> unqualified elements in the annotation (having explicitly set the
> schema to be element qualified) or I can add elements from another
> schema's namespace which don't exist in that schema. Using a SaxParser
> on the xsd shows the errors.
>
> Thanks in advance
>
> Tony
Previous Topic:Validation of annotations
Next Topic:how to get ALL element declarations ?
Goto Forum:
  


Current Time: Wed Apr 16 15:58:16 EDT 2014

Powered by FUDForum. Page generated in 0.01812 seconds