RE: documnet('lookup.xml') question - server/local dis
> 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
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format