def transform_cnxml(cnxml_file):
    """ Given a module cnxml file (index.cnxml) this returns an HTML version of it """

    xml = etree.parse(cnxml_file)
    xslt = makeXsl('cnxml2xhtml.xsl')
    xml = xslt(xml)
    return xml