Page 1 of 1
Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Fri Nov 05, 2021 12:50 pm
by Frank Ralf
Hello,
Our customer uses Oxygen 21.1 with a customized DITA framework. Since a recent update of the framework the following dialog keeps popping up:
I don't have any idea what causes this behavior because we don't use any RNC or RNG. Can I fix this somehow in the framework?
TIA
Frank
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Fri Nov 05, 2021 1:37 pm
by Radu
Hi Frank,
Oxygen notifies you by default when establishing HTTP connections. I do not know from which part of Oxygen the dialog shows up.
When does the dialog pop up? When you open an XML document? Or some other time?
There is an XML catalog which maps this URL to a local resource:
OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/resources/catalog.xml
and it's referenced in the main DITA OT XML catalog "OXYGEN_INSTALL_DIR/frameworks/dita/DITA-OT3.x/plugins/org.dita.base/catalog-dita.xml" so both publishing and editing should know about this mapping, but I do not guarantee this for Oxygen 21.1 which is in our end of maintenance period anyway and which officially we no longer support.
Regards,
Radu
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Tue Nov 09, 2021 1:16 pm
by Frank Ralf
Hi Radu,
Thanks for your quick reply. I think we found the culprit in the meantime: The connection request to “
www.dita-ot.org” is caused by a processing instruction in plugin.xml of all our custom plugins:
Code: Select all
<?xml-model href=https://www.dita-ot.org/rng/plugin.rnc type="application/relax-ng-compact-syntax"?>
According to
https://www.dita-ot.org/3.6/topics/plug ... tions.html it is recommended to include this instruction.
Looks like this resource is somehow missing in the XML catalog files so the local resource is not found. I will check and report back.
Best regards,
Frank
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Tue Nov 09, 2021 1:41 pm
by Frank Ralf
Besides our own custom plugins, I found the reference only twice in the Oxygen 21.1 framework:
- DITA-OT\plugins\com.elovirta.ooxml\plugin.xml
- DITA-OT\plugins\com.oxygenxml.pdf.css\plugin.xml
So I suppose we can safely remove this reference from our plugin.xml files.
Best regards,
Frank
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Tue Nov 09, 2021 1:43 pm
by Radu
Hi Frank,
Sure, that xml-model is not required to be there, it's used by Oxygen for validation when the plugin.xml is opened and when Oxygen cannot map that HTTP location through the XML catalog it needs to go online.
Regards,
Radu
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Tue Nov 09, 2021 1:54 pm
by Frank Ralf
Hi Radu,
Thanks for confirming.
Best regards,
Frank
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Thu Nov 11, 2021 3:00 pm
by Frank Ralf
I have noticed that the
DITA-OT documentation recommends the following syntax that we also used:
Code: Select all
<?xml-model href="https://www.dita-ot.org/rng/plugin.rnc" type="application/relax-ng-compact-syntax"?>
The plugins actually use a different
href value. And this one is indeed mapped in the catalog file
\dita\plugin\catalog.xml:
Code: Select all
<?xml-model href="dita-ot/plugin.rnc" type="application/relax-ng-compact-syntax"?>
So this looks more like an issue with the DITA-OT documentation diverging from the implementation.
Best regards,
Frank
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Thu Nov 11, 2021 3:18 pm
by Radu
Hi Frank,
Recent DITA OT versions have this XML catalog "DITA-OT/resources/catalog.xml" which has these mappings:
Code: Select all
<uri name="https://www.dita-ot.org/rng/project.rnc" uri="project.rnc"/>
<uri name="https://www.dita-ot.org/rng/plugin.rnc" uri="plugin.rnc"/>
so the DITA OT docs are correct.
That "dita-ot/plugin.rnc" reference is mapped through an Oxygen specific XML catalog to the same rnc file, we've been doing this for a long time, before the DITA OT added the "resources/catalog.xml" catalog.
Regards,
Radu
Re: Trusted hosts: www.dita-ot.org/rng/plugin.rnc
Posted: Thu Nov 11, 2021 7:29 pm
by Frank Ralf
Hi Radu,
Many thanks for this clarification!
Best regards,
Frank