This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[docbook-apps] Setting up a catalog for use with saxon


Hi,
I'm trying to set up an environment to generate HTML files from my docbook
source files. I want to use the saxon 6.5.3 XSLT processor to do this. While
configuring and using a catalog file I get the error ".. Error reported by
XML parser: Cannot read from
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd ..". It seems, that
the processor can resolve the XSL stylesheets, but not the DTD. The same
catalog works with xsltproc correctly.
Has anyone an idea where is the problem?

Thanks in advance,
Ulf Ackermann



start of source file:
---------------------
<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"; [
<!ENTITY allgi "Allgemeine Informationen">
]>
<book lang="de">
{snip...}


catalog file:
-------------
<?xml version="1.0" encoding="iso-8859-1"?>
<!--
<!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">
	<group xml:base="file:///d:/SoftwareStore/Programme/Tools/DokBook/">
		<rewriteSystem
	
systemIdStartString="http://www.oasis-open.org/docbook/xml/4.2/";
			rewritePrefix="docbook/dtd/"/>
		<rewriteURI 
	
uriStartString="http://www.oasis-open.org/docbook/xml/4.2/";
			rewritePrefix="docbook/dtd/"/>

		<rewriteSystem
	
systemIdStartString="http://docbook.sourceforge.net/release/xsl/current/";
			rewritePrefix="docbook-xsl-1.65.1/"/> 
		<rewriteURI
	
uriStartString="http://docbook.sourceforge.net/release/xsl/current/";
			rewritePrefix="docbook-xsl-1.65.1/"/>
	</group>
</catalog>


java - call and output:
-----------------------
java -cp
"D:\SoftwareStore\Programme\Tools\DokBook\saxon_6.5.3\saxon.jar;D:\SoftwareS
tore\Programme\Tools\DokBook\docbook-xsl-1.65.1\extensions\saxon651.jar;D:\S
oftwareStore\Programme\Tools\DokBook\xml-commons-resolver-1.0\resolver.jar;D
:\SoftwareStore\Programme\Tools\DokBook\custom" com.icl.saxon.StyleSheet -r
org.apache.xml.resolver.tools.CatalogResolver input.xml
d:\softwarestore\programme\tools\dokbook\custom\xsl\html.xsl
Loading catalog:
file:/D:/SoftwareStore/Programme/Tools/DokBook/custom/resolver.xml
resolveURI(http://docbook.sourceforge.net/release/xsl/current/html/docbook.x
sl)
Resolved URI:
http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
 
file:/d:/SoftwareStore/Programme/Tools/DokBook/docbook-xsl-1.65.1/html/docbo
ok.xsl
{snip...}
resolveURI(htmlcode.xsl)
Resolved URI: htmlcode.xsl
 
file:/d:/softwarestore/programme/tools/dokbook/custom/xsl/htmlcode.xsl
Error on line 6 column 1 of
file:/D:/DataStore/Projekte/_docs/Design.Physisch/input.xml:
  Error reported by XML parser: Cannot read from
http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd (www.oasis-open.org)
Transformation failed: Run-time errors were reported

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]