def _foname(tag):
    """Append the fo: namespace to the tag.
    If the tag already have a namespace return the tag unmodified.
    """
    if ':' in tag:
        return tag
    # if no namespace is specified use 'fo'.
    return 'fo:{}'.format(tag)