|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: using Saxon from Tomcat
You can keep your XML/XSL under WEB-INF so they are secure. For example:
- basic_app
|- css
|- images
|- WEB-INF
|- classes
|- SaxonServlet.class
|- content
|-replace_data.xml
|- styling
|- test.xsl
|- lib
|- saxon.jarYou can set an intitial param for the docroot relative path to your content in your /WEB-INF/web.xml. For example: <context-param> <param-name>client.content.dir</param-name> <param-value>/WEB-INF/content/</param-value> </context-param> Then you will need to either getRealPath or getResourceAsStream based on an argument starting from the WEB-INF. For example: StringBuffer path = new StringBuffer(ServletContextObject.getRealPath(ServletContextObject.getInitParameter("client.content.dir"))); path.append(filename_var); best, -Rob Joeri Belis wrote: ENV: Linux Redhat 6.1, Saxon 6.5.2, Tomcat 3.3.1 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
|

Cart








