xslt ant task and SAXON

Help
Anonymous
2004-10-06
2012-10-08
  • Anonymous - 2004-10-06

    I am trying to run an XSLT transform with SAXON through ANT.
    Here is my script :
    <xslt processor="trax" style="myXsl.xsl" in="toto.xml"
    out="titi.xml"
    classpath="correctpath/saxon7.jar">
    <factory name="net.sf.saxon.Transform"/>
    </xslt>

    And however I change this task (I also tried TransformerFactoryImpl), I keep on getting :
    ClassNotFoundException:net.sf.saxon.Transform

    Any idea ?

    Thank you very much for your help.
    G.

     
    • Colin Paul Adams

      What O/S are you using?
      I had tremendous problems building Cocoon on Fedora Core 2, because it comes with a version of ANT compiled using gcj (incidentally, has anyone ever tried compiling Saxon with gcj?).
      I eventually had to remove the FC2 ant packages, then the versions supplied with Coccon (normal jars) would work OK.

      This may all be irrelevant to your problem, though.

       
    • MATSUHASHI KAZUAKI

      PLS read the following URL:

      http://ant.apache.org/faq.html

      This is saying
      >you are facing a common problem with delegating classloaders.

       
    • MATSUHASHI KAZUAKI

      Ouch, the URL was too short. To be precise;

      http://ant.apache.org/faq.html#delegating-classloader

       
    • Anonymous - 2004-10-07

      Thank you very much for your answers. I have just added saxon7.jar to my CLASSPATH and used for the factory TransformerFactoryImpl and ANT can execute my xslt transform...Thank you very much !
      G.

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks