Re: XT and absolute file names?

Subject: Re: XT and absolute file names?
From: zun@xxxxxxxxxxxxxx
Date: Tue, 24 Aug 1999 14:35:18 -0400 (EWT)
Hi Kai,

On 23 Aug 1999, Kai [iso-8859-1] Großjohann wrote:

[ ... ]
> Suppose you have home-grown DTDs and XSL stylesheets and stuff.
> Suppose further that you wish to experiment with different versions.
> For other Unix programs, there are environment variables which you can
> set to a list of directories to search.  With nsgmls and friends, it
> is possible to set $SGML_SEARCH_PATH to a list of directories which are
> then searched for DTDs.
[...]
> But with XT this is not possible, since the files have to contain an
> absolute URL if the referenced file is not in the current directory.
> 
> How do you deal with this kind of problem?  Maybe I'm approaching it
> from the wrong end altogether?

Since it's an implementation detail you'd have to write some Java code to
do it.  Fortunately this is relatively straightforward, you have to write
an implementation for org.xml.sax.EntityResolver to do what you want, then
create a new parser class using it for XT to use.

If you have any difficulty feel free to mail me directly.

. . . Sean.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread