Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 65551 invoked from network); 22 Dec 2010 10:16:50 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 22 Dec 2010 10:16:50 -0000 Received: (qmail 56201 invoked by uid 500); 22 Dec 2010 10:16:49 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 55832 invoked by uid 500); 22 Dec 2010 10:16:47 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 55825 invoked by uid 99); 22 Dec 2010 10:16:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 10:16:47 +0000 X-ASF-Spam-Status: No, hits=1.0 required=10.0 tests=RCVD_IN_DNSWL_NONE,SPF_SOFTFAIL X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of johan.cwiklinski@ajlsm.com does not designate 212.27.42.6 as permitted sender) Received: from [212.27.42.6] (HELO smtp6-g21.free.fr) (212.27.42.6) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Dec 2010 10:16:39 +0000 Received: from [192.168.123.2] (unknown [82.225.177.85]) by smtp6-g21.free.fr (Postfix) with ESMTP id 16ACB82257 for ; Wed, 22 Dec 2010 11:16:11 +0100 (CET) Message-ID: <4D11CFEA.2060001@ajlsm.com> Date: Wed, 22 Dec 2010 11:16:10 +0100 From: Johan Cwiklinski User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101210 Remi/fc14 Thunderbird/3.1.7 MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Re: Switching to Saxon References: <4D0A370A.9050204@ucc.ie> <4D0B229D.7040908@ajlsm.com> <4D11CD87.2020404@ucc.ie> In-Reply-To: <4D11CD87.2020404@ucc.ie> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi, Le 22/12/2010 11:05, Peter Flynn a écrit : > On 17/12/10 08:43, Johan Cwiklinski wrote: >> Hello, > [...] >> Here is our configuration: > [...] >> Hope that could help you :) > > Thanks very much, that did it. It was unclear from the docs where you Cool :) > put the name of the .jar file ("saxon9") and where you just put the name > "saxon". > > One thing that switching to Saxon has done is reveal the holes in my > XSLT :-) > > a. If a URI call to Cocoon to retrieve a web page through a Tidy > pipeline (to make it XML) returns an empty file (really null, not even > an empty root element), Xalan treats the statement > I always use the doc-available($uri) function so I can print $uri using xsl:message if there is an error: Unable to load: > as a non-event, and $foo is unset (that is, a binary test for if="$foo" > returns false). Saxon, on the other hand, emits a Java error message > about a null pointer; technically correct, except that it makes it > untestable because the error occurs before the document() call > completes, so its status is inaccessible in the XSLT. > > b. Any ambiguity in template selection (normally a recoverable warning > if you run Saxon from the command line) returns the "Ambiguous..." > message as an error. Is this configurable? (ie get Saxon to not pass an > error status to Cocoon, but just log a warning, and continue recoverably > as it does in commandline mode?). I do not know. When I've got ambiguity in template selection, I usually solve that in the XSL file ;) > > Obviously writing better XSLT is the answer...I should have paid closer > attention to Mike and Jeni's sessions on testing at the XML Summerschool... > > ///Peter Regards, -- Johan Cwiklinski AJLSM --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org