Servus Andrew,

>Howdy,
>
>I'm having a problem with using dom4j with xsl transformations.. I've
>created a document programatically, and then pretty much used the xsl
>example in "quick start" as is.  When I call
>transformer.transform(source, result), I keep getting a
>NullPointerException at line 311 in SAXContentHandler, ie the line that
>says..
>
>document.setName( inputSource.getSystemId() );
>
>so it would seem my inputSource is null...
>
>Any ideas??

Yes, of course. 

1) Have you checked your path and filename to your stylesheet. Is it
correct? It seems to me that Java have problems to find your file, or the
StreamSource instance failed to load it.

2) Check if your org.dom4j.Document instance is not null.

3) Check if the document source is not null. Perhaps the "transform" from a
document to a Source failed.

4) What about the result? Is your target null. 

5) Another error is to chance parameters in transform method. First comes
source then then the result.

6) Check if your stylesheet is correct by using the used stylesheet process
on command line. You should do this generally _before_ you start with TraX
and dom4j. Although is is a little bit circumstantial, it helps to avoid such
errors.

7) Post to this mailing list if there are still any problems.

>
>Cheers
>Andrew

Have a nice TraX.

Bye

Toby




-- 
GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

--
GMX Tipp:

Machen Sie Ihr Hobby zu Geld bei unserem Partner 1&1!
http://profiseller.de/info/index.php3?ac=OM.PS.PS003K00596T0409a


_______________________________________________
dom4j-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to