Transform from within an eclipse plugin?
Added by Anonymous almost 19 years ago
Legacy ID: #3513731 Legacy Poster: Charles Fulnecky (fulnecky)
What is the best way of using Saxon from within an eclipse plugin? Wrap saxon8.jar as a plugin? Use JAXP something like: in eclipse add the following key to the launcher in VM arguments -Djavax.xml.transform.TransformerFactory=net.sf.saxon.TransformerFactoryImpl (where should the saxon jars be placed?) Has anyone tried either of these approaches?
Replies (2)
RE: Transform from within an eclipse plugin? - Added by Anonymous almost 19 years ago
Legacy ID: #3514416 Legacy Poster: Michael Kay (mhkay)
I'm not an Eclipse user so I'll have to leave this for others to answer. All I can say is that I'm sure many people are doing it. You might find that the saxon-help mailing list is a better way of getting an answer to this question - I don't think very many Saxon users monitor this forum unless they have a question of their own. Michael Kay
RE: Transform from within an eclipse plugin? - Added by Anonymous almost 19 years ago
Legacy ID: #3515391 Legacy Poster: Charles Fulnecky (fulnecky)
Michael, Thank you for the reply! B.T.W. your reference books have had a prominent location on my bookshelf for years ... I settled on the following solution for now: As I already have a plugin to perform generic transformations I just added saxon8.jar to libraries section of said plugin's build path and it automagically chose saxon over xalan. code snippet used: TransformerFactory lc_factory = TransformerFactory.newInstance(); Transformer lc_transformer = null; try { lc_transformer = lc_factory.newTransformer(new StreamSource( xslFile)); } catch (TransformerConfigurationException e) { // TODO Auto-generated catch block e.printStackTrace(); } Regards, Charles Fulnecky
Please register to reply