Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » XML Schema Definition (XSD) » Validation of annotations
Validation of annotations [message #73161] Wed, 03 October 2007 20:14 Go to next message
Eclipse UserFriend
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 20:31 Go to previous message
Eclipse UserFriend
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 20:31 Go to previous message
Ed Merks is currently offline Ed MerksFriend
Messages: 33142
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


Ed Merks
Professional Support: https://www.macromodeling.com/
Previous Topic:Validation of annotations
Next Topic:how to get ALL element declarations ?
Goto Forum:
  


Current Time: Sat Apr 27 04:27:09 GMT 2024

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

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

Back to the top