In rational homotopy theory there is a basic construction which, given a prime number $l$ and a $CW$-complex $X$, produces a localized space $X_l$ equipped with a map $X\rightarrow X_l$ that induces an isomorphism in homology: $$H_{\bullet}(X_l,\mathbb{Z})\simeq H_{\bullet}(X,\mathbb{Z}_{(l)})$$ where $\mathbb{Z}_{(l)}$ is the localization of the ring of integers at the given prime number. On the other hand, if $X$ is a complex algebraic variety, in algebraic geometry there is a way to construct the $l$-adic cohomology groups $H^{\bullet}_{ét}(X,\mathbb{Z}_l)$, where $\mathbb{Z}_l=\lim_n(\mathbb{Z}/l^n\mathbb{Z})$ is the ring of $l$-adic numbers.
My question is: Is there any relation between this two constructions?...are $l$-adic cohomology groups isomorphic to the cohomology groups of a sort of localization of the variety?