Menu

no error messages

Help
2008-07-07
2013-04-24
  • Nobody/Anonymous

    My transformation fails, yet when the "else" clause is executed, no error messages are actually returned

    $xsl = new DOMDocument();
            $xslt2 = new XML_XSLT2Processor('SAXON', 'file:////R1/xslt/saxon9-ant.jar', 'JAVA-CLI');
            $xsl->load("./entryAsColumn.xsl");
            $xslt2->importStyleSheet($xsl);

            $xml = new DOMDocument();
            $xml->loadXML($r);

            if (($output = $xslt2->transformToXML($xml)))
            {
               echo "aaa $output  bbb";
            }
            else
            {
               echo "error: ";
               print_r(XML_XSLT2Processor::getErrors()); 
            }

     
    • Nobody/Anonymous

      Ah, I see, I was using the wrong saxon jar. Now it's fine.
      Thanks.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.