Re: XSModel susbstitution question

2007-01-31 Thread Dick Deneer
Michael, While processing an ElementDeclaration I used; XSObjectList xsObjectList = xsModel.getSubstitutionGroup(elemDecl); to get the substitution groups and for each found substitution I (recursevily) called this same method to process the ElementDecalration of the substitution. I was not

Re: XSModel susbstitution question

2007-01-31 Thread Michael Glavassevich
It's not an optimization. This is how substitution groups are defined by the XML Schema spec. Building this set isn't as easy you think. For instance, B could block C but still be a member of A's substitution group. How could you "loop down" to find C from A if C is not in B's substitution grou

Re: XSModel susbstitution question

2007-01-31 Thread Dick Deneer
It is easy to "loop down" finding all possible substitutions. So for me this optimization could have been left out, because it makes it harder to show the original relations in the schema to the user. Thanks for your answer Dick Deneer Op 31-jan-2007, om 16:14 heeft Michael Glavassevich

Re: XSModel susbstitution question

2007-01-31 Thread Michael Glavassevich
Potential substitution group membership is transitive. Setting aside the conditions for exclusion (e.g. block="substitution"), if B is a member of A's substitution group and C is a member of B's substitution group then C is a member of A's substitution group. That's why "even" appears in the li