Ok... After hunting thru some documentation, here's how you can do it for
xmlspy. In the program directory for XML spy (for me, C:\Program
Files\Altova\XMLSPY), there is a CustomCatalog.xml. This file is meant for
'local' catalog definitions (where local means not provided by altova).
Into this file, you should paste the contents of all the children of the
'catalog' element in your $FORREST_HOME/src/resources/schema/catalog.xcat.
Now prepend 'http://localhost/forrest/' to all the uri attributes of the
public elements.
Then you need to make the the contents of
$FORREST_HOME/src/resources/schema/* available from your local webserver. I
use old-fashioned Apache 1.3.26. So I added these lines to my apache
configuration:
Alias /forrest D:\xml-forrest\src\resources\schema
where D:\xml-forrest is my $FORREST_HOME. Restart your apache, and you
should be able to access http://localhost/forrest/dtd/document-v11.dtd
Now restart your XML Spy and voila. You should now be able to validate your
forrest documents properly in XML Spy.
I'm sure there are several other ways of accomplishing this. And this is
specific to XML Spy. But I wanted to share the information anyway in case
other XML Spy users wanted to help document Xindice !
HTH
dave
-----Original Message-----
From: Dave Viner [mailto:[EMAIL PROTECTED]
Sent: Friday, November 22, 2002 9:53 AM
To: Xindice-Dev
Subject: forrest and xml catalogs
Hi,
I noticed the forrest documentation at
http://xml.apache.org/forrest/primer.html recommends using <!DOCTYPE
document PUBLIC "-//APACHE//DTD Documentation V1.1//EN" "document-v11.dtd">
and letting the catalog file resolve the actual location of the dtd file.
("The exact local location of the DTD for validation purposes is obtained by
the entity resolver evaluating the mapping scheme as defined in the catalog
file.")
When I run the forrest command line program from xml-xindice directory,
it
works fine. But when I use XML Spy to edit the files (or any other xml
editor), they can not validate the documents. I believe this is because it
can't find the catalog file. Does anyone know how to configure an XML
editor (preferably XML Spy) to use an XML catalog?
thanks
dave