Single catalog file in frameworks directory

Post here questions and problems related to oXygen frameworks/document types.
jensebr
Posts: 5
Joined: Thu Feb 24, 2022 9:29 pm

Single catalog file in frameworks directory

Post 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.
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Single catalog file in frameworks directory

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
jensebr
Posts: 5
Joined: Thu Feb 24, 2022 9:29 pm

Re: Single catalog file in frameworks directory

Post 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?
Radu
Posts: 9434
Joined: Fri Jul 09, 2004 5:18 pm

Re: Single catalog file in frameworks directory

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply