Project

Profile

Help

Support #5473

closed

Error on XSLT transform because DTD not found,

Added by Pankaj Gupta almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
-
Category:
-
Sprint/Milestone:
-
Start date:
2022-05-05
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Platforms:

Description

I am using saxon9ee.jar. I need to apply an XSLT within an existing java program. I am getting the XML file as an input stream. The problem is that the XML contains a DTD. I have the DTD file but don’t know where to place it and tell the java runtime where to find it.

This is being done programmatically, not by the command line.

The xml contains:

Error reported on transform is: I/O error reported by XML parser processing null: /ST26SequenceListing_V1_3.dtd (No such file or directory)

code has Xslt30Transformer.transform(source, destination) where it fails

Any help would be appreciated.

I am new to this. From what I have read t seems the xml parser is failing, but I don't know how to get it to work. Thanks.

Please register to edit this issue

Also available in: Atom PDF