You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by xm...@xml.apache.org on 2004/09/29 03:31:36 UTC

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

Message:

   The following issue has been resolved as FIXED.

   Resolver: Kevin Krouse
       Date: Tue, 28 Sep 2004 6:30 PM

this should be fixed now in JavaIntegerHolderEx.java rev 1.4
---------------------------------------------------------------------
View the issue:
  http://issues.apache.org/jira/browse/XMLBEANS-54

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XMLBEANS-54
    Summary: problem with default value
       Type: Bug

     Status: Resolved
   Priority: Major
 Resolution: FIXED

    Project: XMLBeans
 Components: 
             Binding
   Fix Fors:
             V2 Beta 1

   Assignee: Yana Kadiyska
   Reporter: plastic

    Created: Wed, 1 Sep 2004 5:11 PM
    Updated: Tue, 28 Sep 2004 6:30 PM
Environment: Windows XP, jdk 1.4.2_05

Description:
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


---------------------------------------------------------------------
JIRA INFORMATION:
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

If you want more information on JIRA, or have a bug to report 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