Please see inline ... Werner
Sachith Dhanushka wrote: > I just finished adding simple type support for my code. I had to change > only the access levels in some methods and classes in Schema and > SimpleTypeDefinition. I will attach those changes also as a patch to > Castor-2033 with my code. > > Also I have a question on how Schema model handles default xmlschema > namespace. When I first create an instance of > org.exolab.castor.xml.schema.Schema then it has XML schema namespace > defined as the default namespace in it. When I looked at > SchemeUnmarsheller code ( > org.exolab.castor.xml.schema.reader.SchemaUnmarshaller), within the > constructor of that class (line166) it removes the default namespace > definition of the schema model, which is default xml schema namespace. > > I also did the same within my code to get the proper namespace for the > schema namespace. Is there any particular reason to pre-define xml > schema namespace as the default namespace within Schema object as I feel > it is not required. Just a comment. No, it definitely is not a requirement. But Castor is a product that has grown over many years, and as such you'll find oddities like this now and then. > > Thanks, > SD > > On 7/4/07, *Sachith Dhanushka* <[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Thanks Ralf, I will join the chat during the given time periods. Do > you think Werner also might join? > > I will come to chat about 1700 CET or between 2100 to 2300 CET > > Thanks, > SD > > > On 7/3/07, *Ralf Joachim* < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>> wrote: > > Hi Sachith, > > I had been online from 10:00 to 16:00 CET on 27th but thereafter > I was > away until now. Usually I'll be online from 9:00 to 18:00 CET > during the > week (Mo. to Fr.) and sometimes also at the weekend. Another window > where I connect from time to time is between 21:00 to 23:00. > > If you would let us know when it is confenient for you to join > us I am > shure we can arrange to meet. > > Ralf > > > Sachith Dhanushka schrieb: > > Thanks Ralf. I logged in to irc couple of time but I didn't see > anyone. > > May be it is because I am in a different time zone. > > > > Can you please let me know a time that you and Werner also join > in, > > preferably in a personal email, so that I also can join in? > > > > Thanks, > > SD > > > > On 6/27/07, *Ralf Joachim* < [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > <mailto:[EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]>>> wrote: > > > > If you find time to join me on IRC in 1 or 2 hours we may > discuss some > > points/questions of your project. > > > > Ralf > > > > > > Sachith Dhanushka schrieb: > > > Hi, > > > > > > I asked this questions also as I need this for my SoC > project. > > Can some > > > one please let me know how I can create the following > schema fragment > > > programatically? > > > > > > <xs:simpleType name="creditCardVendor"> > > > <xs:restriction base="xs:string"> > > > <xs:enumeration value="VISA"/> > > > <xs:enumeration value="AMERICANEXPRESS"/> > > > <xs:enumeration value="DISCOVER"/> > > > </xs:restriction> > > > </xs:simpleType> > > > > > > I was tracing how schema model is created using > > Sax2ComponentReader. But > > > it uses SimpleTypeDefinition class which is not public, > so I can > > not use > > > it inside my code. I then tried to use > Schema.createSimpleType() > > method > > > but it also seems to be not working. > > > > > > I would really appreciate if Werner or some one can help > me with > > this as > > > I am stuck with my code since I can not handle simple type > > definitions. > > > > > > Thanks. > > > SD > > > > > --------------------------------------------------------------------- > > > To unsubscribe from this list please visit: > > > > http://xircles.codehaus.org/manage_email > <http://xircles.codehaus.org/manage_email> > > > > > > -- > > Syscon Ingenieurbüro für Meß- und Datentechnik GmbH > Ralf Joachim > Raiffeisenstraße 11 > 72127 Kusterdingen > Germany > > Tel. +49 7071 3690 52 > Mobil: +49 173 9630135 > Fax +49 7071 3690 98 > > Internet: www.syscon.eu > E-Mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > Sitz der Gesellschaft: D-72127 Kusterdingen > Registereintrag: Amtsgericht Stuttgart, HRB 382295 > Geschäftsleitung: Jens Joachim, Ralf Joachim > > --------------------------------------------------------------------- > > 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

