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

Laurent Bihanic laurent.bihanic at atosorigin.com
Mon Jun 17 01:00:01 PDT 2002


Could you send the input document and stylesheet?

Laurent

Curtis Fornadley wrote:
> 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
> 




More information about the jdom-interest mailing list