URI not registered, XSD

Hi, I have the following xsd excerpt:
Using IntelliJ 12 (latest)

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="urn:abc-com:abc"
            xmlns:abc="urn:abc-com:abc"
            xmlns:xyz="urn:xyz-com:schema"
 xmlns:xsd="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">

 <xsd:import schemaLocation="Z:\Systems Knowledge Base\xyz\Schemas\IDBase.xsd"/>

the namespace in IJ is hilighted red, saying uri is not registered; so I register it to a folder (Z:\Systems Knowledge Base\xyz\Schemas) and it changes to resource not recognised error.
Also, the red path in the import statement does exist, but is not found by IJ.
How do i get this to resolve?

~gilbert

Message was edited by: Gilbert Grant

3 comments
Comment actions Permalink

Hello Gilbert,

There should be a quick fix(Alt+Enter) for this problem available. This issue http://youtrack.jetbrains.com/issue/IDEA-118713 could be related. Please try steps, mentioned there. Also check if it remains with 13.1 EAP http://confluence.jetbrains.com/display/IDEADEV/IDEA+13.1+EAP .

0
Comment actions Permalink

HI Andrey, I did try this quick fix, this will resolve the xmlns tag (but, only if i choose an xsd as the target, not if i choose a folder). Still, this does not resolve the ref to the import file. All the example i see are resolving references for xml to their xsd's (like this link you poseted) - I'm resolving an xsd import into another xsd.

I have IJ 13.0 installed with a trial key that has expired - can I upgrade this to 13.1 eap (trial/whatever)?

~gilbert

0
Comment actions Permalink

I have IJ 13.0 installed with a trial key that has expired - can I upgrade this to 13.1 eap (trial/whatever)?

EAP builds do not requier license and expier after 30 days.

Btw shouldn't it be:

<xsd:import namespace="urn:xyz-com:schema"

                schemaLocation="Z:\Systems Knowledge Base\xyz\Schemas\IDBase.xsd"/>

?

Please provide sample project to reproduce if issue remains.

0

Please sign in to leave a comment.