There might have been a problem with the version 2.0.4 download of the IBM Alphaworks 
XML4J parser that LotusXSL uses.  I saw:
    XSL Error: Found version 1.1D13 of XML4J.
    This version of LotusXSL doesn't work with versions less than
        1.1.14 of XML4J!

After going back and downloading a newer 2.0.6 version, I no longer get his error.  
Read the Readme in the LotusXSL download for information on setup and where to get the 
latest XML4J.

The LotusXSL download has a sample servlet (see 
examples/domino/DominoXMLXSLServlet.java in the LotusXSL download) which illustrates 
how to translate Lotus NSF databases to XML.  I've isolated below the interesting 
lines in doGet().  The action happens in XSLProcess's process method which takes your 
XML in its (1st) Reader argument and emits HTML in its (2nd) Writer argument.

  ...
  import javax.servlet.*;
  import javax.servlet.http.*;
  import com.lotus.xsl.*;
  ...
  public void doGet(HttpServletRequest req, HttpServletResponse res)
    throws ServletException, IOException
  {
    ...
    Reader xmlReader;
    (construct xmlReader and place your XML in it)
    ...
    try {
      XSLProcessor xslprocessor =
        new XSLProcessor(new com.lotus.xsl.xml4j.ProcessXSL());
      xslprocessor.process(xmlReader, res.getWriter());
    } catch (Error err) {
      ...
    } catch (Exception e) {
      ...
    }
    ...
  }

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to