cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BORGES Charles <>
Subject Problem in SVGSerializer
Date Thu, 09 Oct 2003 14:06:14 GMT

In the configure method of org.apache.cocoon.serialization.SVGSerializer
there is a problem when mapping config parameters to transcoder hints:

When  the parameter type is string, nothing is set. 
For example if you're using 
<parameter name="user_stylesheet_uri" type="string" value="svg.css"/>
in the configuration of a SVGSerializer, the corresponding batik
In configure():

String keyType = parameters[i].getAttribute("type", "STRING").toUpperCase();
if ("FLOAT".equals(keyType)) {
	// Can throw an exception.
      value = new Float(parameters[i].getAttributeAsFloat("value"));
} else if {


} else {
   	// Assume String, and get the value. Allow an empty string.
      value = parameters[i].getValue("");

I think it should be value = parameters[i].getAttribute("value") instead.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message