Hi All,
I'm new to the XML world.
I donloaded Xercers/Xalan from xml.apache.org and now
I tried to run one sample class file transform.class.
I got following error:
Exception in thread "main"
org.apache.xalan.xslt.XSLProcessorException: org.apac
he.xalan.xpath.dtm.DTMLiaison
        at
org.apache.xalan.xslt.XSLTEngineImpl.<init>(XSLTEngineImpl.java:387)
        at
org.apache.xalan.xslt.XSLTProcessorFactory.getProcessor(XSLTProcessor
Factory.java:89)
        at transform.main(transform.java:77)


This is the listing of transform.java:
public class transform
{
        public static void main(String[] args)
    throws java.io.IOException, 
           java.net.MalformedURLException, 
           org.xml.sax.SAXException
        {
    XSLTProcessor processor =
XSLTProcessorFactory.getProcessor();
    
    XSLTInputSource xmlID = new
XSLTInputSource("foo.xml");
    XSLTInputSource stylesheetID = new
XSLTInputSource("foo.xsl");
    Document out = new
org.apache.xerces.dom.DocumentImpl();
    XSLTResultTarget resultTarget = new
XSLTResultTarget(out);
    processor.process(xmlID, stylesheetID,
resultTarget);
    
    PrintWriter pw = new PrintWriter( System.out );
    FormatterToXML fl = new FormatterToXML(pw, true);
    TreeWalker tw = new TreeWalker(fl);
    tw.traverse(out);
    
        }
}



Can anybody help me running this.
Thanks,
Sravan.

=====

__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

Reply via email to