Let M be a complex manifold and S⊂M a (possibly singular)
subvariety of M. Let f:M→M be a holomorphic map such that f
restricted to S is the identity. We show that one can associate to f a
holomorphic section Xf of a sheaf related to the embedding of S in M and
that such a section reads the dynamical behavior of f along S. In
particular we prove that under generic hypotheses the canonical section Xf
induces a holomorphic action in the sense of Bott on the normal bundle of (the
regular part of) S in M and this allows to obtain for holomorphic self-maps
with non- isolated fixed points index theorems similar to Camacho-Sad,
Baum-Bott and variation index theorems for holomorphic foliations. Finally we
apply our index theorems to obtain information about topology and dynamics of
holomorphic self-maps of surfaces with a compact curve of fixed points.Comment: 46 pages, published versio