Closed churiart closed 5 years ago
Your misc.xml
doesn't look like an OASIS XML catalog file, which is the only kind of catalog Exalt supports.
Can you try replacing misc.xml
with an OASIS XML catalog? I think something like this should work:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE catalog
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri
name="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd"
uri="ROOT/vendor/Magento/framework/Setup/Declaration/Schema/etc/schema.xsd"/>
</catalog>
It's been a while since I've worked with this stuff, though, so you might need to fiddle with that a bit.
Thank you I got it working:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE catalog
PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
"http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd" uri="file:///D:/path/to/installation/vendor/magento/framework/Setup/Declaration/Schema/etc/schema.xsd"/>
<uri name="urn:magento:framework:ObjectManager/etc/config.xsd" uri="file:///D:/path/to/instllation/vendor/magento/framework/ObjectManager/etc/config.xsd"/>
.
.
.
</catalog>
By the way, I think you could also do something along these lines:
<rewriteURI uriStartString="urn:magento:framework:" rewritePrefix="file:///D:/path/to/installation/vendor/magento/framework/"/>
I didn't test, though.
The exact same statement worked great and saved tens of kilobytes! Thank you
I'm nothing if not prudent when it comes to kilobytes.
Glad to hear it works!
I'm trying to make Exalt to work with Magento 2 xml files for validation. Its xml files could start with e.g.:
and that urn points to
schema.xsd
file in (starting from root directory):I have generated a catalog file named
misc.xml
with the built in Magento command which contains:and gave it to Exalt:
But Exalt throws error on not finding urn (
Failed to locate the main schema resource...
). Is there anyway to configure Exalt to understand the file path? Thanks