Page 1 of 1

Ignoring DTD during Transformation

Posted: Thu Nov 17, 2022 10:04 am
by JamieLester
Hello,

I have a specialized DITA file that I want to run XSLT against. The problem is that this file has a doctype, but I don't have the DTDs.
To complicate matters, the file references other files with other doctypes that I want to pull in with the document() function in the XSLT.
What's more, the content is published by third-party, so I'm not able to modify it.

Any help or insight is much appreciated.
Thanks,
Jamie

Re: Ignoring DTD during Transformation

Posted: Thu Nov 17, 2022 1:33 pm
by Radu
Hi Jamie,

I'm afraid this is not possible, you need access to the DTDs.
Or you can change the DOCTYPE declarations from all topics (using Oxygen's Find/Replace in Files tool for example) to the DOCTYPE declarations for base DITA topics, to see which extra elements were defined in the specialized DTDs.

Regards,
Radu