You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-dev@xerces.apache.org by Tony Dodd <to...@btinternet.com> on 2004/06/16 12:00:38 UTC
Schema problem
Is the value maxoccurs=0 legal?
The following simple schema file gives an error (together with a simple xml
file with element root) in Xerces C (2.5.0) but not in Xerces Java (2.6.2).
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:complexType name="Test" mixed="false">
<xs:complexContent>
<xs:restriction base="xs:anyType">
<xs:sequence>
<xs:any processContents="lax"
minOccurs="0" maxOccurs="0"/>
</xs:sequence>
</xs:restriction>
</xs:complexContent>
</xs:complexType>
<xs:element name="root" type="Test"/>
</xs:schema>
Thanks
Tony Dodd
Oxford University Research Technology Group
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
RE: Schema problem
Posted by Tony Dodd <to...@btinternet.com>.
Dear Gareth
Error at file C:\anc\Texts/test.xsd, line 8, char 30
Message: Invalid value '0' for attribute: 'maxOccurs'.
Tony
>-----Original Message-----
>From: Gareth Reakes [mailto:gareth@parthenoncomputing.com]
>Sent: 16 June 2004 11:05
>To: xerces-c-dev@xml.apache.org
>Subject: Re: Schema problem
>
>Hi Tony,
>
> could you post the error message?
>
>Gareth
>
>
>
>--
>Gareth Reakes, Managing Director Parthenon Computing
>+44-1865-811184 http://www.parthcomp.com
>On Wed, 16 Jun 2004, Tony Dodd wrote:
>
>> Is the value maxoccurs=0 legal?
>>
>> The following simple schema file gives an error (together with a
>> simple xml file with element root) in Xerces C (2.5.0) but
>not in Xerces Java (2.6.2).
>>
>> <?xml version="1.0" encoding="UTF-8"?> <xs:schema
>> xmlns:xs='http://www.w3.org/2001/XMLSchema'>
>> <xs:complexType name="Test" mixed="false">
>> <xs:complexContent>
>> <xs:restriction base="xs:anyType">
>> <xs:sequence>
>> <xs:any processContents="lax"
>> minOccurs="0" maxOccurs="0"/>
>> </xs:sequence>
>> </xs:restriction>
>> </xs:complexContent>
>> </xs:complexType>
>> <xs:element name="root" type="Test"/> </xs:schema>
>>
>> Thanks
>>
>> Tony Dodd
>> Oxford University Research Technology Group
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
>For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
Re: Schema problem
Posted by Gareth Reakes <ga...@parthenoncomputing.com>.
Hi Tony,
could you post the error message?
Gareth
--
Gareth Reakes, Managing Director Parthenon Computing
+44-1865-811184 http://www.parthcomp.com
On Wed, 16 Jun 2004, Tony Dodd wrote:
> Is the value maxoccurs=0 legal?
>
> The following simple schema file gives an error (together with a simple xml
> file with element root) in Xerces C (2.5.0) but not in Xerces Java (2.6.2).
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs='http://www.w3.org/2001/XMLSchema'>
> <xs:complexType name="Test" mixed="false">
> <xs:complexContent>
> <xs:restriction base="xs:anyType">
> <xs:sequence>
> <xs:any processContents="lax"
> minOccurs="0" maxOccurs="0"/>
> </xs:sequence>
> </xs:restriction>
> </xs:complexContent>
> </xs:complexType>
> <xs:element name="root" type="Test"/>
> </xs:schema>
>
> Thanks
>
> Tony Dodd
> Oxford University Research Technology Group
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-c-dev-help@xml.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-c-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-c-dev-help@xml.apache.org