From: Casey J. <cas...@jo...> - 2010-09-07 20:29:33
|
Hey guys, I have done this before a while ago but its not working out this time around. I have a collection of xml files in the database and I have a controller (In the same collection) that when they are requested will transform them using a specified stylesheet (Resides in the same directory). the rewrite rule I have now looks like this: if(ends-with($exist:path, '.xml')) then <dispatch xmlns="http://exist.sourceforge.net/NS/exist"> <view> <forward servlet="XSLTServlet"> <set-attribute name="xslt.stylesheet" value="./face.xslt"/> </forward> </view> </dispatch> else <ignore xmlns="http://exist.sourceforge.net/NS/exist"> <cache-control cache="no"/> </ignore> However when I request a file I get a 404 "Stylesheet not found" error. Any ideas? Cheers, Casey -- -- Casey Jordan Jorsek Software LLC. "CaseyDJordan" on LinkedIn, Twitter & Facebook Cell (585) 348 7399 Office (585) 239 6060 Jorsek.com This message is intended only for the use of the Addressee(s) and may contain information that is privileged, confidential, and/or exempt from disclosure under applicable law. If you are not the intended recipient, please be advised that any disclosure copying, distribution, or use of the information contained herein is prohibited. If you have received this communication in error, please destroy all copies of the message, whether in electronic or hard copy format, as well as attachments, and immediately contact the sender by replying to this e-mail or by phone. Thank you. |