You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Xerces User <xe...@slib.fr> on 2001/01/30 13:20:30 UTC

TC 3.x failed with xerces but works with crimson

Hi,

Here is a web.xml (tomcat webapp)

-- web.xml --

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
                         "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" [
<!ENTITY include SYSTEM "include.xml">
<!ENTITY include1 SYSTEM "include1.xml">
]>

<web-app>

  &include;
  &include1;

</web-app>

-- include.xml --

<?xml version="1.0" encoding="ISO-8859-1"?>
  <servlet>
    <servlet-name>TEST</servlet-name>
    <servlet-class>MyTestServlet</servlet-class>
  </servlet>

-- include1.xml --

<?xml version="1.0" encoding="ISO-8859-1"?>
  <servlet>
    <servlet-name>TEST1</servlet-name>
    <servlet-class>MyTestServlet1</servlet-class>
  </servlet>

-> tomcat/xerces didn't seems to insert the ENTITY.......

This one works...

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application
2.2//EN"
                         "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd" [
]>

<web-app>

  <servlet>
    <servlet-name>TEST</servlet-name>
    <servlet-class>MyTestServlet</servlet-class>
  </servlet>

  <servlet>
    <servlet-name>TEST1</servlet-name>
    <servlet-class>MyTestServlet1</servlet-class>
  </servlet>

</web-app>

The strange thing is that Crimson is working ....

Thanks for help....