'Extracts corpus/document info from the fulltextIndex.xml file.
Note that this function "flattens" the information contained
in each of the "corpus" elements, so that each "document"
element will contain attributes for the corpus and
corpusid. Also, each of the "document" items will contain a
new attribute called "filename" that is the base file name of
the xml file for the document in the "fulltext" subdir of the
Framenet corpus.'

def _handle_fulltextindex_elt(self, elt, tagspec=None):

    ftinfo = self._load_xml_attributes(AttrDict(), elt)
    corpname = ftinfo.name
    corpid = ftinfo.ID
    retlist = []
    for sub in elt:
        if sub.tag.endswith(u'document'):
            doc = self._load_xml_attributes(AttrDict(), sub)
            if (u'name' in doc):
                docname = doc.name
            else:
                docname = doc.description
            doc.filename = u'{0}__{1}.xml'.format(corpname, docname)
            doc.URL = ((((self._fnweb_url + u'/') + self._fulltext_dir) + u'/') + doc.filename)
            doc.corpname = corpname
            doc.corpid = corpid
            retlist.append(doc)
    return retlist
