com.icl.saxon.TransformerFactoryImpl not foun

Tim
2005-01-13
2013-04-25
  • Tim
    Tim
    2005-01-13

    I just download this project today and I am having an issue when trying to create an instance of the TransformerFactory.

    The exception is "Factory class com.icl.saxon.TransformerFactoryImpl not found"

    Here is my source

    DocumentBuilderFactory documentBuilderFactory = DocumentBuilderFactory.newInstance();
    documentBuilderFactory.setNamespaceAware(true);
    documentBuilderFactory.setIgnoringElementContentWhitespace(false);
    DocumentBuilder documentBuilder = documentBuilderFactory.newDocumentBuilder();
    InputSource inputSource = new InputSource(new java.io.StringReader(inputDoc.OuterXml));
    Document doc = documentBuilder.parse(inputSource);

    Source xmlSource = new DOMSource(doc);
    Source xslSource = new StreamSource(xslDoc);
    Result result = new DOMResult();

    TransformerFactory tfactory = TransformerFactory.newInstance();  //<== Throws error here
    Transformer transformer = tfactory.newTransformer(xslSource);
    transformer.transform(xmlSource, result);

    return result.ToString();

     
    • Tim
      Tim
      2005-01-13

      All set!   I should have looked at your sample app first.

       
      • Pieter Siegers
        Pieter Siegers
        2005-01-14

        Good! I almost wanted to ask you if you had tried to run the example application... :-)

        Cheers,
        <prs/>