Hi All!

I'm using xalan/xerces to take in some XML documents and using XSL 
stylesheet turn them into a PRISM document.  All the XML documents I'm using 
has a doctype at the beginning.  I do not want xerces/xalan to connect to 
this site.  This is why I'm using setEntityResolver() method.  In my main, I 
have this:

SAXParser parser = new SAXParser();
NonResolveEntityResolver resolver = new NonResolveEntityResolver();
parser.setEntityResolver(resolver);

XSLTProcessor processor = XSLTProcessorFactory.getProcessor();
// Have the XSLTProcessor processor object transform "page5.xml"to
// System.out, using the XSLT instructions found in "moreover.xsl".

processor.process(new XSLTInputSource("page5.xml"),new 
XSLTInputSource("moreover.xsl"),new XSLTResultTarget("feed3.xml"));
System.out.println("************* The result is in feed3.xml*************");

This still does not seem to be working.  How can I let the XSLT processor 
know of the parser?  Thanks!

Samina

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to