E [Xerces] cvc-datatype-valid.1.2.1: 'unbounded' is not a va

This should cover W3C XML Schema, Relax NG and DTD related problems.
Johnbampton1

E [Xerces] cvc-datatype-valid.1.2.1: 'unbounded' is not a va

Post by Johnbampton1 »

E [Xerces] cvc-datatype-valid.1.2.1: 'unbounded' is not a valid value for 'integer'.

This is the error that I am getting. I thought unbounded was valid?

<Section archetype-node-id="at0004" dc-id="16601.120.1" href="sections/NEHTA-16601-Reviewed_Adverse_Substance_Reactions-Section.xml" maxOccurs="unbounded" minOccurs="0" name="Reviewed Adverse Substance Reactions">
</Section>

Any ideas
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Re: E [Xerces] cvc-datatype-valid.1.2.1: 'unbounded' is not a va

Post by george »

That is not allowed for xs:integer, see
http://www.w3.org/TR/xmlschema-2/#integer

You may want to define that type as a union between integer and a restriction of string that allows only unbounded.

Best Regards,
George
George Cristian Bina
Post Reply