WPS Capabilities/Languages model does not conform to the schema ---------------------------------------------------------------
Key: GEOT-2137 URL: http://jira.codehaus.org/browse/GEOT-2137 Project: GeoTools Issue Type: New Feature Components: ext xml-xsd Reporter: Andrea Aime Assignee: Justin Deoliveira There are two issues here: - the languages item does not get encoded, and this is due to a custom binding, which looks like a hack to work around a naming issue in the schema itself - the model does not conform to the schema The first item could be probably solved by improving the existing binding (I guess using a complex emf binding does not work to start with, or the custom binding would not be there, right?). Model wise, the schema is: {code:xml} <element name="Languages"> <annotation> <documentation>Listing of the default and other languages supported by this service. </documentation> </annotation> <complexType> <sequence> <element name="Default"> <annotation> <documentation>Identifies the default language that will be used unless the operation request specifies another supported language. </documentation> </annotation> <complexType> <sequence> <element ref="ows:Language"> <annotation> <documentation>Identifier of the default language supported by the service. This language identifier shall be as specified in IETF RFC 4646.</documentation> </annotation> </element> </sequence> </complexType> </element> <element name="Supported" type="wps:LanguagesType"> <annotation> <documentation>Unordered list of references to all of the languages supported by this service. The default language shall be included in this list.</documentation> </annotation> </element> </sequence> </complexType> </element> <!-- =========================================================== --> <complexType name="LanguagesType"> <annotation> <documentation>Identifies a list of languages supported by this service.</documentation> </annotation> <sequence> <element ref="ows:Language" maxOccurs="unbounded"> <annotation> <documentation>Identifier of a language supported by the service. This language identifier shall be as specified in IETF RFC 4646.</documentation> </annotation> </element> </sequence> </complexType> {code} Now the model for LanguagesType accepts jsut one string, while the schema says many ows:language items can appear (multiplicity is unbounded). -- 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 ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Geotools-devel mailing list Geotools-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geotools-devel