@classmethod
def selector(C, style):
    """return the selector for the given stylemap style"""
    clas = C.classname(style.name)
    if style.type == 'paragraph':
        outlineLvl = int((style.properties.get('outlineLvl') or {}).get(
            'val') or 8) + 1
        if outlineLvl < 9:
            tag = 'h%d' % outlineLvl
        else:
            tag = 'p'
    elif style.type == 'character':
        tag = 'span'
    elif style.type == 'table':
        tag = 'table'
    elif style.type == 'numbering':
        tag = 'ol'
    return '%s.%s' % (tag, clas)
