Hi Hussein,
Many thanks for your kind response and help. I have to admit that I am new
to all the XML related 'mysteries'. Your documentation is excellent but for
the first time reader all
the details seem a bit confusing hence, my original question.
Once again, many thanks for showing me the right direction. It was a great
help.
Regards,
Andrew

-----Original Message-----
From: Hussein Shafie [mailto:[email protected]]
Sent: Thursday, 19 August 2004 7:47 PM
To: Andrew A. Hanish
Cc: xmleditor-support at xmlmind.com
Subject: Re: How to access your public *.css and *.dtd in your
directories?


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.




Reply via email to