The xfire tag should not require an additional element inside when doing schema checking ----------------------------------------------------------------------------------------
Key: XFIRE-1067 URL: http://jira.codehaus.org/browse/XFIRE-1067 Project: XFire Issue Type: Bug Affects Versions: 1.2.6 Reporter: Christian Schneider Assignee: Dan Diephouse When you have validation turned on for your config file you get an error when using the following config: <xfire> <transports> <bean id="jmsTransport" class="org.codehaus.xfire.transport.jms.JMSTransport" xmlns="http://xbean.org/schemas/spring/1.0"> <constructor-arg ref="xfire"/> <constructor-arg ref="connectionFactory"/> </bean> </transports> </xfire> The parser requires another element after </transports> which is incorrect. I think there is the following error in the services.xsd file: <!-- element for type: org.codehaus.xfire.spring.config.XFireBean --> <xs:element name='xfire'> <xs:complexType> <xs:sequence> <xs:element name='applicationContext' minOccurs='0' maxOccurs='1'> <xs:complexType> <xs:sequence minOccurs='0' maxOccurs='1'><xs:any namespace='##other'/></xs:sequence> </xs:complexType> </xs:element> <xs:element name='faultHandlers' minOccurs='0' maxOccurs='1'> <xs:complexType> <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:any namespace='##other'/></xs:sequence> </xs:complexType> </xs:element> <xs:element name='inHandlers' minOccurs='0' maxOccurs='1'> <xs:complexType> <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:any namespace='##other'/></xs:sequence> </xs:complexType> </xs:element> <xs:element name='outHandlers' minOccurs='0' maxOccurs='1'> <xs:complexType> <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:any namespace='##other'/></xs:sequence> </xs:complexType> </xs:element> <xs:element name='properties' minOccurs='0' maxOccurs='1'> <xs:complexType> <xs:sequence minOccurs='0' maxOccurs='1'><xs:any namespace='##other'/></xs:sequence> </xs:complexType> </xs:element> <xs:element name='transports' minOccurs='0' maxOccurs='1'> <xs:complexType> <xs:sequence minOccurs='0' maxOccurs='unbounded'><xs:any namespace='##other'/></xs:sequence> </xs:complexType> </xs:element> ------ <xs:any namespace='##other'/> <----- Current ------ <xs:any namespace='##other' minOccurs='0' /> <---- There should be minOccurs='0' so you do not have to insert an element there ------ </xs:sequence> <xs:attribute name='applicationContext' type='xs:string'/> <xs:attribute name='properties' type='xs:string'/> <xs:attribute name='id' type='xs:ID'/> <xs:anyAttribute namespace='##other' processContents='lax'/> </xs:complexType> </xs:element> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list please visit: http://xircles.codehaus.org/manage_email