How to use Saxon(XSLT 2.0 processor) in eclipse indigo with JAVA -
i have use xslt 2.0 processor string manipulation functions replace()
. have added dependency saxon in pom file , ran "mvn install" command. doing "saxon-9.1.0.8.jar" added under "referenced libraries" folder.
in code have used system.setproperty("javax.xml.transform.transformerfactory", "net.sf.saxon.transformerfactoryimpl");
when try call following line transformerfactory.newinstance("net.sf.saxon.transformerfactoryimpl", null);
getting error saying
javax.xml.transform.transformerfactoryconfigurationerror: provider net.sf.saxon.transformerfactoryimpl not found.
if try call new net.sf.saxon.transformerfactoryimpl();
, error java.lang.noclassdeffounderror: net/sf/saxon/transformerfactoryimpl
please let me know if missing in configuring saxon eclipse indigo.
please make sure have included saxon
jar in build path. in source code following lines should work:
system.setproperty("javax.xml.transform.transformerfactory", "net.sf.saxon.transformerfactoryimpl"); transformerfactory tfactory = transformerfactory.newinstance();
Comments
Post a Comment