XXE didn't show my catalog in it's About dialog. But - that doesn't mean it
didn't use it: If I modify another entry in the catalog, it get's noticed. 

Here's my catalog:
################################################
<?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"
         prefer="public">
        <public 
                publicId="-//OASIS//DTD DocBook XML V4.3//EN" 
                uri="file:///d:/docbook/dist/docbook/docbookx.dtd"/>
        <system 
                systemId="file:///C:/Programme/docbook/xml/4.3/xinclude.mod"

                uri="file:///D:/docbook/dist/dpag/xml/xinclude.mod"/>
        <rewriteURI 
                rewritePrefix="file:///D:/docbook/dist/work/" 
                uriStartString="local://"/>     
</catalog>              
################################################
If I change the system entry into something which can't be resolved, XXE
complains about it!

BTW: xmllint and xsltproc are using the same catalog without any warning.

With kind regards,

Klaus Ebner


-----Urspr?ngliche Nachricht-----
Von: Hussein Shafie [mailto:hussein at pixware.fr] 
Gesendet: Donnerstag, 7. April 2005 11:18
An: Ebner, ZG 8640, BN
Cc: xmleditor-support at xmlmind.com
Betreff: Re: [XXE] Using a catalog to define protocols


Ebner, ZG 8640, BN wrote:
> we've used the following approach to clean up our links: In our 
> catalog.xml, we used something like the following
>       <rewriteURI 
>               rewritePrefix="file:///D:/docbook/dist/work/" 
>               uriStartString="local://"/>     
> That way, it's possible to access all local files using the protocol 
> local. An example to that would be:
> 
> <!ENTITY % localentities SYSTEM "local://entities/local.entities.dtd">
> %localentities;
> 
> My only problem (and that's a killer one), is that XMLmind refuses to 
> load the document while complaining about an unknown Protocol 
> "local:".
> 
> As XMLmind itself uses a similar line in its own catalog (<rewriteURI 
> uriStartString="xxe-config:" rewritePrefix="." />), I was wondering 
> why it's complaining about mine...

I don't think the problem comes from uriStartString="local://". I think 
the problem comes from the fact that XXE does not see or cannot use your 
catalog.xml.

Please use "Help|About XMLmind XML Editor" to check that your XML 
catalog is listed there.

If your XML catalog is listed in this dialog box:

[1] Try with rewritePrefix="file:///D:/docbook/dist/work" (no ending '/').

[2] Try with rewritePrefix="...relative path..." (just for testing).

[3] Start XXE with a console to see if the XML catalog resolver crashes.

To do this, edit <XXE_install_dir>/xxe.jstart using notepad and replace 
"javaw" by "java". Make sure to save modified file as UTF-8.

Reply via email to