You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2013/07/01 11:56:19 UTC
[jira] [Updated] (CAMEL-6501) camel-cxf-transport's
blueprint/camel.xsd xml schema is invalid
[ https://issues.apache.org/jira/browse/CAMEL-6501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Aki Yoshida updated CAMEL-6501:
-------------------------------
Attachment: camel-cxf-transport-6501.diff
modified:
components/camel-cxf-transport/src/main/resources/schema/blueprint/camel.xsd
> 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.10.5, 2.11.0
> Reporter: Aki Yoshida
> Priority: Minor
> Attachments: camel-cxf-transport-6501.diff
>
>
> 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