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

        

------------------------------------------------------------------------------
Come build with us! The BlackBerry&reg; Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9&#45;12, 2009. Register now&#33;
http://p.sf.net/sfu/devconf
_______________________________________________
Geoserver-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-devel

Reply via email to