Hi Sandy,

> XSDAttributeTraverser.traverseLocal: register an XSAttributeUse, and 
> return the index;

I have a concern regarding the local attributes. 

We have two cases when dealing with local attributes : 
1. local attributes which refer to global ones
2. local attributes which are declared inline


In the first case, XSDAttributeTraverser.traverseLocal() should :

- resolve the "ref" attribute to get the index of the global attribute,
- register an XSAttributeUse object which refers to the global one 
  and carries the 'use' and 'value constraint' information,
- return the XSAttributeUse object's index.

In the second case, XSDAttributeTraverser.traverseLocal() should :
 
- register an XSAttributeDecl object,
- register an XSAttributeUse object which refers to the above object
  and carries its 'use' and 'value constraint' information,
- return the XSAttributeUse object's index.

I feel your traverseLocal() handles only case #1.

Please clarify.         
                
Pavani

-- 

Pavani Mukthipudi
Sun Microsystems Inc.

Phone: 080 - 2298989   Extn: 87390


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

Reply via email to