SchemaBuilder.java not setting constraints in handleElement method
------------------------------------------------------------------

         Key: WSCOMMONS-36
         URL: http://issues.apache.org/jira/browse/WSCOMMONS-36
     Project: WS-Commons
        Type: Bug

  Components: XmlSchema  
 Environment: Windows XP SP2
    Reporter: Brent Ulbricht


When trying to read a schema that contains an element with a complexType and 
multiple
constraints (key, keyref, unique), the handleElement method in 
SchemaBuilder.java only
builds the complexType.

For example, in the following schema only the complexType is built.

  <element name="constraintTest">
    <complexType>
      <sequence>
        <element name="manufacturers" type="tns:ManufacturerType"/>
        <element name="products" type="tns:ProductType"/>
      </sequence>
    </complexType>

    <unique name="uniqueTest">
      <selector xpath="tns:manufacturers/tns:location"/>
      <field xpath="@district"/>
    </unique>

    <key name="keyTest">
      <selector xpath="tns:products/tns:productName"/>
      <field xpath="@productId"/>
    </key>

    <keyref name="keyRefTest" refer="tns:keyTest">
      <selector xpath="tns:manufacturers/tns:location/tns:productName"/>
      <field xpath="@productId"/>
    </keyref>

  </element>



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to