app-schema DescribeFeatureType is schema invalid
------------------------------------------------

                 Key: GEOT-2678
                 URL: http://jira.codehaus.org/browse/GEOT-2678
             Project: GeoTools
          Issue Type: Bug
          Components: data app-schema
            Reporter: Ben Caradoc-Davies
            Assignee: Rini Angreani


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
{code}
<?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>
{code}

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

        

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to