...
I did;
<role name="org.apache.cocoon.reading.imageop.ImageOperationSelector"
shorthand="image-operation"
default-class="org.apache.cocoon.components.ExtendedComponentSelector" >
<hint shorthand="scale" class="org.apache.cocoon.reading.imageop.ScaleOperation"/>
<hint shorthand="convolve" class="org.apache.cocoon.reading.imageop.ConvolveOperation"/>
</role>
But I get the message "UnnamedSelector: ComponentSelector could not find the component for hint [scale] (key [scale])"
and a very 'inconclusive' stack trace.
IIRC, roles file entries are just a convinience, you can do without them completely; components are declared in the cocoon.xconf file:
<image-operation>
<scale/>
<convolve/>
</image-operation>Or without roles file:
<component role="org.apache.cocoon.reading.imageop.ImageOperationSelector"
class="org.apache.cocoon.components.ExtendedComponentSelector"
<component-instance name="scale"
class="org.apache.cocoon.reading.imageop.ScaleOperation"/>
etc
</component>Vadim
