cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BORGES Charles <charles.borges.prestata...@cegetel.fr>
Subject TR : Problem in SVGSerializer
Date Thu, 09 Oct 2003 14:52:40 GMT

Hi,

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
KEY_USER_STYLESHEET_URI is set to "" 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.




Mime
View raw message