Hi List,
I am writing an application that uses the XML Schema API.
I have two element declarations (a local and a top-level) looking like
this (one is a ref to the other):
<xsd:element name="date" type="xsd:date">
<xsd:annotation>
<xsd:documentation>date</xsd:documentation>
</xsd:annotation>
</xsd:element>
...
<xsd:sequence>
<xsd:element ref="date">
<xsd:annotation>
<xsd:documentation>dateref</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
...
A call to getAnnotation() on the local element declaration gives me the
annotation for the global element. It seems to me that there is no way
for me to access the local annotation for the nested element declaration
using the Schema API.
Am I correct, and if so, is it a bug or simply the way it is supposed to
work? (I'll grant that an annotation on a element declaration with a ref
is somewhat unconventional, but still, it _is_ a valid schema)
Thanks for any input,
Bjarke Buur Mortensen
--
Bjarke Buur Mortensen <[EMAIL PROTECTED]>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]