[xsl] catalog with saxon 9.7

Subject: [xsl] catalog with saxon 9.7
From: "Marc marc.liste@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jun 2017 06:29:04 -0000
Hi,
I use the catalog with the Apache XMLResolver.
I use saxon 9.7 EE

I don't understand what happens with the DTD catalog resolution.
I try to do an example and verify if the files are correct with the resolver included parser.


The solution is perhapsan evidence, and I used the catalog Apache resolver with saxon in the past without any problem, but I don't see where is the mistake!!!

Thank you very much if you see it!!

Marc

Here are the files :

--------- XML file : (marc.xml)
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE MARC SYSTEM "marc2.dtd" >
<MARC>
  <BUG></BUG>
</MARC>

-------- DTD file : (marc.dtd)

<?xml version="1.0" encoding="UTF-8"?>
<!ELEMENT MARC         (BUG)* >
<!ELEMENT BUG         EMPTY >

-------- catalog.xml :

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<system systemId="marc2.dtd" uri="marc.dtd"/>
<system systemId="marc3.dtd" uri="marc.dtd"/>
<system systemId="file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd" uri="marc.dtd"/>
</catalog>


------------ CatalogManager.properties :

catalogs=catalog.xml
verbosity=99

--------->>>>>>> and the outputs :

---------- Using the Apache resolver :
java -cp .;.\xml-commons-resolver-1.2\resolver.jar org.apache.xml.resolver.apps.xparse -d 2 marc.xml
Parse catalog: catalog.xml
Loading catalog: catalog.xml
Default BASE: file:/D:/Travail/3-EFL/CatalogGP/catalog.xml
system: marc2.dtd
marc.dtd
SYSTEM: marc2.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
system: marc3.dtd
marc.dtd
SYSTEM: marc3.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
system: file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd
marc.dtd
SYSTEM: file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
Attempting validating, namespace-aware parse
resolveSystem(file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd)
Resolved system: file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
Parse succeeded (0.2) with no errors and no warnings.


------------------ using saxon 9.7 EE :
java -cp .;.\xml-commons-resolver-1.2\resolver.jar;.\saxon9ee.jar net.sf.saxon.Transform -xsl:marc.xsl -s:marc.xml -o:sax-marc.xml -r:org.apache.xml.resolver.tools.CatalogResolver -x:org.apache.xml.resolver.tools.ResolvingXMLReader -y:org.apache.xml.resolver.tools.ResolvingXMLReader
Parse catalog: catalog.xml
Loading catalog: catalog.xml
Default BASE: file:/D:/Travail/3-EFL/CatalogGP/catalog.xml
system: marc2.dtd
marc.dtd
SYSTEM: marc2.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
system: marc3.dtd
marc.dtd
SYSTEM: marc3.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
system: file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd
marc.dtd
SYSTEM: file:///D:/Travail/3-EFL/CatalogGP/marc2.dtd
file:/D:/Travail/3-EFL/CatalogGP/marc.dtd
resolveSystem(file:/D:/Travail/3-EFL/CatalogGP/marc2.dtd)
I/O error reported by XML parser processing file:/D:/Travail/3-EFL/CatalogGP/marc.xml: D:\Travail\3-EFL\CatalogGP\marc2.dtd (Le fichier spicifii est introuvable)


Current Thread