You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xalan.apache.org by Rajesh Paramaguru <ra...@sdrc.com> on 2002/11/01 17:42:38 UTC

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.



RE: Can load requested doc! error!

Posted by Antony Quinn <an...@caret.cam.ac.uk>.
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:rajeshkumar.paramaguru@sdrc.com]
Sent: 01 November 2002 16:43
To: xalan-j-users@xml.apache.org
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.




Re: Can load requested doc! error!

Posted by Joseph Kesselman <ke...@us.ibm.com>.
document() is expecting a URI rather than a filename. Try passing 
file:///your_local_file_name and see if that helps.

______________________________________
Joe Kesselman  / IBM Research