Saxon:Webapp
From EXPath
(Difference between revisions)
(Created page with 'Servlex is the implementation of the EXPath Webapp module using Java Servlet technology for the server part, and Saxon and Calabash for the XSLT, XQuery and XProc processing. ==…') |
|||
Line 3: | Line 3: | ||
==Configuration== | ==Configuration== | ||
- | Servlex is a typical Java EE web application, relying only on the Servlet specification. It uses an EXPath repository on the disk. The exact location of the repository is read via the system property <code>org.expath.servlex.repo</code> (this is the directory at the root of the repository). For Tomcat, you can set the property by adding the following to the global <code> | + | Servlex is a typical Java EE web application, relying only on the Servlet specification. It uses an EXPath repository on the disk. The exact location of the repository is read via the system property <code>org.expath.servlex.repo</code> (this is the directory at the root of the repository). For Tomcat, you can set the property by adding the following to the global <code>catalina.properties</code> file: |
<pre> | <pre> | ||
- | + | org.expath.servlex.repo=/some/path/to/servlex/repo | |
- | + | ||
- | + | ||
- | + | ||
</pre> | </pre> | ||
Revision as of 20:29, 1 August 2010
Servlex is the implementation of the EXPath Webapp module using Java Servlet technology for the server part, and Saxon and Calabash for the XSLT, XQuery and XProc processing.
Configuration
Servlex is a typical Java EE web application, relying only on the Servlet specification. It uses an EXPath repository on the disk. The exact location of the repository is read via the system property org.expath.servlex.repo
(this is the directory at the root of the repository). For Tomcat, you can set the property by adding the following to the global catalina.properties
file:
org.expath.servlex.repo=/some/path/to/servlex/repo
For Tomcat on a server, the following security permissions should also be set (in the policy file):
grant codeBase "file:${catalina.base}/webapps/servlex/-" { // the repository dir permission java.io.FilePermission "/some/path/to/servlex/repo/-", "read"; // commons xml resolver does read those properties permission java.util.PropertyPermission "xml.catalog.*", "read"; permission java.util.PropertyPermission "user.dir", "read"; // if you use the http client module within the stylesheets permission java.util.PropertyPermission "org.expath.hc.http.version", "read"; permission java.net.NetPermission "getProxySelector"; permission java.net.SocketPermission "site-accessed.com", "resolve,connect"; };