[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

catalog with saxon 9.7

Subject: catalog with saxon 9.7
From: "Marc marc.liste@xxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 12 Jun 2017 06:29:04 -0000
 catalog with saxon 9.7
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.