def convert_list(node, context, list_type):
    # Reuse template styles
    if list_type == "enumerated":
        style_name = "Numbering_20_1"
    else:
        style_name = "List_20_1"

    odf_list = odf_create_list(style=style_name)
    context["top"].append(odf_list)

    # Save the current top
    old_top = context["top"]

    for item in node:

        if item.tagname != "list_item":
            printwarn("node not supported: %s" % item.tagname)
            continue

        # Create a new item
        odf_item = odf_create_list_item()
        odf_list.append(odf_item)

        # A new top
        context["top"] = odf_item

        for child in item:
            convert_node(child, context)

    # And restore the top
    context["top"] = old_top