I'm really confused. In a book ISBN: 978-0-470-27680-8 is written:
The Euclidean distance can be generalized as a special case of a family of metrics, called Minkowski distance or L p norm, defined as, $$ D(\mathbf{x}_i,{\mathbf x}_j)=\left(\sum_{l=1}^d |x_{il}-x_{jl}|^{1/p}\right)^p \tag{1} $$
Is it correct? In other sources Minkowski distance is defined as:
$$ \left( \color{red}{\sum_{i=1}^n} |x_{i}-y_{i}|^p\right)^{1/p} \tag{2} $$
Which one is correct? (notice to powers)
J.D.'s edit: The highlighted red part was missing from a previous edit.. Originally, OP included the following two images:


A metric (or distance) and a norm are two different things. You can use a norm to define a metric, but not necessarily the other way around. The Minkowski metric is the metric induced by the $L_p$ norm, that is, the metric in which the distance between two vectors is the norm of their difference.
Both of these formulas describe the same family of metrics, since $p\to1/p$ transforms from one to the other. So if your question is "which of these two expressions describes the family of Minkowski metrics", the answer is both. However, if the question is "which of them gives the metric induced by the $L_p$ norm", it's the second one,
$$\left(\sum_{i=1}^n|x_i-y_i|^p\right)^{1/p}\;.$$
You can remember that by remembering that $L_2$ is the standard Euclidean norm, in which the exponent $2$ is on the inside and the exponent $1/2$ is on the outside.