Data in Pipeline not copied to Output template

Hi all,

I created an XML output template as this:

<output>
%loop ERRORLIST%
<claim>
<claimno>%value NUMBER%</claimno>
<salesdocno>%value ZVBELN%</salesdocno>
<errmsg>%value LINE%</errmsg>
</claim>
%endloop%
</output>

ERRORLIST has values in the pipeline. How come when I test it I only get the <output></output> tags. Why is it not picking up the pipeline values?

Thanks in advance.
Miles