Posted on 2006-03-23 17:19:54-08 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
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.