Publishing HTML/PDF with custom DTD
Posted: Mon Aug 07, 2023 9:21 am
Hello,
i work on a reorganisation of my Dita framework. Former i used a copy of frameworks in a special directory (git repo), which includes many customizations (DTD, HMTL and PDF-output).
This architecture make problems with the upgrade from Oxy23.1 to Oxy24.1. So i want to use the default frameworks with an extension script and publishing templates.
The validation of custom DTD with extension script work well (catalog.xml), but not the transformations to HTML and PDF.
First i get this error:
Failed to run pipeline: The entity -//TU Graz//DTD DITA Campus Online Doctypes Map//EN / file:/C:/co-doc/doc/archive/Guenter/tu.graz.co.doctypes.map.dtd cannot not be resolved through catalogs. For security reasons files that are not listed in the DITA-OT catalogs and are not located in the DITA-OT directory are not read. You can disable this restriction by setting "-Dargs.disable.security.checks=yes" in the command line or the Oxygen transformation configuration dialog, the "Advanced" tab, in the "JVM Arguments" text field. Make sure all the input files come from a trusted source.
So i set the parameter as recommended to Dargs.disable.security.checks=yes.
Now i get this error message:
'file:/C:/co-doc/doc/archive/Guenter/Guenter.ditamap' could not be loaded. Ensure that grammar files for this document type are referenced and installed properly. Cannot load file: C:\co-doc\doc\archive\Guenter\map.dtd
How can i make sure, that the transformation use the custom DTD.
Best regards
Guenter
i work on a reorganisation of my Dita framework. Former i used a copy of frameworks in a special directory (git repo), which includes many customizations (DTD, HMTL and PDF-output).
This architecture make problems with the upgrade from Oxy23.1 to Oxy24.1. So i want to use the default frameworks with an extension script and publishing templates.
The validation of custom DTD with extension script work well (catalog.xml), but not the transformations to HTML and PDF.
First i get this error:
Failed to run pipeline: The entity -//TU Graz//DTD DITA Campus Online Doctypes Map//EN / file:/C:/co-doc/doc/archive/Guenter/tu.graz.co.doctypes.map.dtd cannot not be resolved through catalogs. For security reasons files that are not listed in the DITA-OT catalogs and are not located in the DITA-OT directory are not read. You can disable this restriction by setting "-Dargs.disable.security.checks=yes" in the command line or the Oxygen transformation configuration dialog, the "Advanced" tab, in the "JVM Arguments" text field. Make sure all the input files come from a trusted source.
So i set the parameter as recommended to Dargs.disable.security.checks=yes.
Now i get this error message:
'file:/C:/co-doc/doc/archive/Guenter/Guenter.ditamap' could not be loaded. Ensure that grammar files for this document type are referenced and installed properly. Cannot load file: C:\co-doc\doc\archive\Guenter\map.dtd
How can i make sure, that the transformation use the custom DTD.
Best regards
Guenter