Return-Path: Delivered-To: apmail-xml-cocoon-dev-archive@xml.apache.org Received: (qmail 1932 invoked by uid 500); 22 Apr 2002 02:44:33 -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 1892 invoked from network); 22 Apr 2002 02:44:32 -0000 From: "Conal Tuohy" To: , "Cocoon Developers (E-mail)" Subject: RE: SVG BUG?: The attribute 'xlink:href' of the element is required Date: Mon, 22 Apr 2002 14:54:13 +1200 Message-ID: <000001c1e9a8$fd0f9940$d9784fcb@insurgentes.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 In-Reply-To: Importance: Normal X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Andrew John Savory wrote: > On Sun, 21 Apr 2002, Conal Tuohy wrote: > > > xlink:href="Ba01S000.jpg" > > Try using an absolute URL for the href. I've had problems > with relative > hrefs. Cheers, Andrew. I've tried relative and absolute URLs but I always get the same result (even using the "data" protocol). Actually I'm convinced that the problem is nothing to do with resolving the URL - the problem is that the xml attribute "xlink:href" has not been correctly parsed, or at least has not been passed to Batik correctly - when Batik comes to access this attribute from its object model it isn't there. When you say you've had problems with relative hrefs, do you mean you have used images in SVG? Or were your href problems in some other context? If you do have an example (anyone!) of an SVG containing an , that works, PLEASE let me see! I have downloaded the batik and cocoon source and had a look at the code. So far I've found nothing that looks wrong ... the URIs of the namespaces (in particular the xlink namespace) I've used in my SVG files match the URIs that Batik is expecting. If I remove the xmlns:xlink atttribute, then I get an error that the "xlink" prefix is "unbound", as you'd expect. But with the "xlink" prefix declared, I get this error message: org.apache.batik.transcoder.TranscoderException: null Enclosed Exception: http://xml.apache.org:-1 The attribute 'xlink:href' of the element is required I think I will have better luck writing a separate servlet to create the thumbnails, rather than using Cocoon. Perhaps I can come back to this problem later and try to debug it, but I can't afford to spend any more time on it at the moment. Con --------------------------------------------------------------------- To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org For additional commands, email: cocoon-dev-help@xml.apache.org