[jdom-interest] Part 2 of JDOM XSLT not working with JAVA 1.4

Curtis Fornadley curtisf at library.ucla.edu
Fri Jun 14 11:30:30 PDT 2002


Hi
I have isolated the problem to the Transform.  This works under Java 
1.2.2 only change  was Java 1.4 

    org.jdom.Document docTransformed = null;
    InputStream inStreamXsl = null;

  try {

      inStreamXsl = xsltURL.openStream();
      System.out.println("XSLT path " + xsltURL.getPath());


      Transformer transformer = TransformerFactory.newInstance()
        .newTransformer(new StreamSource(inStreamXsl));
      JDOMResult jdomResult = new JDOMResult();
      transformer.transform(new JDOMSource(jDocXml), jdomResult);
      docTransformed = jdomResult.getDocument();
	System.out.println("html doc " + docTransformed.toString()); 
//this Sys out produces nothing
      inStreamXsl.close();
    } catch (TransformerException e) {
      //throw new JDOMException("XSLT Transformation failed", e);
    }
    //catch (JDOMException e) {
      //System.out.println("JDOM Exception " +  e);
    //}
    catch (IOException e){
        System.out.println("IO Problem on XSL URL " +  e);
    }
    return docTransformed;

Nothing is returned.

Any ideas?

bye


Curtis Fornadley
310.206.9782
Fax: 310.206.5337




More information about the jdom-interest mailing list