Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 80981 invoked from network); 28 Jun 2006 15:03:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 28 Jun 2006 15:03:10 -0000 Received: (qmail 74931 invoked by uid 500); 28 Jun 2006 15:03:08 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 74671 invoked by uid 500); 28 Jun 2006 15:03:07 -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 List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 74660 invoked by uid 99); 28 Jun 2006 15:03:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Jun 2006 08:03:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UPPERCASE_25_50 X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [209.40.100.7] (HELO mail.ibushost.com) (209.40.100.7) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 28 Jun 2006 08:03:06 -0700 Received: (qmail 16621 invoked by uid 399); 28 Jun 2006 15:02:45 -0000 Received: from unknown (HELO e062958) (72.128.48.142) by ibhe1.ibushost.com with SMTP; 28 Jun 2006 15:02:45 -0000 Message-ID: <0d1901c69ac3$e8d23bb0$5d02a8c0@rails.rwy.bnsf.com> From: "Don Grodecki" To: References: <28411507.1151487810461.JavaMail.jira@brutus> Subject: XMLDBTransformer blows up Saxon Date: Wed, 28 Jun 2006 10:02:43 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N The XMLDBTransformer blows up Saxon, which does not like null URIs. The following fix seems to work, replacing null in the first parameter to addAttribute with "". - Don // Report result AttributesImpl attrs = new AttributesImpl(); attrs.addAttribute("", XMLDB_QUERY_OID_ATTRIBUTE, XMLDB_QUERY_OID_ATTRIBUTE, "CDATA", this.key); attrs.addAttribute("", XMLDB_QUERY_TYPE_ATTRIBUTE, XMLDB_QUERY_TYPE_ATTRIBUTE, "CDATA", this.operation); attrs.addAttribute("", XMLDB_QUERY_RESULT_ATTRIBUTE, XMLDB_QUERY_RESULT_ATTRIBUTE, "CDATA", result);