From: Yogesh L. Simmhan <ysimmhan@cs.indiana.edu>
To: 'Dennis Gannon' <gannon@cs.indiana.edu>
Subject: WS Notification schema bug
You wanted a note about the problem with the WS-Notification schema. The
error is in TopicType/ExtensibleDocumented/xsd:any element. The content
model violates the unique particle attribution rule of the XSD schema.
This is caused when it is not possible to determine if an XML document
obeys the schema since the schema is nondeterministic. This occurs here
since an xml document's element in TopicType can be matched against either
wsrp:QueryExpression or against the xsd:any element.
<xsd:complexType name="TopicType">
<xsd:complexContent>
<xsd:extension base="wsnt:ExtensibleDocumented">
<xsd:sequence>
<xsd:element ref="wsrp:QueryExpression" minOccurs="0" maxOccurs="1" />
<xsd:element name="Topic" type="wsnt:TopicType"
minOccurs="0" maxOccurs="unbounded">
<xsd:unique name="childTopicUniqueness">
<xsd:selector xpath="wsnt:topic"/>
<xsd:field xpath="@name"/>
</xsd:unique>
</xsd:element>
<!-- fixme: ysimmhan -->
<!-- Content model violates the unique particle attribution rule -->
<!-- <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded"/>
-->
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:NCName"/>
<xsd:attribute name="aliasRef" type="wsnt:TopicPathExpression"/>
<xsd:attribute name="messageTypes" default="xsd:any">
<xsd:simpleType>
<xsd:list itemType="xsd:QName"/>
</xsd:simpleType>
</xsd:attribute>
<xsd:attribute name="final " type="xsd:boolean" default="false"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
. |