Re: [xep-support] xml catalog doesn't work

From: Robert Wenner <>
Date: Tue Jun 20 2006 - 10:09:00 PDT


On Saturday 17 June 2006 18:43, Andreas Eigenmann wrote:
> background-image="url(
>ft.png)" ... still needs internet connection.

I have a similar problem.
My XSL file reads an XML file with
That file has a DTD associated:
        <!DOCTYPE bibref SYSTEM "http://w3.atsec/xml/bibref.dtd">

I have a catalog in place as described in the XEP reference, i.e., in an
ant script I use
    <target name="report">
            <arg value="-xml"/>
            <arg value="report.xml"/>
            <arg value="-param"/>
            <arg value="prjdir=${prjdir}"/>
            <arg value="-xsl"/>
            <arg value="${xmldir}/SERfo.xsl"/>
            <sysproperty key="com.renderx.xep.CONFIG"
            <sysproperty key="com.renderx.sax.entityresolver"
            <sysproperty key="com.renderx.jaxp.uriresolver"
            <sysproperty key="xml.catalog.files"

This works fine if the that bibref.xml file does not have a DOCTYPE or the
identifier for that DTD is a real path to the DTD.
It fails when it should use a catalog: http://w3.atsec/xml/bibref.dtd; SystemID:
file:/home/robert/xml/SERfo.xsl; Line#: 1993; Column#: -1

Obviously, the system ID in bibref.xml could not be resolved.
Other programs work fine with that bibref.xml file, i.e. the catalog is
used and URIs are resolved to paths on my machine.

I understand that catalogs may not work on the XSLT document() function,
however, once that file is read, catalogs should IMHO be used to resolve
public and system identifiers.

I also found that if I use catalogs, I need to pass in the XSL stylesheet
as an argument to XEP (i.e., use -xsl SERfo.xsl) instead of placing it in
the XML input document (with
<?xml-stylesheet type="text/xsl" href="http://w3.atsec/xml/SERfo.xsl"?>)
and have the catalog resolver do the trick.

What am I missing here?
Can somebody confirm that XEP uses the Entity Resolver in a wrong way,
i.e. does not use it in combination with XSLT's document()?


(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service
Received on Tue Jun 20 10:42:27 2006

This archive was generated by hypermail 2.1.8 : Tue Jun 20 2006 - 10:42:28 PDT