#29 [xhtml]

The Complete web.xml File

<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
 version="2.4">
    <session-config>
        <session-timeout>
            30
        </session-timeout>
    </session-config>
    <welcome-file-list>
        <welcome-file>
            index.xml
        </welcome-file>
    </welcome-file-list>
    
    <filter>
       <filter-name>StaticXSLT</filter-name>
       <filter-class>com.milowski.jaxp.XSLTFilter</filter-class>
       <init-param>
       <param-name>content-type</param-name>
       <param-value>application/xhtml+xml</param-value>
       </init-param>
       <init-param>
       <param-name>reload</param-name>
       <param-value>yes</param-value>
       </init-param>
       <init-param>
       <param-name>static-extensions</param-name>
       <param-value>xml</param-value>
       </init-param>
       <init-param>
       <param-name>extensions</param-name>
       <param-value>xml,jsp</param-value>
       </init-param>
       <init-param>
       <param-name>stylesheet</param-name>
       <param-value>site.xsl</param-value>
       </init-param>
    </filter>
    
    <filter>
       <filter-name>DynamicXSLT</filter-name>
       <filter-class>com.milowski.jaxp.XSLTFilter</filter-class>
       <init-param>
       <param-name>content-type</param-name>
       <param-value>application/xhtml+xml</param-value>
       </init-param>
       <init-param>
       <param-name>reload</param-name>
       <param-value>yes</param-value>
       </init-param>
       <init-param>
       <param-name>static-extensions</param-name>
       <param-value>xml</param-value>
       </init-param>
       <init-param>
       <param-name>extensions</param-name>
       <param-value>xml,jsp</param-value>
       </init-param>
    </filter>
    
    <filter-mapping>
    <filter-name>DynamicXSLT</filter-name>
    <url-pattern>/xslt-test.xml</url-pattern>
    </filter-mapping>
    
    <filter-mapping>
    <filter-name>StaticXSLT</filter-name>
    <url-pattern>/*</url-pattern>
    </filter-mapping>
    
</web-app>