def pyname_to_xmlname(name):
    """
    Convert a Python identifier name to XML style.

    By replacing underscores with hyphens:

    >>> pyname_to_xmlname('some_name')
    'some-name'
    """
    return name.replace('_', '-')