'Render this instance as XML'

def xml(self):

    layout = current.deployment_settings.get_ui_icon_layout()
    if layout:
        return layout(self)
    css_class = self.css_class(self.name)
    if css_class:
        self.add_class(css_class)
    return super(ICON, self).xml()
