Andrew A. Hanish wrote: > I recently downloaded your XXE Std Edition and now, I am trying some of your > examples. > They use absolute URLs pointing to your public files eg. > http://www.xmlmind.com/css/example1.css > Unfortunately, I am unable to access them. Do I have to be registered with > you as one of the users. I do not remember seeing such a requirement when I > downloaded your software. > Could you help me with this hurdle?
Our examples contain absolute URLs because this is the right thing to do in the general case (say you are writing a public DTD describing molecules). Of course, we do *not* have a repository for the DTD and CSS files used in our examples (accessible to the public or not). This is not needed thanks to the use of *XML catalogs*. http://www.oasis-open.org/committees/entity/spec-2001-08-06.html Here is XXE_install_dir/docs/configure/samples/example1/example1_catalog.xml: --- <?xml version="1.0" ?> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog" prefer="public"> <public publicId="-//XMLmind//DTD Example1//EN" uri="example1.dtd"/> </catalog> --- By discovering and loading example1_catalog.xml at startup time, XXE will use the local copy of the DTD found in XXE_install_dir/docs/configure/samples/example1/example1.dtd instead of attempting to download non-existent "http://www.xmlmind.com/public/dtd/example1.dtd" referenced in XXE_install_dir/docs/configure/samples/example1/example1.xml. --- <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE doc PUBLIC "-//XMLmind//DTD Example1//EN" "http://www.xmlmind.com/public/dtd/example1.dtd"> <doc> <para></para> </doc> --- Note that all XML catalog aware applications will do the same because XML catalogs are a standard. The main difference is that XXE discovers XML catalogs at startup time while you need to explicitly specify a list of catalogs to other applications.

