Techniques are provided for determining relevant information from a
document based on document structure. A document is selected and
structural elements within the document having a dominance relationship
are determined. A first location within the document is selected. The
structural element surrounding the first location is determined and the
surrounding and non-surrounding structural elements are characterized.
Additional documents are associated with the first location in the
surrounding structural element based on the surrounding structural
element characterization and the non-surrounding structural element
characterization. Techniques for dynamically determining annotations for
images based on document structure are also provided.