app-schema DescribeFeatureType is schema invalid
------------------------------------------------
Key: GEOS-3553
URL: http://jira.codehaus.org/browse/GEOS-3553
Project: GeoServer
Issue Type: Bug
Components: WFS
Affects Versions: 2.0-RC1
Reporter: Rini Angreani
Assignee: Andrea Aime
Fix For: 2.1.x
Attachments: GEOT-2678.patch
This was wrongly raised in Geotools JIRA: http://jira.codehaus.org/browse/GEOT-2678
The response to an app-schema DescribeFeatureType request is schema-invalid:
For example:
http://services.auscope.org/pirsa-earthresource/wfs?request=DescribeFeatureType&typename=er:Commodity
yields
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:er="urn:cgi:xmlns:GGIC:EarthResource:1.1" xmlns:gml="http://www.opengis.net/gml"
elementFormDefault="qualified" targetNamespace="urn:cgi:xmlns:GGIC:EarthResource:1.1">
<xsd:import namespace="http://www.opengis.net/gml"
schemaLocation="http://services.auscope.org:80/pirsa-earthresource/schemas/gml/3.1.1/base/gml.xsd" />
<xsd:import namespace="urn:cgi:xmlns:GGIC:EarthResource:1.1"
schemaLocation="http://www.earthresourceml.org/earthresourceml/1.1/xsd/earthResource.xsd" />
</xsd:schema>
This is schema-invalid because the import namespace is the same as the targetNamespace. Should this be an include?
http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/structures.html#element-import
"1.1 If the namespace [attribute] is present, then its - actual value- must not match the - actual value- of the enclosing <schema>'s targetNamespace [attribute]."
--
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