You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Rahul Srivastava <Ra...@Sun.COM> on 2001/09/10 18:50:58 UTC

Code for XSDGroupTraverser

Hi,

Please find attached the code for class XSDGroupTraverser, 'v2' branch. I have 
coded this class with some REVISITs. Actually there is no method in 
SchemaGrammar yet, which allows to make an entry in 'fGlobalGroupDecls'. Should 
I add a method or will you be doing the same. Also, what all grammar information 
needs to be populated in SchemaGrammar object for group element.

Cheers,
Rahul.

Sun Microsystems Inc.

Re: Code for XSDGroupTraverser

Posted by Elena Litani <el...@ca.ibm.com>.
Rahul, hi,

> Please find attached the code for class XSDGroupTraverser, 'v2' branch. I have
> coded this class with some REVISITs.

Thank you!  

It would be great if you let us know what you are working on. We should
try to avoid duplicating efforts.

One of the areas we are not planning to work on right now is datatype
validators redesign. 

We did not give too much thoughts to it yet... In general, there are 2
major modifications (made/to be made):

[1] Datatype registry is gone. Mainly, because it used to store all
simple types from all grammars we traverse - making grammar cashing
impossible. We now have static XML Schema grammar that includes all XML
Schema build-in datatype validators [we should probably think about more
elegant way of doing it].

[2] In Xerces 1 we used to create datatype validator for each simpleType
definition. We think that it might be better to have just one datatype
validator (per XML schema datatypes] and have facets stored separately
in
XMLSimpleTypeDecl class. Validate method would accept facets and content
to be validated. 

Will you be willing to have a look into redesigning the datatypes? If
you are, please, let us know, so we can give you more information --
Sandy already has some nice ideas on how to modify XMLSimpleTypeDecl.
 
Thank you,
Elena.

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org