def _apply_postprocessing(marc_xml, xml, func, uuid, url):
    """
    Apply `func` to all ``<mods:mods>`` tags from `xml`. Insert UUID.

    Args:
        marc_xml (str): Original Aleph record.
        xml (str): XML which will be postprocessed.
        func (fn): Function, which will be used for postprocessing.
        uuid (str): UUID, which will be inserted to `xml`.
        url (str): URL of the publication (public or not).

    Returns:
        list: List of string with postprocessed XML.
    """
    dom = dhtmlparser.parseString(xml)

    return [
        func(marc_xml, mods_tag, uuid, cnt, url)
        for cnt, mods_tag in enumerate(dom.find("mods:mods"))
    ]
Apply `func` to all ``<mods:mods>`` tags from `xml`. Insert UUID.

    Args:
        marc_xml (str): Original Aleph record.
        xml (str): XML which will be postprocessed.
        func (fn): Function, which will be used for postprocessing.
        uuid (str): UUID, which will be inserted to `xml`.
        url (str): URL of the publication (public or not).

    Returns:
        list: List of string with postprocessed XML.