Return-Path: Delivered-To: apmail-xmlgraphics-batik-users-archive@www.apache.org Received: (qmail 76378 invoked from network); 1 Apr 2006 18:03:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 1 Apr 2006 18:03:07 -0000 Received: (qmail 54428 invoked by uid 500); 1 Apr 2006 18:03:06 -0000 Delivered-To: apmail-xmlgraphics-batik-users-archive@xmlgraphics.apache.org Received: (qmail 54420 invoked by uid 500); 1 Apr 2006 18:03:06 -0000 Mailing-List: contact batik-users-help@xmlgraphics.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: batik-users@xmlgraphics.apache.org Delivered-To: mailing list batik-users@xmlgraphics.apache.org Received: (qmail 54409 invoked by uid 99); 1 Apr 2006 18:03:06 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2006 10:03:06 -0800 X-ASF-Spam-Status: No, hits=0.6 required=10.0 tests=NO_REAL_NAME,SPF_PASS,UNPARSEABLE_RELAY X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of thomas.deweese@kodak.com designates 192.232.121.200 as permitted sender) Received: from [192.232.121.200] (HELO smtp1.kodak.com) (192.232.121.200) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 01 Apr 2006 10:03:05 -0800 Received: from roc-us-e1000-111.kodak.com (roc-us-e1000-111.kodak.com [192.232.121.191]) by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id k31I2hq19127 for ; Sat, 1 Apr 2006 13:02:43 -0500 (EST) Received: from (150.221.122.53) by roc-us-e1000-111.kodak.com via smtp id 7a99_b750f4b6_c1a9_11da_8098_0002b3efa0be; Sat, 01 Apr 2006 13:02:42 -0500 In-Reply-To: <442EBC83.3010408@sundraw.ws> To: batik-users@xmlgraphics.apache.org Cc: batik-users@xmlgraphics.apache.org Subject: Re: Problem with xlink namespace? MIME-Version: 1.0 X-Mailer: Lotus Notes Release 6.5.4 March 27, 2005 Message-ID: From: thomas.deweese@kodak.com Date: Sat, 1 Apr 2006 13:02:39 -0500 X-MIMETrack: Serialize by Router on KNOTES2/ISBP/EKC(Release 6.5.4FP1|June 19, 2005) at 04/01/2006 01:02:42 PM, Serialize complete at 04/01/2006 01:02:42 PM Content-Type: text/plain; charset="US-ASCII" X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi Alexander: Alexander Kolesnikov wrote on 04/01/2006 12:46:43 PM: > I suspect that the problem is in how I am dealing with XLink namespace, Yes, this is your problem. > // I need to add the XLink namespace, so this is how I am trying to do that > root.setAttributeNS("xmlns", "xlink", "http://www.w3.org/1999/xlink"); This does nothing for dom (and the first arg should be the XML namespaces namespace). This can be helpful for serialization but the 'xlink' should be "xmlns:xlink" in that case. > textPath.setAttributeNS("xlink", "href", "path0"); This needs to be: textPath.setAttributeNS("http://www.w3.org/1999/xlink", "xlink:href", "path0"); The namespace arg is the namespace URI not the 'prefix'. --------------------------------------------------------------------- To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org