[Geoserver-users] App-Schema - No top level element found in schemas

Dear friends,

I’m trying to implement the ISO19112 schema.
I am working with http://schemas.cubewerx.com/schemas/gazetteer/1.0.0/gmlsf1/full/iso19112.xsd.
I had to “complete” to try to make it work.

Now I get this error:
“WARN [complex.config] - Error creating app-schema data store for ‘iso19112:SI_LocationInstance’, caused by: No top level element found in schemas: {http://www.isotc211.org/iso19112}SI_LocationInstance

This is my scheme adapted:

"

1 ../../../../gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd

"

Any help?
Thanks!
Pedro

Pedro A. Arriondo
Ingeniero en Sistemas de Información

Pedro,

this schema document is a little hard to follow as I do not know where it is published so I cannot know if the relative imports exist. Tou indicate that you are working with http://schemas.cubewerx.com/schemas/gazetteer/1.0.0/gmlsf1/full/iso19112.xsd but I do not see an include for this schema.

- Are you able to trace from your schema to a schema that defines the element and its type?

- Remember that relative imports are relative to the containing schema document location; if you intend to import from another host, use absolute imports.

- Is your schema valid? (XmlSpy, Oxygen, or Eclipse JEE should tell you.)

Kind regards,
Ben.

On 13/07/14 01:23, Pedro Arriondo wrote:

Dear friends,
I'm trying to implement the ISO19112 schema.
I am working with
http://schemas.cubewerx.com/schemas/gazetteer/1.0.0/gmlsf1/full/iso19112.xsd.

I had to "complete" to try to make it work.

Now I get this error:
"WARN [complex.config] - Error creating app-schema data store for
'iso19112:SI_LocationInstance', caused by: No top level element found in
schemas: {http://www.isotc211.org/iso19112\}SI_LocationInstance"

This is my scheme adapted:
"<schema
xmlns="http://www.w3.org/2001/XMLSchema&quot; attributeFormDefault="unqualified"
    targetNamespace="http://www.isotc211.org/19112&quot;
    xmlns:iso19112="http://www.isotc211.org/19112&quot;
    xmlns:gmdsf1="http://www.isotc211.org/2005/gmdsf1&quot;
    xmlns:gml="http://www.opengis.net/gml&quot;
    xmlns:gmlsf="http://www.opengis.net/gmlsf&quot;
    xmlns:xsd="http://www.w3.org/2001/XMLSchema&quot;
    elementFormDefault="qualified"
    version="19112_2003">

    <annotation>
       <appinfo
  source="../../../../gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsfLevels.xsd">
          <gmlsf:ComplianceLevel>1</gmlsf:ComplianceLevel>

  <gmlsf:GMLProfileSchema>../../../../gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd</gmlsf:GMLProfileSchema>
       </appinfo>
    </annotation>

    <import namespace="http://www.opengis.net/gml&quot;
       schemaLocation="../../../../gml/3.1.1/base/gml.xsd"/>

    <import namespace="http://www.opengis.net/gmlsf&quot;

schemaLocation="../../../../gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsfLevels.xsd"/>

    <import namespace="http://www.isotc211.org/2005/gmdsf1&quot;
       schemaLocation="./gmd.xsd"/>

    <import namespace="http://www.w3.org/XML/1998/namespace&quot;
schemaLocation="http://www.w3.org/2001/xml.xsd&quot;/&gt;
"

Any help?
Thanks!
Pedro

--
Pedro A. Arriondo
/*Ingeniero en Sistemas de Información*/

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

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

--
Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre

Ben, thanks for your answer.
I was able to resolve the conflict.
Check the code step by step, and found a syntax error in a mention of a namespace in one file.
It’s amazing, but when you are tired, look but do not see!
I am very grateful that you have always taken the time to answer.
Best Regards
Pedro

···

2014-07-15 0:46 GMT-03:00 Ben Caradoc-Davies <Ben.Caradoc-Davies@anonymised.com>:

Pedro,

this schema document is a little hard to follow as I do not know where it is published so I cannot know if the relative imports exist. Tou indicate that you are working with http://schemas.cubewerx.com/schemas/gazetteer/1.0.0/gmlsf1/full/iso19112.xsd but I do not see an include for this schema.

  • Are you able to trace from your schema to a schema that defines the element and its type?

  • Remember that relative imports are relative to the containing schema document location; if you intend to import from another host, use absolute imports.

  • Is your schema valid? (XmlSpy, Oxygen, or Eclipse JEE should tell you.)

Kind regards,
Ben.

On 13/07/14 01:23, Pedro Arriondo wrote:

Dear friends,
I’m trying to implement the ISO19112 schema.
I am working with
http://schemas.cubewerx.com/schemas/gazetteer/1.0.0/gmlsf1/full/iso19112.xsd.

I had to “complete” to try to make it work.

Now I get this error:
“WARN [complex.config] - Error creating app-schema data store for
‘iso19112:SI_LocationInstance’, caused by: No top level element found in
schemas: {http://www.isotc211.org/iso19112}SI_LocationInstance

This is my scheme adapted:
"

1

gmlsf:GMLProfileSchema…/…/…/…/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsf.xsd</gmlsf:GMLProfileSchema>

<import namespace=“http://www.opengis.net/gmlsf

schemaLocation=“…/…/…/…/gml/3.1.1/profiles/gmlsfProfile/1.0.0/gmlsfLevels.xsd”/>


"

Any help?
Thanks!
Pedro


Pedro A. Arriondo

/Ingeniero en Sistemas de Información/



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


Ben Caradoc-Davies Ben.Caradoc-Davies@anonymised.com
Software Engineer
CSIRO Mineral Resources Flagship
Australian Resources Research Centre

Pedro A. Arriondo
Ingeniero en Sistemas de Información