Sorry Werner, you are right: I'm using an older version of Castor (1.0.1)
I was using an ecliplse plugin which included the castor 1.0.1 jar but I also had the castor 1.0.5 in my classpath.
I removed the 1.0.1 jar (present in the plugin) and left only the 1.0.5 jar. Thank's Barbara Werner Guttmann wrote:
Barbara, I just tried to reproduce this against the current code base, and I am not able to reproduce your problem. The class that gets generated for the below simple type definition does have a constant definition for the 'comma' value. In other words, it looks like you are using an 'older' version of Castor. 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
--------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email

