users@jaxb.java.net

jaxb plugin - can't have custom tags under a redefine element?

From: Mike Bailey <jmbailey_at_nps.edu>
Date: Tue, 5 May 2009 10:04:26 -0700 (PDT)

Consider the following fragment:

<xs:redefine schemaLocation="../../base.xsd">
  <xs:simpleType name="MeasurementQualifierSimpleType">
    <xs:annotation>
      <xs:appinfo>
        <customEditor:DisplayedName name="--put displayed name
here--"></customEditor:DisplayedName>
...

I get "[ERROR] compiler was unable to honor this DisplayedName
customization. It is attached to a wrong place, or its inconsistent with
other bindings." Seems to come from the CustomizationContextChecker class.

The point of this attempt is to wrap a "shell" around an already developed
schema, adding editor hints, etc., to each element by using the "redefine"
feature. JAXB 2.1.9 doesn't allow this, and I'm unsure if there is a logical
reason for it or it's an oversight in the compiler. Any ideas?

-- 
View this message in context: http://www.nabble.com/jaxb-plugin---can%27t-have-custom-tags-under-a-redefine-element--tp23391778p23391778.html
Sent from the java.net - jaxb users mailing list archive at Nabble.com.