Steven Noels wrote:
> 
> after installing XXE and trying to use some grammars we developed in the
> Apache Forrest project (http://xml.apache.org/forrest/), I start to
> believe that the catalog support [1] is restricted to the 'old' non-XML
> format [2] rather than the new XML format [3]. I wasn't able to get XXE
> use the Forrest XML catalog [4].
> 
> Given the fact XXE depends on resolver.jar [5] for this (now an Apache
> xml-commons project), I wonder whether this is by design or oversight.

Excerpt from the Forrest XML catalog (i.e.
http://cvs.apache.org/viewcvs.cgi/xml-forrest/src/resources/schema/catalog.xcat?rev=1.9&content-type=text/vnd.viewcvs-markup):

--------------------------------------------------------------------------------

<!-- OASIS XML Catalog for Forrest -->
<!-- FIXME: The parser used by Ant chokes on this.
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
-->
<catalog>
       .
       .
       .
</catalog>
---------------------------------------------------------------------------------

Plain <catalog> is *not* the name of the catalog element being expected
by resolver.jar!!! (<catalog
xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> and <catalog> are
totally different element names.)

Uncomment out <!--FIXME-->, comment out ``plain'' <catalog>, and
everything should work fine.

Note that an XML catalog similar to yours is bundled with XXE. See
<XXE_distrib_dir>/config/catalog.xml. The right thing to do is not to
modify it, but rather to add your own catalog to the list by using
Options|Options... Open Tab.

PS: When you do this kind of manipulation, do not forget to disable or
clear the DTD/XML-Schema cache (Options|Options... Open Tab) or you'll
not be able to see the effect of what you've modified on XXE.

Reply via email to