You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Jacob Danner (JIRA)" <xm...@xml.apache.org> on 2005/04/19 21:45:41 UTC

[jira] Closed: (XMLBEANS-54) problem with default value

     [ http://issues.apache.org/jira/browse/XMLBEANS-54?page=all ]
     
Jacob Danner closed XMLBEANS-54:
--------------------------------

    Assign To:     (was: Yana Kadiyska)

Fix Verified in V2 Branch. closing

> problem with default value
> --------------------------
>
>          Key: XMLBEANS-54
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-54
>      Project: XMLBeans
>         Type: Bug
>   Components: Binding
>  Environment: Windows XP, jdk 1.4.2_05
>     Reporter: plastic
>      Fix For: Version 2 Beta 1
>  Attachments: papinet.xsd
>
> getting error during binding xsdfile to java objects:
> default value '1' is not a valid value
> <xsd>
> .....
> <xs:element name="TransportUnitCharacteristics">
> 	<xs:complexType>
> 		<xs:sequence>
> 			<xs:element ref="TransportUnitCode" minOccurs="0"/>
> 			<xs:element ref="TransportUnitMeasurements" minOccurs="0"/>
> 			<xs:element ref="TransportUnitCount" minOccurs="0"/>
> 			<xs:element ref="TransportUnitIdentifier" minOccurs="0" maxOccurs="unbounded"/>
> 			<xs:element ref="TransportUnitText" minOccurs="0"/>
> 			<xs:element ref="TransportUnitDetail" minOccurs="0"/>
> 		</xs:sequence>
> 		<xs:attribute name="TransportUnitType" type="transportUnitType" use="required"/>
> 		<xs:attribute name="TransportUnitVariable" type="transportUnitVariable" use="optional"/>
> 		<xs:attribute name="TransportUnitLevel" type="nni1" use="optional" default="1"/>
> 	</xs:complexType>
> </xs:element>
> .....
> <xs:simpleType name="nni1">
> 	<xs:restriction base="xs:nonNegativeInteger">
> 		<xs:totalDigits value="1"/>
> 	</xs:restriction>
> </xs:simpleType>
> .....
> </xsd>
> this is a fragment of papiNet xml file

-- 
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: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org