Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 34421 invoked by uid 500); 27 Nov 2002 21:55:54 -0000 Mailing-List: contact cocoon-dev-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-dev@xml.apache.org Delivered-To: mailing list cocoon-dev@xml.apache.org Received: (qmail 34410 invoked from network); 27 Nov 2002 21:55:54 -0000 From: "Robert Koberg" To: Subject: RE: release plan for 2.1? Date: Wed, 27 Nov 2002 13:53:55 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 In-Reply-To: <1038432274.22985.68.camel@yum.ot> Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hi, > -----Original Message----- > From: Bruno Dumon [mailto:bruno@outerthought.org] > Sent: Wednesday, November 27, 2002 1:25 PM > On Wed, 2002-11-27 at 22:10, Robert Koberg wrote: > > Hi, > > > > > -----Original Message----- > > > From: Bruno Dumon [mailto:bruno@outerthought.org] > > > Sent: Wednesday, November 27, 2002 1:04 PM > > > > > > It just means if you use Saxon, Saxon will use Aelfred (which is > > > bundled in the > > > > Saxon jar) by default. > > > > > > > > If you want Saxon to use Xerces because you want a more feature > > > rich parser, you > > > > need to set the system property to point to Xerces. > > > > > > > > But, it is not optimal. Saxon would work much faster using its > own DOM impl. > > > > > > Saxon can only work with its own dom implementation. Even if you set > > > xerces as parser, saxon will still build its own optimized "dom" tree > > > (but will use xerces as sax parser). > > > > Ok, sorry, but it is still a much slower thing because of this. > > > > Nothing to sorry about :-) But why would it still be much slower? The > parser is only used for parsing the stylesheet, after which the > stylesheet would normally be cached in a compiled state. The little > difference in the one-time parsing speed of the stylesheet shouldn't > make any important difference. > I have been searching for threads from Michael Kay on this subject, but saxon's sourceforge archives are not searchable. Basically, I was just parrotting what he says about the subject (I think - it has been a while). What he does, and recommends is what I do now. Instead of incurring the overhead of the DOM (even though the nodesets I created were pretty small) I just set up a string in the session and use an URIResolver to return a StreamSource(StringReader(str)) to a xsl document() call - simple, and no DOM. best, -Rob URIResolver evangelist :) --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org