
That's the *only* way it will and should work. Despite needing some sort of XPath or something to identify which local element you're talking about, the documentation blurb I pasted earlier clearly says it must be a global ("top-level") element declaration. Peter Donal K. Fellows wrote:
Mark Morgan wrote: [tooling copes with this]
<xsd:complexType name="GetActivityStatusesType"> <xsd:sequence> <xsd:element name="ActivityIdentifier" type="wsa:EndpointReferenceType" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType> [but not with this] <xsd:complexType name="GetActivityDocumentsType"> <xsd:sequence> <xsd:element ref="bes-factory:ActivityIdentifier" minOccurs="0" maxOccurs="unbounded"/> </xsd:sequence> </xsd:complexType>
I think the only thing that can be counted on to work evenly with tooling as it currently stands is for a ref to refer to a named top level element, and not one defined inside a complexType. If you define the ActivityIdentifier at the top level and use references to that, it will (probably) work.
<xs:element name="ActivityIdentifier" type="wsa:EndpointReferenceType"/> <xs:complexType name="GetActivityStatusesType"> <xs:sequence> <xs:element ref="bes-factory:ActivityIdentifier" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="GetActivityDocumentsType"> <xs:sequence> <xs:element ref="bes-factory:ActivityIdentifier" minOccurs="0" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType> <xs:complexType name="TerminateActivitiesType"> <xs:sequence> <xs:element ref="bes-factory:ActivityIdentifier" maxOccurs="unbounded"/> </xs:sequence> </xs:complexType>
Or at least that's how I was told to use name/ref in XML Schema. :-)
Donal. -- ogsa-hpcp-wg mailing list ogsa-hpcp-wg@ogf.org http://www.ogf.org/mailman/listinfo/ogsa-hpcp-wg