Le dimanche 13 décembre 2009 à 00:31 +0000, Michael Kay a écrit :
> > My question was more about the way to load the document,
> > hoping that there might be a magic builder API that I had missed!
> One way is to tell Saxon to build from a SAXSource, where the XMLReader in
> your SAXSource is an XMLFilter. You can do that either using the s9api
> DocumentBuilder, or using Configuration.buildDocument(). But that involves
> Saxon calling you to supply input, which is probably not what you want.
> Or you can build a pipeline containing your SAX filter, then a
> ReceivingContentHandler, then a TinyBuilder. Look for existing code that
> uses these classes to see how this is done: they are rather low-level
Yes, this second option is what I have done and that's working fine. I
have also followed your advise to use XPath to select the schema.
> Michael Kay
Eric van der Vlist <vdv@...>