Actions
Bug #5561
openmisleading error message on failure to find external DTD
Start date:
2022-06-11
Due date:
% Done:
0%
Estimated time:
Applies to branch:
Fix Committed on Branch:
Fixed in Maintenance Release:
Found in version:
Fixed in version:
SaxonC Languages:
SaxonC Platforms:
SaxonC Architecture:
Description
If the source file being transformed by a stylesheet contains a DOCTYPE statement which references a non-existent file, an I/O error is raised. That's fine, but the diagnostic message suggests that it's the source file which doesn't exist, rather than a file it references.
SaxonC-HE 11.3 from Saxonica
source in transformFiletoString=/home/lou/Desktop/LacyWork/outgoing/0101Time/temp.xml
stylsheet=/home/lou/Public/pdf2tei/pt0.xsl
Error
I/O error reported by XML parser processing
/home/lou/Desktop/LacyWork/outgoing/0101Time/temp.xml: No such file or directory. Caused
by java.io.FileNotFoundException: No such file or directory
Simply doing touch [dtdFilename]
makes this error go away.
Here for comparison is the message provided if the source file really doesn't exist
SaxonC-HE 11.3 from Saxonica
source in transformFiletoString=/home/lou/Desktop/LacyWork/outgoing/0101Time/tump.xml
stylsheet=/home/lou/Public/pdf2tei/pt0.xsl
Error
I/O error reported by XML parser processing
/home/lou/Desktop/LacyWork/outgoing/0101Time/tump.xml: No such file or directory. Caused
by java.io.FileNotFoundException: No such file or directory
Can you see any difference? Me neither.
Related issues
Please register to edit this issue
Actions