Skip to content

XML catalog support apparently not working #78

@ralfhandl

Description

@ralfhandl

I need to validate XML files against their XML schemas, and injecting xsi:schemaLocations into those files is not possible/feasible.

XML catalogs should solve that, yet I can't get that to work.

What I tried in USER SETTINGS:

    "xml.catalogs": [
        "O:\\git\\odata-csdl-schemas\\catalog.xml"
    ]

The file O:\git\odata-csdl-schemas\catalog.xml contains

<?xml version="1.0"?>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
  <uri name="urn:oasis:names:tc:entity:xmlns:xml:catalog" uri="jar:file:/C:/eclipse-Photon/plugins/org.eclipse.wst.standard.schemas_1.0.800.v201711201732.jar!/xsd/xmlcatalog11.xsd" />
  <uri name="http://docs.oasis-open.org/odata/ns/edmx" uri="http://localhost/odata-schemas/edmx.xsd" />
  <uri name="http://docs.oasis-open.org/odata/ns/edm" uri="http://localhost/odata-schemas/edm.xsd" />
</catalog>

The first entry is copied from Eclipse's system_catalog.xml and should help validate the catalog.xml - it doesn't.

The second and third entries map the XML namespaces I'm actually interested in to local copies of the corresponding XML Schema files. The files are accessible via my local web server at the URIs listed in the file. Neither validation nor code completion are working as expected.

Removing the first entry with the jar: URL doesn't make the other two work.

What am I doing wrong?

Thanks in advance
Ralf

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions