Re: [xslt] Win2K,xsltproc ignores catalog



At Thursday 13/02/2003 13:10, you wrote:
>Hi,
>
>On Thu, 13 Feb 2003, Wim de Vries wrote:
> > Hi,
> > I've checked the Win xsltproc catalog discussions, and tried the solutions.
> > Still it seems that xsltproc does not use the catalog file.
> > Tried all these :
> > 1.put catalog in c:\etc\xml\
>
>That is of no use. The Windows port does not have the default location for
>catalogs. You must set the enviroment variable.
>
> > 2.put catalog.xml in C:\ and
> > set XML_CATALOG_FILES=file:///catalog.xml
>
>That is wrong. You are missing the drive specification and the drive is
>mandatory in a full path on Windows. Use file:///c:/catalog.xml
Yes, this works! Thanks!

> > or set  XML_CATALOG_FILES=c:\catalog.xml
>
>That should work, it will find the catalog file, but it will be of no use if
>your catalog file omits the drive specification in its paths.
>
> > When I run xsltproc it still tries to open the dtd from the location
> > mentioned in the internal dtd of the XML file. No mentioning of not finding
> > the catalog(.xml). BTW: catalog.xml itself should be ok, for it works good
> > with Xalan.
>
>Can I see the relevant entry in that catalog file?
-----------------------------------
<?xml version="1.0" encoding="iso-8859-1" ?>
<!DOCTYPE catalog
   PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN"
          "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd";>
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"
          prefer="public">

<group prefer="public">
<!-- ......................... JA DTD .......................... -->
<public publicId="-//ES//DTD journal article DTD version 5.0.0//EN//XML"
         uri="c:/test/art500/art500.dtd"/>
</group>
</catalog>
-----------------------------------------
works ok: catalog does not seem to need the file:/// prefix.
BTW: Do you know how I should handle  a Win path that contains a white 
space in both the above URI's?


>Ciao,
>Igor
>_______________________________________________
>xslt mailing list, project page http://xmlsoft.org/XSLT/
>xslt@gnome.org
>http://mail.gnome.org/mailman/listinfo/xslt




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