Thank you Michael.
Be there when the Web and GIS unite! Register now for GeoWeb 2007 at www.geoweb.org -----Original Message----- From: Michael Glavassevich [mailto:[EMAIL PROTECTED] Sent: Friday, December 07, 2007 8:17 AM To: j-users@xerces.apache.org Subject: Re: XSAttributeGroupDefinition Stanimir Stamenkov <[EMAIL PROTECTED]> wrote on 12/07/2007 01:34:08 AM: > Thu, 6 Dec 2007 10:38:59 -0800, /Srdjan Djuricic/: > > > My issue is when parsing a > > XSAttributeGroupDefinition and encountering a XSAttributeUse I don't > > know how to identify whether that attributeUse is obtained from > > another > > attributeGroup or not. > > As far as I can tell you can't determine what you want using the > Xerces XSModel API, but I don't think it is designed to parse an XML > Schema in such detail. It implements the abstract model defined in > the XML Schema Structures specification and is primarily intended for > use of validation, i.e. it is read-only and light-weight. Right, there's no representation of a reference to an attribute group definition in the model. The {attribute uses} contained in them get absorbed into the complex type definition's {attribute uses}. The spec describes how that's computed here: http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#declare-type. See the definition of {attribute uses) in the sections titled "Complex Type Definition ... Schema Component". > I think you need another API like the Eclipse XSD model [1] to analyze > (and possibly modify) the source XML Schema document(s) in greater > detail. > > [1] http://www.eclipse.org/modeling/mdt/?project=xsd > > -- > Stanimir > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] Thanks. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]