activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stephen Cresswell (JIRA)" <>
Subject [jira] Created: (AMQ-929) Invalid XSD (according to XML Spy)
Date Tue, 19 Sep 2006 19:42:27 GMT
Invalid XSD (according to XML Spy)

                 Key: AMQ-929
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 4.1
         Environment: N/A
            Reporter: Stephen Cresswell
            Priority: Minor

XmlSpy reports
is invalid with the following message:

<xs:element ref='tns:topic'> makes the content model non-deterministic. Possible causes:
name equality, overlapping occurance or substitution groups.

It's complaining because it has no way to validate whether it should validate against tns:topic/tns:queue
or the xs:any for the following element

<xs:element name='destination' minOccurs='0' maxOccurs='1'>
      <xs:choice minOccurs='0' maxOccurs='1'>
         <xs:element ref='tns:queue'/>
         <xs:element ref='tns:topic'/>

Possible fix adapted from

<xs:element name="destination" minOccurs="0" maxOccurs="1">
		<xs:choice minOccurs="0" maxOccurs="1">
			<xs:element name="extensions">
				<xs:sequence maxOccurs="1">
			<xs:element ref="tns:queue"/>
			<xs:element ref="tns:topic"/>

But I suspect difficult to fix as the XSD is autogenerated + you'll lose backwards compatability
with previous documents. The problem occurs repeatedly throughout the schema.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


View raw message