Page 1 of 1

Single catalog file in frameworks directory

Posted: Thu Feb 24, 2022 10:30 pm
by jensebr
I'm trying to port over a large set of custom doctypes used in an Arbortext environment, with which I'm very familiar, to Oxygen Editor and Web Author, which I am new to. The xml schema files are fairly modular, so use of xs:include is common. We had a single xml catalog file that pointed to the schema files using the xsi:noNamespaceSchemaLocation attribute in the xml file.

Is it not possible to have a frameworks directory, with multiple framework subdirectories containing the xml schema files, and another subdirectory with a set of common schema files that the others include, and have a single xml catalog file in the main frameworks directory that resolves them? I haven't had any luck with this yet.

Re: Single catalog file in frameworks directory

Posted: Fri Feb 25, 2022 7:32 am
by Radu
Hi,

Each framework configuration in the Oxygen Preferences->"Document Type Associations" page has a "Catalogs" tab. When you refer to an XML catalog you can use editor variables like this ${framework}/../main-catalog.xml. That "../" means navigating outside of the current framework folder and you can also use it multiple times in the path.

Regards,
Radu

Re: Single catalog file in frameworks directory

Posted: Fri Feb 25, 2022 7:46 pm
by jensebr
Thanks Radu, that makes sense. I assumed that adding the ${frameworks}/catalog.xml file to the catalogs under Preferences->XML->"XML Catalog" would have worked without adding catalog entries under each individual framework. Is that not the case?

Re: Single catalog file in frameworks directory

Posted: Mon Feb 28, 2022 6:30 am
by Radu
Hi,

Sure, you can also add XML catalog entries to the "Preferences->XML->"XML Catalog"" page. All catalogs (the ones from the document types and the global added ones) are added to the same common internal pool of XML catalogs and used from there.

Regards,
Radu