Return-Path: Delivered-To: apmail-xml-cocoon-users-archive@xml.apache.org Received: (qmail 38759 invoked by uid 500); 11 Apr 2002 09:32:42 -0000 Mailing-List: contact cocoon-users-help@xml.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: cocoon-users@xml.apache.org Delivered-To: mailing list cocoon-users@xml.apache.org Received: (qmail 38741 invoked from network); 11 Apr 2002 09:32:41 -0000 Message-ID: <3CB55846.8020601@sbs.bangor.ac.uk> Date: Thu, 11 Apr 2002 10:32:54 +0100 From: Simeon Walker User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.9) Gecko/20020402 Debian/2:0.9.9-4 X-Accept-Language: en, cy, en-gb MIME-Version: 1.0 To: cocoon-users@xml.apache.org Subject: Re: Getting stylesheet directive through to SVG rasterizer References: <5.1.0.14.0.20020411112142.03692940@mail.visitronics.be> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N In general my css files don't come through Cocoon, apache serves them directly. But in this case I'm just using the file name rather than the ful http://... reference. This is working when batik is invoked from the shell prompt but not from Cocoon. Sim Bert Van Kets wrote: > Did you declare a css pipeline? If Cooon gets request for a css file, > but can't map it to a specific file, it can't process it. > Add this to your sitemap: > > > > make sure you place the css file in the css directory. > HTH, > Bert > > At 10:02 11/04/2002 +0100, you wrote: > >> Hi, >> I'm have some trouble generating PNG's with the SVG serializer. >> I want to include a CSS stylesheet reference in the XML so that, >> for example, colours can be kept out of the SVG XML. Using the >> following test.xml file: >> >> >> > href="/home/httpd/html/styles/svg-test.css"?> >> >> >> Corner of menu item >> >> >> >> >> And this simple svg-test.css file: >> >> .red { >> fill: red; >> } >> >> If I invoke the batik rasterizer directly using: >> >> java -jar batik-rasterizer.jar test.xml >> >> then everything is fine. A png is generated that uses the >> red colour defined in the CSS stylesheet. >> >> However, if I access the xml file via Cocoon (2.02 )with the usual SVG >> serializer defined in the sitemap and the following added: >> >> >> >> >> >> >> then I get the png with a black background, the CSS file has >> not been read. >> >> Can anyone help shed some light on this? >> >> Regards, >> Simeon >> >> -- >> Simeon Walker, email: simeon@sbs.bangor.ac.uk >> School of Biological Sciences, phone: +44 (0)1248 383702 >> University of Wales, Bangor, fax: +44 (0)1248 382569 >> Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ >> >> >> --------------------------------------------------------------------- >> Please check that your question has not already been answered in the >> FAQ before posting. >> >> To unsubscribe, e-mail: >> For additional commands, e-mail: > > > > --------------------------------------------------------------------- > Please check that your question has not already been answered in the > FAQ before posting. > > To unsubscribe, e-mail: > For additional commands, e-mail: > -- Simeon Walker, email: simeon@sbs.bangor.ac.uk School of Biological Sciences, phone: +44 (0)1248 383702 University of Wales, Bangor, fax: +44 (0)1248 382569 Gwynedd, LL57 2UW, UK. www: http://biology.bangor.ac.uk/ --------------------------------------------------------------------- Please check that your question has not already been answered in the FAQ before posting. To unsubscribe, e-mail: For additional commands, e-mail: