cancel
Showing results for 
Search instead for 
Did you mean: 

Why nxs:stringList isn't resolve in my_schema.xsd ?

brigitte_
Confirmed Champ
Confirmed Champ

Hello,

Here is my_schema.xsd :

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
           targetNamespace="http://my_company/schemas/nuxeo/"
           xmlns:enacCommon="http://my_company/schemas/nuxeo/"
           xmlns:nxs="http://www.nuxeo.org/ecm/schemas/common/">  
<xs:include schemaLocation="base.xsd" />
<xs:element name="intext" type="xs:string" />
<xs:element name="site" type="nxs:stringList" /> 
</xs:schema>

Eclipse dit : src-resolve.4.2: Error resolving component 'nxs:stringList'. It was detected that 'nxs:stringList' is in namespace 'http://www.nuxeo.org/ecm/schemas/common/', but components from this namespace are not referenceable from schema document 'file:///chemin_vers_mon_pluggin/src/main/ resources/schemas/my_schema.xsd'. If this is the incorrect namespace, perhaps the prefix of 'nxs:stringList' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:///chemin_vers_mon_pluggin/src/main/resources/schemas/ docDessinSPCET.xsd'.

And in run, nuxeo server says : 2012-11-08 15:47:17,075 ERROR [org.nuxeo.ecm.core.schema.XSDLoader] Error: undefined simple or complex type 'nxs:stringList' 2012-11-08 15:47:17,075 ERROR [org.nuxeo.ecm.core.schema.TypeService] org.xml.sax.SAXParseException; systemId: file:/chemin_de_mon_installation/nuxeo-cap-5.6-tomcat-sdk/nxserver//schemas/docDessinSPCET.xsd; lineNumber: 8; columnNumber: 51; undefined simple or complex type 'nxs:stringList'

Someone has an idea ?

Thanks !

3 REPLIES 3

Florent_Guillau
World-Class Innovator
World-Class Innovator

Your xmlns:nxs must be the same as your targetNamespace, as the xs:include does not bring in the included file's namespace.

Hello,

This is not an answer, please don't post it as an answer. Post it as a comment to either the previous answer or the original question.

Getting started

Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.