This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: documnet('lookup.xml') question - server/local disk
- From: "Oleg Tkachenko" <olegt at multiconn dot com>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 15 Mar 2002 19:33:40 +0200
- Subject: RE: [xsl] documnet('lookup.xml') question - server/local disk
- Reply-to: xsl-list at lists dot mulberrytech dot com
> However, lookup.xml is very large and infrequently changes and if
> possilbe I
> would like to offer the
> ability to have a user download this file to the local disk. Within
> file.xsl, the lookup file would be
> accessed using
>
> documnet('c:\application\lookup.xml')
>
> Is there a way to accomplish this? I get an access denied when I try the
> above documnet() call? Also, I would like to be able to detect or control
> whether the server version of lookup.xml is used of if the local
> copy is to
> be used (based
> on date or other criteria). Thx in advance..
I don't think you can do it this way, there is usual browser security stuff which doesn't get you access to local client file system and that is really good. So xsl stylesheet and lookup file must be in the same place - or both on the client or both on the server. A better approach to avoid loading big lookup file to the client might be using some server side application for looking up task. For example, write a servlet which have lookup table preloaded in memory and invoke it from the stylesheet by document("http://domain.com/LookupServlet?param=value").
---
Oleg Tkachenko,
Multiconn International, Israel
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list