Title: Message
Mike,
You are right about all three points below. However, in XMLSchema there is _no difference_ (as far as the resulting Schema components) between referring to a model group definition and including the same particles inline, so the API reflects this. You can get to model groups separately using SchemaTypeSystem.modelGroups() to check what model groups were defined and what annotations they had on them, but specifiying different behavior for the case where there is a model group ref is going against the grain of the spec IMO.
 
Point 1. about pointless particles is debatable, removing them upfront makes things a lot simpler and there is so much code depending on the fact that they have been removed that I don't think that it is practical to change it at this point.
 
But we should make annotations on the particle accessible.
 
Radu
-----Original Message-----
From: Mike Skells [mailto:[EMAIL PROTECTED]
Sent: Friday, October 07, 2005 1:00 AM
To: user@xmlbeans.apache.org
Subject: RE: [newbe] Navigation from SchemaType to the schema view of the model

Hi Laurance,
Thanks for the quick reply, however this is not the solution.
This does not give access to the groups, or attribute groups, as they appear to be removed for the model.
 
Attribute and attribute groups are not part of the content model of the SchemaType
Groups are removed from the content model.
 
Further than that I see that
1. the SchemaParticle has already had 'pointless particles' removed (which also gets rid of these annotations)
2. it doesnt include groups (which gets rid of these annotations)
3. the SchemaParticle does not implement SchemaAnnotated, so that the annotations on the particle are not accessable
 
 
 
Mike


From: Lawrence Jones [mailto:[EMAIL PROTECTED]
Sent: 06 October 2005 23:11
To: user@xmlbeans.apache.org
Subject: RE: [newbe] Navigation from SchemaType to the schema view of the model

Hi Mike

 

There have been a number of discussions on this before. It is not altogether obvious and a JIRA (http://issues.apache.org/jira/browse/XMLBEANS-195) has been raised to look into making it much easier but in the meantime these email threads should help:

 

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200509.mbox/[EMAIL PROTECTED]

 

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200508.mbox/[EMAIL PROTECTED]

 

http://mail-archives.apache.org/mod_mbox/xmlbeans-user/200507.mbox/[EMAIL PROTECTED]

 

Cheers,

 

Lawrence

 


From: Mike Skells [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 06, 2005 2:48 PM
To: user@xmlbeans.apache.org
Subject: [newbe] Navigation from SchemaType to the schema view of the model

 

hi,

I am working with a schema where I need to access the actual structure of the schema. I need to retrieve information from the custom annotations of, for instance the attribyute groups and the groups. 

 

So stating from a SchemaType that represents a complex type, how should I navigate to the SchemaLocalElement or SchemaGlobalElement

 

Also once at a SchemaLocalElement how can I access the content model, to retrieve an annotation on a contained group

(I cannot use the content model of the SchemaType as that has already folded the group into the parent model)

 

The same issues relate to attribute groups etc.

 

I feel like I am missing the plot somewhere

 

 

Mike

Reply via email to