Rajesh,

Have you tried prefixing the file name with "file:.//"? 

e.g. "file:///usr/config/Reports.xml"

This also works on NT, e.g. file:///c:/config/Reports.xml

Regards,

Antony

-----Original Message-----
From: Rajesh Paramaguru [mailto:[EMAIL PROTECTED]
Sent: 01 November 2002 16:43
To: [EMAIL PROTECTED]
Subject: Can load requested doc! error!


All,
I have written a few xsl templates that are packaged as part of the ear
file. The ear is deployed on jboss and weblogic server running on
windows and unix platforms. In the xsl templates, I have a few calls to
read an external configuration (XML) file via the
document command. See the example below

<xsl:variable name="root" select="document($loc)" />

The variable $loc that is passed into the document command above is a
directory location on the server. For NT, it may be
d:\config\Reports.xml and for unix platform it may be
/usr/configs/Reports.xml.

The problem is document location works fine on the NT platform. It can
read the config file from the disk and perform the required operation.
However, on the unix platform I get the following errors:

can not load requested doc:  file "zip:/usr/config/Reports.xml" not
found.

Now, my question is why does xsl behaviour change on the unix platform?
Morever, why is it looking for the Reports.xml file in the zip file? How
can I solve this problem?

This is a very critical issue that I'm trying to resolve ASAP. I would
appreciate any solutions to this problem.



Reply via email to