Re: [xml] standard dtd?!



Daniel Veillard wrote:
> On Wed, Jul 30, 2003 at 05:40:28PM +0200, Tobias Reif wrote:
>
>>On Windows in a .bat file I have
>>   set SGML_CATALOG_FILES=/etc/xml/catalog
>>since this works.
>>
>   Hum, that's bad, SGML catalogs should be in /etc/sgml/catalog,
> or in the default environment variable.

I don't have an SGML catalog.

I wrote:
"what I have is an XML catalog, starting with
  <?xml version="1.0"?>

I have an XML catalog, and thus would like to set XML_CATALOG_FILES instead of SGML_CATALOG_FILES. What I currently have is the only thing that works, but is obviously incorrect, so I'd like to change it. That's the reason of my posts. But setting XML_CATALOG_FILES doesn't work. (not sure if the error is on my side or not)

I wrote:

If I change the line to any of
  set XML_CATALOG_FILES=/etc/xml/catalog
  set XML_CATALOG_FILES=file:///etc/xml/catalog
  set XML_CATALOG_FILES="file:///etc/xml/catalog"
I also get
  Variable $SGML_CATALOG_FILES not set
.
Shouldn't XML_CATALOG_FILES eg
  set XML_CATALOG_FILES=/etc/xml/catalog
work?

>>If I remove that line, I get
>>
>>   Variable $SGML_CATALOG_FILES not set
>>.
>>I'd be happy if xmllint would look for /etc/xml/catalog so that I don't
>>have to specify this variable.
>>
>   No I disagree,

I don't think so :)

> XML and SGML catalogs are a fundamentally different
> thing to me,

to me too

> and usually are for different toolchains. Actually one
> of the best way to break an XML toolchain is to point it by default to
> an SGML set of resources, I really don't want to mix them.

As you suspected there are many fundamental misunderstandings regarding my intentions and the probhlem I want to solve.

All I want to do is
  set XML_CATALOG_FILES=/etc/xml/catalog
, nothing else (or a different path if the catalog is in a different location).
But it doesn't work, as I described. (again, it might be my error)

>>But when the catalog would be somewhere else I'd have to provide the
>>path to it.
>>If I change the line to any of
>>   set XML_CATALOG_FILES=/etc/xml/catalog
>>   set XML_CATALOG_FILES=file:///etc/xml/catalog
>>   set XML_CATALOG_FILES="file:///etc/xml/catalog"
>>I also get
>>   Variable $SGML_CATALOG_FILES not set
>>.
>>Shouldn't XML_CATALOG_FILES eg
>>   set XML_CATALOG_FILES=/etc/xml/catalog
>>work?
>>
>   No,

But I have an XML catalog and specifying (nothing but) XML_CATALOG_FILES doesn't work.

> SGML and XML catalogs are distinct set of resources,
> so unless I misunderstood your question (very possible)

... and true

> I don't
> think I can answer positively about it, mixing them was actually
> one of the main large scale problem I ever had when implementing
> catalogs and deploying them, so I'm very cautious now to avoid
> any mixup of both set of resources.

I have only one, and I don't want to mix anything.

Let me try to clarify:

The scenario takes place on Windows, it's one of two OSs I'm using.
I have an XML catalog.
1.
When it's in
  /etc/xml/catalog
I want xmllint to find it by itself, but this doesn't work; it asks for $SGML_CATALOG_FILES:
  "Variable $SGML_CATALOG_FILES not set"
It shouldn't ask for neither $SGML_CATALOG_FILES nor $XML_CATALOG_FILES AFAICS.
2.
When it's in a different location, I want to supply this location via
  set XML_CATALOG_FILES=/foo/bar/catalog
This also doesn't work:
  "Variable $SGML_CATALOG_FILES not set"

Tobi

--
http://www.pinkjuice.com/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]