You are right once again. I have followed your instruction to correct what was a simple mistakes for a novice programmer.
Much appreciated for your help.
Thank you so much,
From: Jack Bush [mailto:email@example.com]
Sent: 18 February 2009 11:47
Subject: [saxon] XSLT 2.0 Saxon 91 InstantiationHi All,
I came across the following minor stumbling block when trying to instantiate Saxon directly as opposed to searching through CLASSPATH:
( i ) Replaced import javax.xml.transform.* with net.sf.saxon.TransformerFactoryImpl.
( ii ) Replaced TransformerFactory stateFactory = TransformerFactory.newInstance() with
net.sf.saxon.TransformerFactoryImpl hobbiesTransformer = new net.sf.saxon.TransformerFactoryImpl().
FileInputStream hobbiesStyleSheetIS = new FileInputStream(hobbiesStyleSheet);
BufferedInputStream hobbiesStyleSheetBIS = new BufferedInputStream(hobbiesStyleSheetIS);
( iii ) Replaced Transformer hobbiesTransformer = hobbiesFactory.newTransformer(new StreamSource(hobbiesStyleSheetBIS)) with
JDOMSource hobbiesSource = new JDOMSource(hobbiesOriginaljdomDocument);
JDOMResult hobbiesResult = new JDOMResult();
( iv ) Would like to replace hobbiesTransformer.transform(hobbiesSource, hobbiesResult) with
stateTransformer.? but couldn't find a match.
In other word, I couldn't find an equivalent statement in Saxon91 to do the transformation in step ( iv ) to swap out the default Java Xalan code.
Thanks a lot for your help,
Make Yahoo!7 your homepage and win a trip to the Quiksilver Pro. Find out more.