Catalog and relative system identifier
Submitted by Saturday, 16 September, 2006 - 02:12
on
I have some XML files with DTD declarations like:
<!DOCTYPE foo SYSTEM "foo_1.dtd">
The DTD isn't in the same directory.
I thought I'd be able to add a catalog and point out the correct location of foo_1.dtd. However, jEdit still complains that it can't find the DTD in the same directory as the XML file.
My catalog:
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "oasis-catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group prefer="public" xml:base="file:///C:/Documents and Settings/user/.jedit/xml_catalog">
<system systemId="foo_1.dtd" uri="BlkArch/foo_1.dtd"/>
</group>
</catalog>
According to this page:
http://www.sagehill.net/docbookxsl/WriteCatalog.html
under "Relative SYSTEM identifiers may not work"
there is a general failure among Java based XML parsers that prevent them from using catalogs with relative system identifiers.
Is this page correct, or is there a way around this?
<!DOCTYPE foo SYSTEM "foo_1.dtd">
The DTD isn't in the same directory.
I thought I'd be able to add a catalog and point out the correct location of foo_1.dtd. However, jEdit still complains that it can't find the DTD in the same directory as the XML file.
My catalog:
<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "oasis-catalog.dtd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<group prefer="public" xml:base="file:///C:/Documents and Settings/user/.jedit/xml_catalog">
<system systemId="foo_1.dtd" uri="BlkArch/foo_1.dtd"/>
</group>
</catalog>
According to this page:
http://www.sagehill.net/docbookxsl/WriteCatalog.html
under "Relative SYSTEM identifiers may not work"
there is a general failure among Java based XML parsers that prevent them from using catalogs with relative system identifiers.
Is this page correct, or is there a way around this?