OpenOffice-OODoc - Workaround for getFootnoteList and getFootnoteCitationList problems

Posted on Thu Mar 23 19:19:54 2006 by jeunice
Workaround for getFootnoteList and getFootnoteCitationList problems

I have noticed that getFootnoteList() does not work on ODT files. It does work if one chagnes the line

return $self->getElementList('//text:footnote-body', @_);

to

return $self->getElementList('//text:note-body', @_);

A similar change would fix getFootnoteCitationList(). I'm guessing that this is a glitch created by the shift from SXW to ODT, and that this forum is a reasonable place to report the bug & workaround.

P.S. I note that getFootnoteList() really doesn't get a list of footnotes, but rather a list of footnote bodies. Not sure why there isn't a getFootnoteBodyList() separate from getFootnoteList(). OTOH, it's easy enough to use getElementList('//text:note', @_) if I want the "all parts of the footnote" list.

Direct Responses: 2048 | Write a response