[jboss-dev-forums] [Design of JBossXB] - Re: xsd:attribute ref unsupported in unmarshaller

anil.saldhana@jboss.com do-not-reply at jboss.com
Wed Aug 15 15:57:26 EDT 2007


Sorry, I read your post incorrectly. Modifying the xml (and not the xsd ) with a specific prefix on the flag attribute works, but it will be difficult for users to pick that approach  (specify attribute code with no namespace prefix and flag with a prefix).

Since I need to just externalize the type, I can get it to work with:

  |   <xsd:simpleType name="module-option-flag">
  |       <xsd:restriction base="xsd:string">
  |          <xsd:enumeration value="required"/>
  |          <xsd:enumeration value="requisite"/>
  |          <xsd:enumeration value="sufficient"/>
  |          <xsd:enumeration value="optional"/>
  |       </xsd:restriction>
  |    </xsd:simpleType>
  | 
  |     <xsd:complexType name="loginModuleInfo">
  |       ....
  |       <xsd:attribute name="code" type="xsd:string" use="required"/>
  |       <xsd:attribute name="flag" type="jbsx:module-option-flag" use="required"/>
  |    </xsd:complexType>
  | 

I can move on.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4074571#4074571

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4074571



More information about the jboss-dev-forums mailing list