When applying the pumping lemma to $L = \{ 0^n \mid n>0\}$ I do the following:
$S = 0^p$
$x = \varepsilon$
$y = 0^p$
$z = \varepsilon$
so $S = xyz = (\varepsilon)0^p(\varepsilon)$
For $x y^i z$ if i choose $i = 0$ (pumping down) i get $S = \varepsilon$, which is not an element of $L$.
Therefore according to the pumping lemma this language is not regular. But since I am able to draw a DFA for $L$, I know it is regular.
I would like to know what rules I am violating by trying to apply the pumping lemma to $L$ in this manner.