Hi Martin,

Merci for your reply. :)  I probably didn't explain properly:

I want to generate Java source for an XSD that contains the snippets
included in my first email.  Currently, the SourceGenerator reports
some warnings about not supporting type "Foo", since "Foo" is
unsignedLong and in Java, there is no unsigned long.  So what I would
like to do is tell SourceGenerator to take any instances of "Foo" and
write them to the Java class as type long.  Does that make sense?


Regards,

-keith



Date:    Fri, 10 Jun 2005 10:07:21 -0400
From:    "Martin Gainty" <[EMAIL PROTECTED]>
To:      <[email protected]>
Subject: Re: [castor-user] binding for a simpleType.


> Bonjour Keith
> If you're using the 2001 spec I would utilise the datatypes defined at
> http://www.w3.org/2001/XMLSchema
> Bon Chance,
> Martin-
> Etats Unis
> 001-617-852-7822
> ----- Original Message ----- 
> From: "Keith P Hassen" <[EMAIL PROTECTED]>
> To: <[email protected]>
> Sent: Friday, June 10, 2005 2:08 AM
> Subject: [castor-user] binding for a simpleType.
> 
> 
> > Hi,
> > 
> > I am fairly new to castor and am just curious if there is a way
> > (using the binding XML file) to get castor to recognize the
> > following:
> > 
> > <xs:simpleType name="Foo">
> >    <xs:restriction base="xs:unsignedLong"/>
> > </xs:simpleType>
> > 
> > as actually being of type "long", not type "Foo".  I make use of
> > that type in another declaration with a structure like this:
> > 
> > <xs:complexType name="FooBar">
> >    <xs:sequence>
> >        <xs:element name="MyFoo" type="Foo"/>
> >    </xs:sequence>
> > </xs:complexType>
> > 
> > 
> > I'm just a little fuzzy on how one might specify that in the castor
> > binding file.  Any guidance would be appreciated.
> > 
> > 
> > Regards,
> > 
> > -k
> > 
> > -- 
> > 
> > -------------------------------------------------
> > If you wish to unsubscribe from this list, please 
> > send an empty message to the following address:
> > 
> > [EMAIL PROTECTED]
> > -------------------------------------------------
> > 
> >
> 
> -------------------------------------------------
> If you wish to unsubscribe from this list, please 
> send an empty message to the following address:
> 
> [EMAIL PROTECTED]
> -------------------------------------------------
> 

-------------------------------------------------
If you wish to unsubscribe from this list, please 
send an empty message to the following address:

[EMAIL PROTECTED]
-------------------------------------------------

Reply via email to