code: def selector(C, style):
          
          clas = C.classname(style.name)
          if style.type == 'paragraph':
              # heading outline levels are 0..7 internally, indicating h1..h8
              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)
docs: return the selector for the given stylemap style