Re: XSL transformation throws a NullPointerException

2007-01-11 Thread Xavier Ottolini
I finally found the problem : The there was an error in the DOM document. The root node was not append to the document; It was replaced by the first child. Xavier Ottolini a écrit : Hi Adrian , Thank you for your answer. Here is the XSLT file xmlns:xsl="http://www.w3.org/1999/XSL/Transform

Re: XSL transformation throws a NullPointerException

2007-01-11 Thread Xavier Ottolini
Hi Adrian , Thank you for your answer. Here is the XSLT file xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; xmlns:fo="http://www.w3.org/1999/XSL/Format";> http://www.w3.org/1999/XSL/Format";>

Re: XSL transformation throws a NullPointerException

2007-01-11 Thread Adrian Cumiskey
Hi Xavier, The exception is thrown on this line because of the method call on a null rootFObj object reference. 416: BookmarkTree bookmarkTree = rootFObj.getBookmarkTree(); Although not sure why the rootFObj reference is null... I am new to the fop project and still finding my way but will d

XSL transformation throws a NullPointerException

2007-01-11 Thread Xavier Ottolini
Hi, I want to build a PDF file with a XSL transformation. I use FOP 0.93 on Tomcat 4.3 (Windows) 1) I load the XSLT 2) I create a DOM Document 3) I create de DOMSource Element 4) I process the XSL transformation public ByteArrayOutputStream convertDocumentToPDF(DOMSource source, String xsltPa