[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-developers] RE: Ups and downs with Qube3 and Sausalito



vic@xxxxxxx wrote:
> As I don't like being reprimanded, I have take some time off to think and
> research. I have succesfully crearted a new namespace for adding a
> property to the User class without disturbing the Cobalt supplied
> schemata. The design is so elegant for its simplicity. Adding schemata is
> a matter of adding your own directory hyerachy under
> /usr/sausalito/schemas and then, in there, writing the proper ,schema
> files with the XML definitions for typedefs, and classes. Here is mine
> that creates a new type: userType, and the a new namespace for the user
> class with a new property: userType.
> 
> <typedef name="userType" type="re" data="^(U0|U1|U2|U3)$"/>
> 
> <class name="User" namespace="SES" version="1.0">
>   <property name="userType" type="userType" readacl="ruleSelf" />
> </class>

you figured it out.  Well done. :)

-- 
Tim Hockin
Systems Software Engineer
Sun Microsystems, Cobalt Server Appliances
thockin@xxxxxxx