Project

Profile

Help

Bug #4672

closed

Problem with XML catalogue behaviour

Added by Ken Holman over 3 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2020-08-06
Due date:
% Done:

0%

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

Description

Hi, folks! I've distilled a bunch of my environment processing into the attached abbreviated test files.

In the transcript below I'm demonstrating how saxon does not resolve an XML catalog entry that is resolved by jing.

There are two test files, one with a DOCTYPE and one without. I invoke my processes first for the one without a DOCTYPE to prove to myself that my invocations are sound.

Next I run jing on the one with a DOCTYPE but not using an XML catalog and I get an error as expected.

Next I run jing on the one with a DOCTYPE and using an XML catalog and I get no error as expected.

Next I run saxon on the one with a DOCTYPE and using an XML catalog and I get an error that is not expected.

The ZIP file has all of my test files of this test.

Am I missing something obvious? My intuition is that if the XML catalog satisfies jing then it also should satisfy saxon. I'm even using the same resolver jar. I looked for guidance in https://www.saxonica.com/html/documentation/sourcedocs/xml-catalogs.html and found nothing to help me. Saxon wouldn't support the catalog option without the reference to the resolver jar.

Thanks for your help with this! And with your patience with me if it is something obvious that I'm missing.

. . . . . . Ken

~/t/testcatalogue $ sh test.sh
+ echo jing XML with no DOCTYPE '(expect' no 'error)'
jing XML with no DOCTYPE (expect no error)
+ java -cp jar/jing/bin/resolver.jar:jar/jing/bin/jing.jar com.thaiopensource.relaxng.util.Driver -C dtd/catalog.xml rng-NISOSTS/RNG-NISO-STS-interchange-1-mathml3/NISO-STS-interchange-1-mathml3.rng SD-1048-catalog/NEN_2eOntw_nl-no-doctype.xml
+ echo Returns 0
Returns 0
+ echo saxon XML with no DOCTYPE '(expect' no 'error)'
saxon XML with no DOCTYPE (expect no error)
+ java -cp jar/jing/bin/resolver.jar:jar/saxon9he/saxon9he.jar net.sf.saxon.Transform -catalog:dtd/catalog.xml -xsl:setare/Setare-STS-validation.xsl -s:SD-1048-catalog/NEN_2eOntw_nl-no-doctype.xml
+ echo Returns 0
Returns 0
+ echo jing XML with no catalog '(expect' 'error)'
jing XML with no catalog (expect error)
+ java -cp jar/jing/bin/resolver.jar:jar/jing/bin/jing.jar com.thaiopensource.relaxng.util.Driver rng-NISOSTS/RNG-NISO-STS-interchange-1-mathml3/NISO-STS-interchange-1-mathml3.rng SD-1048-catalog/NEN_2eOntw_nl.xml
fatal: file not found: /Users/admin/t/testcatalogue/SD-1048-catalog/NISO-STS-interchange-1-mathml3.dtd (No such file or directory)
+ echo Returns 1
Returns 1
+ echo jing XML with no catalog '(expect' no 'error)'
jing XML with no catalog (expect no error)
+ java -cp jar/jing/bin/resolver.jar:jar/jing/bin/jing.jar com.thaiopensource.relaxng.util.Driver -C dtd/catalog.xml rng-NISOSTS/RNG-NISO-STS-interchange-1-mathml3/NISO-STS-interchange-1-mathml3.rng SD-1048-catalog/NEN_2eOntw_nl.xml
+ echo Returns 0
Returns 0
+ echo saxon XML with no catalog '(expect' no 'error)'
saxon XML with no catalog (expect no error)
+ java -cp jar/jing/bin/resolver.jar:jar/saxon9he/saxon9he.jar net.sf.saxon.Transform -catalog:dtd/catalog.xml -xsl:setare/Setare-STS-validation.xsl -s:SD-1048-catalog/NEN_2eOntw_nl.xml
I/O error reported by XML parser processing file:/Users/admin/t/testcatalogue/SD-1048-catalog/NEN_2eOntw_nl.xml: /Users/admin/t/testcatalogue/SD-1048-catalog/NISO-STS-interchange-1-mathml3.dtd (No such file or directory)
+ echo Returns 2
Returns 2
~/t/testcatalogue $ 


Files

testcatalogue.zip (8.47 MB) testcatalogue.zip Ken Holman, 2020-08-06 02:02

Please register to edit this issue

Also available in: Atom PDF