users@jaxb.java.net

Appinfo annotations

From: Jeff Lowery <jlowery_at_scenicsoft.com>
Date: Mon, 13 Jan 2003 17:41:38 -0800

This message was originally submitted by jlowery_at_SCENICSOFT.COM to the
JAXB-INTEREST list at JAVA.SUN.COM. If you simply forward it back to the list,
using a mail command that generates "Resent-" fields (ask your local user
support or consult the documentation of your mail program if in doubt), it will
be distributed and the explanations you are now reading will be removed
automatically. If on the other hand you edit the contributions you receive into
a digest, you will have to remove this paragraph manually. Finally, you should
be able to contact the author of this message by using the normal "reply"
function of your mail program.

----------------- Message requiring your approval (13 lines) ------------------
The following annotation caused JAXB beta to throw an error:

      <xs:annotation>
         <xs:appinfo>
            <Version Path="@Attribute" First="1.1"/>
         </xs:appinfo>
      </xs:annotation>

It doesn't like the Version element. I would expect JAXB to only look for
appinfo elements within a particular source namespace, either by checking
the source attribute of the annotation element (if there is one), or the
namespace of the child elements of appinfo. Since neither are specified
here, Version should be ignored.