  Let V, W be real algebraic varieties (that is, up to isomorphism, real
algebraic sets), and let X be a subset of V. A map f from X into W is said to
be regular if it can be extended to a regular map defined on some Zariski
locally closed subvariety of V that contains X. Furthermore, such a map is said
to be piecewise-regular if there exists a stratification of V such that the
restriction of f to the intersection of X with each stratum is a regular map.
By a stratification of V we mean a finite collection of pairwise disjoint
Zariski locally closed subvarieties whose union is equal to V. Assuming that
the subset X is compact, we prove that every continuous map from X into a
Grassmann variety or a unit sphere can be approximated by piecewise-regular
maps. As an application, we obtain a variant of the algebraization theorem for
topological vector bundles. If the variety V is compact and nonsingular, we
prove that each continuous map from V into a unit sphere is homotopic to a
piecewise-regular map of class C^k, where k is an arbitrary nonnegative
integer.
