Hi,
    I am trying to get the SVG serializer to read a CSS stylesheet, I'm
using Cocoon 2.02. I have a sitemap entry like this:

<map:serializer mime-type="image/png" name="svg2png"
   src="org.apache.cocoon.serialization.SVGSerializer">
   <parameter name="user_stylesheet_uri" value="/styles/default.css"/>
</map:serializer>

In the logs I see this:

sitemap.log:DEBUG   (2002-03-28) 14:50.32:712   [sitemap]
  (/test/svg/corner-darkgreen--0.png) HttpProcessor[8080][0]/SVGSerializer:
  SVG Serializer: adding hint "KEY_USER_STYLESHEET_URI" with value ""

There is no uri in the value. If I use the example from the
docs of passing background colour to the serializer (with the
atribute type="color" added) then that will work fine.

Here are the relevant lines from
org/apache/cocoon/serialization/SVGSerializer.java:

} else {
   // Assume String, and get the value. Allow an empty string.
   value = parameters[i].getValue("");
}
// TODO: if (logger.isDebug())
   log.debug("SVG Serializer: adding hint \"" + name + "\" with value \"" + 
value.toString() + "\"");
   transcoder.addTranscodingHint(key, value);

Is there a mistake here or is it me?

Regards,
Simeon


-- 
Simeon Walker,                      email: [EMAIL PROTECTED]
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. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to