Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

:redefine produces error : Deklaration of element... cannot be found (cvc-elt.1) #12

Open
dermoench42 opened this issue May 8, 2018 · 2 comments

Comments

@dermoench42
Copy link

From Gaeb, I downloaded severall xsd files which describes data exchange. I encountered a problem and reduced it to a redefine tag in the xsd file

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema 
    xmlns:xs="http://www.w3.org/2001/XMLSchema" 
    xmlns="http://www.gaeb.de/GAEB_DA_XML/DA80/3.2" targetNamespace="http://www.gaeb.de/GAEB_DA_XML/DA80/3.2" elementFormDefault="qualified" attributeFormDefault="unqualified">
    <xs:redefine schemaLocation="GAEB_DA_XML_Lib_3.2_2013-10.xsd" />
    <!-- Redefinitions removed 
    Original Files see:
    https://www.gaeb.de/fileadmin/user_upload/Datenaustausch/2013-10_V3.2/Leistungsverzeichnis.zip

    from
    https://www.gaeb.de/service/downloads/
    -->
</xs:schema>

Visual studio code 1.23.0 on Gentoo Linux / Node 7.9.
bildschirmfoto von 2018-05-08 22-11-36

If I remove the redefine statement then there is no Problem.

A bug or something wrong with the file?

@LucLaf
Copy link

LucLaf commented May 9, 2018

Hi, and thanks for this great XML extension to VS Code.

[XML] Cannot find the declaration of element 'xsd:schema' (cvc-elt.1)

I have a similar problem with the "include" feature. Here in the address_us.xsd file.

address.zip

@dermoench42
Copy link
Author

dermoench42 commented May 9, 2018

As you might see in the screenshot, the referenced file is in the same directory. Maybe the tool doesn't look in current directory of the file? More precisely, maybe the plugin does not transfer the information of the CWD to the language server - in eclipse this problem does not exists, and afaik there using the same backend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants