Transforming ejb-jar.xml

Discussions

XML & Web services: Transforming ejb-jar.xml

  1. Transforming ejb-jar.xml (1 messages)

    I'm using Xalan (_j 2.0.1) to transform ejb-jar.xml into a set of HTML pages.

    The template we have for ejb-jar.xml includes the line:

    <!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN' 'http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd'>

    Xalan throws this out as follows:

    XSL Error: Could not parse file:C:/ghstemp/ejb-jar.xml document!
    XSLT: java.sun.com
    Xalan: was not successful.
    XSLProcessor: done

    Any ideas why this occurs and how one can avoid it (apart from the current solution of hand-editing the file before translating!)?

  2. Transforming ejb-jar.xml[ Go to top ]

    I am assuming this is happening due to the fact that the input stream validation is set to true. Use the XMLReader as the input to the transform method, and set the validation feature to false. Check the Xlan or Xerces documentation on how to achieve this using either the DOM or the SAX Parser.