Aki Yoshida created CAMEL-6501:
----------------------------------
Summary: camel-cxf-transport's blueprint/camel.xsd xml schema is
invalid
Key: CAMEL-6501
URL: https://issues.apache.org/jira/browse/CAMEL-6501
Project: Camel
Issue Type: Bug
Components: camel-cxf
Affects Versions: 2.11.0, 2.10.5
Reporter: Aki Yoshida
Priority: Minor
camel.xsd has the following fragment:
33 <xsd:element name="destination">
34 <xsd:complexType>
35 <xsd:complexContent>
36 <xsd:extension base="beans:Tcomponent"/>
37 <!-- here we need to specify the CamelContext reference
-->
38 <xsd:attribute name="camelContextId" type="xsd:string"
/>
39 </xsd:complexContent>
40 </xsd:complexType>
41 </xsd:element>
The "attribute" element appears in complexContent, which is not allowed
according to the xml schema spec, consequently when using the schema, it
results in the following validation error.
org.xml.sax.SAXParseException; systemId:
jar:file:/C:/maven/repo/org/apache/camel/camel-cxf-transport/2.12-SNAPSHOT/camel-cxf-transport-2.12-SNAPSHOT.jar!/schema/blueprint/camel.xsd;
lineNumber: 38; columnNumber: 74; s4s-elt-invalid-content.1: The content of
'#AnonType_destination' is invalid. Element 'attribute' is invalid, misplaced,
or occurs too often.
I think the correct schema should include this attribute element inside the
extension element, as shown in
<xsd:element name="destination">
<xsd:complexType>
<xsd:complexContent>
<xsd:extension base="beans:Tcomponent">
<!-- here we need to specify the CamelContext reference -->
<xsd:attribute name="camelContextId" type="xsd:string" />
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
</xsd:element>
thanks.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira