[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

SAXON question: Propagator.build(InputSource in)

Subject: SAXON question: Propagator.build(InputSource in)
From: Zsolt Czinkos <czinkos@xxxxxxxxxxxxx>
Date: Tue, 24 Aug 1999 14:57:50 +0000
how to build a propagator
Hello,

I'm writing a simple servlet which gets an XML file
from a database, puts it in a string (or a Reader)
and renders it with the render() method of a compiled
stylesheet.
When I tried it I got an error:

"Failed to read input document null
 at com.icl.saxon.Propagator.build(Compiled Code)".

I've had a look at the source of the propagator and found:

 public DocumentInfo build(InputSource in) throws SAXException
    {       
        try {
            if (parser==null) {
                        // Create a new parser instance 
                setParser(ParserManager.makeParser());
            }

            parser.setDocumentHandler(this);
            parser.setErrorHandler(errorHandler);
            parser.parse(in);           // this is the real work!

            currentDocument.setBaseURL(new URL(in.getSystemId()));
                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^ 
            currentDocument.setController(this);
            return currentDocument;
        }
        catch (java.io.IOException e1) {
 		...
        }
    }


Does it stop every time when the InputSource isn't a file (URL)?
Is it a bug or is there a solution to use e.g. a character-stream for
input?

Thank you very much,

Zsolt Czinkos


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.