You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commons-dev@ws.apache.org by "Davanum Srinivas (JIRA)" <ji...@apache.org> on 2006/06/21 04:06:30 UTC

[jira] Resolved: (WSCOMMONS-36) SchemaBuilder.java not setting constraints in handleElement method

     [ http://issues.apache.org/jira/browse/WSCOMMONS-36?page=all ]
     
Davanum Srinivas resolved WSCOMMONS-36:
---------------------------------------

    Resolution: Fixed

Thanks Brent. Applied.

-- dims

> 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
>  Attachments: patch.txt
>
> 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: commons-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: commons-dev-help@ws.apache.org