[Geoserver-users] missing namespace-bindings in DescribeFeatureType

Dear geoserver-users,

working with geoserver for a short time now I found out that geoserver
1.5.0 does not include proper namespaces for gml, xs and topp within
the example installation[1].

Should'nt it look like this?
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema&quot;
xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:topp="http://www.openplans.org/topp&quot;
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.openplans.org/topp&quot; version="1.0"> ...

Using xmllint to verify the xml I get the following error
xmllint states.xml |less
states.xml:2: namespace error : Namespace prefix xs on schema is not
defined efault="qualified"
targetNamespace="http://www.openplans.org/topp&quot; version="1.0"

Is this a known issue?

Best

  Stephan

[1] http://demo.intevation.de/geoserver/wfs
--
Stephan Holl <stephan.holl@anonymised.com>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

Hmmm, trying with 1.5.1 I get all the namespaces mappings shown below
and it validates ok. I don't believe any bugs related to
DescribeFeatureType have been fixed since 1.5.0 but I will have to
check. But I don't think cite tests would pass with this bug.

Can you include the entire request and the response from the server. Thanks.

-Justin

Stephan Holl wrote:

Dear geoserver-users,

working with geoserver for a short time now I found out that geoserver
1.5.0 does not include proper namespaces for gml, xs and topp within
the example installation[1].

Should'nt it look like this?
<xs:schema xmlns="http://www.w3.org/2001/XMLSchema&quot;
xmlns:xs="http://www.w3.org/2001/XMLSchema&quot;
xmlns:gml="http://www.opengis.net/gml&quot;
xmlns:topp="http://www.openplans.org/topp&quot;
attributeFormDefault="unqualified" elementFormDefault="qualified"
targetNamespace="http://www.openplans.org/topp&quot; version="1.0"> ...

Using xmllint to verify the xml I get the following error
xmllint states.xml |less
states.xml:2: namespace error : Namespace prefix xs on schema is not
defined efault="qualified"
targetNamespace="http://www.openplans.org/topp&quot; version="1.0"

Is this a known issue?

Best

  Stephan

[1] http://demo.intevation.de/geoserver/wfs

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com

Justin Deoliveira ha scritto:

Hmmm, trying with 1.5.1 I get all the namespaces mappings shown below
and it validates ok. I don't believe any bugs related to
DescribeFeatureType have been fixed since 1.5.0 but I will have to
check. But I don't think cite tests would pass with this bug.

Can you include the entire request and the response from the server. Thanks.

Maybe he's referring to the output of:
http://demo.intevation.de/geoserver/wfs?request=GetFeature&typeName=topp:states
or the output of:
http://demo.intevation.de/geoserver/wfs?request=DescribeFeatureType&typeName=topp:states

thought I'm not sure I see the issues...

Cheers
Andrea

Hmmm... The output of the first one refers to this:
http://demo.intevation.de/geoserver/wfs/DescribeFeatureType?typeName=topp:states

Which doesn't work on intevation. It looks like some mapping is getting in the way, some default over riding it. Though we perhaps should change our reference to be http://demo.intevation.de/geoserver/wfs?request=DescribeFeatureType&typeName=topp:states

As for qualifying prefixes on DescribeFeatureType, I just tested with xerces, and indeed this is tested every release with CITE, so I'm pretty positive we don't need those qualifications in a schema.

Chris

Andrea Aime wrote:

Justin Deoliveira ha scritto:

Hmmm, trying with 1.5.1 I get all the namespaces mappings shown below
and it validates ok. I don't believe any bugs related to
DescribeFeatureType have been fixed since 1.5.0 but I will have to
check. But I don't think cite tests would pass with this bug.

Can you include the entire request and the response from the server. Thanks.

Maybe he's referring to the output of:
http://demo.intevation.de/geoserver/wfs?request=GetFeature&typeName=topp:states
or the output of:
http://demo.intevation.de/geoserver/wfs?request=DescribeFeatureType&typeName=topp:states

thought I'm not sure I see the issues...

Cheers
Andrea

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4005,4668283e30612090977483!

--
Chris Holmes
The Open Planning Project
http://topp.openplans.org

Hello,

Justin Deoliveira <jdeolive@anonymised.com>, [20070607 - 08:31:58]

Hmmm, trying with 1.5.1 I get all the namespaces mappings shown below
and it validates ok. I don't believe any bugs related to
DescribeFeatureType have been fixed since 1.5.0 but I will have to
check. But I don't think cite tests would pass with this bug.

Can you include the entire request and the response from the server.
Thanks.

Request:
http://demo.intevation.de/geoserver/wfs?SERVICE=WFS&REQUEST=DescribeFeatureType&version=1.0.0&TYPENAME=topp:states&NAMESPACE=xmlns(topp=http://www.openplans.org/topp)

Response is attached.

thanks for looking into this.

  Stephan

--
Stephan Holl <stephan.holl@anonymised.com>, http://intevation.de/~stephan
Tel: +49 (0)541-33 50 8 32 | Intevation GmbH | AG Osnabrück - HR B 18998
Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner

states_frame.xml (4.69 KB)

Hiaya Stephan!

are you using Mozilla for looking the schemas? If so, please choose "View Page Source". You should then be able to see the prefixes and namespaces. (At least that's what I observe here.) Mozilla doesn't show the namespaces mapping properly.

Anyway, the schema looks AOK to me.

Cheers,

Ugo

Stephan Holl wrote:

Hello,

Justin Deoliveira <jdeolive@anonymised.com>, [20070607 - 08:31:58]

Hmmm, trying with 1.5.1 I get all the namespaces mappings shown below
and it validates ok. I don't believe any bugs related to
DescribeFeatureType have been fixed since 1.5.0 but I will have to
check. But I don't think cite tests would pass with this bug.

Can you include the entire request and the response from the server.
Thanks.

Request:
http://demo.intevation.de/geoserver/wfs?SERVICE=WFS&REQUEST=DescribeFeatureType&version=1.0.0&TYPENAME=topp:states&NAMESPACE=xmlns(topp=http://www.openplans.org/topp)

Response is attached.

thanks for looking into this.

  Stephan

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Aha, this would make sense. Good catch Ugo ( if that is indeed the
problem ).

-Justin

Ugo Taddei wrote:

Hiaya Stephan!

are you using Mozilla for looking the schemas? If so, please choose
"View Page Source". You should then be able to see the prefixes and
namespaces. (At least that's what I observe here.) Mozilla doesn't show
the namespaces mapping properly.

Anyway, the schema looks AOK to me.

Cheers,

Ugo

Stephan Holl wrote:

Hello,

Justin Deoliveira <jdeolive@anonymised.com>, [20070607 - 08:31:58]

Hmmm, trying with 1.5.1 I get all the namespaces mappings shown below
and it validates ok. I don't believe any bugs related to
DescribeFeatureType have been fixed since 1.5.0 but I will have to
check. But I don't think cite tests would pass with this bug.

Can you include the entire request and the response from the server.
Thanks.

Request:
http://demo.intevation.de/geoserver/wfs?SERVICE=WFS&REQUEST=DescribeFeatureType&version=1.0.0&TYPENAME=topp:states&NAMESPACE=xmlns(topp=http://www.openplans.org/topp)

Response is attached.

thanks for looking into this.

  Stephan

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4668fa3c216753327367457!

--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com