Barbara,

I just had a look at the sources at

(EnumerationFactory.translateEnumValueToIdentifier())

it looks like ',' is an acceptable character for enumerations. Having
said that, I'll try to reproduce your problem later on.

What version of Castor are you running this against ?

Werner

Barbara Allori wrote:
> Hello,
> I'm new to castor.
> 
> I'm trying to use the source generator for mapping an xsd to java classes.
> 
> In my xsd I need to define a simple type in this way:
> 
> <xs:element name="separatore_campo">
>  <xs:simpleType>
>    <xs:restriction base="xs:string">
>      <xs:enumeration value=","/>
>      <xs:enumeration value=";"/>
>      <xs:enumeration value="tab"/>
>    </xs:restriction>
>  </xs:simpleType>
> </xs:element>
> 
> I run the source generator I obtain a Separatore_campoType that doesn't
> contain a comma value; in this way I can't use a comma as delimiter for
> my xml!
> It's comma a key word for Castor?It's possible to use a comma with some
> escape character?
> 
> Thank's in advance
> Barbara
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe from this list please visit:
> 
>    http://xircles.codehaus.org/manage_email
> 


---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to