NAME

set_title - Set the title of a document using a content element

SYNOPSIS

Sample script reading the title of an OpenOffice.org Writer document and, if empty, use the text of the first header of the document content as the title (or put an arbitrary string if there is no header in the document). Probably not an inspired idea in real life, but it's just a demo.

usage : set_title filename