Jump to content

Hello everyone,

 

After dwelling in stack overflow for a while I managed to solve a previous issue, but now I have a new one that I can't seem to fix.

 

I have this .xml header:

<ISEP xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
          xmlns="universidade" 
          xsi:schemaLocation="universidade data.xsd">
    <edíficio codigo="A">

And this .xsd header:

<xs:schema attributeFormDefault="unqualified"
           elementFormDefault="qualified"
           xmlns:xs="http://www.w3.org/2001/XMLSchema" 
           xmlns:x="universidade"
           targetNamespace="universidade"
>
    
    <xs:element name="ISEP" type="x:TIsep"/>

I had the same setup from a different set of files, they worked great. This one not so much, I get this errors:

src-resolve.4.2: Error resolving component 'xs:Integer'. It was detected that 'xs:Integer' is in namespace 'http://www.w3.org/2001/XMLSchema', but components from this namespace are not referenceable from schema document 'file:/C:/Users/Jo%C3%A3o%20Pereira/Dropbox/LPROG%202018/LPROG_TESTES/src/lprog_testes/data.xsd'. If this is the incorrect namespace, perhaps the prefix of 'xs:Integer' needs to be changed. If this is the correct namespace, then an appropriate 'import' tag should be added to 'file:/C:/Users/Jo%C3%A3o%20Pereira/Dropbox/LPROG%202018/LPROG_TESTES/src/lprog_testes/data.xsd'. [86] 
src-resolve: Cannot resolve the name 'xs:Integer' to a(n) 'type definition' component. [86] 
src-resolve.4.1: Error resolving component 'TCodSala'. It was detected that 'TCodSala' has no namespace, but components with no target namespace are not referenceable from schema document 'file:/C:/Users/Jo%C3%A3o%20Pereira/Dropbox/LPROG%202018/LPROG_TESTES/src/lprog_testes/data.xsd'. If 'TCodSala' is intended to have a namespace, perhaps a prefix needs to be provided. If it is intended that 'TCodSala' has no namespace, then an 'import' without a "namespace" attribute should be added to 'file:/C:/Users/Jo%C3%A3o%20Pereira/Dropbox/LPROG%202018/LPROG_TESTES/src/lprog_testes/data.xsd'. [47] 
src-resolve: Cannot resolve the name 'TCodSala' to a(n) 'type definition' component. [47] 

I'm guessing that it isn't acknowledging the namespace. How do I fix this?

Link to comment
https://linustechtips.com/topic/931084-xml-src-resolve42/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×