I want to draw something like this.

But I am not able to get x1,x2, ..., x5 labels. What I am getting is as follows:
So, I included count feature. My code is as follows :
\begin{tikzpicture}[thick]
\tikzset{input/.style={}}
\tikzset{block/.style={rectangle,draw}}
\node [input, name=input] {};
\node [block, right=1cm of input,minimum width=3cm, minimum height=2.5cm] (a) { };
\node [block, right of=a,minimum width=3cm, minimum height=5cm,node distance=5cm] (b) {};
\begin{scope}[->,>=latex]
\draw[->] (input) -- (a);
\foreach \i [count=\xi] in {2,...,-2}{%
\draw[->] ([yshift=\i * 0.4 cm]a.east) -- ([yshift=\i * 0.8 cm]b.west) node[right]{\footnotesize{$x_{\xi}$}} ;}
\end{scope}
\end{tikzpicture}
But I am getting a compilation error like this:
Use of \i doesn't match its definition ... node[right]{\footnotesize{$x_{\xi}$}} ;}

tikzand should update? – Count Zero May 27 '12 at 13:31countfeature was added to PGF for version 2.1; however, older TeX distros just ship version 2.0. So my first assumption would be that your PGF package is a bit outdated. – Daniel May 27 '12 at 13:56\pgfversionafter\begin{document}to see your pgf version – Alain Matthes May 27 '12 at 14:02