Allow styles that contain a rendering transformation to produce a generated legend

This adapts the type of legend to the output of a rendering transformation, in case it exists in the SLD