Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 55649 invoked from network); 24 Mar 2004 14:12:46 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 24 Mar 2004 14:12:46 -0000 Received: (qmail 3686 invoked by uid 500); 24 Mar 2004 14:12:39 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 3630 invoked by uid 500); 24 Mar 2004 14:12:39 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 3607 invoked from network); 24 Mar 2004 14:12:38 -0000 Received: from unknown (HELO grouse.mail.pas.earthlink.net) (207.217.120.116) by daedalus.apache.org with SMTP; 24 Mar 2004 14:12:38 -0000 Received: from 1cust191.tnt3.barrie.on.da.uu.net ([66.48.153.191] helo=andrzej) by grouse.mail.pas.earthlink.net with esmtp (Exim 3.33 #1) id 1B697W-0006GV-00; Wed, 24 Mar 2004 06:12:39 -0800 From: "Andrzej Jan Taramina" Organization: Chaeron Corporation To: dev@cocoon.apache.org Date: Wed, 24 Mar 2004 09:16:12 -0500 MIME-Version: 1.0 Subject: Re: Using Saxon 7.9 with Cocoon? Reply-to: andrzej@chaeron.com CC: sylvain@apache.org, saxon-help@lists.sourceforge.net Message-ID: <406151DC.27208.2B213541@localhost> Priority: normal In-reply-to: <40614F5E.1050109@apache.org> X-mailer: Pegasus Mail for Windows (v4.12a) Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Content-description: Mail message body X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Sylvain: X-posted to the Saxon list as well..... > I remember having such problems with older versions of Saxon, and the > culprit was the AElfred parser that comes bundled with Saxon which is > limited to saxon's needs (hence why it's read-only). The latest version of Saxon (7.9) does not include AElfred any more. AElfred is now a separate download, which I am not using, so that part is not an issue. > Two trick solve the problem: > - remove the META-INF/services/java.xml.parsers.* files in the saxon jar With AElfred not included, this entry is no longer in the jar file. However, there is a java.xml.transform.TransformerFactory entry in META-INF/services with the value of "net.sf.saxon.TransformerFactoryImpl". I think this entry is the one that causes the Saxon dom to be used. > - rename saxon.jar to zsaxon.jar so that it comes after xerces in the > classpath (highly servlet engine dependent though). Already did that, but with the latest versions (and Tomcat), it still seems that you need the Xalan jar file ahead of the Saxon one, or the Saxon read- only DOM still gets selected. It looks to me that it's the java.xml.transform.TransformerFactory entry in META-INF/services that controls this. With the Xalan jar first the value points to the Xalan implementation of the TransformerFactory implementation, which in turn grabs the Apache DOM implementation instead of the troublesome Saxon one. The issue with doing this (even though it works...yay!) is that I'm not sure how much of Xalan versus Saxon is being used for XSL transformations when you use the Xalan transformer factory reference. Any insight? Thanks! Andrzej Jan Taramina Chaeron Corporation: Enterprise System Solutions http://www.chaeron.com