Validation of annotations [message #73161] |
Wed, 03 October 2007 20:14  |
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 20:31  |
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 20:31  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.03097 seconds