[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: documnet('lookup.xml') question - server/local dis

Subject: RE: documnet('lookup.xml') question - server/local disk
From: "Oleg Tkachenko" <olegt@xxxxxxxxxxxxx>
Date: Fri, 15 Mar 2002 19:33:40 +0200
lookup xml
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.