> 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.
Thanks for you concern. Are you looking at the latest (V1.9)
XSDAttributeTraverser? In this version, I did exactly what you described:
if refAtt != null, then I get the global attribute declaration; otherwise,
I call traverseNamedAttr to get the local attribute declaration.
Cheers,
Sandy Gao
Software Developer, IBM Canada
(1-416) 448-3255
[EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]