Hi Christophe,

I tried your schema and the following sample document with the current
CVS and it's working, so the problem appears fixed. 

<?xml version="1.0"?>
<TestGroupUser>
   <customerid>customer1000</customerid>
   <teststring>foo bar</teststring>
</TestGroupUser>

So, unless I'm missing something it's been fixed.

Try using the CVS version.

--Keith

Christophe CAENEVET wrote:
> 
> Hi,
> 
> I'm getting a stack overflow using castor 0.9.4.1 with a document complying
> to this sch�ma
> 
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"; elementFormDefault
> ="qualified" attributeFormDefault="unqualified">
>       <xs:group name="testgroup">
>             <xs:sequence>
>                     <xs:choice>
>                         <xs:element name="customerid" type="xs:string"/>
>                         <xs:element name="customerref" type="xs:string"/>
>                   </xs:choice>
>             </xs:sequence>
>       </xs:group>
>       <xs:element name="TestGroupUser">
>             <xs:complexType>
>                   <xs:sequence>
>                         <xs:group ref="testgroup"/>
>                         <xs:element name="teststring" type="xs:string"/>
>                   </xs:sequence>
>             </xs:complexType>
>       </xs:element>
> </xs:schema>
> 
> -- > It works if I don't use an  <xs:choice>.
> 
> Any workaround ?
> 
> Thanks for your help !
> 
> ----------------------------------------------------------------
> This document should only be read by those persons to whom it is
> addressed  and  is  not intended to be relied upon by any person
> without  subsequent written confirmation of its contents. If you
> have  received  this  e-mail message in error, please destroy it
> and delete it from your computer.
> Any  form of  reproduction, dissemination, copying,  disclosure,
> modification,  distribution  and/or  publication  of this E-mail
> message is strictly prohibited.
> ----------------------------------------------------------------
> Pictet & Cie, Banquiers                  Tel. +41 (0)58 323 2323
> 29, boulevard Georges-Favon              Fax  +41 (0)58 323 2324
> CH-1204 GENEVE                            http://www.pictet.com/
> ----------------------------------------------------------------
> *               NEW PHONE NUMBERS AS OF 1/1/2002!              *
> *               NOUVEAUX NUMEROS DES LE 1/1/2002!              *
> ----------------------------------------------------------------
> 
> -----------------------------------------------------------
> If you wish to unsubscribe from this mailing, send mail to
> [EMAIL PROTECTED] with a subject of:
>         unsubscribe castor-dev

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to