My experiments lead me to believe that XMLmind is trying to load
external public identifiers before it tries to find an alternate using
its list of catalogs.
In particular, I have a document template which makes reference to a
public identifier on the Internet; that public identifier is noted and
redirected in a <public> element in a catalog loaded into XXE. This has
worked in all my tests until I tried this setup on an unnetworked
machine. After the initial install of the configuration when I try to
load or create a document of the particular type, I get the error:
Cannot open file "C:\Documents and
Settings\user\xxe2\config\ldocbook\ldocbook.xml":
docbook.sourceforge.net
When I provide a network connection for the machine, documents load
correctly. If I then remove the network connection, documents continue
to load correctly until I manually clear the XXE cache. I have attached
the catalog, template, and configuration file in case I've overlooked
something.
There is one possibility that I can think of in which it might be my
fault and not XXE's: it might be that correct processing of XML catalogs
requires the evaluation of all URLs, and that I should remap the URL
itself in the XML catalog; however, my study of the XML catalog
specifications has been inconclusive on this point. Any guidance would
be appreciative. It seems to me that simply specifying a <public>
element in the catalog ought to be adequate.
I should only need to use the <dtd> configuration element if I want to
enforce constraint on the documents that the documents don't specify
themselves, correct? (That is, the <dtd> element is not the appropriate
answer here, is it?)
Take care,
John L. Clark
-------------- next part --------------
<?xml version="1.0"?>
<!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">
<public publicId="-//Normal Walsh//DTD XWEB V1.0 in DocBook XML V4.2//EN"
uri="ldocbook/ldocbook.dtd"/>
<public publicId="-//OASIS//DTD DocBook XML V4.2//EN"
uri="docbook/docbookx.dtd"/>
</catalog>
-------------- next part --------------
<?xml version="1.0"?>
<!DOCTYPE article PUBLIC "-//Normal Walsh//DTD XWEB V1.0 in DocBook XML
V4.2//EN"
"http://docbook.sourceforge.net/release/litprog/current/dtd/ldocbook.dtd">
<article xmlns:src="http://nwalsh.com/xmlns/litprog/fragment">
<title></title>
<articleinfo>
<date></date>
<author>
<firstname></firstname>
<surname></surname>
</author>
<abstract>
<para></para>
</abstract>
</articleinfo>
<section>
<title></title>
<para></para>
<src:fragment id="top"></src:fragment>
</section>
<section>
<title></title>
<para></para>
</section>
</article>
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>
<cfg:configuration name="ldocbook"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:cfg="http://www.xmlmind.com/xmleditor/schema/configuration">
<cfg:detect>
<cfg:dtdPublicId>-//Normal Walsh//DTD XWEB V1.0 in DocBook XML
V4.2//EN</cfg:dtdPublicId>
</cfg:detect>
<cfg:css location="ldocbook.css" name="Style Sheet" />
<cfg:css alternate="true" location="ldocbook-fields.css"
name="Display Fields" />
<cfg:template location="ldocbook.xml" name="Template" />
</cfg:configuration>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url :
http://www.xmlmind.com/pipermail/xmleditor-support/attachments/20031024/98a5800a/attachment.sig