Hi Neeraj,

Sorry for not replying your message soon. And thanks for your contribution
to the simple type redesign.

I hope you've noticed the "BIG CHANGE" happened last week. We've changed
the way to refer to a component from namespace+declindex to object
reference. So we *have to* change those methods that take index as
parameter to take object. "init4List" and "init4Union" would be among those
methods.

The interface of XSSimpleTypeDecl is quite different from that of
DatatypeValidator. (And I believe it's for good reasons.) Have you put any
thought in how we can switch to this new design? This might not happen in
some time, because we want a stable simpleType support while we do other
developing work, but it's never too early to plan ahead and foresee any
potential problems.

And I'm thinking of add a method to compare two compiled values to
XSSimpleTypeDecl and each DV class.

- boolean isEqual(Object value1, Object value2);

Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-905) 413-3255
[EMAIL PROTECTED]



                                                                                       
       
                    Neeraj Bajaj                                                       
       
                    <Neeraj.Bajaj@       To:     [EMAIL PROTECTED]           
       
                    Sun.COM>             cc:                                           
       
                                         Subject:     [xerces2]simpletype redesign     
       
                    2001-09-26                                                         
       
                    10:48                                                              
       
                    Please respond                                                     
       
                    to                                                                 
       
                    xerces-j-dev                                                       
       
                                                                                       
       
                                                                                       
       



Hi Sandy & All,

           I wrote a mail yesterday but it hasn't made it to xerces mailing
list
yet. I think problem was here and it has been solved, so this mail should
reach  :)

           I am thinking of removing dependency of XSSimpleTypeDecl from
Grammar,once we achieve it, this will be an  component which need not know
how
Grammar works.

1. For List and union we are passing itemUri, itemIdx and
arrays of  memberUri and memberIdx respectively, which will help us
to retrieve the required simpleType declarations from Grammar. It is
creating
dependency on the grammar.

2. This component should be provided with required simpleType declarations.
like,
   init4List(String itemUri, int itemIdx) --> init4List(XSSimpleTypeDecl
decl)

   init4Union(String [] memberUri, int [] memberIdx) -->
                               init4Union(XSSimpleTypeDecl [] memberDecls)

3. SimpleTypeTraverser  will do the job of providing required
simpleTypeDeclarations.

4. This will help us getting better performance during validation time, as
we
are ready with required references and we dont have to get it from grammar
during validation.

5. Any issues on this, if i am missing any ?

regards

Neeraj Bajaj
---------------------
Sun Microsystems, inc.
Ph.91-80-2298989 x87425.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to