[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] 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)
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|