If it works from a reader but not from your SAX stream, there's something wrong with your SAX stream.
Is it fully namespace-aware? Xalan requires this.
Are you asserting namespace declarations as attributes, as well as sending them as start/end prefix events? Xalan requires this too.
To get a bit more information on where the failure is occurring -- short of firing up a debugger -- you might want to look at what Process.java does when doStackDumpOnError is set true by the -EDUMP flag. I don't remember the details offhand, but I believe that tries to "unwrap" exceptions which contain other exceptions, to track the problem back to where it's actually occuring.
______________________________________
Joe Kesselman / IBM Research
